You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/p__WxMiniProgram__Coursewar...

1358 lines
3.1 MiB

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

!(function(){var ux=Object.defineProperty,cx=Object.defineProperties;var dx=Object.getOwnPropertyDescriptors;var nv=Object.getOwnPropertySymbols;var bE=Object.prototype.hasOwnProperty,wE=Object.prototype.propertyIsEnumerable;var Xy=Math.pow,xE=(ze,be,de)=>be in ze?ux(ze,be,{enumerable:!0,configurable:!0,writable:!0,value:de}):ze[be]=de,Mo=(ze,be)=>{for(var de in be||(be={}))bE.call(be,de)&&xE(ze,de,be[de]);if(nv)for(var de of nv(be))wE.call(be,de)&&xE(ze,de,be[de]);return ze},Nf=(ze,be)=>cx(ze,dx(be));var TE=(ze,be)=>{var de={};for(var le in ze)bE.call(ze,le)&&be.indexOf(le)<0&&(de[le]=ze[le]);if(ze!=null&&nv)for(var le of nv(ze))be.indexOf(le)<0&&wE.call(ze,le)&&(de[le]=ze[le]);return de};var Jy=(ze,be,de)=>new Promise((le,Me)=>{var Ie=Oe=>{try{Ge(de.next(Oe))}catch(Ve){Me(Ve)}},Pe=Oe=>{try{Ge(de.throw(Oe))}catch(Ve){Me(Ve)}},Ge=Oe=>Oe.done?le(Oe.value):Promise.resolve(Oe.value).then(Ie,Pe);Ge((de=de.apply(ze,be)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[3897],{88540:function(){"use strict"},42271:function(){"use strict"},15547:function(ze,be){"use strict";be.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},71584:function(){"use strict";function ze(Ue,te,ne,fe){ne===void 0&&(ne=0),fe===void 0&&(fe=1/0),this._name=Ue,this._defaultValue=te,this._minimum=ne,this._maximum=fe}Object.defineProperty(ze.prototype,"name",{get:function(){return this._name},set:function(Ue){if(typeof Ue!="string"||Ue==="")throw new Error("Shape name must be a valid string.");this._name=Ue}}),Object.defineProperty(ze.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(Ue){if(typeof Ue!="number"||isNaN(Ue))throw new Error("The default value must be a real number, not: "+Ue);this._defaultValue=Ue}}),Object.defineProperty(ze.prototype,"minimum",{get:function(){return this._minimum},set:function(Ue){if(typeof Ue!="number"||isNaN(Ue))throw new Error("Minimum must be a real number, not: "+Ue);this._minimum=Ue}}),Object.defineProperty(ze.prototype,"maximum",{get:function(){return this._maximum},set:function(Ue){if(typeof Ue!="number"||isNaN(Ue))throw new Error("Maximum must be a real number, not: "+Ue);this._maximum=Ue}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(Ue,te){var ne=go.Shape._FigureParameters[Ue];return ne?ne[te]:null},go.Shape.setFigureParameter=function(Ue,te,ne){if(!(ne instanceof ze))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+ne);if(ne.defaultValue<ne.minimum||ne.defaultValue>ne.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+ne.defaultValue);var fe=go.Shape._FigureParameters[Ue];fe||(fe=[],go.Shape._FigureParameters[Ue]=fe),fe[te]=ne};var be=[];function de(Ue,te){var ne=be.pop();return ne===void 0?new go.Point(Ue,te):(ne.x=Ue,ne.y=te,ne)}function le(){var Ue=be.pop();return Ue===void 0?new go.Point:Ue}function Me(Ue){be.push(Ue)}function Ie(Ue,te,ne,fe,se,pe,Se,we,De){De||(De=new go.Point);var Re=Ue-ne,Ze=se-Se,nt=NaN,rt=NaN;if(Re===0)if(Ze===0)Ue===ne&&(nt=Ue,rt=te);else{var ft=(pe-we)/Ze,xt=pe-ft*se;nt=Ue,rt=ft*nt+xt}else if(Ze===0){var at=(te-fe)/Re,wt=te-at*Ue;nt=se,rt=at*nt+wt}else{var at=(te-fe)/Re,ft=(pe-we)/Ze,wt=te-at*Ue,xt=pe-ft*se;nt=(xt-wt)/(at-ft),rt=at*nt+wt}return De.x=nt,De.y=rt,De}function Pe(Ue,te,ne,fe,se,pe,Se,we,De,Re,Ze,nt,rt,ft){var xt=1-De,at=De,wt=Ue*xt+ne*at,Mt=te*xt+fe*at,Xt=ne*xt+se*at,bn=fe*xt+pe*at,pn=se*xt+Se*at,fn=pe*xt+we*at,gn=wt*xt+Xt*at,Nt=Mt*xt+bn*at,ut=Xt*xt+pn*at,it=bn*xt+fn*at,an=gn*xt+ut*at,mn=Nt*xt+it*at;Re.x=wt,Re.y=Mt,Ze.x=gn,Ze.y=Nt,nt.x=an,nt.y=mn,rt.x=ut,rt.y=it,ft.x=pn,ft.y=fn}var Ge=new go.Spot(.156,.156),Oe=new go.Spot(.844,.844),Ve=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new ze("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(Ue,te,ne){var fe=Ue?Ue.parameter1:NaN;(isNaN(fe)||fe<0)&&(fe=5),fe=Math.min(fe,te/3),fe=Math.min(fe,ne/3);var se=fe*Ve,pe=new go.Geometry().add(new go.PathFigure(fe,0,!0).add(new go.PathSegment(go.PathSegment.Line,te-fe,0)).add(new go.PathSegment(go.PathSegment.Bezier,te,fe,te-se,0,te,se)).add(new go.PathSegment(go.PathSegment.Line,te,ne-fe)).add(new go.PathSegment(go.PathSegment.Bezier,te-fe,ne,te,ne-se,te-se,ne)).add(new go.PathSegment(go.PathSegment.Line,fe,ne)).add(new go.PathSegment(go.PathSegment.Bezier,0,ne-fe,se,ne,0,ne-se)).add(new go.PathSegment(go.PathSegment.Line,0,fe)).add(new go.PathSegment(go.PathSegment.Bezier,fe,0,0,se,se,0).close()));return se>1&&(pe.spot1=new go.Spot(0,0,se,se),pe.spot2=new go.Spot(1,1,-se,-se)),pe}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(Ue,te,ne){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(Ue,te,ne){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,.5*te,ne).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(Ue,te,ne){return new go.Geometry().add(new go.PathFigure(te,ne).add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,te,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(Ue,te,ne){return new go.Geometry().add(new go.PathFigure(te,ne).add(new go.PathSegment(go.PathSegment.Line,0,ne)).add(new go.PathSegment(go.PathSegment.Line,.5*te,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(Ue,te,ne){return new go.Geometry().add(new go.PathFigure(.5*te,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(Ue,te,ne){var fe=new go.Geometry(go.Geometry.Line);return fe.startX=0,fe.startY=ne/2,fe.endX=te,fe.endY=ne/2,fe}),go.Shape.defineFigureGenerator("LineV",function(Ue,te,ne){var fe=new go.Geometry(go.Geometry.Line);return fe.startX=te/2,fe.startY=0,fe.endX=te/2,fe.endY=ne,fe}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(Ue,te,ne){return new go.Geometry().add(new go.PathFigure(0,ne/2,!1).add(new go.PathSegment(go.PathSegment.Line,te,ne/2)).add(new go.PathSegment(go.PathSegment.Move,te/2,0)).add(new go.PathSegment(go.PathSegment.Line,te/2,ne)))}),go.Shape.defineFigureGenerator("XLine",function(Ue,te,ne){return new go.Geometry().add(new go.PathFigure(0,ne,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)))}),go.Shape.defineFigureGenerator("LineRight",function(Ue,te,ne){return new go.Geometry().add(new go.PathFigure(.25*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,.25*te,ne)))}),go.Shape.defineFigureGenerator("LineDown",function(Ue,te,ne){return new go.Geometry().add(new go.PathFigure(0,.25*ne,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,.75*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.25*ne)))}),go.Shape.defineFigureGenerator("LineLeft",function(Ue,te,ne){return new go.Geometry().add(new go.PathFigure(.75*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,.75*te,ne)))}),go.Shape.defineFigureGenerator("LineUp",function(Ue,te,ne){return new go.Geometry().add(new go.PathFigure(0,.75*ne,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,.25*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.75*ne)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(Ue,te,ne){var fe=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(fe*te,(1-fe)*ne,!1).add(new go.PathSegment(go.PathSegment.Line,(1-fe)*te,fe*ne)).add(new go.PathSegment(go.PathSegment.Move,fe*te,fe*ne)).add(new go.PathSegment(go.PathSegment.Line,(1-fe)*te,(1-fe)*ne)).add(new go.PathSegment(go.PathSegment.Move,0,ne/2)).add(new go.PathSegment(go.PathSegment.Line,te,ne/2)).add(new go.PathSegment(go.PathSegment.Move,te/2,0)).add(new go.PathSegment(go.PathSegment.Line,te/2,ne)))}),go.Shape.defineFigureGenerator("CircleLine",function(Ue,te,ne){var fe=te/2,se=new go.Geometry().add(new go.PathFigure(te,te/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,fe,fe,fe,fe).close()));return se.spot1=Ge,se.spot2=Oe,se.defaultStretch=go.GraphObject.Uniform,se}),go.Shape.defineFigureGenerator("Line1",function(Ue,te,ne){var fe=new go.Geometry(go.Geometry.Line);return fe.startX=0,fe.startY=0,fe.endX=te,fe.endY=ne,fe}),go.Shape.defineFigureGenerator("Line2",function(Ue,te,ne){var fe=new go.Geometry(go.Geometry.Line);return fe.startX=te,fe.startY=0,fe.endX=0,fe.endY=ne,fe}),go.Shape.defineFigureGenerator("Curve1",function(Ue,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,te,ne,Ve*te,0,te,(1-Ve)*ne)))}),go.Shape.defineFigureGenerator("Curve2",function(Ue,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,te,ne,0,Ve*ne,(1-Ve)*te,ne)))}),go.Shape.defineFigureGenerator("Curve3",function(Ue,te,ne){return new go.Geometry().add(new go.PathFigure(te,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,ne,te,Ve*ne,Ve*te,ne)))}),go.Shape.defineFigureGenerator("Curve4",function(Ue,te,ne){return new go.Geometry().add(new go.PathFigure(te,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,ne,(1-Ve)*te,0,0,(1-Ve)*ne)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(Ue,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(Ue,te,ne){return new go.Geometry().add(new go.PathFigure(te,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(Ue,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(Ue,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new ze("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(Ue,te,ne){var fe=Ue?Ue.parameter1:NaN;isNaN(fe)?fe=.1:fe<-1?fe=-1:fe>1&&(fe=1);var se=Math.abs(fe)*te;if(fe===0){var pe=new go.Geometry(go.Geometry.Rectangle);return pe.startX=0,pe.startY=0,pe.endX=te,pe.endY=ne,pe}else{var pe=new go.Geometry;return fe>0?pe.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-se,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())):pe.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te-se,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,se,ne).close())),se<te/2&&pe.setSpots(se/te,0,(te-se)/te,1),pe}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new ze("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(Ue,te,ne){var fe=Ue?Ue.parameter1:NaN;isNaN(fe)?fe=10:fe<-te?fe=-te:fe>te&&(fe=te);var se=Math.abs(fe);if(fe===0){var pe=new go.Geometry(go.Geometry.Rectangle);return pe.startX=0,pe.startY=0,pe.endX=te,pe.endY=ne,pe}else{var pe=new go.Geometry;return fe>0?pe.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-se,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())):pe.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te-se,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,se,ne).close())),se<te/2&&pe.setSpots(se/te,0,(te-se)/te,1),pe}}),go.Shape.setFigureParameter("Trapezoid1",0,new ze("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(Ue,te,ne){var fe=Ue?Ue.parameter1:NaN;isNaN(fe)?fe=.2:fe<.5?fe=-.5:fe>.5&&(fe=.5);var se=Math.abs(fe)*te;if(fe===0){var pe=new go.Geometry(go.Geometry.Rectangle);return pe.startX=0,pe.startY=0,pe.endX=te,pe.endY=ne,pe}else{var pe=new go.Geometry;return fe>0?pe.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,te-se,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())):pe.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-se,ne)).add(new go.PathSegment(go.PathSegment.Line,se,ne).close())),se<te/2&&pe.setSpots(se/te,0,(te-se)/te,1),pe}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new ze("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(Ue,te,ne){var fe=Ue?Ue.parameter1:NaN;isNaN(fe)?fe=20:fe<-te?fe=-te/2:fe>te&&(fe=te/2);var se=Math.abs(fe);if(fe===0){var pe=new go.Geometry(go.Geometry.Rectangle);return pe.startX=0,pe.startY=0,pe.endX=te,pe.endY=ne,pe}else{var pe=new go.Geometry;return fe>0?pe.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,te-se,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())):pe.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-se,ne)).add(new go.PathSegment(go.PathSegment.Line,se,ne).close())),se<te/2&&pe.setSpots(se/te,0,(te-se)/te,1),pe}}),go.Shape.setFigureParameter("ManualOperation",0,new ze("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(Ue,te,ne){var fe=Ue?Ue.parameter1:NaN;isNaN(fe)?fe=10:fe<-te?fe=-te/2:fe>te&&(fe=te/2);var se=Math.abs(fe);if(fe===0){var pe=new go.Geometry(go.Geometry.Rectangle);return pe.startX=0,pe.startY=0,pe.endX=te,pe.endY=ne,pe}else{var pe=new go.Geometry;return fe>0?pe.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-se,ne)).add(new go.PathSegment(go.PathSegment.Line,se,ne).close())):pe.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,te-se,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())),se<te/2&&pe.setSpots(se/te,0,(te-se)/te,1),pe}});var ot=[];function Je(){var Ue=ot.pop();return Ue===void 0?[]:Ue}function Xe(Ue){Ue.length=0,ot.push(Ue)}function vt(Ue){for(var te=Je(),ne=.5,fe=.5,se=Math.PI*1.5,pe=0,Se=0;Se<Ue;Se++)pe=2*Math.PI/Ue*Se+se,te[Se]=new go.Point(fe+ne*Math.cos(pe),fe+ne*Math.sin(pe));return te.push(te[0]),te}function st(Ue){var te=_t(Ue),ne=Je();ne[0]=te[0];for(var fe=1,se=1;fe<te.length;fe+=2,se+=3)ne[se]=te[fe],ne[se+1]=te[fe],ne[se+2]=te[fe+1];return Xe(te),ne}function _t(Ue){for(var te=vt(Ue),ne=Je(),fe=Math.floor(te.length/2),se=te.length-1,pe=Ue%2===0?2:1,Se=0;Se<se;Se++){var we=te[Se],De=te[Se+1],Re=te[(fe+Se-1)%se],Ze=te[(fe+Se+pe)%se];ne[Se*2]=we,ne[Se*2+1]=Ie(we.x,we.y,Re.x,Re.y,De.x,De.y,Ze.x,Ze.y,new go.Point)}return ne[ne.length]=ne[0],Xe(te),ne}go.Shape.defineFigureGenerator("Pentagon",function(Ue,te,ne){var fe=vt(5),se=new go.Geometry,pe=new go.PathFigure(fe[0].x*te,fe[0].y*ne,!0);se.add(pe);for(var Se=1;Se<5;Se++)pe.add(new go.PathSegment(go.PathSegment.Line,fe[Se].x*te,fe[Se].y*ne));return pe.add(new go.PathSegment(go.PathSegment.Line,fe[0].x*te,fe[0].y*ne).close()),Xe(fe),se.spot1=new go.Spot(.2,.22),se.spot2=new go.Spot(.8,.9),se}),go.Shape.defineFigureGenerator("Hexagon",function(Ue,te,ne){var fe=vt(6),se=new go.Geometry,pe=new go.PathFigure(fe[0].x*te,fe[0].y*ne,!0);se.add(pe);for(var Se=1;Se<6;Se++)pe.add(new go.PathSegment(go.PathSegment.Line,fe[Se].x*te,fe[Se].y*ne));return pe.add(new go.PathSegment(go.PathSegment.Line,fe[0].x*te,fe[0].y*ne).close()),Xe(fe),se.spot1=new go.Spot(.07,.25),se.spot2=new go.Spot(.93,.75),se}),go.Shape.defineFigureGenerator("Heptagon",function(Ue,te,ne){var fe=vt(7),se=new go.Geometry,pe=new go.PathFigure(fe[0].x*te,fe[0].y*ne,!0);se.add(pe);for(var Se=1;Se<7;Se++)pe.add(new go.PathSegment(go.PathSegment.Line,fe[Se].x*te,fe[Se].y*ne));return pe.add(new go.PathSegment(go.PathSegment.Line,fe[0].x*te,fe[0].y*ne).close()),Xe(fe),se.spot1=new go.Spot(.2,.15),se.spot2=new go.Spot(.8,.85),se}),go.Shape.defineFigureGenerator("Octagon",function(Ue,te,ne){var fe=vt(8),se=new go.Geometry,pe=new go.PathFigure(fe[0].x*te,fe[0].y*ne,!0);se.add(pe);for(var Se=1;Se<8;Se++)pe.add(new go.PathSegment(go.PathSegment.Line,fe[Se].x*te,fe[Se].y*ne));return pe.add(new go.PathSegment(go.PathSegment.Line,fe[0].x*te,fe[0].y*ne).close()),Xe(fe),se.spot1=new go.Spot(.15,.15),se.spot2=new go.Spot(.85,.85),se}),go.Shape.defineFigureGenerator("Nonagon",function(Ue,te,ne){var fe=vt(9),se=new go.Geometry,pe=new go.PathFigure(fe[0].x*te,fe[0].y*ne,!0);se.add(pe);for(var Se=1;Se<9;Se++)pe.add(new go.PathSegment(go.PathSegment.Line,fe[Se].x*te,fe[Se].y*ne));return pe.add(new go.PathSegment(go.PathSegment.Line,fe[0].x*te,fe[0].y*ne).close()),Xe(fe),se.spot1=new go.Spot(.17,.13),se.spot2=new go.Spot(.82,.82),se}),go.Shape.defineFigureGenerator("Decagon",function(Ue,te,ne){var fe=vt(10),se=new go.Geometry,pe=new go.PathFigure(fe[0].x*te,fe[0].y*ne,!0);se.add(pe);for(var Se=1;Se<10;Se++)pe.add(new go.PathSegment(go.PathSegment.Line,fe[Se].x*te,fe[Se].y*ne));return pe.add(new go.PathSegment(go.PathSegment.Line,fe[0].x*te,fe[0].y*ne).close()),Xe(fe),se.spot1=new go.Spot(.16,.16),se.spot2=new go.Spot(.84,.84),se}),go.Shape.defineFigureGenerator("Dodecagon",function(Ue,te,ne){var fe=vt(12),se=new go.Geometry,pe=new go.PathFigure(fe[0].x*te,fe[0].y*ne,!0);se.add(pe);for(var Se=1;Se<12;Se++)pe.add(new go.PathSegment(go.PathSegment.Line,fe[Se].x*te,fe[Se].y*ne));return pe.add(new go.PathSegment(go.PathSegment.Line,fe[0].x*te,fe[0].y*ne).close()),Xe(fe),se.spot1=new go.Spot(.16,.16),se.spot2=new go.Spot(.84,.84),se}),go.Shape.defineFigureGenerator("FivePointedStar",function(Ue,te,ne){var fe=_t(5),se=new go.Geometry,pe=new go.PathFigure(fe[0].x*te,fe[0].y*ne,!0);se.add(pe);for(var Se=1;Se<10;Se++)pe.add(new go.PathSegment(go.PathSegment.Line,fe[Se].x*te,fe[Se].y*ne));return pe.add(new go.PathSegment(go.PathSegment.Line,fe[0].x*te,fe[0].y*ne).close()),Xe(fe),se.spot1=new go.Spot(.266,.333),se.spot2=new go.Spot(.733,.733),se}),go.Shape.defineFigureGenerator("SixPointedStar",function(Ue,te,ne){var fe=_t(6),se=new go.Geometry,pe=new go.PathFigure(fe[0].x*te,fe[0].y*ne,!0);se.add(pe);for(var Se=1;Se<12;Se++)pe.add(new go.PathSegment(go.PathSegment.Line,fe[Se].x*te,fe[Se].y*ne));return pe.add(new go.PathSegment(go.PathSegment.Line,fe[0].x*te,fe[0].y*ne).close()),Xe(fe),se.spot1=new go.Spot(.17,.25),se.spot2=new go.Spot(.83,.75),se}),go.Shape.defineFigureGenerator("SevenPointedStar",function(Ue,te,ne){var fe=_t(7),se=new go.Geometry,pe=new go.PathFigure(fe[0].x*te,fe[0].y*ne,!0);se.add(pe);for(var Se=1;Se<14;Se++)pe.add(new go.PathSegment(go.PathSegment.Line,fe[Se].x*te,fe[Se].y*ne));return pe.add(new go.PathSegment(go.PathSegment.Line,fe[0].x*te,fe[0].y*ne).close()),Xe(fe),se.spot1=new go.Spot(.222,.277),se.spot2=new go.Spot(.777,.666),se}),go.Shape.defineFigureGenerator("EightPointedStar",function(Ue,te,ne){var fe=_t(8),se=new go.Geometry,pe=new go.PathFigure(fe[0].x*te,fe[0].y*ne,!0);se.add(pe);for(var Se=1;Se<16;Se++)pe.add(new go.PathSegment(go.PathSegment.Line,fe[Se].x*te,fe[Se].y*ne));return pe.add(new go.PathSegment(go.PathSegment.Line,fe[0].x*te,fe[0].y*ne).close()),Xe(fe),se.spot1=new go.Spot(.25,.25),se.spot2=new go.Spot(.75,.75),se}),go.Shape.defineFigureGenerator("NinePointedStar",function(Ue,te,ne){var fe=_t(9),se=new go.Geometry,pe=new go.PathFigure(fe[0].x*te,fe[0].y*ne,!0);se.add(pe);for(var Se=1;Se<18;Se++)pe.add(new go.PathSegment(go.PathSegment.Line,fe[Se].x*te,fe[Se].y*ne));return pe.add(new go.PathSegment(go.PathSegment.Line,fe[0].x*te,fe[0].y*ne).close()),Xe(fe),se.spot1=new go.Spot(.222,.277),se.spot2=new go.Spot(.777,.666),se}),go.Shape.defineFigureGenerator("TenPointedStar",function(Ue,te,ne){var fe=_t(10),se=new go.Geometry,pe=new go.PathFigure(fe[0].x*te,fe[0].y*ne,!0);se.add(pe);for(var Se=1;Se<20;Se++)pe.add(new go.PathSegment(go.PathSegment.Line,fe[Se].x*te,fe[Se].y*ne));return pe.add(new go.PathSegment(go.PathSegment.Line,fe[0].x*te,fe[0].y*ne).close()),Xe(fe),se.spot1=new go.Spot(.281,.261),se.spot2=new go.Spot(.723,.748),se}),go.Shape.defineFigureGenerator("FivePointedBurst",function(Ue,te,ne){var fe=st(5),se=new go.Geometry,pe=new go.PathFigure(fe[0].x*te,fe[0].y*ne,!0);se.add(pe);for(var Se=1;Se<fe.length;Se+=3)pe.add(new go.PathSegment(go.PathSegment.Bezier,fe[Se+2].x*te,fe[Se+2].y*ne,fe[Se].x*te,fe[Se].y*ne,fe[Se+1].x*te,fe[Se+1].y*ne));return pe.segments.last().close(),Xe(fe),se.spot1=new go.Spot(.222,.277),se.spot2=new go.Spot(.777,.777),se}),go.Shape.defineFigureGenerator("SixPointedBurst",function(Ue,te,ne){var fe=st(6),se=new go.Geometry,pe=new go.PathFigure(fe[0].x*te,fe[0].y*ne,!0);se.add(pe);for(var Se=1;Se<fe.length;Se+=3)pe.add(new go.PathSegment(go.PathSegment.Bezier,fe[Se+2].x*te,fe[Se+2].y*ne,fe[Se].x*te,fe[Se].y*ne,fe[Se+1].x*te,fe[Se+1].y*ne));return pe.segments.last().close(),Xe(fe),se.spot1=new go.Spot(.17,.222),se.spot2=new go.Spot(.833,.777),se}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(Ue,te,ne){var fe=st(7),se=new go.Geometry,pe=new go.PathFigure(fe[0].x*te,fe[0].y*ne,!0);se.add(pe);for(var Se=1;Se<fe.length;Se+=3)pe.add(new go.PathSegment(go.PathSegment.Bezier,fe[Se+2].x*te,fe[Se+2].y*ne,fe[Se].x*te,fe[Se].y*ne,fe[Se+1].x*te,fe[Se+1].y*ne));return pe.segments.last().close(),Xe(fe),se.spot1=new go.Spot(.222,.222),se.spot2=new go.Spot(.777,.777),se}),go.Shape.defineFigureGenerator("EightPointedBurst",function(Ue,te,ne){var fe=st(8),se=new go.Geometry,pe=new go.PathFigure(fe[0].x*te,fe[0].y*ne,!0);se.add(pe);for(var Se=1;Se<fe.length;Se+=3)pe.add(new go.PathSegment(go.PathSegment.Bezier,fe[Se+2].x*te,fe[Se+2].y*ne,fe[Se].x*te,fe[Se].y*ne,fe[Se+1].x*te,fe[Se+1].y*ne));return pe.segments.last().close(),Xe(fe),se.spot1=new go.Spot(.222,.222),se.spot2=new go.Spot(.777,.777),se}),go.Shape.defineFigureGenerator("NinePointedBurst",function(Ue,te,ne){var fe=st(9),se=new go.Geometry,pe=new go.PathFigure(fe[0].x*te,fe[0].y*ne,!0);se.add(pe);for(var Se=1;Se<fe.length;Se+=3)pe.add(new go.PathSegment(go.PathSegment.Bezier,fe[Se+2].x*te,fe[Se+2].y*ne,fe[Se].x*te,fe[Se].y*ne,fe[Se+1].x*te,fe[Se+1].y*ne));return pe.segments.last().close(),Xe(fe),se.spot1=new go.Spot(.222,.222),se.spot2=new go.Spot(.777,.777),se}),go.Shape.defineFigureGenerator("TenPointedBurst",function(Ue,te,ne){var fe=st(10),se=new go.Geometry,pe=new go.PathFigure(fe[0].x*te,fe[0].y*ne,!0);se.add(pe);for(var Se=1;Se<fe.length;Se+=3)pe.add(new go.PathSegment(go.PathSegment.Bezier,fe[Se+2].x*te,fe[Se+2].y*ne,fe[Se].x*te,fe[Se].y*ne,fe[Se+1].x*te,fe[Se+1].y*ne));return pe.segments.last().close(),Xe(fe),se.spot1=new go.Spot(.222,.222),se.spot2=new go.Spot(.777,.777),se}),go.Shape.setFigureParameter("FramedRectangle",0,new ze("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new ze("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(Ue,te,ne){var fe=Ue?Ue.parameter1:NaN,se=Ue?Ue.parameter2:NaN;isNaN(fe)&&(fe=8),isNaN(se)&&(se=8);var pe=new go.Geometry,Se=new go.PathFigure(0,0,!0);return pe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,te,0)),Se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),fe<te/2&&se<ne/2&&(Se.add(new go.PathSegment(go.PathSegment.Move,fe,se)),Se.add(new go.PathSegment(go.PathSegment.Line,fe,ne-se)),Se.add(new go.PathSegment(go.PathSegment.Line,te-fe,ne-se)),Se.add(new go.PathSegment(go.PathSegment.Line,te-fe,se).close())),pe.setSpots(0,0,1,1,fe,se,-fe,-se),pe}),go.Shape.setFigureParameter("Ring",0,new ze("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(Ue,te,ne){var fe=Ue?Ue.parameter1:NaN;(isNaN(fe)||fe<0)&&(fe=8);var se=te/2,pe=new go.Geometry,Se=new go.PathFigure(te,te/2,!0);pe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Arc,0,360,se,se,se,se).close());var we=Math.max(se-fe,0);return we>0&&(Se.add(new go.PathSegment(go.PathSegment.Move,te/2+we,te/2)),Se.add(new go.PathSegment(go.PathSegment.Arc,0,-360,se,se,we,we).close())),pe.spot1=Ge,pe.spot2=Oe,pe.defaultStretch=go.GraphObject.Uniform,pe}),go.Shape.defineFigureGenerator("Cloud",function(Ue,te,ne){return new go.Geometry().add(new go.PathFigure(.08034461*te,.1944299*ne,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*te,.05349299*ne,-.09239631*te,.07836421*ne,.1406031*te,-.0542823*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*te,.074219*ne,.2450511*te,-.00697547*ne,.3776197*te,-.01112067*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*te,.07004196*ne,.4539471*te,0,.6066018*te,-.02526587*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*te,.08370865*ne,.6914277*te,-.01904177*ne,.8921095*te,-.01220843*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*te,.3194596*ne,1.036446*te,.04105738*ne,1.020377*te,.3022052*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*te,.562044*ne,1.04448*te,.360238*ne,.992256*te,.5219009*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*te,.8217117*ne,1.032337*te,.5771781*ne,1.018411*te,.8120651*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*te,.9156953*ne,1.028411*te,.9571472*ne,.8556702*te,1.052487*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*te,.9310455*ne,.7431877*te,1.009325*ne,.5624123*te,1.021761*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*te,.9344623*ne,.4820677*te,1.031761*ne,.3030112*te,1.002796*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*te,.870098*ne,.2329994*te,1.01518*ne,.03213784*te,1.01518*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*te,.6545475*ne,-.02812061*te,.9032597*ne,-.01205169*te,.6835638*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*te,.4265613*ne,-.01812061*te,.6089503*ne,-.00606892*te,.4555777*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*te,.1944299*ne,-.01606892*te,.3892545*ne,-.01205169*te,.1944299*ne))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(Ue,te,ne){var fe=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(fe*te,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-fe)*te,0)).add(new go.PathSegment(go.PathSegment.Line,te,fe*ne)).add(new go.PathSegment(go.PathSegment.Line,te,(1-fe)*ne)).add(new go.PathSegment(go.PathSegment.Line,(1-fe)*te,ne)).add(new go.PathSegment(go.PathSegment.Line,fe*te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,(1-fe)*ne)).add(new go.PathSegment(go.PathSegment.Line,0,fe*ne).close())).setSpots(fe/2,fe/2,1-fe/2,1-fe/2)}),go.Shape.setFigureParameter("Pie",0,new ze("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new ze("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(Ue,te,ne){var fe=Ue?Ue.parameter1:NaN,se=Ue?Ue.parameter2:NaN;isNaN(fe)&&(fe=0),isNaN(se)&&(se=315);var pe=fe%360;pe<0&&(pe+=360);var Se=se%360,we=Math.min(te,ne)/2;return new go.Geometry().add(new go.PathFigure(we,we).add(new go.PathSegment(go.PathSegment.Arc,pe,Se,we,we,we,we).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(Ue,te,ne){var fe=Ve/Math.SQRT2*.5,se=Math.SQRT2/2,pe=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(te,ne,!0).add(new go.PathSegment(go.PathSegment.Bezier,se*te,pe*ne,te,(1-fe)*ne,(se+fe)*te,(pe+fe)*ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close()))}),go.Shape.setFigureParameter("ThickCross",0,new ze("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(Ue,te,ne){var fe=Ue?Ue.parameter1:NaN;(isNaN(fe)||fe<0)&&(fe=30);var se=Math.min(fe,te)/2,pe=te/2,Se=ne/2;return new go.Geometry().add(new go.PathFigure(pe-se,0,!0).add(new go.PathSegment(go.PathSegment.Line,pe+se,0)).add(new go.PathSegment(go.PathSegment.Line,pe+se,Se-se)).add(new go.PathSegment(go.PathSegment.Line,te,Se-se)).add(new go.PathSegment(go.PathSegment.Line,te,Se+se)).add(new go.PathSegment(go.PathSegment.Line,pe+se,Se+se)).add(new go.PathSegment(go.PathSegment.Line,pe+se,ne)).add(new go.PathSegment(go.PathSegment.Line,pe-se,ne)).add(new go.PathSegment(go.PathSegment.Line,pe-se,Se+se)).add(new go.PathSegment(go.PathSegment.Line,0,Se+se)).add(new go.PathSegment(go.PathSegment.Line,0,Se-se)).add(new go.PathSegment(go.PathSegment.Line,pe-se,Se-se).close()))}),go.Shape.setFigureParameter("ThinCross",0,new ze("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(Ue,te,ne){var fe=Ue?Ue.parameter1:NaN;(isNaN(fe)||fe<0)&&(fe=10);var se=Math.min(fe,te)/2,pe=te/2,Se=ne/2;return new go.Geometry().add(new go.PathFigure(pe-se,0,!0).add(new go.PathSegment(go.PathSegment.Line,pe+se,0)).add(new go.PathSegment(go.PathSegment.Line,pe+se,Se-se)).add(new go.PathSegment(go.PathSegment.Line,te,Se-se)).add(new go.PathSegment(go.PathSegment.Line,te,Se+se)).add(new go.PathSegment(go.PathSegment.Line,pe+se,Se+se)).add(new go.PathSegment(go.PathSegment.Line,pe+se,ne)).add(new go.PathSegment(go.PathSegment.Line,pe-se,ne)).add(new go.PathSegment(go.PathSegment.Line,pe-se,Se+se)).add(new go.PathSegment(go.PathSegment.Line,0,Se+se)).add(new go.PathSegment(go.PathSegment.Line,0,Se-se)).add(new go.PathSegment(go.PathSegment.Line,pe-se,Se-se).close()))}),go.Shape.setFigureParameter("ThickX",0,new ze("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(Ue,te,ne){var fe=Ue?Ue.parameter1:NaN;if((isNaN(fe)||fe<0)&&(fe=30),te===0||ne===0){var se=new go.Geometry(go.Geometry.Rectangle);return se.startX=0,se.startY=0,se.endX=te,se.endY=ne,se}else{var pe=te/2,Se=ne/2,we=Math.atan2(ne,te),De=fe-Math.min(Math.cos(we)*fe/2,pe),Re=fe-Math.min(Math.sin(we)*fe/2,Se),se=new go.Geometry,Ze=new go.PathFigure(De,0,!0);return se.add(Ze),Ze.add(new go.PathSegment(go.PathSegment.Line,pe,.2*ne)),Ze.add(new go.PathSegment(go.PathSegment.Line,te-De,0)),Ze.add(new go.PathSegment(go.PathSegment.Line,te,Re)),Ze.add(new go.PathSegment(go.PathSegment.Line,.8*te,Se)),Ze.add(new go.PathSegment(go.PathSegment.Line,te,ne-Re)),Ze.add(new go.PathSegment(go.PathSegment.Line,te-De,ne)),Ze.add(new go.PathSegment(go.PathSegment.Line,pe,.8*ne)),Ze.add(new go.PathSegment(go.PathSegment.Line,De,ne)),Ze.add(new go.PathSegment(go.PathSegment.Line,0,ne-Re)),Ze.add(new go.PathSegment(go.PathSegment.Line,.2*te,Se)),Ze.add(new go.PathSegment(go.PathSegment.Line,0,Re).close()),se}}),go.Shape.setFigureParameter("ThinX",0,new ze("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(Ue,te,ne){var fe=Ue?Ue.parameter1:NaN;(isNaN(fe)||fe<0)&&(fe=10);var se=new go.Geometry,pe=new go.PathFigure(.1*te,0,!0);return se.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.4*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.9*te,0)),pe.add(new go.PathSegment(go.PathSegment.Line,te,.1*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.6*te,.5*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.9*te,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.1*te,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,.9*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.4*te,.5*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,.1*ne).close()),se}),go.Shape.setFigureParameter("SquareIBeam",0,new ze("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(Ue,te,ne){var fe=Ue?Ue.parameter1:NaN;isNaN(fe)&&(fe=.2);var se=new go.Geometry,pe=new go.PathFigure(0,0,!0);return se.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,0)),pe.add(new go.PathSegment(go.PathSegment.Line,te,fe*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,(.5+fe/2)*te,fe*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,(.5+fe/2)*te,(1-fe)*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,te,(1-fe)*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,te,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,(1-fe)*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,(.5-fe/2)*te,(1-fe)*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,(.5-fe/2)*te,fe*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,fe*ne).close()),se}),go.Shape.setFigureParameter("RoundedIBeam",0,new ze("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(Ue,te,ne){var fe=Ue?Ue.parameter1:NaN;isNaN(fe)&&(fe=.5);var se=new go.Geometry,pe=new go.PathFigure(0,0,!0);return se.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,0)),pe.add(new go.PathSegment(go.PathSegment.Bezier,te,ne,Math.abs(1-fe)*te,.25*ne,Math.abs(1-fe)*te,.75*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ne)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,0,fe*te,.75*ne,fe*te,.25*ne).close()),se}),go.Shape.defineFigureGenerator("HalfEllipse",function(Ue,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,Ve*te,0,te,(.5-Ve/2)*ne)).add(new go.PathSegment(go.PathSegment.Bezier,0,ne,te,(.5+Ve/2)*ne,Ve*te,ne).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(Ue,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,ne,te,0,te,ne)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*te,.75*ne,.5*te,.25*ne).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(Ue,te,ne){return new go.Geometry().add(new go.PathFigure(.5*te,ne,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*ne,.1*te,.8*ne,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.3*ne,0,0,.45*te,0)).add(new go.PathSegment(go.PathSegment.Bezier,te,.3*ne,.55*te,0,te,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,.5*ne,.9*te,.8*ne).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(Ue,te,ne){return new go.Geometry().add(new go.PathFigure(.5*te,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*te,.01*ne)).add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,.6*te,.2*ne,te,.25*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.55*te,.7*ne,te,.8*ne,.6*te,.8*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.75*te,ne,.5*te,.75*ne,.55*te,.95*ne)).add(new go.PathSegment(go.PathSegment.Line,.25*te,ne)).add(new go.PathSegment(go.PathSegment.Bezier,.45*te,.7*ne,.45*te,.95*ne,.5*te,.75*ne)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,.4*te,.8*ne,0,.8*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.49*te,.01*ne,0,.25*ne,.4*te,.2*ne).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(.4*te,.6*ne,!0);fe.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.15*te,ne,.5*te,.75*ne,.45*te,.95*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.85*te,ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.6*te,.6*ne,.55*te,.95*ne,.5*te,.75*ne));var pe=.2,Se=.3,we=0,De=pe*Ve;return se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+Se)*te,(.5+pe+we)*ne,(.5-pe+Se)*te,(.5+De+we)*ne,(.5-De+Se)*te,(.5+pe+we)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+pe+Se)*te,(.5+we)*ne,(.5+De+Se)*te,(.5+pe+we)*ne,(.5+pe+Se)*te,(.5+De+we)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+Se)*te,(.5-pe+we)*ne,(1-.5+pe+Se)*te,(.5-De+we)*ne,(.5+De+Se)*te,(.5-pe+we)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.65*te,.36771243*ne,(.5-De+Se)*te,(.5-pe+we)*ne,(.5-pe+Se+.05)*te,(.5-De+we-.02)*ne)),pe=.2,Se=0,we=-.3,De=pe*Ve,se.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+pe+Se)*te,(.5+we)*ne,(.5+De+Se)*te,(.5+pe+we)*ne,(.5+pe+Se)*te,(.5+De+we)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+Se)*te,(.5-pe+we)*ne,(1-.5+pe+Se)*te,(.5-De+we)*ne,(.5+De+Se)*te,(.5-pe+we)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-pe+Se)*te,(.5+we)*ne,(.5-De+Se)*te,(.5-pe+we)*ne,(.5-pe+Se)*te,(.5-De+we)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-De+Se)*te,(.5+pe+we)*ne,(.5-pe+Se)*te,(.5+De+we)*ne,(.5-De+Se)*te,(.5+pe+we)*ne)),pe=.2,Se=-.3,we=0,De=pe*Ve,se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+Se)*te,(.5-pe+we)*ne,(1-.5+pe+Se-.05)*te,(.5-De+we-.02)*ne,(.5+De+Se)*te,(.5-pe+we)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-pe+Se)*te,(.5+we)*ne,(.5-De+Se)*te,(.5-pe+we)*ne,(.5-pe+Se)*te,(.5-De+we)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+Se)*te,(.5+pe+we)*ne,(.5-pe+Se)*te,(.5+De+we)*ne,(.5-De+Se)*te,(.5+pe+we)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,.6*ne,(.5+De+Se)*te,(.5+pe+we)*ne,(.5+pe+Se)*te,(.5+De+we)*ne).close()),fe.setSpots(.06,.33,.93,.68),fe}),go.Shape.defineFigureGenerator("YinYang",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(te*.5,0,!0);fe.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,270,180,te*.5,te*.5,te*.5,te*.5)),se.add(new go.PathSegment(go.PathSegment.Arc,90,-180,te*.5,te*.75,te*.25,te*.25)),se.add(new go.PathSegment(go.PathSegment.Arc,90,180,te*.5,te*.25,te*.25,te*.25));var pe=.1,Se=.5,we=.25;return se.add(new go.PathSegment(go.PathSegment.Move,(Se+pe)*te,we*ne)),se.add(new go.PathSegment(go.PathSegment.Arc,0,-360,te*Se,ne*we,pe*te,pe*te).close()),se=new go.PathFigure(te*.5,0,!1),fe.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,270,-180,te*.5,te*.5,te*.5,te*.5)),we=.75,se=new go.PathFigure((Se+pe)*te,we*ne,!0),fe.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,0,360,te*Se,ne*we,pe*te,pe*te).close()),fe.defaultStretch=go.GraphObject.Uniform,fe}),go.Shape.defineFigureGenerator("Peace",function(Ue,te,ne){var fe=.8535533905932737,se=.5*te,pe=.5*ne;return new go.Geometry().add(new go.PathFigure(se,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,se,pe,se,pe)).add(new go.PathSegment(go.PathSegment.Line,se,ne)).add(new go.PathSegment(go.PathSegment.Move,se,pe)).add(new go.PathSegment(go.PathSegment.Line,(1-fe)*te,fe*ne)).add(new go.PathSegment(go.PathSegment.Move,se,pe)).add(new go.PathSegment(go.PathSegment.Line,fe*te,fe*ne)))}),go.Shape.defineFigureGenerator("NotAllowed",function(Ue,te,ne){var fe=new go.Geometry,se=Ve*.5,pe=.5,Se=.5,we=.5,De=new go.PathFigure(Se*te,(we-pe)*ne);fe.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,(Se-pe)*te,we*ne,(Se-se)*te,(we-pe)*ne,(Se-pe)*te,(we-se)*ne)),De.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(we+pe)*ne,(Se-pe)*te,(we+se)*ne,(Se-se)*te,(we+pe)*ne)),De.add(new go.PathSegment(go.PathSegment.Bezier,(Se+pe)*te,we*ne,(Se+se)*te,(we+pe)*ne,(Se+pe)*te,(we+se)*ne)),De.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(we-pe)*ne,(Se+pe)*te,(we-se)*ne,(Se+se)*te,(we-pe)*ne)),pe=.4,se=Ve*.4;var Re=le(),Ze=le(),nt=le(),rt=le();Pe(Se,we-pe,Se+se,we-pe,Se+pe,we-se,Se+pe,we,.42,Re,Ze,nt,rt,rt);var ft=le(),xt=le(),at=le();Pe(Se,we-pe,Se+se,we-pe,Se+pe,we-se,Se+pe,we,.58,rt,rt,at,ft,xt);var wt=le(),Mt=le(),Xt=le();Pe(Se,we+pe,Se-se,we+pe,Se-pe,we+se,Se-pe,we,.42,wt,Mt,Xt,rt,rt);var bn=le(),pn=le(),fn=le();return Pe(Se,we+pe,Se-se,we+pe,Se-pe,we+se,Se-pe,we,.58,rt,rt,fn,bn,pn),De.add(new go.PathSegment(go.PathSegment.Move,fn.x*te,fn.y*ne)),De.add(new go.PathSegment(go.PathSegment.Bezier,(Se-pe)*te,we*ne,bn.x*te,bn.y*ne,pn.x*te,pn.y*ne)),De.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(we-pe)*ne,(Se-pe)*te,(we-se)*ne,(Se-se)*te,(we-pe)*ne)),De.add(new go.PathSegment(go.PathSegment.Bezier,nt.x*te,nt.y*ne,Re.x*te,Re.y*ne,Ze.x*te,Ze.y*ne)),De.add(new go.PathSegment(go.PathSegment.Line,fn.x*te,fn.y*ne).close()),De.add(new go.PathSegment(go.PathSegment.Move,Xt.x*te,Xt.y*ne)),De.add(new go.PathSegment(go.PathSegment.Line,at.x*te,at.y*ne)),De.add(new go.PathSegment(go.PathSegment.Bezier,(Se+pe)*te,we*ne,ft.x*te,ft.y*ne,xt.x*te,xt.y*ne)),De.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(we+pe)*ne,(Se+pe)*te,(we+se)*ne,(Se+se)*te,(we+pe)*ne)),De.add(new go.PathSegment(go.PathSegment.Bezier,Xt.x*te,Xt.y*ne,wt.x*te,wt.y*ne,Mt.x*te,Mt.y*ne).close()),Me(Re),Me(Ze),Me(nt),Me(rt),Me(ft),Me(xt),Me(at),Me(wt),Me(Mt),Me(Xt),Me(bn),Me(pn),Me(fn),fe.defaultStretch=go.GraphObject.Uniform,fe}),go.Shape.defineFigureGenerator("Fragile",function(Ue,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*te,0)).add(new go.PathSegment(go.PathSegment.Line,.2*te,.15*ne)).add(new go.PathSegment(go.PathSegment.Line,.3*te,.25*ne)).add(new go.PathSegment(go.PathSegment.Line,.29*te,.33*ne)).add(new go.PathSegment(go.PathSegment.Line,.35*te,.25*ne)).add(new go.PathSegment(go.PathSegment.Line,.3*te,.15*ne)).add(new go.PathSegment(go.PathSegment.Line,.4*te,0)).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*te,.5*ne,te,.25*ne,.75*te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,.55*te,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.7*te,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)).add(new go.PathSegment(go.PathSegment.Line,.3*te,ne)).add(new go.PathSegment(go.PathSegment.Line,.3*te,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.45*te,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.45*te,.5*ne)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*te,.5*ne,0,.25*ne).close()))}),go.Shape.setFigureParameter("HourGlass",0,new ze("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(Ue,te,ne){var fe=Ue?Ue.parameter1:NaN;(isNaN(fe)||fe<0)&&(fe=30),fe>te&&(fe=te);var se=(te-fe)/2,pe=se+fe;return new go.Geometry().add(new go.PathFigure(pe,.5*ne).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne)).add(new go.PathSegment(go.PathSegment.Line,se,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,te,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(Ue,te,ne){return new go.Geometry().add(new go.PathFigure(0,.55*ne).add(new go.PathSegment(go.PathSegment.Line,.6*te,0)).add(new go.PathSegment(go.PathSegment.Line,.3*te,.45*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.45*ne)).add(new go.PathSegment(go.PathSegment.Line,.4*te,ne)).add(new go.PathSegment(go.PathSegment.Line,.7*te,.55*ne).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(Ue,te,ne){var fe=new go.Geometry,se=Ve*.4,pe=.4,Se=.5,we=.5,De=le(),Re=le(),Ze=le(),nt=le(),rt=new go.PathFigure((Se-pe)*te,we*ne,!1);fe.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(we-pe)*ne,(Se-pe)*te,(we-se)*ne,(Se-se)*te,(we-pe)*ne)),Pe(Se,we-pe,Se+se,we-pe,Se+pe,we-se,Se+pe,we,.44,Ze,nt,Re,De,De),rt.add(new go.PathSegment(go.PathSegment.Bezier,Re.x*te,Re.y*ne,Ze.x*te,Ze.y*ne,nt.x*te,nt.y*ne));var ft=de(Re.x,Re.y);Pe(Se,we-pe,Se+se,we-pe,Se+pe,we-se,Se+pe,we,.56,De,De,Re,Ze,nt);var xt=de(Re.x,Re.y);rt.add(new go.PathSegment(go.PathSegment.Line,(ft.x*.1+.95*.9)*te,ft.y*.1*ne)),rt.add(new go.PathSegment(go.PathSegment.Line,.85*te,ft.y*.1*ne)),rt.add(new go.PathSegment(go.PathSegment.Line,.85*te,0)),rt.add(new go.PathSegment(go.PathSegment.Line,te,0)),rt.add(new go.PathSegment(go.PathSegment.Line,te,.15*ne)),rt.add(new go.PathSegment(go.PathSegment.Line,(xt.x*.1+.9)*te,.15*ne)),rt.add(new go.PathSegment(go.PathSegment.Line,(xt.x*.1+.9)*te,(xt.y*.1+.05*.9)*ne)),rt.add(new go.PathSegment(go.PathSegment.Line,xt.x*te,xt.y*ne)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(Se+pe)*te,we*ne,Ze.x*te,Ze.y*ne,nt.x*te,nt.y*ne)),rt.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(we+pe)*ne,(Se+pe)*te,(we+se)*ne,(Se+se)*te,(we+pe)*ne)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(Se-pe)*te,we*ne,(Se-se)*te,(we+pe)*ne,(Se-pe)*te,(we+se)*ne)),pe=.35,se=Ve*.35;var at=new go.PathFigure(Se*te,(we-pe)*ne,!1);fe.add(at),at.add(new go.PathSegment(go.PathSegment.Bezier,(Se-pe)*te,we*ne,(Se-se)*te,(we-pe)*ne,(Se-pe)*te,(we-se)*ne)),at.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(we+pe)*ne,(Se-pe)*te,(we+se)*ne,(Se-se)*te,(we+pe)*ne)),at.add(new go.PathSegment(go.PathSegment.Bezier,(Se+pe)*te,we*ne,(Se+se)*te,(we+pe)*ne,(Se+pe)*te,(we+se)*ne)),at.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(we-pe)*ne,(Se+pe)*te,(we-se)*ne,(Se+se)*te,(we-pe)*ne));var wt=new go.PathFigure((Se-pe)*te,we*ne,!1);return fe.add(wt),Me(De),Me(Re),Me(Ze),Me(nt),Me(ft),Me(xt),fe.spot1=new go.Spot(.202,.257),fe.spot2=new go.Spot(.792,.739),fe.defaultStretch=go.GraphObject.Uniform,fe}),go.Shape.defineFigureGenerator("GenderFemale",function(Ue,te,ne){var fe=new go.Geometry,se=.375,pe=0,Se=-.125,we=se*Ve,De=new go.PathFigure((.525+pe)*te,(.5+se+Se)*ne,!1);fe.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+se+pe)*te,(.5+Se)*ne,(.5+we+pe)*te,(.5+se+Se)*ne,(.5+se+pe)*te,(.5+we+Se)*ne)),De.add(new go.PathSegment(go.PathSegment.Bezier,(.5+pe)*te,(.5-se+Se)*ne,(1-.5+se+pe)*te,(.5-we+Se)*ne,(.5+we+pe)*te,(.5-se+Se)*ne)),De.add(new go.PathSegment(go.PathSegment.Bezier,(.5-se+pe)*te,(.5+Se)*ne,(.5-we+pe)*te,(.5-se+Se)*ne,(.5-se+pe)*te,(.5-we+Se)*ne)),De.add(new go.PathSegment(go.PathSegment.Bezier,(.475+pe)*te,(.5+se+Se)*ne,(.5-se+pe)*te,(.5+we+Se)*ne,(.5-we+pe)*te,(.5+se+Se)*ne)),De.add(new go.PathSegment(go.PathSegment.Line,.475*te,.85*ne)),De.add(new go.PathSegment(go.PathSegment.Line,.425*te,.85*ne)),De.add(new go.PathSegment(go.PathSegment.Line,.425*te,.9*ne)),De.add(new go.PathSegment(go.PathSegment.Line,.475*te,.9*ne)),De.add(new go.PathSegment(go.PathSegment.Line,.475*te,ne)),De.add(new go.PathSegment(go.PathSegment.Line,.525*te,ne)),De.add(new go.PathSegment(go.PathSegment.Line,.525*te,.9*ne)),De.add(new go.PathSegment(go.PathSegment.Line,.575*te,.9*ne)),De.add(new go.PathSegment(go.PathSegment.Line,.575*te,.85*ne)),De.add(new go.PathSegment(go.PathSegment.Line,.525*te,.85*ne).close()),se=.325,pe=0,Se=-.125,we=se*Ve;var De=new go.PathFigure((1-.5+se+pe)*te,(.5+Se)*ne,!1);fe.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,(.5+pe)*te,(.5+se+Se)*ne,(.5+se+pe)*te,(.5+we+Se)*ne,(.5+we+pe)*te,(.5+se+Se)*ne)),De.add(new go.PathSegment(go.PathSegment.Bezier,(.5-se+pe)*te,(.5+Se)*ne,(.5-we+pe)*te,(.5+se+Se)*ne,(.5-se+pe)*te,(.5+we+Se)*ne)),De.add(new go.PathSegment(go.PathSegment.Bezier,(.5+pe)*te,(.5-se+Se)*ne,(.5-se+pe)*te,(.5-we+Se)*ne,(.5-we+pe)*te,(.5-se+Se)*ne)),De.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+se+pe)*te,(.5+Se)*ne,(.5+we+pe)*te,(.5-se+Se)*ne,(1-.5+se+pe)*te,(.5-we+Se)*ne));var De=new go.PathFigure((.525+pe)*te,(.5+se+Se)*ne,!1);return fe.add(De),fe.spot1=new go.Spot(.232,.136),fe.spot2=new go.Spot(.682,.611),fe.defaultStretch=go.GraphObject.Uniform,fe}),go.Shape.defineFigureGenerator("LogicImplies",function(Ue,te,ne){var fe=Ue?Ue.parameter1:NaN;return isNaN(fe)&&(fe=.2),new go.Geometry().add(new go.PathFigure((1-fe)*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,(1-fe)*te,ne)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(Ue,te,ne){var fe=Ue?Ue.parameter1:NaN;return isNaN(fe)&&(fe=.2),new go.Geometry().add(new go.PathFigure((1-fe)*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,(1-fe)*te,ne)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Move,fe*te,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,fe*te,ne))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(Ue,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)))}),go.Shape.defineFigureGenerator("LogicAnd",function(Ue,te,ne){return new go.Geometry().add(new go.PathFigure(0,ne,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(Ue,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)).add(new go.PathSegment(go.PathSegment.Line,te,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(Ue,te,ne){var fe=new go.Geometry().add(new go.PathFigure(.5*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*te,.5*ne,.5*te,.5*ne)));return fe.defaultStretch=go.GraphObject.Uniform,fe}),go.Shape.defineFigureGenerator("LogicTruth",function(Ue,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Move,.5*te,0)).add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(Ue,te,ne){return new go.Geometry().add(new go.PathFigure(0,ne,!1).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Move,.5*te,ne)).add(new go.PathSegment(go.PathSegment.Line,.5*te,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(Ue,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Move,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne)))}),go.Shape.defineFigureGenerator("LogicForAll",function(Ue,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Move,.25*te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,.75*te,.5*ne))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(Ue,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Move,0,ne)).add(new go.PathSegment(go.PathSegment.Line,te,ne))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(Ue,te,ne){var fe=.5;return new go.Geometry().add(new go.PathFigure(0,ne,!1).add(new go.PathSegment(go.PathSegment.Line,0,fe*ne)).add(new go.PathSegment(go.PathSegment.Arc,180,180,fe*te,fe*ne,fe*te,fe*ne)).add(new go.PathSegment(go.PathSegment.Line,te,ne))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(Ue,te,ne){var fe=.5;return new go.Geometry().add(new go.PathFigure(te,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,fe*ne)).add(new go.PathSegment(go.PathSegment.Arc,0,180,fe*te,fe*ne,fe*te,fe*ne)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new ze("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new ze("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(Ue,te,ne){var fe=Ue?Ue.parameter1:NaN;isNaN(fe)&&(fe=.3);var se=Ue?Ue.parameter2:NaN;isNaN(se)&&(se=.3);var pe=(1-fe)*te,Se=(.5-se/2)*ne,we=(.5+se/2)*ne,De=new go.Geometry,Re=new go.PathFigure(0,Se,!0);De.add(Re),Re.add(new go.PathSegment(go.PathSegment.Line,pe,Se)),Re.add(new go.PathSegment(go.PathSegment.Line,pe,0)),Re.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),Re.add(new go.PathSegment(go.PathSegment.Line,pe,ne)),Re.add(new go.PathSegment(go.PathSegment.Line,pe,we)),Re.add(new go.PathSegment(go.PathSegment.Line,0,we).close()),De.spot1=new go.Spot(0,Se/ne);var Ze=Ie(0,we/ne,1,we/ne,pe/te,1,1,.5,le());return De.spot2=new go.Spot(Ze.x,Ze.y),Me(Ze),De}),go.Shape.setFigureParameter("Arrow2",0,new ze("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new ze("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(Ue,te,ne){var fe=Ue?Ue.parameter1:NaN;isNaN(fe)&&(fe=30),fe>te&&(fe=te);var se=Ue?Ue.parameter2:NaN;isNaN(se)&&(se=30),se=Math.min(se,ne/2);var pe=te-fe,Se=(ne-se)/2,we=Se+se,De=new go.Geometry,Re=new go.PathFigure(0,Se,!0);De.add(Re),Re.add(new go.PathSegment(go.PathSegment.Line,pe,Se)),Re.add(new go.PathSegment(go.PathSegment.Line,pe,0)),Re.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),Re.add(new go.PathSegment(go.PathSegment.Line,pe,ne)),Re.add(new go.PathSegment(go.PathSegment.Line,pe,we)),Re.add(new go.PathSegment(go.PathSegment.Line,0,we).close()),De.spot1=new go.Spot(0,Se/ne);var Ze=Ie(0,we/ne,1,we/ne,pe/te,1,1,.5,le());return De.spot2=new go.Spot(Ze.x,Ze.y),Me(Ze),De}),go.Shape.defineFigureGenerator("Chevron",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(0,0,!0);return fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne).close()),fe}),go.Shape.defineFigureGenerator("DoubleArrow",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(0,0,!0);return fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,.214*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,1*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,1*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,.786*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,1*ne).close()),fe}),go.Shape.setFigureParameter("DoubleEndArrow",0,new ze("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(Ue,te,ne){var fe=Ue?Ue.parameter1:NaN;isNaN(fe)&&(fe=.3);var se=(.5-fe/2)*ne,pe=(.5+fe/2)*ne,Se=new go.Geometry,we=new go.PathFigure(te,.5*ne,!0);Se.add(we),we.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),we.add(new go.PathSegment(go.PathSegment.Line,.7*te,pe)),we.add(new go.PathSegment(go.PathSegment.Line,.3*te,pe)),we.add(new go.PathSegment(go.PathSegment.Line,.3*te,ne)),we.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)),we.add(new go.PathSegment(go.PathSegment.Line,.3*te,0)),we.add(new go.PathSegment(go.PathSegment.Line,.3*te,se)),we.add(new go.PathSegment(go.PathSegment.Line,.7*te,se)),we.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close());var De=Ie(0,.5,.3,0,0,se/ne,.1,se/ne,le());return Se.spot1=new go.Spot(De.x,De.y),De=Ie(.7,1,1,.5,0,pe/ne,1,pe/ne,De),Se.spot2=new go.Spot(De.x,De.y),Me(De),Se}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new ze("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new ze("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(Ue,te,ne){var fe=Ue?Ue.parameter1:NaN;isNaN(fe)&&(fe=40);var se=Ue?Ue.parameter2:NaN;isNaN(se)&&(se=100);var pe=(ne-fe)/2,Se=pe+fe,we=(ne-se)/2,De=we+se;(fe>ne||se>ne)&&(se>fe?(fe=fe*ne/se,pe=(ne-fe)/2,Se=pe+fe,we=0,De=ne):(pe=0,Se=ne,we=0,De=ne));var Re=new go.Geometry,Ze=new go.PathFigure(te,.5*ne,!0);Re.add(Ze),Ze.add(new go.PathSegment(go.PathSegment.Line,.7*te,De)),Ze.add(new go.PathSegment(go.PathSegment.Line,.7*te,Se)),Ze.add(new go.PathSegment(go.PathSegment.Line,.3*te,Se)),Ze.add(new go.PathSegment(go.PathSegment.Line,.3*te,De)),Ze.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)),Ze.add(new go.PathSegment(go.PathSegment.Line,.3*te,we)),Ze.add(new go.PathSegment(go.PathSegment.Line,.3*te,pe)),Ze.add(new go.PathSegment(go.PathSegment.Line,.7*te,pe)),Ze.add(new go.PathSegment(go.PathSegment.Line,.7*te,we).close());var nt=Ie(0,.5,.3,we/ne,0,pe/ne,1,pe/ne,le());return Re.spot1=new go.Spot(nt.x,nt.y),nt=Ie(.7,De/ne,1,.5,0,Se/ne,1,Se/ne,nt),Re.spot2=new go.Spot(nt.x,nt.y),Me(nt),Re}),go.Shape.setFigureParameter("IBeamArrow",0,new ze("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(Ue,te,ne){var fe=Ue?Ue.parameter1:NaN;isNaN(fe)&&(fe=.3);var se=(.5-fe/2)*ne,pe=(.5+fe/2)*ne,Se=new go.Geometry,we=new go.PathFigure(te,.5*ne,!0);Se.add(we),we.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),we.add(new go.PathSegment(go.PathSegment.Line,.7*te,pe)),we.add(new go.PathSegment(go.PathSegment.Line,.2*te,pe)),we.add(new go.PathSegment(go.PathSegment.Line,.2*te,ne)),we.add(new go.PathSegment(go.PathSegment.Line,0,ne)),we.add(new go.PathSegment(go.PathSegment.Line,0,0)),we.add(new go.PathSegment(go.PathSegment.Line,.2*te,0)),we.add(new go.PathSegment(go.PathSegment.Line,.2*te,se)),we.add(new go.PathSegment(go.PathSegment.Line,.7*te,se)),we.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close()),Se.spot1=new go.Spot(0,se/ne);var De=Ie(.7,1,1,.5,0,pe/ne,1,pe/ne,le());return Se.spot2=new go.Spot(De.x,De.y),Me(De),Se}),go.Shape.setFigureParameter("IBeamArrow2",0,new ze("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new ze("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(Ue,te,ne){var fe=Ue?Ue.parameter1:NaN;isNaN(fe)&&(fe=40);var se=Ue?Ue.parameter2:NaN;isNaN(se)&&(se=100);var pe=(ne-fe)/2,Se=pe+fe,we=(ne-se)/2,De=we+se;(fe>ne||se>ne)&&(se>fe?(fe=fe*ne/se,pe=(ne-fe)/2,Se=pe+fe,we=0,De=ne):(pe=0,Se=ne,we=0,De=ne));var Re=new go.Geometry,Ze=new go.PathFigure(te,.5*ne,!0);Re.add(Ze),Ze.add(new go.PathSegment(go.PathSegment.Line,.7*te,De)),Ze.add(new go.PathSegment(go.PathSegment.Line,.7*te,Se)),Ze.add(new go.PathSegment(go.PathSegment.Line,.2*te,Se)),Ze.add(new go.PathSegment(go.PathSegment.Line,.2*te,De)),Ze.add(new go.PathSegment(go.PathSegment.Line,0,De)),Ze.add(new go.PathSegment(go.PathSegment.Line,0,we)),Ze.add(new go.PathSegment(go.PathSegment.Line,.2*te,we)),Ze.add(new go.PathSegment(go.PathSegment.Line,.2*te,pe)),Ze.add(new go.PathSegment(go.PathSegment.Line,.7*te,pe)),Ze.add(new go.PathSegment(go.PathSegment.Line,.7*te,we).close()),Re.spot1=new go.Spot(0,pe/ne);var nt=Ie(.7,De/ne,1,.5,0,Se/ne,1,Se/ne,le());return Re.spot2=new go.Spot(nt.x,nt.y),Me(nt),Re}),go.Shape.setFigureParameter("Pointer",0,new ze("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(Ue,te,ne){var fe=Ue?Ue.parameter1:NaN;isNaN(fe)&&(fe=.1);var se=new go.Geometry,pe=new go.PathFigure(te,.5*ne,!0);se.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,0,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,fe*te,.5*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),se.spot1=new go.Spot(fe,.35);var Se=Ie(.2,.65,1,.65,0,1,1,.5,le());return se.spot2=new go.Spot(Se.x,Se.y),Me(Se),se}),go.Shape.setFigureParameter("RoundedPointer",0,new ze("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(Ue,te,ne){var fe=Ue?Ue.parameter1:NaN;isNaN(fe)&&(fe=.3);var se=new go.Geometry,pe=new go.PathFigure(te,.5*ne,!0);se.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,0,ne)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,0,fe*te,.75*ne,fe*te,.25*ne).close()),se.spot1=new go.Spot(fe,.35);var Se=Ie(0,.65,1,.65,0,1,1,.5,le());return se.spot2=new go.Spot(Se.x,Se.y),Me(Se),se}),go.Shape.setFigureParameter("SplitEndArrow",0,new ze("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(Ue,te,ne){var fe=Ue?Ue.parameter1:NaN;isNaN(fe)&&(fe=.4);var se=(.5-fe/2)*ne,pe=(.5+fe/2)*ne,Se=new go.Geometry,we=new go.PathFigure(te,.5*ne,!0);Se.add(we),we.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),we.add(new go.PathSegment(go.PathSegment.Line,.7*te,pe)),we.add(new go.PathSegment(go.PathSegment.Line,0,pe)),we.add(new go.PathSegment(go.PathSegment.Line,.2*te,.5*ne)),we.add(new go.PathSegment(go.PathSegment.Line,0,se)),we.add(new go.PathSegment(go.PathSegment.Line,.7*te,se)),we.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close()),Se.spot1=new go.Spot(.2,.3);var De=Ie(.7,1,1,.5,0,pe/ne,1,pe/ne,le());return Se.spot2=new go.Spot(De.x,De.y),Me(De),Se}),go.Shape.setFigureParameter("SplitEndArrow2",0,new ze("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(Ue,te,ne){var fe=Ue?Ue.parameter1:NaN;isNaN(fe)&&(fe=50);var se=(ne-fe)/2,pe=se+fe;fe>ne&&(se=0,pe=ne);var Se=new go.Geometry,we=new go.PathFigure(te,.5*ne,!0);Se.add(we),we.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),we.add(new go.PathSegment(go.PathSegment.Line,.7*te,pe)),we.add(new go.PathSegment(go.PathSegment.Line,0,pe)),we.add(new go.PathSegment(go.PathSegment.Line,.2*te,.5*ne)),we.add(new go.PathSegment(go.PathSegment.Line,0,se)),we.add(new go.PathSegment(go.PathSegment.Line,.7*te,se)),we.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close()),Se.spot1=new go.Spot(.2,se/ne);var De=Ie(.7,1,1,.5,0,pe/ne,1,pe/ne,le());return Se.spot2=new go.Spot(De.x,De.y),Me(De),Se}),go.Shape.setFigureParameter("SquareArrow",0,new ze("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(Ue,te,ne){var fe=Ue?Ue.parameter1:NaN;isNaN(fe)&&(fe=.7);var se=new go.Geometry,pe=new go.PathFigure(te,.5*ne,!0);return se.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,fe*te,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,0)),pe.add(new go.PathSegment(go.PathSegment.Line,fe*te,0).close()),se.spot1=go.Spot.TopLeft,se.spot2=new go.Spot(fe,1),se}),go.Shape.defineFigureGenerator("Cone1",function(Ue,te,ne){var fe=new go.Geometry,se=Ve*.5,pe=Ve*.1,Se=new go.PathFigure(0,.9*ne,!0);return fe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),Se.add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,(.9+pe)*ne,(.5+se)*te,ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ne,(.5-se)*te,ne,0,(.9+pe)*ne).close()),fe.spot1=new go.Spot(.25,.5),fe.spot2=new go.Spot(.75,.97),fe}),go.Shape.defineFigureGenerator("Cone2",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(0,.9*ne,!0);fe.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,te,.9*ne,(1-.85/.9)*te,ne,.85/.9*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,.9*ne).close());var pe=new go.PathFigure(0,.9*ne,!1);return fe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,te,.9*ne,(1-.85/.9)*te,.8*ne,.85/.9*te,.8*ne)),fe.spot1=new go.Spot(.25,.5),fe.spot2=new go.Spot(.75,.82),fe}),go.Shape.defineFigureGenerator("Cube1",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(.5*te,ne,!0);fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.85*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.15*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,.15*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.85*ne).close());var pe=new go.PathFigure(.5*te,ne,!1);return fe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.3*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,.15*ne)),pe.add(new go.PathSegment(go.PathSegment.Move,.5*te,.3*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,te,.15*ne)),fe.spot1=new go.Spot(0,.3),fe.spot2=new go.Spot(.5,.85),fe}),go.Shape.defineFigureGenerator("Cube2",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(0,.3*ne,!0);fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,0).close());var pe=new go.PathFigure(0,.3*ne,!1);return fe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.7*te,.3*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,te,0)),pe.add(new go.PathSegment(go.PathSegment.Move,.7*te,.3*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),fe.spot1=new go.Spot(0,.3),fe.spot2=new go.Spot(.7,1),fe}),go.Shape.defineFigureGenerator("Cylinder1",function(Ue,te,ne){var fe=Ue?Ue.parameter1:NaN;isNaN(fe)&&(fe=5),fe=Math.min(fe,ne/3);var se=new go.Geometry,pe=Ve*.5,Se=new go.PathFigure(0,fe,!0);se.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,Ve*fe,(.5-pe)*te,0)),Se.add(new go.PathSegment(go.PathSegment.Bezier,1*te,fe,(.5+pe)*te,0,1*te,Ve*fe)),Se.add(new go.PathSegment(go.PathSegment.Line,te,ne-fe)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,1*ne,1*te,ne-Ve*fe,(.5+pe)*te,1*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,ne-fe,(.5-pe)*te,1*ne,0,ne-Ve*fe)),Se.add(new go.PathSegment(go.PathSegment.Line,0,fe));var we=new go.PathFigure(te,fe,!1);return se.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,2*fe,1*te,2*fe-Ve*fe,(.5+pe)*te,2*fe)),we.add(new go.PathSegment(go.PathSegment.Bezier,0,fe,(.5-pe)*te,2*fe,0,2*fe-Ve*fe)),se.spot1=new go.Spot(0,0,0,2*fe),se.spot2=new go.Spot(1,1),se}),go.Shape.defineFigureGenerator("Cylinder2",function(Ue,te,ne){var fe=Ue?Ue.parameter1:NaN;isNaN(fe)&&(fe=5),fe=Math.min(fe,ne/3);var se=new go.Geometry,pe=Ve*.5,Se=new go.PathFigure(0,ne-fe,!0);se.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,0,fe)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,Ve*fe,(.5-pe)*te,0)),Se.add(new go.PathSegment(go.PathSegment.Bezier,te,fe,(.5+pe)*te,0,te,Ve*fe)),Se.add(new go.PathSegment(go.PathSegment.Line,te,ne-fe)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,ne-Ve*fe,(.5+pe)*te,ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,ne-fe,(.5-pe)*te,ne,0,ne-Ve*fe));var we=new go.PathFigure(0,ne-fe,!1);return se.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne-2*fe,0,ne-fe-Ve*fe,(.5-pe)*te,ne-2*fe)),we.add(new go.PathSegment(go.PathSegment.Bezier,te,ne-fe,(.5+pe)*te,ne-2*fe,te,ne-fe-Ve*fe)),se.spot1=new go.Spot(0,0),se.spot2=new go.Spot(1,1,0,-2*fe),se}),go.Shape.defineFigureGenerator("Cylinder3",function(Ue,te,ne){var fe=Ue?Ue.parameter1:NaN;isNaN(fe)&&(fe=5),fe=Math.min(fe,te/3);var se=new go.Geometry,pe=Ve*.5,Se=new go.PathFigure(fe,0,!0);se.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,te-fe,0)),Se.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,te-Ve*fe,0,te,(.5-pe)*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,te-fe,ne,te,(.5+pe)*ne,te-Ve*fe,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,fe,ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,Ve*fe,ne,0,(.5+pe)*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,fe,0,0,(.5-pe)*ne,Ve*fe,0));var we=new go.PathFigure(fe,0,!1);return se.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,2*fe,.5*ne,fe+Ve*fe,0,2*fe,(.5-pe)*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,fe,ne,2*fe,(.5+pe)*ne,fe+Ve*fe,ne)),se.spot1=new go.Spot(0,0,2*fe,0),se.spot2=new go.Spot(1,1),se}),go.Shape.defineFigureGenerator("Cylinder4",function(Ue,te,ne){var fe=Ue?Ue.parameter1:NaN;isNaN(fe)&&(fe=5),fe=Math.min(fe,te/3);var se=new go.Geometry,pe=Ve*.5,Se=new go.PathFigure(te-fe,0,!0);se.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,te-Ve*fe,0,te,(.5-pe)*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,te-fe,ne,te,(.5+pe)*ne,te-Ve*fe,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,fe,ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,Ve*fe,ne,0,(.5+pe)*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,fe,0,0,(.5-pe)*ne,Ve*fe,0)),Se.add(new go.PathSegment(go.PathSegment.Line,te-fe,0));var we=new go.PathFigure(te-fe,0,!1);return se.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,te-2*fe,.5*ne,te-fe-Ve*fe,0,te-2*fe,(.5-pe)*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,te-fe,ne,te-2*fe,(.5+pe)*ne,te-fe-Ve*fe,ne)),se.spot1=new go.Spot(0,0),se.spot2=new go.Spot(1,1,-2*fe,0),se}),go.Shape.defineFigureGenerator("Prism1",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(.25*te,.25*ne,!0);fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var pe=new go.PathFigure(.25*te,.25*ne,!1);return fe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),fe.spot1=new go.Spot(.408,.172),fe.spot2=new go.Spot(.833,.662),fe}),go.Shape.defineFigureGenerator("Prism2",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(0,.25*ne,!0);fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var pe=new go.PathFigure(0,ne,!1);return fe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.25*te,.5*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,te,.25*ne)),pe.add(new go.PathSegment(go.PathSegment.Move,0,.25*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.25*te,.5*ne)),fe.spot1=new go.Spot(.25,.5),fe.spot2=new go.Spot(.75,.75),fe}),go.Shape.defineFigureGenerator("Pyramid1",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(.5*te,0,!0);fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.75*ne).close());var pe=new go.PathFigure(.5*te,0,!1);return fe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),fe.spot1=new go.Spot(.25,.367),fe.spot2=new go.Spot(.75,.875),fe}),go.Shape.defineFigureGenerator("Pyramid2",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(.5*te,0,!0);fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.85*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.85*ne).close());var pe=new go.PathFigure(.5*te,0,!1);return fe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.7*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,.85*ne)),pe.add(new go.PathSegment(go.PathSegment.Move,.5*te,.7*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,te,.85*ne)),fe.spot1=new go.Spot(.25,.367),fe.spot2=new go.Spot(.75,.875),fe}),go.Shape.defineFigureGenerator("Actor",function(Ue,te,ne){var fe=new go.Geometry,se=.2,pe=.1,Se=Ve*se,we=Ve*pe,De=.5,Re=.1,Ze=new go.PathFigure(De*te,(Re+pe)*ne,!0);fe.add(Ze),Ze.add(new go.PathSegment(go.PathSegment.Bezier,(De-se)*te,Re*ne,(De-Se)*te,(Re+pe)*ne,(De-se)*te,(Re+we)*ne)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,De*te,(Re-pe)*ne,(De-se)*te,(Re-we)*ne,(De-Se)*te,(Re-pe)*ne)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,(De+se)*te,Re*ne,(De+Se)*te,(Re-pe)*ne,(De+se)*te,(Re-we)*ne)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,De*te,(Re+pe)*ne,(De+se)*te,(Re+we)*ne,(De+Se)*te,(Re+pe)*ne));var nt=.05,rt=Ve*nt;De=.05,Re=.25;var ft=new go.PathFigure(.5*te,.2*ne,!0);return fe.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.95*te,.2*ne)),De=.95,Re=.25,ft.add(new go.PathSegment(go.PathSegment.Bezier,(De+nt)*te,Re*ne,(De+rt)*te,(Re-nt)*ne,(De+nt)*te,(Re-rt)*ne)),ft.add(new go.PathSegment(go.PathSegment.Line,te,.6*ne)),ft.add(new go.PathSegment(go.PathSegment.Line,.85*te,.6*ne)),ft.add(new go.PathSegment(go.PathSegment.Line,.85*te,.35*ne)),nt=.025,rt=Ve*nt,De=.825,Re=.35,ft.add(new go.PathSegment(go.PathSegment.Bezier,De*te,(Re-nt)*ne,(De+nt)*te,(Re-rt)*ne,(De+rt)*te,(Re-nt)*ne)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(De-nt)*te,Re*ne,(De-rt)*te,(Re-nt)*ne,(De-nt)*te,(Re-rt)*ne)),ft.add(new go.PathSegment(go.PathSegment.Line,.8*te,ne)),ft.add(new go.PathSegment(go.PathSegment.Line,.55*te,ne)),ft.add(new go.PathSegment(go.PathSegment.Line,.55*te,.7*ne)),nt=.05,rt=Ve*nt,De=.5,Re=.7,ft.add(new go.PathSegment(go.PathSegment.Bezier,De*te,(Re-nt)*ne,(De+nt)*te,(Re-rt)*ne,(De+rt)*te,(Re-nt)*ne)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(De-nt)*te,Re*ne,(De-rt)*te,(Re-nt)*ne,(De-nt)*te,(Re-rt)*ne)),ft.add(new go.PathSegment(go.PathSegment.Line,.45*te,ne)),ft.add(new go.PathSegment(go.PathSegment.Line,.2*te,ne)),ft.add(new go.PathSegment(go.PathSegment.Line,.2*te,.35*ne)),nt=.025,rt=Ve*nt,De=.175,Re=.35,ft.add(new go.PathSegment(go.PathSegment.Bezier,De*te,(Re-nt)*ne,(De+nt)*te,(Re-rt)*ne,(De+rt)*te,(Re-nt)*ne)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(De-nt)*te,Re*ne,(De-rt)*te,(Re-nt)*ne,(De-nt)*te,(Re-rt)*ne)),ft.add(new go.PathSegment(go.PathSegment.Line,.15*te,.6*ne)),ft.add(new go.PathSegment(go.PathSegment.Line,0,.6*ne)),ft.add(new go.PathSegment(go.PathSegment.Line,0,.25*ne)),nt=.05,rt=Ve*nt,De=.05,Re=.25,ft.add(new go.PathSegment(go.PathSegment.Bezier,De*te,(Re-nt)*ne,(De-nt)*te,(Re-rt)*ne,(De-rt)*te,(Re-nt)*ne)),ft.add(new go.PathSegment(go.PathSegment.Line,.5*te,.2*ne)),fe.spot1=new go.Spot(.2,.2),fe.spot2=new go.Spot(.8,.65),fe}),go.Shape.setFigureParameter("Card",0,new ze("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(Ue,te,ne){var fe=Ue?Ue.parameter1:NaN;isNaN(fe)&&(fe=.2);var se=new go.Geometry,pe=new go.PathFigure(te,0,!0);return se.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,fe*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,fe*te,0).close()),se.spot1=new go.Spot(0,fe),se.spot2=go.Spot.BottomRight,se}),go.Shape.defineFigureGenerator("Collate",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(.5*te,.5*ne,!0);fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne));var pe=new go.PathFigure(.5*te,.5*ne,!0);return fe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne)),fe.spot1=new go.Spot(.25,0),fe.spot2=new go.Spot(.75,.25),fe}),go.Shape.defineFigureGenerator("CreateRequest",function(Ue,te,ne){var fe=new go.Geometry,se=Ue?Ue.parameter1:NaN;isNaN(se)&&(se=.1);var pe=new go.PathFigure(0,0,!0);fe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,0)),pe.add(new go.PathSegment(go.PathSegment.Line,te,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var Se=new go.PathFigure(0,se*ne,!1);return fe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,te,se*ne)),Se.add(new go.PathSegment(go.PathSegment.Move,0,(1-se)*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,te,(1-se)*ne)),fe}),go.Shape.defineFigureGenerator("Database",function(Ue,te,ne){var fe=new go.Geometry,se=Ve*.5,pe=Ve*.1,Se=new go.PathFigure(te,.1*ne,!0);fe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,(.9+pe)*ne,(.5+se)*te,ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ne,(.5-se)*te,ne,0,(.9+pe)*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,0,.1*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,(.1-pe)*ne,(.5-se)*te,0)),Se.add(new go.PathSegment(go.PathSegment.Bezier,te,.1*ne,(.5+se)*te,0,te,(.1-pe)*ne));var we=new go.PathFigure(te,.1*ne,!1);return fe.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.2*ne,te,(.1+pe)*ne,(.5+se)*te,.2*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*ne,(.5-se)*te,.2*ne,0,(.1+pe)*ne)),we.add(new go.PathSegment(go.PathSegment.Move,te,.2*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.3*ne,te,(.2+pe)*ne,(.5+se)*te,.3*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*ne,(.5-se)*te,.3*ne,0,(.2+pe)*ne)),we.add(new go.PathSegment(go.PathSegment.Move,te,.3*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.4*ne,te,(.3+pe)*ne,(.5+se)*te,.4*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*ne,(.5-se)*te,.4*ne,0,(.3+pe)*ne)),fe.spot1=new go.Spot(0,.4),fe.spot2=new go.Spot(1,.9),fe}),go.Shape.defineFigureGenerator("DataStorage",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(0,0,!0);return fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.75*te,ne,te,0,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*te,.9*ne,.25*te,.1*ne).close()),fe.spot1=new go.Spot(.226,0),fe.spot2=new go.Spot(.81,1),fe}),go.Shape.defineFigureGenerator("DiskStorage",function(Ue,te,ne){var fe=new go.Geometry,se=Ve*.5,pe=Ve*.1,Se=new go.PathFigure(te,.1*ne,!0);fe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,(.9+pe)*ne,(.5+se)*te,ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ne,(.5-se)*te,ne,0,(.9+pe)*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,0,.1*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,(.1-pe)*ne,(.5-se)*te,0)),Se.add(new go.PathSegment(go.PathSegment.Bezier,te,.1*ne,(.5+se)*te,0,te,(.1-pe)*ne));var we=new go.PathFigure(te,.1*ne,!1);return fe.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.2*ne,te,(.1+pe)*ne,(.5+se)*te,.2*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*ne,(.5-se)*te,.2*ne,0,(.1+pe)*ne)),we.add(new go.PathSegment(go.PathSegment.Move,te,.2*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.3*ne,te,(.2+pe)*ne,(.5+se)*te,.3*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*ne,(.5-se)*te,.3*ne,0,(.2+pe)*ne)),fe.spot1=new go.Spot(0,.3),fe.spot2=new go.Spot(1,.9),fe}),go.Shape.defineFigureGenerator("Display",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(.25*te,0,!0);return fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.75*te,ne,te,0,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.25*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne).close()),fe.spot1=new go.Spot(.25,0),fe.spot2=new go.Spot(.75,1),fe}),go.Shape.defineFigureGenerator("DividedEvent",function(Ue,te,ne){var fe=new go.Geometry,se=Ue?Ue.parameter1:NaN;isNaN(se)?se=.2:se<.15&&(se=.15);var pe=Ve*.2,Se=new go.PathFigure(0,.2*ne,!0);fe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,0,0,(.2-pe)*ne,(.2-pe)*te,0)),Se.add(new go.PathSegment(go.PathSegment.Line,.8*te,0)),Se.add(new go.PathSegment(go.PathSegment.Bezier,te,.2*ne,(.8+pe)*te,0,te,(.2-pe)*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,te,.8*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,ne,te,(.8+pe)*ne,(.8+pe)*te,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.2*te,ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*ne,(.2-pe)*te,ne,0,(.8+pe)*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,0,.2*ne));var we=new go.PathFigure(0,se*ne,!1);return fe.add(we),we.add(new go.PathSegment(go.PathSegment.Line,te,se*ne)),fe}),go.Shape.defineFigureGenerator("DividedProcess",function(Ue,te,ne){var fe=new go.Geometry,se=Ue?Ue.parameter1:NaN;(isNaN(se)||se<.1)&&(se=.1);var pe=new go.PathFigure(0,0,!0);fe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,0)),pe.add(new go.PathSegment(go.PathSegment.Line,te,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var Se=new go.PathFigure(0,se*ne,!1);return fe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,te,se*ne)),fe}),go.Shape.defineFigureGenerator("Document",function(Ue,te,ne){var fe=new go.Geometry;ne=ne/.8;var se=new go.PathFigure(0,.7*ne,!0);return fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ne,.5*te,.4*ne,.5*te,ne).close()),fe.spot1=go.Spot.TopLeft,fe.spot2=new go.Spot(1,.6),fe}),go.Shape.defineFigureGenerator("ExternalOrganization",function(Ue,te,ne){var fe=new go.Geometry,se=Ue?Ue.parameter1:NaN;(isNaN(se)||se<.2)&&(se=.2);var pe=new go.PathFigure(0,0,!0);fe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,0)),pe.add(new go.PathSegment(go.PathSegment.Line,te,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var Se=new go.PathFigure(se*te,0,!1);return fe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,0,se*ne)),Se.add(new go.PathSegment(go.PathSegment.Move,te,se*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,(1-se)*te,0)),Se.add(new go.PathSegment(go.PathSegment.Move,0,(1-se)*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,se*te,ne)),Se.add(new go.PathSegment(go.PathSegment.Move,(1-se)*te,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,te,(1-se)*ne)),fe}),go.Shape.defineFigureGenerator("ExternalProcess",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(.5*te,0,!0);fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne).close());var pe=new go.PathFigure(.1*te,.4*ne,!1);return fe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.1*te,.6*ne)),pe.add(new go.PathSegment(go.PathSegment.Move,.9*te,.6*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.9*te,.4*ne)),pe.add(new go.PathSegment(go.PathSegment.Move,.6*te,.1*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.4*te,.1*ne)),pe.add(new go.PathSegment(go.PathSegment.Move,.4*te,.9*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.6*te,.9*ne)),fe.spot1=new go.Spot(.25,.25),fe.spot2=new go.Spot(.75,.75),fe}),go.Shape.defineFigureGenerator("File",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(0,0,!0);fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var pe=new go.PathFigure(.75*te,0,!1);return fe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.75*te,.25*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,te,.25*ne)),fe.spot1=new go.Spot(0,.25),fe.spot2=go.Spot.BottomRight,fe}),go.Shape.defineFigureGenerator("Interrupt",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(te,.5*ne,!0);fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne));var pe=new go.PathFigure(te,.5*ne,!1);fe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,ne));var Se=new go.PathFigure(te,.5*ne,!1);return fe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,te,0)),fe.spot1=new go.Spot(0,.25),fe.spot2=new go.Spot(.5,.75),fe}),go.Shape.defineFigureGenerator("InternalStorage",function(Ue,te,ne){var fe=new go.Geometry,se=Ue?Ue.parameter1:NaN,pe=Ue?Ue.parameter2:NaN;isNaN(se)&&(se=.1),isNaN(pe)&&(pe=.1);var Se=new go.PathFigure(0,0,!0);fe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,te,0)),Se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var we=new go.PathFigure(se*te,0,!1);return fe.add(we),we.add(new go.PathSegment(go.PathSegment.Line,se*te,ne)),we.add(new go.PathSegment(go.PathSegment.Move,0,pe*ne)),we.add(new go.PathSegment(go.PathSegment.Line,te,pe*ne)),fe}),go.Shape.defineFigureGenerator("Junction",function(Ue,te,ne){var fe=new go.Geometry,se=1/Math.SQRT2,pe=(1-1/Math.SQRT2)/2,Se=Ve*.5,we=.5,De=new go.PathFigure(te,we*ne,!0);fe.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,we*te,ne,te,(we+Se)*ne,(we+Se)*te,ne)),De.add(new go.PathSegment(go.PathSegment.Bezier,0,we*ne,(we-Se)*te,ne,0,(we+Se)*ne)),De.add(new go.PathSegment(go.PathSegment.Bezier,we*te,0,0,(we-Se)*ne,(we-Se)*te,0)),De.add(new go.PathSegment(go.PathSegment.Bezier,te,we*ne,(we+Se)*te,0,te,(we-Se)*ne));var Re=new go.PathFigure((pe+se)*te,(pe+se)*ne,!1);return fe.add(Re),Re.add(new go.PathSegment(go.PathSegment.Line,pe*te,pe*ne)),Re.add(new go.PathSegment(go.PathSegment.Move,pe*te,(pe+se)*ne)),Re.add(new go.PathSegment(go.PathSegment.Line,(pe+se)*te,pe*ne)),fe}),go.Shape.defineFigureGenerator("LinedDocument",function(Ue,te,ne){var fe=new go.Geometry;ne=ne/.8;var se=new go.PathFigure(0,.7*ne,!0);fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ne,.5*te,.4*ne,.5*te,ne).close());var pe=new go.PathFigure(.1*te,0,!1);return fe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.1*te,.75*ne)),fe.spot1=new go.Spot(.1,0),fe.spot2=new go.Spot(1,.6),fe}),go.Shape.defineFigureGenerator("LoopLimit",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(0,ne,!0);return fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.25*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne).close()),fe.spot1=new go.Spot(0,.25),fe.spot2=go.Spot.BottomRight,fe}),go.Shape.defineFigureGenerator("MagneticTape",function(Ue,te,ne){var fe=new go.Geometry,se=Ve*.5,pe=.5,Se=new go.PathFigure(.5*te,ne,!0);return fe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,pe*ne,(pe-se)*te,ne,0,(pe+se)*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,pe*te,0,0,(pe-se)*ne,(pe-se)*te,0)),Se.add(new go.PathSegment(go.PathSegment.Bezier,te,pe*ne,(pe+se)*te,0,te,(pe-se)*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(pe+.1)*te,.9*ne,te,(pe+se)*ne,(pe+se)*te,.9*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),fe.spot1=new go.Spot(.15,.15),fe.spot2=new go.Spot(.85,.8),fe}),go.Shape.defineFigureGenerator("ManualInput",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(te,0,!0);return fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*ne).close()),fe.spot1=new go.Spot(0,.25),fe.spot2=go.Spot.BottomRight,fe}),go.Shape.defineFigureGenerator("MessageFromUser",function(Ue,te,ne){var fe=new go.Geometry,se=Ue?Ue.parameter1:NaN;isNaN(se)&&(se=.7);var pe=new go.PathFigure(0,0,!0);return fe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,0)),pe.add(new go.PathSegment(go.PathSegment.Line,se*te,.5*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,te,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),fe.spot1=go.Spot.TopLeft,fe}),go.Shape.defineFigureGenerator("MicroformProcessing",function(Ue,te,ne){var fe=new go.Geometry,se=Ue?Ue.parameter1:NaN;isNaN(se)&&(se=.25);var pe=new go.PathFigure(0,0,!0);return fe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.5*te,se*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,te,0)),pe.add(new go.PathSegment(go.PathSegment.Line,te,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.5*te,(1-se)*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),fe}),go.Shape.defineFigureGenerator("MicroformRecording",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(0,0,!0);return fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.15*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.85*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),fe.spot1=new go.Spot(0,.25),fe.spot2=new go.Spot(1,.75),fe}),go.Shape.defineFigureGenerator("MultiDocument",function(Ue,te,ne){var fe=new go.Geometry;ne=ne/.8;var se=new go.PathFigure(te,0,!0);fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,.44*ne,.96*te,.47*ne,.93*te,.45*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.54*ne,.86*te,.57*ne,.83*te,.55*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ne,.4*te,.4*ne,.4*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,0).close());var pe=new go.PathFigure(.1*te,.2*ne,!1);return fe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.54*ne)),pe.add(new go.PathSegment(go.PathSegment.Move,.2*te,.1*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.9*te,.1*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.9*te,.44*ne)),fe.spot1=new go.Spot(0,.25),fe.spot2=new go.Spot(.8,.77),fe}),go.Shape.defineFigureGenerator("MultiProcess",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(.1*te,.1*ne,!0);fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.9*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.9*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.2*ne).close());var pe=new go.PathFigure(.2*te,.1*ne,!1);return fe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.9*te,.1*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ne)),pe.add(new go.PathSegment(go.PathSegment.Move,.1*te,.2*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.9*ne)),fe.spot1=new go.Spot(0,.2),fe.spot2=new go.Spot(.8,1),fe}),go.Shape.defineFigureGenerator("OfflineStorage",function(Ue,te,ne){var fe=new go.Geometry,se=Ue?Ue.parameter1:NaN;isNaN(se)&&(se=.1);var pe=1-se,Se=new go.PathFigure(0,0,!0);fe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,te,0)),Se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne).close());var we=new go.PathFigure(.5*se*te,se*ne,!1);return fe.add(we),we.add(new go.PathSegment(go.PathSegment.Line,(1-.5*se)*te,se*ne)),fe}),go.Shape.defineFigureGenerator("OffPageConnector",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(0,0,!0);return fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),fe.spot1=go.Spot.TopLeft,fe.spot2=new go.Spot(.75,1),fe}),go.Shape.defineFigureGenerator("Or",function(Ue,te,ne){var fe=new go.Geometry,se=Ve*.5,pe=.5,Se=new go.PathFigure(te,pe*ne,!0);fe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,pe*te,ne,te,(pe+se)*ne,(pe+se)*te,ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,pe*ne,(pe-se)*te,ne,0,(pe+se)*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,pe*te,0,0,(pe-se)*ne,(pe-se)*te,0)),Se.add(new go.PathSegment(go.PathSegment.Bezier,te,pe*ne,(pe+se)*te,0,te,(pe-se)*ne));var we=new go.PathFigure(te,.5*ne,!1);return fe.add(we),we.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)),we.add(new go.PathSegment(go.PathSegment.Move,.5*te,ne)),we.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),fe}),go.Shape.defineFigureGenerator("PaperTape",function(Ue,te,ne){var fe=new go.Geometry;ne=ne/.8;var se=new go.PathFigure(0,.7*ne,!0);return fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.3*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,te,.3*ne,.5*te,.6*ne,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ne,.5*te,.4*ne,.5*te,ne).close()),fe.spot1=new go.Spot(0,.49),fe.spot2=new go.Spot(1,.75),fe}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(Ue,te,ne){var fe=new go.Geometry,se=Ue?Ue.parameter1:NaN,pe=Ue?Ue.parameter2:NaN;isNaN(se)&&(se=.1),isNaN(pe)&&(pe=.3);var Se=new go.PathFigure(0,0,!0);return fe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,te,0)),Se.add(new go.PathSegment(go.PathSegment.Line,(1-pe)*te,.5*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),fe}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(Ue,te,ne){var fe=new go.Geometry,se=Ue?Ue.parameter1:NaN,pe=Ue?Ue.parameter2:NaN;isNaN(se)&&(se=.1),isNaN(pe)&&(pe=.3);var Se=new go.PathFigure(0,0,!0);return fe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,(1-pe)*te,0)),Se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,(1-pe)*te,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),fe}),go.Shape.defineFigureGenerator("Procedure",function(Ue,te,ne){var fe=new go.Geometry,se=Ue?Ue.parameter1:NaN;isNaN(se)&&(se=.1);var pe=new go.PathFigure(0,0,!0);fe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,0)),pe.add(new go.PathSegment(go.PathSegment.Line,te,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var Se=new go.PathFigure((1-se)*te,0,!1);return fe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,(1-se)*te,ne)),Se.add(new go.PathSegment(go.PathSegment.Move,se*te,0)),Se.add(new go.PathSegment(go.PathSegment.Line,se*te,ne)),fe}),go.Shape.defineFigureGenerator("Process",function(Ue,te,ne){var fe=new go.Geometry,se=Ue?Ue.parameter1:NaN;isNaN(se)&&(se=.1);var pe=new go.PathFigure(0,0,!0);fe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,0)),pe.add(new go.PathSegment(go.PathSegment.Line,te,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var Se=new go.PathFigure(se*te,0,!1);return fe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,se*te,ne)),fe.spot2=go.Spot.BottomRight,fe}),go.Shape.defineFigureGenerator("Sort",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(.5*te,0,!0);fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne).close());var pe=new go.PathFigure(0,.5*ne,!1);return fe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),fe.spot1=new go.Spot(.25,.25),fe.spot2=new go.Spot(.75,.5),fe}),go.Shape.defineFigureGenerator("Start",function(Ue,te,ne){var fe=new go.Geometry,se=Ue?Ue.parameter1:NaN;isNaN(se)&&(se=.25);var pe=new go.PathFigure(se*te,0,!0);fe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*te,.5*ne,.25*te,.5*ne)),pe.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*te,.5*ne,.25*te,.5*ne));var Se=new go.PathFigure(se*te,0,!1);return fe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,se*te,ne)),Se.add(new go.PathSegment(go.PathSegment.Move,(1-se)*te,0)),Se.add(new go.PathSegment(go.PathSegment.Line,(1-se)*te,ne)),fe.spot1=new go.Spot(se,0),fe.spot2=new go.Spot(1-se,1),fe}),go.Shape.defineFigureGenerator("Terminator",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(.25*te,0,!0);return fe.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*te,.5*ne,.25*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*te,.5*ne,.25*te,.5*ne)),fe.spot1=new go.Spot(.23,0),fe.spot2=new go.Spot(.77,1),fe}),go.Shape.defineFigureGenerator("TransmittalTape",function(Ue,te,ne){var fe=new go.Geometry,se=Ue?Ue.parameter1:NaN;isNaN(se)&&(se=.1);var pe=new go.PathFigure(0,0,!0);return fe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,0)),pe.add(new go.PathSegment(go.PathSegment.Line,te,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.75*te,(1-se)*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,(1-se)*ne).close()),fe.spot1=go.Spot.TopLeft,fe}),go.Shape.defineFigureGenerator("AndGate",function(Ue,te,ne){var fe=new go.Geometry,se=Ve*.5,pe=new go.PathFigure(0,0,!0);return fe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),pe.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,(.5+se)*te,0,te,(.5-se)*ne)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,(.5+se)*ne,(.5+se)*te,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),fe.spot1=go.Spot.TopLeft,fe.spot2=new go.Spot(.55,1),fe}),go.Shape.defineFigureGenerator("Buffer",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(0,0,!0);return fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),fe.spot1=new go.Spot(0,.25),fe.spot2=new go.Spot(.5,.75),fe}),go.Shape.defineFigureGenerator("Clock",function(Ue,te,ne){var fe=new go.Geometry,se=Ve*.5,pe=.5,Se=new go.PathFigure(te,pe*ne,!0);fe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,pe*te,ne,te,(pe+se)*ne,(pe+se)*te,ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,pe*ne,(pe-se)*te,ne,0,(pe+se)*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,pe*te,0,0,(pe-se)*ne,(pe-se)*te,0)),Se.add(new go.PathSegment(go.PathSegment.Bezier,te,pe*ne,(pe+se)*te,0,te,(pe-se)*ne));var we=new go.PathFigure(te,pe*ne,!1);fe.add(we),we.add(new go.PathSegment(go.PathSegment.Line,te,pe*ne));var De=new go.PathFigure(.8*te,.75*ne,!1);return fe.add(De),De.add(new go.PathSegment(go.PathSegment.Line,.8*te,.25*ne)),De.add(new go.PathSegment(go.PathSegment.Line,.6*te,.25*ne)),De.add(new go.PathSegment(go.PathSegment.Line,.6*te,.75*ne)),De.add(new go.PathSegment(go.PathSegment.Line,.4*te,.75*ne)),De.add(new go.PathSegment(go.PathSegment.Line,.4*te,.25*ne)),De.add(new go.PathSegment(go.PathSegment.Line,.2*te,.25*ne)),De.add(new go.PathSegment(go.PathSegment.Line,.2*te,.75*ne)),fe}),go.Shape.defineFigureGenerator("Ground",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(.5*te,0,!1);return fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.2*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.3*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.7*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.4*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,ne)),fe}),go.Shape.defineFigureGenerator("Inverter",function(Ue,te,ne){var fe=new go.Geometry,se=Ve*.1,pe=.1,Se=.9,we=.5,De=new go.PathFigure(.8*te,.5*ne,!0);fe.add(De),De.add(new go.PathSegment(go.PathSegment.Line,0,ne)),De.add(new go.PathSegment(go.PathSegment.Line,0,0)),De.add(new go.PathSegment(go.PathSegment.Line,.8*te,.5*ne));var Re=new go.PathFigure((Se+pe)*te,we*ne,!0);return fe.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(we+pe)*ne,(Se+pe)*te,(we+se)*ne,(Se+se)*te,(we+pe)*ne)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(Se-pe)*te,we*ne,(Se-se)*te,(we+pe)*ne,(Se-pe)*te,(we+se)*ne)),Re.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(we-pe)*ne,(Se-pe)*te,(we-se)*ne,(Se-se)*te,(we-pe)*ne)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(Se+pe)*te,we*ne,(Se+se)*te,(we-pe)*ne,(Se+pe)*te,(we-se)*ne)),fe.spot1=new go.Spot(0,.25),fe.spot2=new go.Spot(.4,.75),fe}),go.Shape.defineFigureGenerator("NandGate",function(Ue,te,ne){var fe=new go.Geometry,se=Ve*.5,pe=Ve*.4,Se=Ve*.1,we=.1,De=.9,Re=.5,Ze=new go.PathFigure(.8*te,.5*ne,!0);fe.add(Ze),Ze.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,ne,.8*te,(.5+pe)*ne,(.4+se)*te,ne)),Ze.add(new go.PathSegment(go.PathSegment.Line,0,ne)),Ze.add(new go.PathSegment(go.PathSegment.Line,0,0)),Ze.add(new go.PathSegment(go.PathSegment.Line,.4*te,0)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.5*ne,(.4+se)*te,0,.8*te,(.5-pe)*ne));var nt=new go.PathFigure((De+we)*te,Re*ne,!0);return fe.add(nt),nt.add(new go.PathSegment(go.PathSegment.Bezier,De*te,(Re+we)*ne,(De+we)*te,(Re+Se)*ne,(De+Se)*te,(Re+we)*ne)),nt.add(new go.PathSegment(go.PathSegment.Bezier,(De-we)*te,Re*ne,(De-Se)*te,(Re+we)*ne,(De-we)*te,(Re+Se)*ne)),nt.add(new go.PathSegment(go.PathSegment.Bezier,De*te,(Re-we)*ne,(De-we)*te,(Re-Se)*ne,(De-Se)*te,(Re-we)*ne)),nt.add(new go.PathSegment(go.PathSegment.Bezier,(De+we)*te,Re*ne,(De+Se)*te,(Re-we)*ne,(De+we)*te,(Re-Se)*ne)),fe.spot1=new go.Spot(0,.05),fe.spot2=new go.Spot(.55,.95),fe}),go.Shape.defineFigureGenerator("NorGate",function(Ue,te,ne){var fe=new go.Geometry,se=.5,pe=Ve*se,Se=0,we=.5,De=new go.PathFigure(.8*te,.5*ne,!0);fe.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,0,ne,.7*te,(we+pe)*ne,(Se+pe)*te,(we+se)*ne)),De.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*te,.75*ne,.25*te,.25*ne)),De.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.5*ne,(Se+pe)*te,(we-se)*ne,.7*te,(we-pe)*ne)),se=.1,pe=Ve*.1,Se=.9,we=.5;var Re=new go.PathFigure((Se-se)*te,we*ne,!0);return fe.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(we-se)*ne,(Se-se)*te,(we-pe)*ne,(Se-pe)*te,(we-se)*ne)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(Se+se)*te,we*ne,(Se+pe)*te,(we-se)*ne,(Se+se)*te,(we-pe)*ne)),Re.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(we+se)*ne,(Se+se)*te,(we+pe)*ne,(Se+pe)*te,(we+se)*ne)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(Se-se)*te,we*ne,(Se-pe)*te,(we+se)*ne,(Se-se)*te,(we+pe)*ne)),fe.spot1=new go.Spot(.2,.25),fe.spot2=new go.Spot(.6,.75),fe}),go.Shape.defineFigureGenerator("OrGate",function(Ue,te,ne){var fe=new go.Geometry,se=.5,pe=Ve*se,Se=0,we=.5,De=new go.PathFigure(0,0,!0);return fe.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,(Se+pe+pe)*te,(we-se)*ne,.8*te,(we-pe)*ne)),De.add(new go.PathSegment(go.PathSegment.Bezier,0,ne,.8*te,(we+pe)*ne,(Se+pe+pe)*te,(we+se)*ne)),De.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*te,.75*ne,.25*te,.25*ne).close()),fe.spot1=new go.Spot(.2,.25),fe.spot2=new go.Spot(.75,.75),fe}),go.Shape.defineFigureGenerator("XnorGate",function(Ue,te,ne){var fe=new go.Geometry,se=.5,pe=Ve*se,Se=.2,we=.5,De=new go.PathFigure(.1*te,0,!1);fe.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,ne,.35*te,.25*ne,.35*te,.75*ne));var Re=new go.PathFigure(.8*te,.5*ne,!0);fe.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,ne,.7*te,(we+pe)*ne,(Se+pe)*te,(we+se)*ne)),Re.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,0,.45*te,.75*ne,.45*te,.25*ne)),Re.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.5*ne,(Se+pe)*te,(we-se)*ne,.7*te,(we-pe)*ne)),se=.1,pe=Ve*.1,Se=.9,we=.5;var Ze=new go.PathFigure((Se-se)*te,we*ne,!0);return fe.add(Ze),Ze.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(we-se)*ne,(Se-se)*te,(we-pe)*ne,(Se-pe)*te,(we-se)*ne)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,(Se+se)*te,we*ne,(Se+pe)*te,(we-se)*ne,(Se+se)*te,(we-pe)*ne)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(we+se)*ne,(Se+se)*te,(we+pe)*ne,(Se+pe)*te,(we+se)*ne)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,(Se-se)*te,we*ne,(Se-pe)*te,(we+se)*ne,(Se-se)*te,(we+pe)*ne)),fe.spot1=new go.Spot(.4,.25),fe.spot2=new go.Spot(.65,.75),fe}),go.Shape.defineFigureGenerator("XorGate",function(Ue,te,ne){var fe=new go.Geometry,se=.5,pe=Ve*se,Se=.2,we=.5,De=new go.PathFigure(.1*te,0,!1);fe.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,ne,.35*te,.25*ne,.35*te,.75*ne));var Re=new go.PathFigure(.2*te,0,!0);return fe.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,(Se+pe)*te,(we-se)*ne,.9*te,(we-pe)*ne)),Re.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,ne,.9*te,(we+pe)*ne,(Se+pe)*te,(we+se)*ne)),Re.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,0,.45*te,.75*ne,.45*te,.25*ne).close()),fe.spot1=new go.Spot(.4,.25),fe.spot2=new go.Spot(.8,.75),fe}),go.Shape.defineFigureGenerator("Capacitor",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(0,0,!1);return fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Move,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),fe}),go.Shape.defineFigureGenerator("Resistor",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(0,.5*ne,!1);return fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.7*te,.5*ne)),fe}),go.Shape.defineFigureGenerator("Inductor",function(Ue,te,ne){var fe=new go.Geometry,se=Ve*.1,pe=.1,Se=.1,we=.5,De=new go.PathFigure((Se-se*.5)*te,ne,!1);return fe.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,(Se+pe)*te,0,(Se-se)*te,ne,(Se-pe)*te,0)),Se=.3,De.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,ne,(Se+pe)*te,0,(Se+se)*te,ne)),De.add(new go.PathSegment(go.PathSegment.Bezier,(Se+pe)*te,0,(Se-se)*te,ne,(Se-pe)*te,0)),Se=.5,De.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,ne,(Se+pe)*te,0,(Se+se)*te,ne)),De.add(new go.PathSegment(go.PathSegment.Bezier,(Se+pe)*te,0,(Se-se)*te,ne,(Se-pe)*te,0)),Se=.7,De.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,ne,(Se+pe)*te,0,(Se+se)*te,ne)),De.add(new go.PathSegment(go.PathSegment.Bezier,(Se+pe)*te,0,(Se-se)*te,ne,(Se-pe)*te,0)),Se=.9,De.add(new go.PathSegment(go.PathSegment.Bezier,(Se+se*.5)*te,ne,(Se+pe)*te,0,(Se+se)*te,ne)),fe}),go.Shape.defineFigureGenerator("ACvoltageSource",function(Ue,te,ne){var fe=new go.Geometry,se=Ve*.5,pe=.5,Se=.5,we=.5,De=new go.PathFigure((Se-pe)*te,we*ne,!1);return fe.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(we-pe)*ne,(Se-pe)*te,(we-se)*ne,(Se-se)*te,(we-pe)*ne)),De.add(new go.PathSegment(go.PathSegment.Bezier,(Se+pe)*te,we*ne,(Se+se)*te,(we-pe)*ne,(Se+pe)*te,(we-se)*ne)),De.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(we+pe)*ne,(Se+pe)*te,(we+se)*ne,(Se+se)*te,(we+pe)*ne)),De.add(new go.PathSegment(go.PathSegment.Bezier,(Se-pe)*te,we*ne,(Se-se)*te,(we+pe)*ne,(Se-pe)*te,(we+se)*ne)),De.add(new go.PathSegment(go.PathSegment.Move,(Se-pe+.1)*te,we*ne)),De.add(new go.PathSegment(go.PathSegment.Bezier,(Se+pe-.1)*te,we*ne,Se*te,(we-pe)*ne,Se*te,(we+pe)*ne)),fe}),go.Shape.defineFigureGenerator("DCvoltageSource",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(0,.75*ne,!1);return fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Move,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),fe}),go.Shape.defineFigureGenerator("Diode",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(te,0,!1);return fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),fe.spot1=new go.Spot(0,.25),fe.spot2=new go.Spot(.5,.75),fe}),go.Shape.defineFigureGenerator("Wifi",function(Ue,te,ne){var fe=new go.Geometry,se=te,pe=ne;te=te*.38,ne=ne*.6;var Se=Ve*.8,we=.8,De=0,Re=.5,Ze=(se-te)/2,nt=(pe-ne)/2,rt=new go.PathFigure(De*te+Ze,(Re+we)*ne+nt,!0);fe.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,(De-we)*te+Ze,Re*ne+nt,(De-Se)*te+Ze,(Re+we)*ne+nt,(De-we)*te+Ze,(Re+Se)*ne+nt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,De*te+Ze,(Re-we)*ne+nt,(De-we)*te+Ze,(Re-Se)*ne+nt,(De-Se)*te+Ze,(Re-we)*ne+nt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(De-we+Se*.5)*te+Ze,Re*ne+nt,De*te+Ze,(Re-we)*ne+nt,(De-we+Se*.5)*te+Ze,(Re-Se)*ne+nt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,De*te+Ze,(Re+we)*ne+nt,(De-we+Se*.5)*te+Ze,(Re+Se)*ne+nt,De*te+Ze,(Re+we)*ne+nt).close()),Se=Ve*.4,we=.4,De=.2,Re=.5;var ft=new go.PathFigure(De*te+Ze,(Re+we)*ne+nt,!0);fe.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,(De-we)*te+Ze,Re*ne+nt,(De-Se)*te+Ze,(Re+we)*ne+nt,(De-we)*te+Ze,(Re+Se)*ne+nt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,De*te+Ze,(Re-we)*ne+nt,(De-we)*te+Ze,(Re-Se)*ne+nt,(De-Se)*te+Ze,(Re-we)*ne+nt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(De-we+Se*.5)*te+Ze,Re*ne+nt,De*te+Ze,(Re-we)*ne+nt,(De-we+Se*.5)*te+Ze,(Re-Se)*ne+nt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,De*te+Ze,(Re+we)*ne+nt,(De-we+Se*.5)*te+Ze,(Re+Se)*ne+nt,De*te+Ze,(Re+we)*ne+nt).close()),Se=Ve*.2,we=.2,De=.5,Re=.5;var xt=new go.PathFigure((De-we)*te+Ze,Re*ne+nt,!0);fe.add(xt),xt.add(new go.PathSegment(go.PathSegment.Bezier,De*te+Ze,(Re-we)*ne+nt,(De-we)*te+Ze,(Re-Se)*ne+nt,(De-Se)*te+Ze,(Re-we)*ne+nt)),xt.add(new go.PathSegment(go.PathSegment.Bezier,(De+we)*te+Ze,Re*ne+nt,(De+Se)*te+Ze,(Re-we)*ne+nt,(De+we)*te+Ze,(Re-Se)*ne+nt)),xt.add(new go.PathSegment(go.PathSegment.Bezier,De*te+Ze,(Re+we)*ne+nt,(De+we)*te+Ze,(Re+Se)*ne+nt,(De+Se)*te+Ze,(Re+we)*ne+nt)),xt.add(new go.PathSegment(go.PathSegment.Bezier,(De-we)*te+Ze,Re*ne+nt,(De-Se)*te+Ze,(Re+we)*ne+nt,(De-we)*te+Ze,(Re+Se)*ne+nt)),Se=Ve*.4,we=.4,De=.8,Re=.5;var at=new go.PathFigure(De*te+Ze,(Re-we)*ne+nt,!0);fe.add(at),at.add(new go.PathSegment(go.PathSegment.Bezier,(De+we)*te+Ze,Re*ne+nt,(De+Se)*te+Ze,(Re-we)*ne+nt,(De+we)*te+Ze,(Re-Se)*ne+nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,De*te+Ze,(Re+we)*ne+nt,(De+we)*te+Ze,(Re+Se)*ne+nt,(De+Se)*te+Ze,(Re+we)*ne+nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,(De+we-Se*.5)*te+Ze,Re*ne+nt,De*te+Ze,(Re+we)*ne+nt,(De+we-Se*.5)*te+Ze,(Re+Se)*ne+nt)),at.add(new go.PathSegment(go.PathSegment.Bezier,De*te+Ze,(Re-we)*ne+nt,(De+we-Se*.5)*te+Ze,(Re-Se)*ne+nt,De*te+Ze,(Re-we)*ne+nt).close()),Se=Ve*.8,we=.8,De=1,Re=.5;var wt=new go.PathFigure(De*te+Ze,(Re-we)*ne+nt,!0);return fe.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,(De+we)*te+Ze,Re*ne+nt,(De+Se)*te+Ze,(Re-we)*ne+nt,(De+we)*te+Ze,(Re-Se)*ne+nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,De*te+Ze,(Re+we)*ne+nt,(De+we)*te+Ze,(Re+Se)*ne+nt,(De+Se)*te+Ze,(Re+we)*ne+nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(De+we-Se*.5)*te+Ze,Re*ne+nt,De*te+Ze,(Re+we)*ne+nt,(De+we-Se*.5)*te+Ze,(Re+Se)*ne+nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,De*te+Ze,(Re-we)*ne+nt,(De+we-Se*.5)*te+Ze,(Re-Se)*ne+nt,De*te+Ze,(Re-we)*ne+nt).close()),fe}),go.Shape.defineFigureGenerator("Email",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(0,0,!0);fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var pe=new go.PathFigure(0,0,!1);return fe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,te,0)),pe.add(new go.PathSegment(go.PathSegment.Move,0,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.45*te,.54*ne)),pe.add(new go.PathSegment(go.PathSegment.Move,te,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.55*te,.54*ne)),fe}),go.Shape.defineFigureGenerator("Ethernet",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(.35*te,0,!0);fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.65*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.65*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.35*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.35*te,0).close());var pe=new go.PathFigure(.1*te,ne,!0,!0);fe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.4*te,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.4*te,.6*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.1*te,.6*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.1*te,ne).close());var Se=new go.PathFigure(.6*te,ne,!0,!0);fe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.9*te,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.6*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.6*te,.6*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.6*te,ne).close());var we=new go.PathFigure(0,.5*ne,!1);return fe.add(we),we.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),we.add(new go.PathSegment(go.PathSegment.Move,.5*te,.5*ne)),we.add(new go.PathSegment(go.PathSegment.Line,.5*te,.4*ne)),we.add(new go.PathSegment(go.PathSegment.Move,.75*te,.5*ne)),we.add(new go.PathSegment(go.PathSegment.Line,.75*te,.6*ne)),we.add(new go.PathSegment(go.PathSegment.Move,.25*te,.5*ne)),we.add(new go.PathSegment(go.PathSegment.Line,.25*te,.6*ne)),fe}),go.Shape.defineFigureGenerator("Power",function(Ue,te,ne){var fe=new go.Geometry,se=Ve*.4,pe=.4,Se=.5,we=.5,De=le(),Re=le(),Ze=le(),nt=le();Pe(Se,we-pe,Se+se,we-pe,Se+pe,we-se,Se+pe,we,.5,De,De,Re,Ze,nt);var rt=de(Re.x,Re.y),ft=new go.PathFigure(Re.x*te,Re.y*ne,!0);fe.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,(Se+pe)*te,we*ne,Ze.x*te,Ze.y*ne,nt.x*te,nt.y*ne)),ft.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(we+pe)*ne,(Se+pe)*te,(we+se)*ne,(Se+se)*te,(we+pe)*ne)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(Se-pe)*te,we*ne,(Se-se)*te,(we+pe)*ne,(Se-pe)*te,(we+se)*ne)),Pe(Se-pe,we,Se-pe,we-se,Se-se,we-pe,Se,we-pe,.5,Ze,nt,Re,De,De),ft.add(new go.PathSegment(go.PathSegment.Bezier,Re.x*te,Re.y*ne,Ze.x*te,Ze.y*ne,nt.x*te,nt.y*ne)),se=Ve*.3,pe=.3,Pe(Se-pe,we,Se-pe,we-se,Se-se,we-pe,Se,we-pe,.5,Ze,nt,Re,De,De),ft.add(new go.PathSegment(go.PathSegment.Line,Re.x*te,Re.y*ne)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(Se-pe)*te,we*ne,nt.x*te,nt.y*ne,Ze.x*te,Ze.y*ne)),ft.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(we+pe)*ne,(Se-pe)*te,(we+se)*ne,(Se-se)*te,(we+pe)*ne)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(Se+pe)*te,we*ne,(Se+se)*te,(we+pe)*ne,(Se+pe)*te,(we+se)*ne)),Pe(Se,we-pe,Se+se,we-pe,Se+pe,we-se,Se+pe,we,.5,De,De,Re,Ze,nt),ft.add(new go.PathSegment(go.PathSegment.Bezier,Re.x*te,Re.y*ne,nt.x*te,nt.y*ne,Ze.x*te,Ze.y*ne).close());var ft=new go.PathFigure(.45*te,0,!0);return fe.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.45*te,.5*ne)),ft.add(new go.PathSegment(go.PathSegment.Line,.55*te,.5*ne)),ft.add(new go.PathSegment(go.PathSegment.Line,.55*te,0).close()),Me(De),Me(Re),Me(Ze),Me(nt),Me(rt),fe.spot1=new go.Spot(.25,.45),fe.spot2=new go.Spot(.75,.8),fe}),go.Shape.defineFigureGenerator("Fallout",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(0,ne/2,!0);fe.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,180,360,te/2,ne/2,te/2,ne/2));function pe(Se,we,De){Se.add(new go.PathSegment(go.PathSegment.Move,(.3+we)*te,(.8+De)*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,(.5+we)*te,(.5+De)*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,(.1+we)*te,(.5+De)*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,(.3+we)*te,(.8+De)*ne).close())}return pe(se,0,0),pe(se,.4,0),pe(se,.2,-.3),fe}),go.Shape.defineFigureGenerator("IrritationHazard",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(.2*te,0,!0);return fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.3*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.7*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.2*ne).close()),fe.spot1=new go.Spot(.3,.3),fe.spot2=new go.Spot(.7,.7),fe}),go.Shape.defineFigureGenerator("ElectricalHazard",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(.37*te,0,!0);return fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.11*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.77*te,.04*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.33*te,.49*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.37*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.63*te,.86*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.77*te,.91*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.34*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.34*te,.78*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.44*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.65*te,.56*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.68*ne).close()),fe}),go.Shape.defineFigureGenerator("FireHazard",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(.1*te,ne,!0);return fe.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.29*te,0,-.25*te,.63*ne,.45*te,.44*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.51*te,.42*ne,.48*te,.17*ne,.54*te,.35*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.59*te,.18*ne,.59*te,.29*ne,.58*te,.28*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.75*te,.6*ne,.8*te,.34*ne,.88*te,.43*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.88*te,.31*ne,.87*te,.48*ne,.88*te,.43*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,ne,1.17*te,.76*ne,.82*te,.8*ne).close()),fe.spot1=new go.Spot(.07,.445),fe.spot2=new go.Spot(.884,.958),fe}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(Ue,te,ne){var fe=new go.Geometry,se=.5,pe=0,Se=0,we=se*Ve,De=.4*Math.SQRT2/2+.5,Re=.5-.5*Math.SQRT2/2,Ze=1,nt=.5,rt=.5,ft=0,xt=new go.PathFigure(De*te,(1-Re)*ne,!1);return fe.add(xt),xt.add(new go.PathSegment(go.PathSegment.Bezier,Ze*te,nt*ne,Ze*te,.7*ne,Ze*te,nt*ne)),xt.add(new go.PathSegment(go.PathSegment.Bezier,(rt+pe)*te,(ft+pe)*ne,(.5+se+pe)*te,(.5-we+pe)*ne,(.5+we+pe)*te,(.5-se+pe)*ne)),xt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-se+pe)*te,(.5+Se)*ne,(.5-we+pe)*te,(.5-se+Se)*ne,(.5-se+pe)*te,(.5-we+Se)*ne)),xt.add(new go.PathSegment(go.PathSegment.Bezier,(.35+pe)*te,.9*ne,(.5-se+pe)*te,(.5+we+Se)*ne,(.5-we+pe)*te,.9*ne)),xt.add(new go.PathSegment(go.PathSegment.Move,(.25+pe)*te,.8*ne)),xt.add(new go.PathSegment(go.PathSegment.Line,(.35+pe)*te,.9*ne)),xt.add(new go.PathSegment(go.PathSegment.Line,(.2+pe)*te,.95*ne)),fe}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(0,0,!1);return fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Move,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),fe}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(0,0,!1);return fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Move,0,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Move,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),fe}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(0,0,!1);fe.add(se);var pe=new go.PathFigure(te,ne,!1);fe.add(pe);var Se=new go.PathFigure(0,.5*ne,!1);return fe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.5*ne,.2*te,.35*ne,.3*te,.35*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,.7*te,.65*ne,.8*te,.65*ne)),fe}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(0,.5*ne,!0);return fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne).close()),fe}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(0,.2*ne,!0);fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne).close());var se=new go.PathFigure(0,.2*ne,!1);return fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.2*ne)),fe}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(.7*te,ne,!0);fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,0,.6*te,.5*ne,0,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.7*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.7*te,ne,.4*te,.5*ne,te,.5*ne).close());var pe=new go.PathFigure(.45*te,.73*ne,!1);return fe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.7*te,.73*ne)),pe.add(new go.PathSegment(go.PathSegment.Move,.38*te,.5*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.63*te,.5*ne)),pe.add(new go.PathSegment(go.PathSegment.Move,.31*te,.27*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.56*te,.27*ne)),fe}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(0,0,!1);fe.add(se);var pe=new go.PathFigure(.335*te,(1-.555)*ne,!0);fe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.335*te,(1-.405)*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*te,(1-.405)*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*te,(1-.555)*ne)),pe.add(new go.PathSegment(go.PathSegment.Bezier,te,.68*ne,(1-.12)*te,.46*ne,(1-.02)*te,.54*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,te,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,.68*ne)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.335*te,(1-.555)*ne,.02*te,.54*ne,.12*te,.46*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.365*te,(1-.595)*ne));var Se=.5-.285,we=.5,De=Se,Re=Math.PI/4,Ze=4*(1-Math.cos(Re))/(3*Math.sin(Re)),nt=Ze*.5,rt=Se,ft=Se,xt=Ze*rt,at=Ze*ft;pe.add(new go.PathSegment(go.PathSegment.Bezier,(we-rt)*te,De*ne,(we-(xt+rt)/2)*te,(De+(ft+at)/2)*ne,(we-rt)*te,(De+at)*ne)),pe.add(new go.PathSegment(go.PathSegment.Bezier,we*te,(De-ft)*ne,(we-rt)*te,(De-at)*ne,(we-xt)*te,(De-ft)*ne)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(we+rt)*te,De*ne,(we+xt)*te,(De-ft)*ne,(we+rt)*te,(De-at)*ne)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*te,(1-.595)*ne,(we+rt)*te,(De+at)*ne,(we+(xt+rt)/2)*te,(De+(ft+at)/2)*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*te,(1-.595)*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*te,(1-.555)*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*te,(1-.405)*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.335*te,(1-.405)*ne));var wt=new go.PathFigure(.2*te,ne,!1);fe.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,.2*te,.8*ne));var Mt=new go.PathFigure(.8*te,ne,!1);return fe.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Line,.8*te,.8*ne)),fe}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(.1*te,0,!0);fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,ne).close());var pe=new go.PathFigure(.2*te,.2*ne,!1);return fe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ne)),pe.add(new go.PathSegment(go.PathSegment.Move,.2*te,.4*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.4*ne)),pe.add(new go.PathSegment(go.PathSegment.Move,.2*te,.6*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.6*ne)),pe.add(new go.PathSegment(go.PathSegment.Move,.2*te,.8*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.8*ne)),fe}),go.Shape.defineFigureGenerator("BpmnEventError",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(0,ne,!0);return fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.33*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.66*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.66*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.33*te,.5*ne).close()),fe}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(0,0,!1);fe.add(se);var pe=new go.PathFigure(te,ne,!1);fe.add(pe);var Se=new go.PathFigure(.1*te,ne,!0);return fe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),Se.add(new go.PathSegment(go.PathSegment.Line,.9*te,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne).close()),fe}),go.Shape.defineFigureGenerator("Caution",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(.05*te,ne,!0);fe.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,.8*ne,0,ne,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.45*te,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.55*te,.1*ne,.5*te,0,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.95*te,.9*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,ne,te,ne,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.05*te,ne));var pe=.05;return se.add(new go.PathSegment(go.PathSegment.Move,(.5-pe)*te,.875*ne)),se.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*te,.875*ne,pe*te,pe*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.325*ne,.575*te,.725*ne,.625*te,.375*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.75*ne,.375*te,.375*ne,.425*te,.725*ne)),fe}),go.Shape.defineFigureGenerator("Recycle",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(.45*te,.95*ne,!1);fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,.95*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.185*te,.85*ne,.17*te,.95*ne,.15*te,.9*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.235*te,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,.625*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.35*te,.65*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.275*te,.45*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.05*te,.45*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.05*te,.575*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.1875*te,.95*ne,0,.675*ne,0,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.45*te,.95*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.45*te,.775*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.22*te,.775*ne));var pe=new go.PathFigure(.475*te,.2*ne,!1);fe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.4*te,.4*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.225*te,.3*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.275*te,.175*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.325*te,.05*ne)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,.05*ne,.35*te,0,.375*te,0)),pe.add(new go.PathSegment(go.PathSegment.Line,.575*te,.375*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.525*te,.4*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.75*te,.475*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.85*te,.315*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.32*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.65*te,.05*ne)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.575*te,0,.65*te,.05*ne,.625*te,0)),pe.add(new go.PathSegment(go.PathSegment.Line,.38*te,.0105*ne));var Se=new go.PathFigure(.675*te,.575*ne,!1);return fe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.875*te,.525*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,te,.775*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.85*te,.95*ne,te,.8*ne,te,.85*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.65*te,.95*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.65*te,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.55*te,.85*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.65*te,.725*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.65*te,.775*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.7*te,.775*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,te,.775*ne)),Se.add(new go.PathSegment(go.PathSegment.Move,.675*te,.575*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.775*te,.775*ne)),fe}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(Ue,te,ne){var fe=new go.Geometry,se=.5,pe=Ve*.5,Se=new go.PathFigure(te,se*ne,!0);fe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,se*te,ne,te,(se+pe)*ne,(se+pe)*te,ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,se*ne,(se-pe)*te,ne,0,(se+pe)*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,se*te,0,0,(se-pe)*ne,(se-pe)*te,0)),Se.add(new go.PathSegment(go.PathSegment.Bezier,te,se*ne,(se+pe)*te,0,te,(se-pe)*ne));var we=new go.PathFigure(se*te,0,!1);return fe.add(we),we.add(new go.PathSegment(go.PathSegment.Line,se*te,.15*ne)),we.add(new go.PathSegment(go.PathSegment.Move,se*te,ne)),we.add(new go.PathSegment(go.PathSegment.Line,se*te,.85*ne)),we.add(new go.PathSegment(go.PathSegment.Move,0,se*ne)),we.add(new go.PathSegment(go.PathSegment.Line,.15*te,se*ne)),we.add(new go.PathSegment(go.PathSegment.Move,te,se*ne)),we.add(new go.PathSegment(go.PathSegment.Line,.85*te,se*ne)),we.add(new go.PathSegment(go.PathSegment.Move,se*te,se*ne)),we.add(new go.PathSegment(go.PathSegment.Line,.58*te,.1*ne)),we.add(new go.PathSegment(go.PathSegment.Move,se*te,se*ne)),we.add(new go.PathSegment(go.PathSegment.Line,.78*te,.54*ne)),fe}),go.Shape.defineFigureGenerator("Package",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(0,.15*ne,!0);fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.15*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var pe=new go.PathFigure(0,.15*ne,!0);return fe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,0,0)),pe.add(new go.PathSegment(go.PathSegment.Line,.6*te,0)),pe.add(new go.PathSegment(go.PathSegment.Line,.65*te,.15*ne).close()),fe.spot1=new go.Spot(0,.1),fe.spot2=new go.Spot(1,1),fe}),go.Shape.defineFigureGenerator("Class",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(0,0,!0);fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var pe=new go.PathFigure(0,.2*ne,!1);fe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,.2*ne).close());var Se=new go.PathFigure(0,.5*ne,!1);return fe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne).close()),fe}),go.Shape.defineFigureGenerator("Component",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(te,ne,!0);fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.15*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.15*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne).close());var pe=new go.PathFigure(0,.2*ne,!0);fe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.45*te,.2*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.45*te,.4*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,.4*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,.2*ne).close());var Se=new go.PathFigure(0,.6*ne,!0);return fe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.45*te,.6*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.45*te,.8*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,0,.6*ne).close()),fe}),go.Shape.defineFigureGenerator("Boat Shipment",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(.15*te,.6*ne,!0);fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.15*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.15*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.85*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.85*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.15*te,.6*ne));var pe=new go.PathFigure(.15*te,.6*ne,!1);return fe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.85*te,.6*ne)),fe}),go.Shape.defineFigureGenerator("Customer/Supplier",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(te,ne,!0);return fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.66*te,.33*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.66*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.33*te,.33*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.33*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,.33*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne).close()),fe}),go.Shape.defineFigureGenerator("Workcell",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(0,ne,!0);return fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.65*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.65*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.35*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.35*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),fe}),go.Shape.defineFigureGenerator("Supermarket",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(0,0,!1);return fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.33*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.33*ne)),se.add(new go.PathSegment(go.PathSegment.Move,te,.33*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.66*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.66*ne)),se.add(new go.PathSegment(go.PathSegment.Move,te,.66*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),fe}),go.Shape.defineFigureGenerator("TruckShipment",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(0,0,!0);fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var pe=new go.PathFigure(te,.8*ne,!0);fe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,.4*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.6*te,.4*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.6*te,.8*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,te,.8*ne).close());var Se=.1,we=Ve*.1,De=.2,Re=.9,Ze=new go.PathFigure((De-Se)*te,Re*ne,!0);fe.add(Ze),Ze.add(new go.PathSegment(go.PathSegment.Bezier,De*te,(Re-Se)*ne,(De-Se)*te,(Re-we)*ne,(De-we)*te,(Re-Se)*ne)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,(De+Se)*te,Re*ne,(De+we)*te,(Re-Se)*ne,(De+Se)*te,(Re-we)*ne)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,De*te,(Re+Se)*ne,(De+Se)*te,(Re+we)*ne,(De+we)*te,(Re+Se)*ne)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,(De-Se)*te,Re*ne,(De-we)*te,(Re+Se)*ne,(De-Se)*te,(Re+we)*ne).close()),Se=.1,we=Ve*.1,De=.8,Re=.9;var nt=new go.PathFigure((De-Se)*te,Re*ne,!0);return fe.add(nt),nt.add(new go.PathSegment(go.PathSegment.Bezier,De*te,(Re-Se)*ne,(De-Se)*te,(Re-we)*ne,(De-we)*te,(Re-Se)*ne)),nt.add(new go.PathSegment(go.PathSegment.Bezier,(De+Se)*te,Re*ne,(De+we)*te,(Re-Se)*ne,(De+Se)*te,(Re-we)*ne)),nt.add(new go.PathSegment(go.PathSegment.Bezier,De*te,(Re+Se)*ne,(De+Se)*te,(Re+we)*ne,(De+we)*te,(Re+Se)*ne)),nt.add(new go.PathSegment(go.PathSegment.Bezier,(De-Se)*te,Re*ne,(De-we)*te,(Re+Se)*ne,(De-Se)*te,(Re+we)*ne).close()),fe}),go.Shape.defineFigureGenerator("KanbanPost",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(.2*te,0,!1);return fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,0)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,ne)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,ne)),fe}),go.Shape.defineFigureGenerator("Forklift",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(0,0,!0);fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,0));var pe=new go.PathFigure(0,.5*ne,!0);fe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.8*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne));var Se=new go.PathFigure(.5*te,.8*ne,!0);fe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.1*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.55*te,.1*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.55*te,.8*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.8*ne));var we=new go.PathFigure(.5*te,.7*ne,!1);fe.add(we),we.add(new go.PathSegment(go.PathSegment.Line,te,.7*ne));var De=.1,Re=Ve*.1,Ze=.1,nt=.9,rt=new go.PathFigure((Ze-De)*te,nt*ne,!0);fe.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,Ze*te,(nt-De)*ne,(Ze-De)*te,(nt-Re)*ne,(Ze-Re)*te,(nt-De)*ne)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(Ze+De)*te,nt*ne,(Ze+Re)*te,(nt-De)*ne,(Ze+De)*te,(nt-Re)*ne)),rt.add(new go.PathSegment(go.PathSegment.Bezier,Ze*te,(nt+De)*ne,(Ze+De)*te,(nt+Re)*ne,(Ze+Re)*te,(nt+De)*ne)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(Ze-De)*te,nt*ne,(Ze-Re)*te,(nt+De)*ne,(Ze-De)*te,(nt+Re)*ne)),De=.1,Re=Ve*.1,Ze=.4,nt=.9;var ft=new go.PathFigure((Ze-De)*te,nt*ne,!0);return fe.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,Ze*te,(nt-De)*ne,(Ze-De)*te,(nt-Re)*ne,(Ze-Re)*te,(nt-De)*ne)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(Ze+De)*te,nt*ne,(Ze+Re)*te,(nt-De)*ne,(Ze+De)*te,(nt-Re)*ne)),ft.add(new go.PathSegment(go.PathSegment.Bezier,Ze*te,(nt+De)*ne,(Ze+De)*te,(nt+Re)*ne,(Ze+Re)*te,(nt+De)*ne)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(Ze-De)*te,nt*ne,(Ze-Re)*te,(nt+De)*ne,(Ze-De)*te,(nt+Re)*ne)),fe}),go.Shape.defineFigureGenerator("RailShipment",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(.1*te,.4*ne,!0);fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.45*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.45*te,.9*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.9*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.4*ne).close());var pe=new go.PathFigure(.45*te,.7*ne,!1);fe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.55*te,.7*ne));var Se=new go.PathFigure(.55*te,.4*ne,!0);fe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.4*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.9*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.55*te,.9*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.55*te,.4*ne).close());var Ze=.05,nt=Ve*.05,rt=.175,ft=.95,we=new go.PathFigure((rt-Ze)*te,ft*ne,!0);fe.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,rt*te,(ft-Ze)*ne,(rt-Ze)*te,(ft-nt)*ne,(rt-nt)*te,(ft-Ze)*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,(rt+Ze)*te,ft*ne,(rt+nt)*te,(ft-Ze)*ne,(rt+Ze)*te,(ft-nt)*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,rt*te,(ft+Ze)*ne,(rt+Ze)*te,(ft+nt)*ne,(rt+nt)*te,(ft+Ze)*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,(rt-Ze)*te,ft*ne,(rt-nt)*te,(ft+Ze)*ne,(rt-Ze)*te,(ft+nt)*ne));var Ze=.05,nt=Ve*.05,rt=.375,ft=.95,De=new go.PathFigure((rt-Ze)*te,ft*ne,!0);fe.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,rt*te,(ft-Ze)*ne,(rt-Ze)*te,(ft-nt)*ne,(rt-nt)*te,(ft-Ze)*ne)),De.add(new go.PathSegment(go.PathSegment.Bezier,(rt+Ze)*te,ft*ne,(rt+nt)*te,(ft-Ze)*ne,(rt+Ze)*te,(ft-nt)*ne)),De.add(new go.PathSegment(go.PathSegment.Bezier,rt*te,(ft+Ze)*ne,(rt+Ze)*te,(ft+nt)*ne,(rt+nt)*te,(ft+Ze)*ne)),De.add(new go.PathSegment(go.PathSegment.Bezier,(rt-Ze)*te,ft*ne,(rt-nt)*te,(ft+Ze)*ne,(rt-Ze)*te,(ft+nt)*ne));var Ze=.05,nt=Ve*.05,rt=.625,ft=.95,Re=new go.PathFigure((rt-Ze)*te,ft*ne,!0);fe.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,rt*te,(ft-Ze)*ne,(rt-Ze)*te,(ft-nt)*ne,(rt-nt)*te,(ft-Ze)*ne)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(rt+Ze)*te,ft*ne,(rt+nt)*te,(ft-Ze)*ne,(rt+Ze)*te,(ft-nt)*ne)),Re.add(new go.PathSegment(go.PathSegment.Bezier,rt*te,(ft+Ze)*ne,(rt+Ze)*te,(ft+nt)*ne,(rt+nt)*te,(ft+Ze)*ne)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(rt-Ze)*te,ft*ne,(rt-nt)*te,(ft+Ze)*ne,(rt-Ze)*te,(ft+nt)*ne));var Ze=.05,nt=Ve*.05,rt=.825,ft=.95,xt=new go.PathFigure((rt-Ze)*te,ft*ne,!0);fe.add(xt),xt.add(new go.PathSegment(go.PathSegment.Bezier,rt*te,(ft-Ze)*ne,(rt-Ze)*te,(ft-nt)*ne,(rt-nt)*te,(ft-Ze)*ne)),xt.add(new go.PathSegment(go.PathSegment.Bezier,(rt+Ze)*te,ft*ne,(rt+nt)*te,(ft-Ze)*ne,(rt+Ze)*te,(ft-nt)*ne)),xt.add(new go.PathSegment(go.PathSegment.Bezier,rt*te,(ft+Ze)*ne,(rt+Ze)*te,(ft+nt)*ne,(rt+nt)*te,(ft+Ze)*ne)),xt.add(new go.PathSegment(go.PathSegment.Bezier,(rt-Ze)*te,ft*ne,(rt-nt)*te,(ft+Ze)*ne,(rt-Ze)*te,(ft+nt)*ne).close());var at=new go.PathFigure(0,ne,!1);return fe.add(at),at.add(new go.PathSegment(go.PathSegment.Line,te,ne).close()),fe}),go.Shape.defineFigureGenerator("Warehouse",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(0,0,!0);fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var pe=new go.PathFigure(0,.2*ne,!1);fe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,.2*ne).close());var Se=new go.PathFigure(.15*te,ne,!0);fe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.15*te,.5*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.4*te,.5*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.4*te,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.15*te,ne).close());var we=.05,De=Ve*.05,Re=.35,Ze=.775,nt=new go.PathFigure((Re-we)*te,Ze*ne,!0);return fe.add(nt),nt.add(new go.PathSegment(go.PathSegment.Bezier,Re*te,(Ze-we)*ne,(Re-we)*te,(Ze-De)*ne,(Re-De)*te,(Ze-we)*ne)),nt.add(new go.PathSegment(go.PathSegment.Bezier,(Re+we)*te,Ze*ne,(Re+De)*te,(Ze-we)*ne,(Re+we)*te,(Ze-De)*ne)),nt.add(new go.PathSegment(go.PathSegment.Bezier,Re*te,(Ze+we)*ne,(Re+we)*te,(Ze+De)*ne,(Re+De)*te,(Ze+we)*ne)),nt.add(new go.PathSegment(go.PathSegment.Bezier,(Re-we)*te,Ze*ne,(Re-De)*te,(Ze+we)*ne,(Re-we)*te,(Ze+De)*ne).close()),fe}),go.Shape.defineFigureGenerator("ControlCenter",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(0,ne,!0);return fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Move,.1*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ne).close()),fe}),go.Shape.defineFigureGenerator("Bluetooth",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(0,.75*ne,!1);return fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*ne)),fe}),go.Shape.defineFigureGenerator("Bookmark",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(0,0,!0);return fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Move,.2*te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.2*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.4*ne)),fe}),go.Shape.defineFigureGenerator("Bookmark",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(0,0,!0);return fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Move,.2*te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.2*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.4*ne)),fe}),go.Shape.defineFigureGenerator("Globe",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(.5*te,0,!1);return fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Move,0,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,.75*te,0,te,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,.75*ne,.75*te,ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,.25*te,ne,0,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,.25*ne,.25*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,.15*te,.25*ne,.15*te,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,.85*te,.75*ne,.85*te,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.1675*te,.15*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8325*te,.15*ne,.35*te,.3*ne,.65*te,.3*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.1675*te,.85*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8325*te,.85*ne,.35*te,.7*ne,.65*te,.7*ne)),fe}),go.Shape.defineFigureGenerator("Wave",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(0,.25*ne,!1);return fe.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,.25*ne,.1*te,0,.2*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.7*te,.25*ne,.425*te,.5*ne,.575*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,te,.25*ne,.8*te,0,.9*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Move,0,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,.75*ne,.1*te,.5*ne,.2*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.7*te,.75*ne,.425*te,ne,.575*te,ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,te,.75*ne,.8*te,.5*ne,.9*te,.5*ne)),fe}),go.Shape.defineFigureGenerator("Operator",function(Ue,te,ne){var fe=new go.Geometry,se=.3,pe=Ve*.3,Se=.5,we=.7,De=new go.PathFigure((Se-se)*te,we*ne,!0);fe.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(we-se)*ne,(Se-se)*te,(we-pe)*ne,(Se-pe)*te,(we-se)*ne)),De.add(new go.PathSegment(go.PathSegment.Bezier,(Se+se)*te,we*ne,(Se+pe)*te,(we-se)*ne,(Se+se)*te,(we-pe)*ne)),De.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(we+se)*ne,(Se+se)*te,(we+pe)*ne,(Se+pe)*te,(we+se)*ne)),De.add(new go.PathSegment(go.PathSegment.Bezier,(Se-se)*te,we*ne,(Se-pe)*te,(we+se)*ne,(Se-se)*te,(we+pe)*ne));var Re=new go.PathFigure(0,.7*ne,!1);return fe.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,te,.7*ne,0,0,te,0)),fe}),go.Shape.defineFigureGenerator("TripleFanBlades",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(.5*te,0,!0);return fe.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.65*ne,.65*te,.3*ne,.65*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,.35*te,.5*ne,.35*te,.3*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,.65*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,ne,.3*te,.6*ne,.1*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.65*ne,.2*te,ne,.35*te,.95*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,.65*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,te,ne,.7*te,.6*ne,.9*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.65*ne,.8*te,ne,.65*te,.95*ne)),fe}),go.Shape.defineFigureGenerator("CentrifugalPump",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(te,0,!0);return fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,0,.075*ne,0,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,ne,0,ne,.4*te,ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.4*ne,.8*te,ne,.85*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),fe}),go.Shape.defineFigureGenerator("Battery",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(0,ne,!0);fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Move,.4*te,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,.1*ne));var pe=new go.PathFigure(0,.6*ne,!1);return fe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Move,0,.4*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,te,.4*ne)),fe}),go.Shape.defineFigureGenerator("Delete",function(Ue,te,ne){var fe=new go.Geometry,se=.5,pe=Ve*.5,Se=.5,we=.5,De=new go.PathFigure((Se-se)*te,we*ne,!0);fe.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(we-se)*ne,(Se-se)*te,(we-pe)*ne,(Se-pe)*te,(we-se)*ne)),De.add(new go.PathSegment(go.PathSegment.Bezier,(Se+se)*te,we*ne,(Se+pe)*te,(we-se)*ne,(Se+se)*te,(we-pe)*ne)),De.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(we+se)*ne,(Se+se)*te,(we+pe)*ne,(Se+pe)*te,(we+se)*ne)),De.add(new go.PathSegment(go.PathSegment.Bezier,(Se-se)*te,we*ne,(Se-pe)*te,(we+se)*ne,(Se-se)*te,(we+pe)*ne));var Re=new go.PathFigure(.15*te,.5*ne,!1);return fe.add(Re),Re.add(new go.PathSegment(go.PathSegment.Line,.85*te,.5*ne)),fe}),go.Shape.defineFigureGenerator("Flag",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(0,.1*ne,!0);return fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Move,0,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.1*ne,.15*te,0,.35*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,te,.1*ne,.65*te,.2*ne,.85*te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.5*ne,.85*te,.6*ne,.65*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,.35*te,.4*ne,.15*te,.4*ne).close()),fe}),go.Shape.defineFigureGenerator("Help",function(Ue,te,ne){var fe=new go.Geometry,se=.5,pe=Ve*.5,Se=.5,we=.5,De=new go.PathFigure((Se-se)*te,we*ne,!1);fe.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(we-se)*ne,(Se-se)*te,(we-pe)*ne,(Se-pe)*te,(we-se)*ne)),De.add(new go.PathSegment(go.PathSegment.Bezier,(Se+se)*te,we*ne,(Se+pe)*te,(we-se)*ne,(Se+se)*te,(we-pe)*ne)),De.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(we+se)*ne,(Se+se)*te,(we+pe)*ne,(Se+pe)*te,(we+se)*ne)),De.add(new go.PathSegment(go.PathSegment.Bezier,(Se-se)*te,we*ne,(Se-pe)*te,(we+se)*ne,(Se-se)*te,(we+pe)*ne).close()),se=.05,pe=Ve*.05,Se=.5,we=.8;var Re=new go.PathFigure((Se-se)*te,we*ne,!1);return fe.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(we-se)*ne,(Se-se)*te,(we-pe)*ne,(Se-pe)*te,(we-se)*ne)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(Se+se)*te,we*ne,(Se+pe)*te,(we-se)*ne,(Se+se)*te,(we-pe)*ne)),Re.add(new go.PathSegment(go.PathSegment.Bezier,Se*te,(we+se)*ne,(Se+se)*te,(we+pe)*ne,(Se+pe)*te,(we+se)*ne)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(Se-se)*te,we*ne,(Se-pe)*te,(we+se)*ne,(Se-se)*te,(we+pe)*ne).close()),Re.add(new go.PathSegment(go.PathSegment.Move,.5*te,.7*ne)),Re.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne)),Re.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.2*ne,.75*te,.475*ne,.75*te,.225*ne)),Re.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,.35*ne,.4*te,.2*ne,.3*te,.25*ne)),fe}),go.Shape.defineFigureGenerator("Location",function(Ue,te,ne){return new go.Geometry().add(new go.PathFigure(.5*te,ne,!0).add(new go.PathSegment(go.PathSegment.Line,.75*te,.5*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,.975*te,.025*ne,.5*te,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*te,.5*ne,.5*te,0,.025*te,.025*ne).close()).add(new go.PathSegment(go.PathSegment.Move,.5*te,.2*ne)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*te,.3*ne,.1*te,.1*ne).close()))}),go.Shape.defineFigureGenerator("Lock",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(0,.5*ne,!0);fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne));var pe=new go.PathFigure(.2*te,.5*ne,!1);return fe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Move,.2*te,.5*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*te,.3*ne)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.3*ne,.25*te,0,.75*te,0)),pe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.5*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.3*ne)),fe}),go.Shape.defineFigureGenerator("Unlocked",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(0,.5*ne,!0);fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne));var pe=new go.PathFigure(.2*te,.5*ne,!1);return fe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Move,.2*te,.5*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*te,.3*ne)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.3*ne,.25*te,0,.75*te,0)),pe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.35*ne)),fe}),go.Shape.defineFigureGenerator("Gear",function(Ue,te,ne){return new go.Geometry().add(new go.PathFigure(.9375*te,.56246875*ne,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*te,.4375*ne)).add(new go.PathSegment(go.PathSegment.Line,.80621875*te,.4375*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.763*te,.3316875*ne,.79840625*te,.39915625*ne,.7834375*te,.3635*ne)).add(new go.PathSegment(go.PathSegment.Line,.8566875*te,.23796875*ne)).add(new go.PathSegment(go.PathSegment.Line,.76825*te,.14959375*ne)).add(new go.PathSegment(go.PathSegment.Line,.67596875*te,.24184375*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*te,.19378125*ne,.64228125*te,.2188125*ne,.603875*te,.2021875*ne)).add(new go.PathSegment(go.PathSegment.Line,.5625*te,.0625*ne)).add(new go.PathSegment(go.PathSegment.Line,.4375*te,.0625*ne)).add(new go.PathSegment(go.PathSegment.Line,.4375*te,.19378125*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*te,.239375*ne,.39759375*te,.20190625*ne,.36053125*te,.2176875*ne)).add(new go.PathSegment(go.PathSegment.Line,.2379375*te,.14959375*ne)).add(new go.PathSegment(go.PathSegment.Line,.14953125*te,.2379375*ne)).add(new go.PathSegment(go.PathSegment.Line,.23934375*te,.3278125*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*te,.4375*ne,.21765625*te,.36059375*ne,.201875*te,.397625*ne)).add(new go.PathSegment(go.PathSegment.Line,.0625*te,.4375*ne)).add(new go.PathSegment(go.PathSegment.Line,.0625*te,.5625*ne)).add(new go.PathSegment(go.PathSegment.Line,.1938125*te,.5625*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*te,.67596875*ne,.20221875*te,.603875*ne,.21884375*te,.64228125*ne)).add(new go.PathSegment(go.PathSegment.Line,.1495625*te,.76825*ne)).add(new go.PathSegment(go.PathSegment.Line,.238*te,.8566875*ne)).add(new go.PathSegment(go.PathSegment.Line,.3316875*te,.76296875*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*te,.80621875*ne,.36353125*te,.78340625*ne,.3991875*te,.79840625*ne)).add(new go.PathSegment(go.PathSegment.Line,.43753125*te,.9375*ne)).add(new go.PathSegment(go.PathSegment.Line,.5625*te,.9375*ne)).add(new go.PathSegment(go.PathSegment.Line,.5625*te,.80621875*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*te,.760625*ne,.602375*te,.79809375*ne,.63946875*te,.78234375*ne)).add(new go.PathSegment(go.PathSegment.Line,.76828125*te,.8566875*ne)).add(new go.PathSegment(go.PathSegment.Line,.85671875*te,.76825*ne)).add(new go.PathSegment(go.PathSegment.Line,.76065625*te,.67221875*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*te,.56246875*ne,.78234375*te,.63940625*ne,.798125*te,.602375*ne)).add(new go.PathSegment(go.PathSegment.Line,.9375*te,.56246875*ne).close()).add(new go.PathSegment(go.PathSegment.Move,.5*te,.6*ne)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*te,.5*ne,.1*te,.1*ne).close()))}),go.Shape.defineFigureGenerator("Hand",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(0,.5*ne,!0);return fe.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,.3*ne,0,.375*ne,.05*te,.325*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.45*te,.075*ne,.3*te,.225*ne,.4*te,.175*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.525*te,.075*ne,.46*te,.05*ne,.525*te,.05*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,.4*ne,.525*te,.275*ne,.475*te,.325*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,.55*ne,te,.4*ne,te,.55*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.425*te,.55*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,.55*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.6*te,.7*ne,.675*te,.55*ne,.675*te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.575*te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.575*te,.85*ne,.65*te,.7*ne,.65*te,.85*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,.85*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.525*te,.85*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.535*te,ne,.61*te,.85*ne,.61*te,ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ne,.435*te,ne,0,ne).close()),fe}),go.Shape.defineFigureGenerator("Map",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(0,.2*ne,!0);return fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.25*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.25*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),se.add(new go.PathSegment(go.PathSegment.Move,.25*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.25*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Move,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,.8*ne)),fe}),go.Shape.defineFigureGenerator("Eject",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(0,ne,!0);fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne*.7)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne*.7).close());var pe=new go.PathFigure(0,ne*.6,!0);return fe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,.6*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.5*te,0).close()),fe}),go.Shape.defineFigureGenerator("Pencil",function(Ue,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*te,.1*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.9*te,ne)).add(new go.PathSegment(go.PathSegment.Line,.1*te,.2*ne).close()))}),go.Shape.defineFigureGenerator("Building",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(te*1,ne*1,!1);fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne*.85)),se.add(new go.PathSegment(go.PathSegment.Line,.046*te,ne*.85)),se.add(new go.PathSegment(go.PathSegment.Line,.046*te,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne*.3)),se.add(new go.PathSegment(go.PathSegment.Line,.046*te,ne*.3)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*te,ne*.3)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne*.3)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*te,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*te,ne*.85)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne*.85).close());var pe=new go.PathFigure(.126*te,.85*ne,!1);fe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.126*te,.45*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.322*te,.45*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.322*te,.85*ne).close());var Se=new go.PathFigure(.402*te,.85*ne,!1);fe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.402*te,.45*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.598*te,.45*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.598*te,.85*ne).close());var we=new go.PathFigure(.678*te,.85*ne,!1);fe.add(we),we.add(new go.PathSegment(go.PathSegment.Line,.678*te,.45*ne)),we.add(new go.PathSegment(go.PathSegment.Line,.874*te,.45*ne)),we.add(new go.PathSegment(go.PathSegment.Line,.874*te,.85*ne).close());var De=new go.PathFigure(.5*te,.1*ne,!1);return fe.add(De),De.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*te,.3*ne)),De.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*te,.3*ne).close()),fe}),go.Shape.defineFigureGenerator("Staircase",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(0,ne*1,!0);return fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.2,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.2,ne*.8)),se.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.8)),se.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.6)),se.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*.6)),se.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*.4)),se.add(new go.PathSegment(go.PathSegment.Line,te*.8,ne*.4)),se.add(new go.PathSegment(go.PathSegment.Line,te*.8,ne*.2)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.2)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.15)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,ne*.15)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,ne*.35)),se.add(new go.PathSegment(go.PathSegment.Line,te*.55,ne*.35)),se.add(new go.PathSegment(go.PathSegment.Line,te*.55,ne*.55)),se.add(new go.PathSegment(go.PathSegment.Line,te*.35,ne*.55)),se.add(new go.PathSegment(go.PathSegment.Line,te*.35,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.15,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.15,ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne*.95).close()),fe}),go.Shape.defineFigureGenerator("5Bars",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(0,ne*1,!0);fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.184,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.184,ne*(1-.184)).close());var pe=new go.PathFigure(te*.204,ne,!0);fe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te*.204,ne*(1-.184))),pe.add(new go.PathSegment(go.PathSegment.Line,te*.388,ne*(1-.184*2))),pe.add(new go.PathSegment(go.PathSegment.Line,te*.388,ne*1).close());var Se=new go.PathFigure(te*.408,ne,!0);fe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,te*.408,ne*(1-.184*2))),Se.add(new go.PathSegment(go.PathSegment.Line,te*.592,ne*(1-.184*3))),Se.add(new go.PathSegment(go.PathSegment.Line,te*.592,ne*1).close());var we=new go.PathFigure(te*.612,ne,!0);fe.add(we),we.add(new go.PathSegment(go.PathSegment.Line,te*.612,ne*(1-.184*3))),we.add(new go.PathSegment(go.PathSegment.Line,te*.796,ne*(1-.184*4))),we.add(new go.PathSegment(go.PathSegment.Line,te*.796,ne*1).close());var De=new go.PathFigure(te*.816,ne,!0);return fe.add(De),De.add(new go.PathSegment(go.PathSegment.Line,te*.816,ne*(1-.184*4))),De.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*(1-.184*5))),De.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1).close()),fe}),go.Shape.defineFigureGenerator("PC",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(0,0,!0);fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,0).close());var pe=new go.PathFigure(te*.055,.07*ne,!0);fe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.07)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.1)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.055,ne*.1).close());var Se=new go.PathFigure(te*.055,.13*ne,!0);fe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.13)),Se.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.16)),Se.add(new go.PathSegment(go.PathSegment.Line,te*.055,ne*.16).close());var we=new go.PathFigure(te*.055,.18*ne,!0);fe.add(we),we.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.18)),we.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.21)),we.add(new go.PathSegment(go.PathSegment.Line,te*.055,ne*.21).close());var De=new go.PathFigure(te*1,0,!0);return fe.add(De),De.add(new go.PathSegment(go.PathSegment.Line,te*.4,0)),De.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.65)),De.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.65).close()),fe}),go.Shape.defineFigureGenerator("Plane",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(.55*te,ne,!0);return fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.475*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.35*te,.525*ne,0,.4*ne,.225*te,.45*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,.475*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.15*te,.35*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,.325*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,.325*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.85*te,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,.2*ne,.975*te,0,te,.08*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.7*te,.45*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,.95*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.55*te,ne).close()),fe}),go.Shape.defineFigureGenerator("Key",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(te*1,ne*.5,!0);return fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.9,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,.35*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.45,.35*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.15,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.35*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.65*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.15,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.45,.65*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,.65*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.6,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.65,.55*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.7,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,.55*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.8,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.85,.575*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.9,.6*ne).close()),se.add(new go.PathSegment(go.PathSegment.Move,.17*te,.425*ne)),se.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*te,.5*ne,.075*te,.075*ne).close()),fe}),go.Shape.defineFigureGenerator("FilmTape",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(0,0,!1);fe.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,270,180,te*0,te*.3,te*.055)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.08,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.08,ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*1),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*1),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*2),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*2),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*3),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*3),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*4),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*4),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*5),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*5),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*6),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*6),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*7),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*7),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*8),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*8),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*9),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*9),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*10),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*10),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*11),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*11),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*12),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*12),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*13),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*13),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*14),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*14),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*15),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*15),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1));var pe=new go.PathFigure(0,0,!1);fe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*0)),pe.add(new go.PathSegment(go.PathSegment.Arc,270,-180,te*1,te*.3,te*.055)),pe.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1));var Se=new go.PathFigure(te*.11,ne*.1,!1);fe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*1+.028*0),ne*.1)),Se.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*1+.028*0),ne*.8)),Se.add(new go.PathSegment(go.PathSegment.Line,te*.11,ne*.8).close());var we=new go.PathFigure(te*(.11+.24133333*1+.028*1),ne*.1,!1);fe.add(we),we.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*2+.028*1),ne*.1)),we.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*2+.028*1),ne*.8)),we.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*1+.028*1),ne*.8).close());var De=new go.PathFigure(te*(.11+.24133333*2+.028*2),ne*.1,!1);return fe.add(De),De.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*3+.028*2),ne*.1)),De.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*3+.028*2),ne*.8)),De.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*2+.028*2),ne*.8).close()),fe}),go.Shape.defineFigureGenerator("FloppyDisk",function(Ue,te,ne){var fe=new go.Geometry,se=8,pe=se*Ve,Se=new go.PathFigure(se,0,!1);fe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,te*.86,0)),Se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.14)),Se.add(new go.PathSegment(go.PathSegment.Line,te,ne-se)),Se.add(new go.PathSegment(go.PathSegment.Bezier,te-se,ne,te,ne-pe,te-pe,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,se,ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,ne-se,pe,ne,0,ne-pe)),Se.add(new go.PathSegment(go.PathSegment.Line,0,se)),Se.add(new go.PathSegment(go.PathSegment.Bezier,se,0,0,pe,pe,0).close());var we=new go.PathFigure(te*.83,0,!1);fe.add(we),we.add(new go.PathSegment(go.PathSegment.Line,te*.83,ne*.3)),we.add(new go.PathSegment(go.PathSegment.Line,te*.17,ne*.3)),we.add(new go.PathSegment(go.PathSegment.Line,te*.17,ne*0).close());var De=new go.PathFigure(te*.83,ne*1,!1);fe.add(De),De.add(new go.PathSegment(go.PathSegment.Line,te*.83,ne*.5)),De.add(new go.PathSegment(go.PathSegment.Line,te*.17,ne*.5)),De.add(new go.PathSegment(go.PathSegment.Line,te*.17,ne*1).close());var Re=new go.PathFigure(te*.78,ne*.05,!1);return fe.add(Re),Re.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*.05)),Re.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*.25)),Re.add(new go.PathSegment(go.PathSegment.Line,te*.78,ne*.25).close()),fe}),go.Shape.defineFigureGenerator("SpeechBubble",function(Ue,te,ne){var fe=Ue?Ue.parameter1:NaN;(isNaN(fe)||fe<0)&&(fe=15),fe=Math.min(fe,te/3),fe=Math.min(fe,ne/3);var se=fe*Ve,pe=ne*.8,Se=new go.Geometry,we=new go.PathFigure(fe,0,!0);return Se.add(we),we.add(new go.PathSegment(go.PathSegment.Line,te-fe,0)),we.add(new go.PathSegment(go.PathSegment.Bezier,te,fe,te-se,0,te,se)),we.add(new go.PathSegment(go.PathSegment.Line,te,pe-fe)),we.add(new go.PathSegment(go.PathSegment.Bezier,te-fe,pe,te,pe-se,te-se,pe)),we.add(new go.PathSegment(go.PathSegment.Line,te*.7,pe)),we.add(new go.PathSegment(go.PathSegment.Line,te*.7,ne)),we.add(new go.PathSegment(go.PathSegment.Line,te*.55,pe)),we.add(new go.PathSegment(go.PathSegment.Line,fe,pe)),we.add(new go.PathSegment(go.PathSegment.Bezier,0,pe-fe,se,pe,0,pe-se)),we.add(new go.PathSegment(go.PathSegment.Line,0,fe)),we.add(new go.PathSegment(go.PathSegment.Bezier,fe,0,0,se,se,0).close()),se>1?(Se.spot1=new go.Spot(0,0,se,se),Se.spot2=new go.Spot(1,.8,-se,-se)):(Se.spot1=go.Spot.TopLeft,Se.spot2=new go.Spot(1,.8)),Se}),go.Shape.defineFigureGenerator("Repeat",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(te*0,ne*.45,!0);fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.25,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,ne*.9)),se.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*.9)),se.add(new go.PathSegment(go.PathSegment.Line,te*.65,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.2,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.2,ne*.45).close());var pe=new go.PathFigure(te*1,ne*.55,!0);return fe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te*.75,ne*1)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*.55)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.7,ne*.55)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.7,ne*.1)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.1)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.35,ne*0)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.8,ne*0)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.8,ne*.55).close()),fe}),go.Shape.defineFigureGenerator("Windows",function(Ue,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close()).add(new go.PathSegment(go.PathSegment.Move,.4*te,.4*ne)).add(new go.PathSegment(go.PathSegment.Line,.4*te,.8*ne)).add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ne)).add(new go.PathSegment(go.PathSegment.Line,.9*te,.4*ne).close()).add(new go.PathSegment(go.PathSegment.Move,.2*te,.1*ne)).add(new go.PathSegment(go.PathSegment.Line,.2*te,.6*ne)).add(new go.PathSegment(go.PathSegment.Line,.7*te,.6*ne)).add(new go.PathSegment(go.PathSegment.Line,.7*te,.1*ne).close()).add(new go.PathSegment(go.PathSegment.Move,.1*te,.6*ne)).add(new go.PathSegment(go.PathSegment.Line,.1*te,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.5*te,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ne).close()))}),go.Shape.defineFigureGenerator("Terminal",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(te*0,ne*.1,!1);fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.1)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.9)),se.add(new go.PathSegment(go.PathSegment.Line,te*0,ne*.9).close());var pe=new go.PathFigure(te*.1,ne*.2,!0);fe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te*.1,ne*.25)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.22,ne*.285)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.1,ne*.32)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.1,ne*.37)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.275,ne*.32)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.275,ne*.25).close());var Se=new go.PathFigure(te*.28,ne*.37,!0);return fe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,te*.45,ne*.37)),Se.add(new go.PathSegment(go.PathSegment.Line,te*.45,ne*.41)),Se.add(new go.PathSegment(go.PathSegment.Line,te*.28,ne*.41).close()),fe}),go.Shape.defineFigureGenerator("Beaker",function(Ue,te,ne){var fe=new go.Geometry,se=15,pe=se*Ve,Se=new go.PathFigure(te*.62,ne*.475,!0);return fe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,te,ne-se)),Se.add(new go.PathSegment(go.PathSegment.Bezier,te-se,ne,te,ne-pe,te-pe,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,se,ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,ne-se,pe,ne,0,ne-pe)),Se.add(new go.PathSegment(go.PathSegment.Line,te*.38,ne*.475)),Se.add(new go.PathSegment(go.PathSegment.Line,te*.38,ne*.03)),Se.add(new go.PathSegment(go.PathSegment.Line,te*.36,ne*0)),Se.add(new go.PathSegment(go.PathSegment.Line,te*.64,ne*0)),Se.add(new go.PathSegment(go.PathSegment.Line,te*.62,ne*.03).close()),pe>1?(fe.spot1=new go.Spot(0,0,pe,pe),fe.spot2=new go.Spot(1,1,-pe,-pe)):(fe.spot1=go.Spot.TopLeft,fe.spot2=go.Spot.BottomRight),fe}),go.Shape.defineFigureGenerator("Download",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(te*0,ne*1,!0);fe.add(se);var pe=.1/.3;se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*(1-pe))),se.add(new go.PathSegment(go.PathSegment.Line,te*.8,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*.755,ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*.93,ne*(1-pe))),se.add(new go.PathSegment(go.PathSegment.Line,te*.64,ne*(1-pe))),se.add(new go.PathSegment(go.PathSegment.Line,te*.61,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.39,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.36,ne*(1-pe))),se.add(new go.PathSegment(go.PathSegment.Line,te*.07,ne*(1-pe))),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.755),ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.8),ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*0,ne*(1-pe)).close());var Se=new go.PathFigure(te*.4,ne*0,!0);return fe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.44)),Se.add(new go.PathSegment(go.PathSegment.Line,te*.26,ne*.44)),Se.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*.66)),Se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.26),ne*.44)),Se.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*.44)),Se.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*0).close()),fe}),go.Shape.defineFigureGenerator("Bin",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(te*0,ne*1,!0);fe.add(se);var pe=.1/.3;return se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*(1-pe))),se.add(new go.PathSegment(go.PathSegment.Line,te*.8,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*.755,ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*.93,ne*(1-pe))),se.add(new go.PathSegment(go.PathSegment.Line,te*.64,ne*(1-pe))),se.add(new go.PathSegment(go.PathSegment.Line,te*.61,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.39,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.36,ne*(1-pe))),se.add(new go.PathSegment(go.PathSegment.Line,te*.07,ne*(1-pe))),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.755),ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.8),ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*0,ne*(1-pe)).close()),fe}),go.Shape.defineFigureGenerator("Upload",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(te*0,ne*1,!0);fe.add(se);var pe=.1/.3;se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*(1-pe))),se.add(new go.PathSegment(go.PathSegment.Line,te*.8,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*.755,ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*.93,ne*(1-pe))),se.add(new go.PathSegment(go.PathSegment.Line,te*.64,ne*(1-pe))),se.add(new go.PathSegment(go.PathSegment.Line,te*.61,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.39,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.36,ne*(1-pe))),se.add(new go.PathSegment(go.PathSegment.Line,te*.07,ne*(1-pe))),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.755),ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.8),ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*0,ne*(1-pe)).close());var Se=new go.PathFigure(te*.5,ne*0,!0);return fe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,te*.26,ne*.25)),Se.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.25)),Se.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.63)),Se.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*.63)),Se.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*.25)),Se.add(new go.PathSegment(go.PathSegment.Line,te*.74,ne*.25).close()),fe}),go.Shape.defineFigureGenerator("EmptyDrink",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(te*.15,ne*0,!1);return fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.85,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.7,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,ne*1).close()),fe}),go.Shape.defineFigureGenerator("Drink",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(te*.15,ne*0,!1);fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.85,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.7,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,ne*1).close());var pe=new go.PathFigure(te*.235,ne*.28,!0);return fe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te*.765,ne*.28)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.655,ne*.97)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.345,ne*.97).close()),fe}),go.Shape.defineFigureGenerator("4Arrows",function(Ue,te,ne){var fe=new go.Geometry,se=new go.PathFigure(te*.5,ne*0,!0);return fe.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.65,ne*.25)),se.add(new go.PathSegment(go.PathSegment.Line,te*.55,ne*.25)),se.add(new go.PathSegment(go.PathSegment.Line,te*.55,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,ne*.35)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.5)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,ne*.65)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,ne*.55)),se.add(new go.PathSegment(go.PathSegment.Line,te*.55,ne*.55)),se.add(new go.PathSegment(go.PathSegment.Line,te*.55,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.65,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.35,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.45,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.45,ne*.55)),se.add(new go.PathSegment(go.PathSegment.Line,te*.25,ne*.55)),se.add(new go.PathSegment(go.PathSegment.Line,te*.25,ne*.65)),se.add(new go.PathSegment(go.PathSegment.Line,te*0,ne*.5)),se.add(new go.PathSegment(go.PathSegment.Line,te*.25,ne*.35)),se.add(new go.PathSegment(go.PathSegment.Line,te*.25,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,te*.45,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,te*.45,ne*.25)),se.add(new go.PathSegment(go.PathSegment.Line,te*.35,ne*.25).close()),fe}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},91e3:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var ze={},be="5.0",de={},le=null,Me=!1,Ie=!1,Pe=null,Ge=!1,Oe=null,Ve=null,ot=0;ot<arguments.length;ot++){var Je=arguments[ot];if(Je!==null)switch(typeof Je){case"number":be=Je.toFixed(1);break;case"string":Je.match(new RegExp("^[0-9]\\.[0-9]+$"))?be=Je:Pe=Je;break;case"object":typeof Je.is3D!="undefined"?le=Je:de=Je;break;case"boolean":Me=Je,Ie=!0;break}}le===null&&(le={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},de.material_id!==void 0&&!Ie&&(Me=!0)),Pe!==null&&de.id===void 0&&(de.id=Pe);var Xe="",vt="",st=!1,_t=null,Ue=null,te=null,ne=!1,fe=null,se=null,pe=null,Se=null,we=null;de.height!==void 0&&(de.height=Math.round(de.height)),de.width!==void 0&&(de.width=Math.round(de.width));var De=function(Ct){return parseFloat(Ct)>4?parseFloat(Ct):5};ze.setHTML5Codebase=function(Ct,un){Ve=Ct,it(Ct,un)},ze.setJavaCodebase=ze.setJavaCodebaseVersion=ze.isCompiledInstalled=ze.setPreCompiledScriptPath=ze.setPreCompiledResourcePath=function(){},ze.setHTML5CodebaseVersion=function(Ct,un){var on=parseFloat(Ct);if(on!==NaN&&on<5){console.log("The GeoGebra HTML5 codebase version "+on+" is deprecated. Using version latest instead.");return}Oe=Ct,ut(Ct,un)},ze.getHTML5CodebaseVersion=function(){return Ue},ze.getParameters=function(){return de},ze.setFontsCSSURL=function(Ct){Se=Ct},ze.setGiacJSURL=function(Ct){},ze.setJNLPFile=function(Ct){Xe=Ct},ze.setJNLPBaseDir=function(Ct){},ze.inject=function(){function Ct(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var un="auto",on=de.id,Bn,Nn=!1,si=0;si<arguments.length;si++){var Pt=arguments[si];typeof Pt=="string"?(Pt=Pt.toLowerCase(),Pt.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?un=Pt:on=arguments[si]):typeof Pt=="boolean"?Nn=Pt:Pt instanceof HTMLElement&&(Bn=Pt)}qn();function qn(){if(!Ge){setTimeout(qn,200);return}un=gn(un);var Ei=Bn||document.getElementById(on);if(!Ei){console.log("possibly bug on ajax loading? ");return}if(ze.removeExistingApplet(Ei,!1),de.width===void 0&&Ei.clientWidth&&(de.width=Ei.clientWidth),de.height===void 0&&Ei.clientHeight&&(de.height=Ei.clientHeight),!(de.width&&de.height)&&un==="html5"&&(delete de.width,delete de.height),_t=un,un==="screenshot")Mt(Ei,de);else{var $e=!1;de.hasOwnProperty("playButton")&&de.playButton||de.hasOwnProperty("clickToLoad")&&de.clickToLoad?$e=!0:de.hasOwnProperty("playButtonAutoDecide")&&de.playButtonAutoDecide&&($e=(!Re()||Ct())&&Ze()),$e?(_t="screenshot",bn(Ei,de,Nn,un)):wt(Ei,de,Nn)}}};function Re(){try{return window.self!==window.top}catch(Ct){return!0}}function Ze(){return de.hasOwnProperty("screenshotGenerator")&&de.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}ze.getViews=function(){return le},ze.isJavaInstalled=function(){return!1};var nt=function(Ct){var un=function(si){var Pt=JSON.parse(si),qn=function(Fe){return Fe.type=="G"||Fe.type=="E"},Ei=Pt.elements?Pt.elements.filter(qn)[0]:Pt;if(!Ei||!Ei.url){on();return}de.fileName=Ei.url,rt(Ei.settings||{}),le.is3D=!0;var $e="https://www.geogebra.org/images/";ze.setPreviewImage(fe||Ei.previewUrl,$e+"GeoGebra_loading.png",$e+"applet_play.png"),Ct()},on=function(){de.onError&&de.onError(),an("Error: Fetching material (id "+de.material_id+") failed.",de)},Bn=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Nn="/materials/"+de.material_id+"?scope=basic";ft("https://"+Bn+"/api/proxy.php?path="+encodeURIComponent(Nn),un,on)};function rt(Ct){var un=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(on){Ct[on]=!!Ct[on]}),un.forEach(function(on){de[on]===void 0&&Ct[on]!==void 0&&(de[on]=Ct[on])}),de.showToolBarHelp===void 0&&(de.showToolBarHelp=de.showToolBar)}function ft(Ct,un,on){var Bn=new XMLHttpRequest;Bn.open("GET",Ct),Bn.onload=function(){un(Bn.responseText)},Bn.onerror=on,Bn.send()}ze.isHTML5Installed=function(){return!0},ze.getLoadedAppletType=function(){return _t},ze.setPreviewImage=function(Ct,un,on){fe=Ct,se=un,pe=on},ze.removeExistingApplet=function(Ct,un){var on;typeof Ct=="string"&&(Ct=document.getElementById(Ct)),_t=null;var Bn=null;for(on=0;on<Ct.childNodes.length;on++){var Nn=Ct.childNodes[on],si=Nn.className;si==="applet_screenshot"?un?(Nn.style.display="block",_t="screenshot"):Nn.style.display="none":si!=="applet_scaler prerender"&&(Ct.removeChild(Nn),Bn=si&&si.indexOf("appletParameters")!=-1?Nn.id:null,on--)}var Pt=de.id!==void 0?de.id:Bn,qn=window[Pt];qn&&typeof qn.getBase64=="function"&&(qn.remove(),window[Pt]=null)},ze.refreshHitPoints=function(){if(De(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Ct=ze.getAppletObject();return Ct&&typeof Ct.recalculateEnvironments=="function"?(Ct.recalculateEnvironments(),!0):!1},ze.startAnimation=function(){var Ct=ze.getAppletObject();return Ct&&typeof Ct.startAnimation=="function"?(Ct.startAnimation(),!0):!1},ze.stopAnimation=function(){var Ct=ze.getAppletObject();return Ct&&typeof Ct.stopAnimation=="function"?(Ct.stopAnimation(),!0):!1},ze.getAppletObject=function(){var Ct=de.id!==void 0?de.id:"ggbApplet";return window[Ct]},ze.resize=function(){};var xt=function(Ct,un,on){var Bn=document.createElement("param");Bn.setAttribute("name",un),Bn.setAttribute("value",on),Ct.appendChild(Bn)},at=function(Ct){return Ct&&Ct!=="false"},wt=function(Ct,un,on){De(Ue)<=4.2&&(on=!0);var Bn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Ue||ggbHTML5LoadedCodebaseIsWebSimple&&!ne)&&(Bn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Nn=document.createElement("div");Nn.classList.add("appletParameters","notranslate");var si=un.width,Pt=un.height;if(un.disableAutoScale=un.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():un.disableAutoScale,un.width!==void 0)if(De(Ue)<=4.4)at(un.showToolBar)&&(un.height-=7),at(un.showAlgebraInput)&&(un.height-=37),un.width<605&&at(un.showToolBar)&&(un.width=605,si=605);else{var qn=100;(at(un.showToolBar)||at(un.showMenuBar))&&(un.hasOwnProperty("customToolBar")&&(un.customToolbar=un.customToolBar),qn=at(un.showMenuBar)?245:155),si<qn&&(un.width=qn,si=qn)}Nn.style.border="none",Nn.style.display="inline-block";for(var Ei in un)un.hasOwnProperty(Ei)&&Ei!=="appletOnLoad"&&Nn.setAttribute("data-param-"+Ei,un[Ei]);Se&&Nn.setAttribute("data-param-fontscssurl",Se),ze.resize=function(){GGBAppletUtils.responsiveResize(Ct,un)},window.addEventListener("resize",function(vn){ze.resize()});var $e=typeof un.appletOnLoad=="function"?un.appletOnLoad:function(){};if(!on&&un.width!==void 0){un.hasOwnProperty("showSplash")||Nn.setAttribute("data-param-showSplash","false");var Fe=Ct.querySelector(".applet_scaler.prerender"),Ne=Fe!==null;if(Ne)var Qe=Fe.querySelector(".ggb_preview");else{var Qe=fn(si,Pt,un.borderColor,!1);Fe=document.createElement("div"),Fe.className="applet_scaler",Fe.style.position="relative",Fe.style.display="block",Fe.style.width=si+"px",Fe.style.height=Pt+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Fe,"66%"),De(Ue)>=5?(un.appletOnLoad=function(vn){var cn=Ct.querySelector(".ggb_preview");cn&&cn.parentNode.removeChild(cn),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Fe),window.GGBT_wsf_view&&$(window).trigger("resize"),$e(vn)},Ne||Fe.appendChild(Qe)):Nn.appendChild(Qe),Fe.appendChild(Nn),Ne||Ct.appendChild(Fe),setTimeout(function(){ze.resize()},1)}else{var Ke=document.createElement("div");Ke.className="applet_scaler",Ke.style.position="relative",Ke.style.display="block",Ke.appendChild(Nn),Ct.appendChild(Ke),un.appletOnLoad=function(vn){ze.resize(),$e(vn)}}function Le(vn,cn){cn&&typeof cn.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(vn,cn.appletOnLoad):renderGGBElement(vn),an("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",cn)}function At(vn,cn){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:vn,params:cn}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(wn){Le(wn.article,wn.params)}),html5AppletsToProcess=null)},De(Ue)<5&&(vn.className+=" geogebraweb")):Le(vn,cn)}if(Bn){scriptLoadStarted=!0;for(var Lt=0;Lt<Nn.childNodes.length;Lt++){var tn=Nn.childNodes[Lt].tagName;tn==="TABLE"&&(Nn.removeChild(Nn.childNodes[Lt]),Lt--)}if(ggbHTML5LoadedScript!==null){var $t=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');$t!=null&&$t.parentNode.removeChild($t)}var Ht=document.createElement("script"),rn=function(){At(Nn,un)};Ht.src=vt+te,ggbHTML5LoadedCodebaseIsWebSimple=ne,ggbHTML5LoadedCodebaseVersion=Ue,ggbHTML5LoadedScript=Ht.src,an("GeoGebra HTML5 codebase loaded: '"+vt+"'.",un),!Ve&&(!Oe||Oe=="5.0")?(ne?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),rn()):vt.requirejs?__webpack_require__.e(245).then(function(){var vn=[__webpack_require__(40245)];rn.apply(null,vn)}.bind(this)).catch(__webpack_require__.oe):(Ht.onload=rn,Ct.appendChild(Ht))}else At(Nn,un);un.height=Pt,un.width=si},Mt=function(Ct,un,on){var Bn=fn(un.width,un.height,un.borderColor,on),Nn=document.createElement("div");Nn.style.position="relative",Nn.style.display="block",Nn.style.width=un.width+"px",Nn.style.height=un.height+"px",Nn.className="applet_screenshot applet_scaler"+(on?" applet_screenshot_play":""),Nn.appendChild(Bn);var si=GGBAppletUtils.getScale(un,Ct,on);on?(Ct.appendChild(pn()),window.GGBT_wsf_view||(Ct.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Nn,"66%"),Ct.appendChild(Nn),si!==1&&!isNaN(si)&&(GGBAppletUtils.scaleElement(Nn,si),Nn.style.width=un.width+"px",Nn.style.height=un.height+"px",Nn.parentNode.style.width=un.width*si+"px",Nn.parentNode.style.height=un.height*si+"px"),ze.resize=function(){Xt(Ct,Bn,Nn,on)},window.addEventListener("resize",function(Pt){ze.resize()}),ze.resize()};function Xt(Ct,un,on,Bn){if(Ct.contains(un)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ct.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Ct)}var Nn=GGBAppletUtils.getScale(de,Ct,Bn);on.parentNode!==null&&(!isNaN(Nn)&&Nn!==1?(GGBAppletUtils.scaleElement(on,Nn),on.parentNode.style.width=de.width*Nn+"px",on.parentNode.style.height=de.height*Nn+"px"):(GGBAppletUtils.scaleElement(on,1),on.parentNode.style.width=de.width+"px",on.parentNode.style.height=de.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Ct),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}ze.onExitFullscreen=function(Ct,un){un.appendChild(Ct)};var bn=function(Ct,un,on,Bn){Mt(Ct,un,!0);for(var Nn=function(){var qn=[];for(Pt=0;Pt<Ct.childNodes.length;Pt++)qn.push(Ct.childNodes[Pt]);if(window.GGBT_wsf_view){var Ei=window.GGBT_wsf_view.renderFullScreen(Ct,un.id),$e=document.getElementById("fullscreencontainer"),Fe=jQuery(Ct).find(".fullscreencontent");Fe.length>0?(Ei.remove(),Fe.attr("id","fullscreencontent").show(),jQuery($e).append(Fe),window.dispatchEvent(new Event("resize"))):wt(Ei,un,!1),window.GGBT_wsf_view.launchFullScreen($e)}else _t=Bn,wt(Ct,un,!1);if(!window.GGBT_wsf_view)for(Pt=0;Pt<qn.length;Pt++)Ct.removeChild(qn[Pt])},si=Ct.getElementsByClassName("ggb_preview_play"),Pt=0;Pt<si.length;Pt++)si[Pt].addEventListener("click",Nn,!1),si[Pt].addEventListener("ontouchstart",Nn,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Ct),Ze()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},pn=function(){var Ct=document.createElement("div");if(Ct.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var un='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',on=document.createElement("style");on.styleSheet?on.styleSheet.cssText=un:on.appendChild(document.createTextNode(un)),document.getElementsByTagName("head")[0].appendChild(on)}return Ct},fn=function(Ct,un,on,Bn){var Nn=document.createElement("div");Nn.className="ggb_preview",Nn.style.position="absolute",Nn.style.zIndex="90",Nn.style.width=Ct-2+"px",Nn.style.height=un-2+"px",Nn.style.top="0px",Nn.style.left="0px",Nn.style.overflow="hidden",Nn.style.backgroundColor="white";var si="lightgrey";on!==void 0&&(on==="none"?si="transparent":si=on),Nn.style.border="1px solid "+si;var Pt=document.createElement("img");if(Pt.style.position="relative",Pt.style.zIndex="1000",Pt.style.top="-1px",Pt.style.left="-1px",fe!==null&&Pt.setAttribute("src",fe),Pt.style.opacity=.7,se!==null){var qn,Ei,$e;if(!Bn){qn=document.createElement("img"),qn.style.position="absolute",qn.style.zIndex="1001",qn.style.opacity=1,Pt.style.opacity=.3,Ei=360,Ei>Ct/4*3&&(Ei=Ct/4*3),$e=Ei/5.8,qn.setAttribute("src",se),qn.setAttribute("width",Ei),qn.setAttribute("height",$e);var Fe=(Ct-Ei)/2,Ne=(un-$e)/2;qn.style.left=Fe+"px",qn.style.top=Ne+"px",Nn.appendChild(qn)}}return Nn.appendChild(Pt),Nn},gn=function(Ct){return Ct=Ct.toLowerCase(),Ct==="html5"||Ct==="screenshot"?Ct:"html5"},Nt=["web","webSimple","web3d","tablet","tablet3d","phone"],ut=function(Ct,un){if(Ue=Ct,un){it(Ue,!0);return}var on=!Me;if(on){var Bn=De(Ue);!isNaN(Bn)&&Bn<4.4&&(on=!1)}var Nn,si;window.location.protocol.substr(0,4)==="http"?Nn=window.location.protocol:Nn="http:";var Pt=Ue.indexOf("//");Pt>0?si=Ue:Pt===0?si=Nn+Ue:si="https://www.geogebra.org/apps/5.2.814.0/";for(var qn in Nt)if(Ue.slice(Nt[qn].length*-1)===Nt[qn]||Ue.slice((Nt[qn].length+1)*-1)===Nt[qn]+"/"){it(si,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&on&&!le.is3D&&!le.AV&&!le.SV&&!le.CV&&!le.EV2&&!le.CP&&!le.PC&&!le.DA&&!le.FI&&!le.PV&&!at(de.showToolBar)&&!at(de.showMenuBar)&&!at(de.showAlgebraInput)&&!at(de.enableRightClick)&&(!de.appName||de.appName=="classic")?si+="webSimple/":si+="web3d/",it(si,!1)},it=function(Ct,un){if(Ct.requirejs){vt=Ct;return}Ct.slice(-1)!=="/"&&(Ct+="/"),vt=Ct,un===null&&(un=Ct.indexOf("http")===-1),st=un,te="web.nocache.js",ne=!1;var on=vt.split("/");on.length>1&&(!un&&on[on.length-2]==="webSimple"?(te="webSimple.nocache.js",ne=!0):Nt.indexOf(on[on.length-2])>=0&&(te=on[on.length-2]+".nocache.js")),on=Ct.split("/"),Ue=on[on.length-3],Ue.substr(0,4)==="test"?Ue=Ue.substr(4,1)+"."+Ue.substr(5,1):(Ue.substr(0,3)==="war"||Ue.substr(0,4)==="beta")&&(Ue="5.0");var Bn=parseFloat(Ue);Bn!==NaN&&Bn<5&&Ct.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Bn+" is deprecated. Using version latest instead."),ut("5.0",un))},an=function(Ct,un){window.console&&window.console.log&&(!un||typeof un.showLogging=="undefined"||un.showLogging&&un.showLogging!=="false")&&console.log(Ct)};de.material_id!==void 0?nt(mn):mn();function mn(){var Ct=be;Oe!==null?Ct=Oe:parseFloat(Ct)<5&&(Ct="5.0"),ut(Ct,!1),Ve!==null&&it(Ve,st),Ge=!0}return ze},GGBAppletUtils=function(){"use strict";function ze(){return window.GGBT_wsf_edit!==void 0}function be(Ge,Oe){Oe!=1?(Ge.style.transformOrigin="0% 0% 0px",Ge.style.webkitTransformOrigin="0% 0% 0px",Ge.style.transform="scale("+Oe+","+Oe+")",Ge.style.webkitTransform="scale("+Oe+","+Oe+")",Ge.style.maxWidth="initial",Ge.querySelector(".ggb_preview")!==null&&(Ge.querySelector(".ggb_preview").style.maxWidth="initial"),Ge.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Ge.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Ge.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Ge.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Ge.style.transform="none",Ge.style.webkitTransform="none")}function de(Ge,Oe,Ve,ot,Je,Xe){var vt=null;if(Xe!=null&&Xe!="")for(var st=Ge.parentNode;st!=null;)if((" "+st.className+" ").indexOf(" "+Xe+" ")>-1){vt=st;break}else st=st.parentNode;var _t=0,Ue=0,te=0,ne=0,fe=0,se=0,pe=0;if(vt)_t=vt.offsetWidth,Ue=Math.max(ot?vt.offsetWidth:0,vt.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(_t=Math.min(window.innerWidth,document.documentElement.clientWidth),Ue=Math.min(window.innerHeight,document.documentElement.clientHeight),te=_t):(_t=window.innerWidth,Ue=window.innerHeight,te=window.innerWidth),Ge){var Se=Ge.getBoundingClientRect();Se.left>0&&Se.left<=_t&&(Je===void 0||!Je)&&(document.dir==="rtl"?(fe=_t-Se.width-Se.left,se=te<=480?10:30):(se=Se.left,fe=te<=480?10:30),ne=se+fe)}if(Ge&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var we=Ge.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ne=40,pe=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ne=0,pe=40)}}return Ge&&((Ve===void 0||!Ve)&&Oe>0&&Oe+ne<_t?_t=Oe:_t-=ne,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ve===void 0||!Ve)&&(Ue-=pe)),{width:_t,height:Ue}}function le(Ge,Oe,Ve,ot,Je){if(Ge.isScreenshoGenerator)return 1;var Xe=ot!==void 0&&ot,vt=Ge.noScaleMargin!=null&&Ge.noScaleMargin,st=function(we){return we&&we!=="false"},_t=st(Ge.autoHeight),Ue=de(Oe,Ge.width,Ve,_t,Xe&&window.GGBT_wsf_view||vt,Je),te=parseInt(Ue.width),ne=Ge.width,fe=Ge.height;if(ne===void 0){var se=Oe.querySelector(".appletParameters");se&&(ne=se.offsetWidth,fe=se.offsetHeight)}var pe=te/ne,Se=Xe?1:Ue.height/fe;return Ve!==void 0&&!Ve&&(pe=Math.min(1,pe),Se=Math.min(1,Se)),Math.min(pe,Se)}function Me(Ge,Oe,Ve){var ot=1,Je,Xe=!1;if(Ge.hasOwnProperty("allowUpscale")&&(Xe=Ge.allowUpscale),Ge.hasOwnProperty("scale")&&(ot=parseFloat(Ge.scale),(isNaN(ot)||ot===null||ot===0)&&(ot=1),ot>1&&(Xe=!0)),Oe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Xe=!0),!(Ge.hasOwnProperty("disableAutoScale")&&Ge.disableAutoScale))Je=le(Ge,Oe,Xe,Ve,Ge.scaleContainerClass);else return ot;return Xe&&(!Ge.hasOwnProperty("scale")||ot===1)?Je:Math.min(ot,Je)}function Ie(Ge){var Oe=Math.min(window.innerWidth,document.documentElement.clientWidth),Ve=Math.min(window.innerHeight,document.documentElement.clientHeight),ot=Ge.getBoundingClientRect(),Je=(Oe-ot.width)/2,Xe=(Ve-ot.height)/2;Xe<0&&(Xe=0),Ge.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Je<40?Ge.style.left="40px":Ge.style.left=Je+"px",Ge.style.top=Xe+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Xe<40?Ge.style.top="40px":Ge.style.top=Xe+"px",Ge.style.left=Je+"px")}function Pe(Ge,Oe){var Ve=Ge.querySelector(".appletParameters");if(Ve){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Oe.id!==Ve.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Ge)}if(Ve.parentElement&&/fullscreen/.test(Ve.parentElement.className))return;var ot=Me(Oe,Ge);ze()&&Ve.setAttribute("data-param-scale",ot);for(var Je=null,Xe=0;Xe<Ge.childNodes.length;Xe++)if(Ge.childNodes[Xe].className!==void 0&&Ge.childNodes[Xe].className.match(/^applet_scaler/)){Je=Ge.childNodes[Xe];break}if(Je!==null&&Je.querySelector(".noscale")!==null)return;var vt=Oe.id!==void 0?Oe.id:"ggbApplet",st=window[vt];(st==null||!st.recalculateEnvironments)&&Je!==null&&!Je.className.match(/fullscreen/)&&(Je.parentNode.style.transform="",!isNaN(ot)&&ot!==1?(Je.parentNode.style.width=Oe.width*ot+"px",Je.parentNode.style.height=Oe.height*ot+"px",be(Je,ot)):(be(Je,1),Je.parentNode.style.width=Oe.width+"px",Je.parentNode.style.height=Oe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Ie(Ge),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Ve).parents(".content-added-content"))}}return{responsiveResize:Pe,isFlexibleWorksheetEditor:ze,positionCenter:Ie,getScale:Me,scaleElement:be}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var ze=n.location.search;return ze.indexOf(J)!=-1||ze.indexOf(K)!=-1}function q(ze,be){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(ze){var be=s[L].bindings;s[L].bindings=function(){for(var de=be?be():{},le=ze[webModule.__softPermutationId],Me=O;Me<le.length;Me++){var Ie=le[Me];de[Ie[O]]=Ie[P]}return de}};var t;function u(){return v(),t}function v(){if(!t){var ze=o.createElement(Q);if(ze.id=L,ze.style.cssText=R+S,ze.tabIndex=-1,o.body.appendChild(ze),t=ze.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var be=document.compatMode==U?V:W;t.write(be+X),t.close()}}}function w(ze){function be(le){function Me(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Ie=Me();if(Ie){le();return}function Pe(){if(!Ie){if(!Me())return;Ie=!0,le(),o.removeEventListener&&o.removeEventListener(Z,Pe,!1),Ge&&clearInterval(Ge)}}o.addEventListener&&o.addEventListener(Z,Pe,!1);var Ge=setInterval(function(){Pe()},$)}function de(le){var Me=u(),Ie=Me.body,Pe=Me.createElement(_);Pe.language=ab,Pe.crossOrigin=W,Pe.src=le,webModule.__errFn&&(Pe.onerror=function(){webModule.__errFn(L,new Error(bb+le))}),Ie.appendChild(Pe)}be(function(){de(ze)})}webModule.__startLoadingFragment=function(ze){return C(ze)},webModule.__installRunAsyncCode=function(ze){var be=u(),de=be.body,le=be.createElement(_);le.language=ab,le.text=ze,de.appendChild(le),de.removeChild(le)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(ze){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(ze){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(ze){var be=c[ze];return be==null?null:be},r=d,webModule.__errFn=e}function B(){function ze(Ge){var Oe=Ge.lastIndexOf(rb);Oe==-1&&(Oe=Ge.length);var Ve=Ge.indexOf(sb);Ve==-1&&(Ve=Ge.length);var ot=Ge.lastIndexOf(tb,Math.min(Ve,Oe));return ot>=O?Ge.substring(O,ot+P):W}function be(Ge){if(!Ge.match(/^\w+:\/\//)){var Oe=o.createElement(ub);Oe.src=Ge+vb,Ge=ze(Oe.src)}return Ge}function de(){var Ge=__gwt_getMetaProperty(wb);return Ge!=null?Ge:W}function le(){for(var Ge=o.getElementsByTagName(_),Oe=O;Oe<Ge.length;++Oe)if(Ge[Oe].src.indexOf(xb)!=-1)return ze(Ge[Oe].src);return W}function Me(){var Ge=o.getElementsByTagName(yb);return Ge.length>O?Ge[Ge.length-P].href:W}function Ie(){var Ge=o.location;return Ge.href==Ge.protocol+zb+Ge.host+Ge.pathname+Ge.search+Ge.hash}var Pe=de();return Pe==W&&(Pe=le()),Pe==W&&(Pe=Me()),Pe==W&&Ie()&&(Pe=ze(o.location.href)),Pe=be(Pe),Pe}function C(ze){return ze.match(/^\//)||ze.match(/^[a-zA-Z]+:\/\//)?ze:webModule.__moduleBase+ze}function D(){var ze=[],be=O,de=[],le=[];function Me(Ge){var Oe=le[Ge](),Ve=de[Ge];if(Oe in Ve)return Oe;var ot=[];for(var Je in Ve)ot[Ve[Je]]=Je;throw r&&r(Ge,ot,Oe),null}if(__gwt_isKnownPropertyValue=function(Ge,Oe){return Oe in de[Ge]},webModule.__getPropMap=function(){var Ge={};for(var Oe in de)de.hasOwnProperty(Oe)&&(Ge[Oe]=Me(Oe));return Ge},webModule.__computePropValue=Me,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ie;try{Ie=Cb;var Pe=Ie.indexOf(Db);Pe!=-1&&(be=parseInt(Ie.substring(Pe+P),$),Ie=Ie.substring(O,Pe))}catch(Ge){}return webModule.__softPermutationId=be,C(Ie+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},33756:function(ze,be){(function(de,le){le(be)})(this,function(de){"use strict";var le=function(){return(le=Object.assign||function(Ke){for(var Le,At=1,Lt=arguments.length;At<Lt;At++)for(var tn in Le=arguments[At])Object.prototype.hasOwnProperty.call(Le,tn)&&(Ke[tn]=Le[tn]);return Ke}).apply(this,arguments)};function Me(Ke,Le,At,Lt){return new(At||(At=Promise))(function(tn,$t){function Ht(cn){try{vn(Lt.next(cn))}catch(wn){$t(wn)}}function rn(cn){try{vn(Lt.throw(cn))}catch(wn){$t(wn)}}function vn(cn){var wn;cn.done?tn(cn.value):(wn=cn.value,wn instanceof At?wn:new At(function(sn){sn(wn)})).then(Ht,rn)}vn((Lt=Lt.apply(Ke,Le||[])).next())})}function Ie(Ke,Le){var At,Lt,tn,$t,Ht={label:0,sent:function(){if(1&tn[0])throw tn[1];return tn[1]},trys:[],ops:[]};return $t={next:rn(0),throw:rn(1),return:rn(2)},typeof Symbol=="function"&&($t[Symbol.iterator]=function(){return this}),$t;function rn(vn){return function(cn){return function(wn){if(At)throw new TypeError("Generator is already executing.");for(;Ht;)try{if(At=1,Lt&&(tn=2&wn[0]?Lt.return:wn[0]?Lt.throw||((tn=Lt.return)&&tn.call(Lt),0):Lt.next)&&!(tn=tn.call(Lt,wn[1])).done)return tn;switch(Lt=0,tn&&(wn=[2&wn[0],tn.value]),wn[0]){case 0:case 1:tn=wn;break;case 4:return Ht.label++,{value:wn[1],done:!1};case 5:Ht.label++,Lt=wn[1],wn=[0];continue;case 7:wn=Ht.ops.pop(),Ht.trys.pop();continue;default:if(!(tn=(tn=Ht.trys).length>0&&tn[tn.length-1])&&(wn[0]===6||wn[0]===2)){Ht=0;continue}if(wn[0]===3&&(!tn||wn[1]>tn[0]&&wn[1]<tn[3])){Ht.label=wn[1];break}if(wn[0]===6&&Ht.label<tn[1]){Ht.label=tn[1],tn=wn;break}if(tn&&Ht.label<tn[2]){Ht.label=tn[2],Ht.ops.push(wn);break}tn[2]&&Ht.ops.pop(),Ht.trys.pop();continue}wn=Le.call(Ke,Ht)}catch(sn){wn=[6,sn],Lt=0}finally{At=tn=0}if(5&wn[0])throw wn[1];return{value:wn[0]?wn[1]:void 0,done:!0}}([vn,cn])}}}var Pe=function(){function Ke(){}return Ke.add=function(Le){Ke.HANDLE_LIST.push(Le),window.addEventListener("message",Le,!1)},Ke.remove=function(Le){var At=Ke.HANDLE_LIST.indexOf(Le);At>=0&&Ke.HANDLE_LIST.splice(At,1),window.removeEventListener("message",Le,!1)},Ke.empty=function(){for(;Ke.HANDLE_LIST.length;)window.removeEventListener("message",Ke.HANDLE_LIST.shift(),!1)},Ke.parse=function(Le){try{return typeof Le=="object"?Le:Le&&JSON.parse(Le)}catch(At){return console.log("Message.parse Error:",At),Le}},Ke.HANDLE_LIST=[],Ke}();function Ge(Ke){return{}.toString.call(Ke)==="[object Function]"}var Oe,Ve,ot,Je,Xe={origin:""};function vt(Ke,Le){Xe[Ke]=Le}function st(Ke){return Xe[Ke]}function _t(Ke){var Le=st("origin");return!!function(At,Lt){return At!==Lt&&(At.replace(/www\./i,"").toLowerCase()!==Lt.replace(/www\./i,"").toLowerCase()||(At.match("www.")?void 0:(vt("origin",Lt),!1)))}(Le,Ke.origin)&&(console.warn("postMessage \u57DF\u540D\u68C0\u67E5\u4E0D\u901A\u8FC7",{safeOrigin:Le,eventOrigin:Ke.origin}),!0)}(function(Ke){Ke.unknown="unknown",Ke.spreadsheet="s",Ke.writer="w",Ke.presentation="p",Ke.pdf="f"})(Oe||(Oe={})),function(Ke){Ke.wps="w",Ke.et="s",Ke.presentation="p",Ke.pdf="f"}(Ve||(Ve={})),function(Ke){Ke.nomal="nomal",Ke.simple="simple"}(ot||(ot={})),function(Ke){Ke[Ke.requestFullscreen=1]="requestFullscreen",Ke[Ke.exitFullscreen=0]="exitFullscreen"}(Je||(Je={}));var Ue,te,ne,fe=(Ue=0,function(){return Ue+=1}),se=function(Ke,Le,At){At===void 0&&(At=!0);var Lt=Le;if(!te){var tn=function rn(vn){var cn=vn.clientHeight,wn=vn.clientWidth;cn!==0||wn!==0||ne?cn===0&&wn===0||!ne||(ne.disconnect(),ne=null):window.ResizeObserver&&(ne=new ResizeObserver(function(sn){rn(vn)})).observe(vn),te.style.cssText+="height: "+cn+"px; width: "+wn+"px"}.bind(null,Lt);(te=document.createElement("iframe")).classList.add("web-office-iframe");var $t={id:"office-iframe",src:Ke,scrolling:"no",frameborder:"0",allowfullscreen:"allowfullscreen",webkitallowfullscreen:"true",mozallowfullscreen:"true",allow:"clipboard-read; clipboard-write"};for(var Ht in Lt?($t.style="width: "+Lt.clientWidth+"px; height: "+Lt.clientHeight+"px;",At&&window.addEventListener("resize",tn)):((Lt=document.createElement("div")).classList.add("web-office-default-container"),function(rn){var vn=document.createElement("style");document.head.appendChild(vn);var cn=vn.sheet;cn.insertRule(rn,cn.cssRules.length)}(".web-office-default-container {position: absolute; padding: 0; margin: 0; width: 100%; height: 100%; left: 0; top: 0;}"),document.body.appendChild(Lt),$t.style="position: fixed; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%;"),$t)te.setAttribute(Ht,$t[Ht]);Lt.appendChild(te),te.destroy=function(){te.parentNode.removeChild(te),te=null,window.removeEventListener("resize",tn),ne&&(ne.disconnect(),ne=null)}}return te},pe=function(Ke){se().contentWindow&&se().contentWindow.postMessage(JSON.stringify(Ke),st("origin"))};function Se(Ke,Le,At){return new Promise(function(Lt){var tn=fe(),$t=function(Ht){if(!_t(Ht)){var rn=Pe.parse(Ht.data);rn.eventName===At&&rn.msgId===tn&&(Lt(rn.data),Pe.remove($t))}};Pe.add($t),pe({data:Ke,msgId:tn,eventName:Le})})}var we=function(Ke){return Se(Ke,"wps.jssdk.api","wps.api.reply")},De=function(Ke){return Se(Ke,"api.basic","api.basic.reply")},Re={idMap:{}};function Ze(Ke){return Me(this,void 0,void 0,function(){var Le,At,Lt,tn,$t,Ht,rn,vn,cn,wn;return Ie(this,function(sn){switch(sn.label){case 0:return _t(Ke)?[2]:(Le=Pe.parse(Ke.data),At=Le.eventName,Lt=Le.callbackId,tn=Le.data,Lt&&($t=Re.idMap[Lt])?(Ht=$t.split(":"),rn=Ht[0],vn=Ht[1],At==="api.callback"&&Re[rn]&&Re[rn][vn]?[4,(wn=Re[rn][vn]).callback.apply(wn,tn.args)]:[3,2]):[3,2]);case 1:cn=sn.sent(),pe({result:cn,callbackId:Lt,eventName:"api.callback.reply"}),sn.label=2;case 2:return[2]}})})}var nt=function(Ke){return Me(void 0,void 0,void 0,function(){function Le(){return Object.keys(Re.idMap).find(function(sn){return Re.idMap[sn]===Lt+":"+At})}var At,Lt,tn,$t,Ht,rn,vn,cn,wn;return Ie(this,function(sn){switch(sn.label){case 0:return At=Ke.prop,Lt=Ke.parentObjId,[4,ft([tn=Ke.value])];case 1:return $t=sn.sent(),Ht=$t[0],rn=$t[1],Ke.value=Ht[0],vn=Object.keys(rn)[0],cn=Re[Lt],tn===null&&cn&&cn[At]&&((wn=Le())&&delete Re.idMap[wn],delete cn[At],Object.keys(cn).length||delete Re[Lt],Object.keys(Re.idMap).length||Pe.remove(Ze)),vn&&(Object.keys(Re.idMap).length||Pe.add(Ze),Re[Lt]||(Re[Lt]={}),Re[Lt][At]={callbackId:vn,callback:rn[vn]},(wn=Le())&&delete Re.idMap[wn],Re.idMap[vn]=Lt+":"+At),[2]}})})},rt=function(Ke,Le,At,Lt){return Me(void 0,void 0,void 0,function(){var tn,$t,Ht,rn,vn,cn,wn,sn;return Ie(this,function(Ft){switch(Ft.label){case 0:return tn=fe(),rn=new Promise(function(jn,dn){$t=jn,Ht=dn}),vn={},Le.args?[4,ft(Le.args)]:[3,2];case 1:cn=Ft.sent(),wn=cn[0],sn=cn[1],Le.args=wn,vn=sn,Ft.label=2;case 2:return Ke!=="api.setter"?[3,4]:[4,nt(Le)];case 3:Ft.sent(),Ft.label=4;case 4:return function(jn){var dn=jn[0],En=jn[1];typeof(dn=le({},dn)).data=="function"&&(dn.data=dn.data()),En(),pe(dn)}([{eventName:Ke,data:Le,msgId:tn},function(){var jn=this,dn=function(En){return Me(jn,void 0,void 0,function(){var Jt,ui,Gn;return Ie(this,function(mt){switch(mt.label){case 0:return _t(En)?[2]:(Jt=Pe.parse(En.data)).eventName==="api.callback"&&Jt.callbackId&&vn[Jt.callbackId]?[4,vn[Jt.callbackId].apply(vn,Jt.data.args)]:[3,2];case 1:ui=mt.sent(),pe({result:ui,eventName:"api.callback.reply",callbackId:Jt.callbackId}),mt.label=2;case 2:return Jt.eventName===Ke+".reply"&&Jt.msgId===tn&&(Jt.error?((Gn=new Error("")).stack=Jt.error+`
`+At,Lt&&Lt(),Ht(Gn)):$t(Jt.result),Pe.remove(dn)),[2]}})})};return Pe.add(dn),rn}]),[2,rn]}})})};function ft(Ke){return Me(this,void 0,void 0,function(){var Le,At,Lt,tn,$t,Ht,rn,vn,cn,wn,sn;return Ie(this,function(Ft){switch(Ft.label){case 0:Le={},At=[],Lt=Ke.slice(0),Ft.label=1;case 1:return Lt.length?(tn=void 0,[4,Lt.shift()]):[3,13];case 2:return($t=Ft.sent())&&$t.done?[4,$t.done()]:[3,4];case 3:Ft.sent(),Ft.label=4;case 4:if(!function(jn){if(!jn)return!1;for(var dn=jn;Object.getPrototypeOf(dn)!==null;)dn=Object.getPrototypeOf(dn);return Object.getPrototypeOf(jn)===dn}(tn))return[3,11];for(rn in tn={},Ht=[],$t)Ht.push(rn);vn=0,Ft.label=5;case 5:return vn<Ht.length?(cn=Ht[vn],wn=$t[cn],/^[A-Z]/.test(cn)?wn&&wn.done?[4,wn.done()]:[3,7]:[3,8]):[3,10];case 6:Ft.sent(),Ft.label=7;case 7:wn&&wn.objId?wn={objId:wn.objId}:typeof wn=="function"&&(sn=fe(),Le[sn]=wn,wn={callbackId:sn}),Ft.label=8;case 8:tn[cn]=wn,Ft.label=9;case 9:return vn++,[3,5];case 10:return[3,12];case 11:$t&&$t.objId?tn={objId:$t.objId}:typeof $t=="function"&&$t.objId===void 0?(sn=fe(),Le[sn]=$t,tn={callbackId:sn}):tn=$t,Ft.label=12;case 12:return At.push(tn),[3,1];case 13:return[2,[At,Le]]}})})}var xt=function(Ke,Le){Le===void 0&&(Le=!0);var At=le({},Ke),Lt=At.headers,tn=Lt===void 0?{}:Lt,$t=At.subscriptions,Ht=$t===void 0?{}:$t,rn=At.mode,vn=rn===void 0?ot.nomal:rn,cn=At.commonOptions,wn=tn.backBtn,sn=wn===void 0?{}:wn,Ft=tn.shareBtn,jn=Ft===void 0?{}:Ft,dn=tn.otherMenuBtn,En=dn===void 0?{}:dn,Jt=function(On,Cn){On.subscribe&&typeof On.subscribe=="function"&&(On.callback=Cn,Ht[Cn]=On.subscribe,Le&&delete On.subscribe)};if(Jt(sn,"wpsconfig_back_btn"),Jt(jn,"wpsconfig_share_btn"),Jt(En,"wpsconfig_other_menu_btn"),En.items&&Array.isArray(En.items)){var ui=[];En.items.forEach(function(On,Cn){switch(On===void 0&&(On={}),On.type){case"export_img":On.type=1,On.callback="export_img";break;case"export_pdf":On.type=1,On.callback="export_pdf";break;case"save_version":On.type=1,On.callback="save_version";break;case"about_wps":On.type=1,On.callback="about_wps";break;case"split_line":On.type=2;break;case"custom":On.type=3,Jt(On,"wpsconfig_other_menu_btn_"+Cn),ui.push(On)}}),ui.length&&(Xt||bn)&&(En.items=ui)}At.url=At.url||At.wpsUrl;var Gn=[];if((vn===ot.simple||cn&&cn.isShowTopArea===!1)&&Gn.push("simple","hidecmb"),At.debug&&Gn.push("debugger"),At.url&&Gn.length&&(At.url=At.url+(At.url.indexOf("?")>=0?"&":"?")+Gn.join("&")),cn&&(cn.isParentFullscreen||cn.isBrowserViewFullscreen)&&(document.addEventListener("fullscreenchange",pn),document.addEventListener("webkitfullscreenchange",pn),document.addEventListener("mozfullscreenchange",pn)),At.wordOptions&&(At.wpsOptions=At.wordOptions),At.excelOptions&&(At.etOptions=At.excelOptions),At.pptOptions&&(At.wppOptions=At.pptOptions),typeof Ht.print=="object"){var mt="wpsconfig_print";typeof Ht.print.subscribe=="function"&&(Ht[mt]=Ht.print.subscribe,At.print={callback:mt},Ht.print.custom!==void 0&&(At.print.custom=Ht.print.custom)),delete Ht.print}return typeof Ht.exportPdf=="function"&&(Ht[mt="wpsconfig_export_pdf"]=Ht.exportPdf,At.exportPdf={callback:mt},delete Ht.exportPdf),At.commandBars&&wt(At.commandBars,!1),le(le({},At),{subscriptions:Ht})},at=function(Ke){Ke===void 0&&(Ke="");var Le="";if(!Le&&Ke){var At=Ke.toLowerCase();At.indexOf("/office/s/")!==-1&&(Le=Oe.spreadsheet),At.indexOf("/office/w/")!==-1&&(Le=Oe.writer),At.indexOf("/office/p/")!==-1&&(Le=Oe.presentation),At.indexOf("/office/f/")!==-1&&(Le=Oe.pdf)}if(!Le){var Lt=Ke.match(/[\?&]type=([a-z]+)/)||[];Le=Ve[Lt[1]]||""}return Le};function wt(Ke,Le){Le===void 0&&(Le=!0);var At=Ke.map(function(Lt){var tn=Lt.attributes;if(!Array.isArray(tn)){var $t=[];for(var Ht in tn)if(tn.hasOwnProperty(Ht)){var rn={name:Ht,value:tn[Ht]};$t.push(rn)}Lt.attributes=$t}return Lt});return Le&&pe({data:At,eventName:"setCommandBars"}),At}var Mt=window.navigator.userAgent.toLowerCase(),Xt=/Android|webOS|iPhone|iPod|BlackBerry|iPad/i.test(Mt),bn=function(){try{return window._parent.location.search.indexOf("from=wxminiprogram")!==-1}catch(Ke){return!1}}();function pn(){var Ke={status:Je.requestFullscreen},Le=document,At=Le.fullscreenElement||Le.webkitFullscreenElement||Le.mozFullScreenElement;Ke.status=At?Je.requestFullscreen:Je.exitFullscreen,pe({data:Ke,eventName:"fullscreenchange"})}var fn=function(){Re.idMap={}};function gn(){console.group("JSSDK \u4E8B\u4EF6\u673A\u5236\u8C03\u6574\u8BF4\u660E"),console.warn("jssdk.on\u3001jssdk.off \u548C jssdk.Application.Sub \u5C06\u5728\u540E\u7EED\u7248\u672C\u4E2D\u88AB\u5F03\u7528\uFF0C\u5EFA\u8BAE\u4F7F\u7528\u6539\u8FDB\u540E\u7684 ApiEvent"),console.warn("\u5177\u4F53\u8BF7\u53C2\u8003\uFF1Ahttps://wwo.wps.cn/docs/front-end/basic-usage/events/intro/"),console.groupEnd()}var Nt=0,ut=new Set;function it(Ke){return Nt+=1,!Ke&&function(Le){ut.forEach(function(At){return At(Le)})}(Nt),Nt}function an(){var Ke=new Error("");return(Ke.stack||Ke.message||"").split(`
`).slice(2).join(`
`)}function mn(Ke,Le){var At,Lt=this,tn=Le.Events,$t=Le.Enum,Ht=Le.Props,rn=Ht[0],vn=Ht[1],cn={objId:Nt};switch(function jn(dn,En,Jt){for(var ui=En.slice(0),Gn=function(){var mt=ui.shift();!mt.alias&&~Ct.indexOf(mt.prop)&&ui.push(le(le({},mt),{alias:mt.prop+"Async"})),Object.defineProperty(dn,mt.alias||mt.prop,{get:function(){var On=this,Cn=mt.cache===1,jt=Cn&&this["__"+mt.prop+"CacheValue"];if(!jt){var mi=an(),Hi=it(Cn),Oi=function(){for(var Mn,lr=[],Gi=0;Gi<arguments.length;Gi++)lr[Gi]=arguments[Gi];return mt.caller!==void 0?function fi(wi,Li,Ce){for(var Ci=Li.slice(0),Bi=function(){var Ri=Ci.shift();!Ri.alias&&~Ct.indexOf(Ri.prop)&&Ci.push(le(le({},Ri),{alias:Ri.prop+"Async"})),Object.defineProperty(wi,Ri.alias||Ri.prop,{get:function(){var Wn=this,ci=Ri.cache===1,ti=ci&&this["__"+Ri.prop+"CacheValue"];if(!ti){var ki=an(),ni=it(ci),Vt=function(){for(var Ut,It=[],$n=0;$n<arguments.length;$n++)It[$n]=arguments[$n];return Ri.caller!==void 0?fi(Ut={objId:it()},Ce[Ri.caller],Ce):Ut={},on(Vt,Ut,"api.caller",{obj:Vt,args:It,parentObjId:wi.objId,objId:Ut.objId,prop:Ri.prop},ki),Ut};return Vt.objId=-1,Ri.getter!==void 0&&(Vt.objId=ni,fi(Vt,Ce[Ri.getter],Ce)),on(wi,Vt,"api.getter",{parentObjId:wi.objId,objId:Vt.objId,prop:Ri.prop},ki,function(){delete Wn["__"+Ri.prop+"CacheValue"]}),ci&&(this["__"+Ri.prop+"CacheValue"]=Vt),Vt}return ti},set:function(Wn){var ci=an();return on(wi,{},"api.setter",{value:Wn,parentObjId:wi.objId,objId:-1,prop:Ri.prop},ci)}})};Ci.length;)Bi()}(Mn={objId:it()},Jt[mt.caller],Jt):Mn={},on(Oi,Mn,"api.caller",{obj:Oi,args:lr,parentObjId:dn.objId,objId:Mn.objId,prop:mt.prop},mi),Mn};return Oi.objId=-1,mt.getter!==void 0&&(Oi.objId=Hi,jn(Oi,Jt[mt.getter],Jt)),on(dn,Oi,"api.getter",{parentObjId:dn.objId,objId:Oi.objId,prop:mt.prop},mi,function(){delete On["__"+mt.prop+"CacheValue"]}),Cn&&(this["__"+mt.prop+"CacheValue"]=Oi),Oi}return jt},set:function(On){var Cn=an();return on(dn,{},"api.setter",{value:On,parentObjId:dn.objId,objId:-1,prop:mt.prop},Cn)}})};ui.length;)Gn()}(cn,rn,vn),cn.Events=tn,cn.Enum=$t,Ke.Enum=cn.Enum,Ke.Events=cn.Events,Ke.Props=Ht,at(Ke.url)){case Oe.writer:Ke.WordApplication=Ke.WpsApplication=function(){return cn};break;case Oe.spreadsheet:Ke.ExcelApplication=Ke.EtApplication=function(){return cn};break;case Oe.presentation:Ke.PPTApplication=Ke.WppApplication=function(){return cn};break;case Oe.pdf:Ke.PDFApplication=function(){return cn}}Ke.Application=cn,Ke.Free=function(jn){return rt("api.free",{objId:jn},"")},Ke.Stack=cn.Stack=(At=function(jn){Ke&&Ke.Free(jn)},function(){var jn=[],dn=function(En){jn.push(En)};return ut.add(dn),{End:function(){At(jn),ut.delete(dn)}}});var wn={};Pe.add(function(jn){return Me(Lt,void 0,void 0,function(){var dn,En,Jt,ui,Gn;return Ie(this,function(mt){switch(mt.label){case 0:return _t(jn)?[2]:(dn=Pe.parse(jn.data)).eventName==="api.event"&&dn.data?(En=dn.data,Jt=En.eventName,ui=En.data,(Gn=wn[Jt])?[4,Gn(ui)]:[3,2]):[3,2];case 1:mt.sent(),mt.label=2;case 2:return[2]}})})}),cn.Sub={};var sn=function(jn){var dn=tn[jn];Object.defineProperty(cn.Sub,dn,{set:function(En){gn(),wn[dn]=En,pe({eventName:"api.event.register",data:{eventName:dn,register:!!En,objId:Nt+=1}})}})};for(var Ft in tn)sn(Ft)}var Ct=["ExportAsFixedFormat","GetOperatorsInfo","ImportDataIntoFields","ReplaceText","ReplaceBookmark","GetBookmarkText","GetComments"];function un(Ke,Le,At){for(var Lt=Le.slice(0),tn=function(){var $t=Lt.shift();!$t.alias&&~Ct.indexOf($t.prop)&&Lt.push(le(le({},$t),{alias:$t.prop+"Async"})),Object.defineProperty(Ke,$t.alias||$t.prop,{get:function(){var Ht=this,rn=$t.cache===1,vn=rn&&this["__"+$t.prop+"CacheValue"];if(!vn){var cn=an(),wn=it(rn),sn=function(){for(var jn=[],dn=0,En;dn<arguments.length;dn++)jn[dn]=arguments[dn];return $t.caller!==void 0?(En={objId:it()},un(En,At[$t.caller],At)):En={},on(Ft,En,"api.caller",{obj:Ft,args:jn,parentObjId:Ke.objId,objId:En.objId,prop:$t.prop},cn),En},Ft=sn;return Ft.objId=-1,$t.getter!==void 0&&(Ft.objId=wn,un(Ft,At[$t.getter],At)),on(Ke,Ft,"api.getter",{parentObjId:Ke.objId,objId:Ft.objId,prop:$t.prop},cn,function(){delete Ht["__"+$t.prop+"CacheValue"]}),rn&&(this["__"+$t.prop+"CacheValue"]=Ft),Ft}return vn},set:function(Ht){var rn=an();return on(Ke,{},"api.setter",{value:Ht,parentObjId:Ke.objId,objId:-1,prop:$t.prop},rn)}})};Lt.length;)tn()}function on(Ke,Le,At,Lt,tn,$t){var Ht,rn=(Ke.done?Ke.done():Promise.resolve()).then(function(){return Ht||(Ht=rt(At,Lt,tn,$t)),Ht});Le.done=function(){return rn},Le.then=function(vn,cn){return Lt.objId>=0?(Le.then=null,Le.catch=null,rn.then(function(){vn(Le)}).catch(function(wn){return cn(wn)})):rn.then(vn,cn)},Le.catch=function(vn){return rn.catch(vn)},Le.Destroy=function(){return rt("api.free",{objId:Le.objId},"")}}var Bn={},Nn=null,si={fileOpen:"fileOpen",tabSwitch:"tabSwitch",fileSaved:"fileSaved",fileStatus:"fileStatus",fullscreenChange:"fullscreenChange",error:"error",stage:"stage"},Pt={getToken:"api.getToken",onToast:"event.toast",onHyperLinkOpen:"event.hyperLinkOpen",getClipboardData:"api.getClipboardData"};function qn(Ke,Le,At,Lt,tn,$t,Ht){var rn=this;At===void 0&&(At={}),Pe.add(function(vn){return Me(rn,void 0,void 0,function(){var cn,wn,sn,Ft,jn,dn,En,Jt,ui,Gn,mt,On,Cn,jt,mi,Hi,Oi,Mn,lr;return Ie(this,function(Gi){switch(Gi.label){case 0:return _t(vn)?[2]:(cn=Pe.parse(vn.data),wn=cn.eventName,sn=wn===void 0?"":wn,Ft=cn.data,jn=Ft===void 0?null:Ft,dn=cn.url,En=dn===void 0?null:dn,["wps.jssdk.api"].indexOf(sn)!==-1?[2]:sn!=="ready"?[3,1]:(tn.apiReadySended&&function(fi){var wi=[];Object.keys(Bn).forEach(function(Li){Bn[Li].forEach(function(Ce){var Ci=Li;fi.off(Ci,Ce),wi.push({handle:Ce,eventName:Ci})}),delete Bn[Li]}),wi.forEach(function(Li){var Ce=Li.eventName,Ci=Li.handle;Nn==null||Nn.ApiEvent.AddApiEventListener(Ce,Ci)})}(Le),pe({eventName:"setConfig",data:le(le({},At),{version:Ke.version})}),Ke.tokenData&&Ke.setToken(le(le({},Ke.tokenData),{hasRefreshTokenConfig:!!At.refreshToken})),Ke.iframeReady=!0,[3,15]));case 1:return sn!=="error"?[3,2]:(Le.emit(si.error,jn),[3,15]);case 2:return sn!=="open.result"?[3,3]:(((Oi=jn==null?void 0:jn.fileInfo)===null||Oi===void 0?void 0:Oi.officeVersion)!==void 0&&(Ke.mainVersion=jn.fileInfo.officeVersion,console.log("aliyun Main Version: V"+Ke.mainVersion)),Le.emit(si.fileOpen,jn),[3,15]);case 3:return sn!=="api.scroll"?[3,4]:(window.scrollTo(jn.x,jn.y),[3,15]);case 4:if(sn!==Pt.getToken)return[3,9];Jt={token:!1},Gi.label=5;case 5:return Gi.trys.push([5,7,,8]),[4,tn.refreshToken()];case 6:return Jt=Gi.sent(),[3,8];case 7:return ui=Gi.sent(),console.error("refreshToken: "+(ui||"fail to get")),[3,8];case 8:return pe({eventName:Pt.getToken+".reply",data:Jt}),[3,15];case 9:if(sn!==Pt.getClipboardData)return[3,14];Gn={text:"",html:""},Gi.label=10;case 10:return Gi.trys.push([10,12,,13]),[4,tn.getClipboardData()];case 11:return Gn=Gi.sent(),[3,13];case 12:return mt=Gi.sent(),console.error("getClipboardData: "+(mt||"fail to get")),[3,13];case 13:return pe({eventName:Pt.getClipboardData+".reply",data:Gn}),[3,15];case 14:sn===Pt.onToast?tn.onToast(jn):sn===Pt.onHyperLinkOpen?tn.onHyperLinkOpen(jn):sn==="stage"?Le.emit(si.stage,jn):sn==="event.callback"?(On=jn.eventName,Cn=jn.data,jt=On,On==="fullScreenChange"&&(jt=si.fullscreenChange),On==="file.saved"&&(jt=si.fileStatus),(!((Mn=At.commonOptions)===null||Mn===void 0)&&Mn.isBrowserViewFullscreen||!((lr=At.commonOptions)===null||lr===void 0)&&lr.isParentFullscreen)&&jt==="fullscreenchange"&&(mi=Cn.status,Hi=Cn.isDispatchEvent,At.commonOptions.isBrowserViewFullscreen?function(fi,wi,Li,Ce){fi===0?wi.style="position: static; width: "+Li.width+"; height: "+Li.height:fi===1&&(wi.style="position: absolute; width: 100%; height: 100%"),Ce&&function(Ci){["fullscreen","fullscreenElement"].forEach(function(Ri){Object.defineProperty(document,Ri,{get:function(){return!!Ci.status},configurable:!0})});var Bi=new CustomEvent("fullscreenchange");document.dispatchEvent(Bi)}({status:fi})}(mi,$t,Ht,Hi):At.commonOptions.isParentFullscreen&&function(fi,wi,Li){var Ce=document.querySelector(Li),Ci=Ce&&Ce.nodeType===1?Ce:wi;if(fi===0){var Bi=document,Ri=Bi.exitFullscreen||Bi.mozCancelFullScreen||Bi.msExitFullscreen||Bi.webkitCancelFullScreen||Bi.webkitExitFullscreen;Ri.call(document)}else if(fi===1){var Wn=Ci.requestFullscreen||Ci.mozRequestFullScreen||Ci.msRequestFullscreen||Ci.webkitRequestFullscreen;Wn.call(Ci)}}(mi,$t,At.commonOptions.isParentFullscreen)),Le.emit(jt,Cn)):sn==="api.ready"&&mn(Ke,jn),Gi.label=15;case 15:return typeof Lt[sn]=="function"&&Lt[sn](Ke,En||jn),[2]}})})})}function Ei(Ke){return new Promise(function(Le){var At=function(Lt){_t(Lt)||Pe.parse(Lt.data).eventName===Ke&&(Le(),Pe.remove(At))};Pe.add(At)})}function $e(Ke){var Le,At=this;Ke===void 0&&(Ke={}),Nn&&Nn.destroy();try{var Lt=xt(Ke),tn=Lt.subscriptions,$t=tn===void 0?{}:tn,Ht=Lt.mount,rn=Ht===void 0?null:Ht,vn=Lt.url,cn=Lt.refreshToken,wn=Lt.onToast,sn=Lt.onHyperLinkOpen,Ft=Lt.getClipboardData;vt("origin",(vn.match(/https*:\/\/[^\/]+/g)||[])[0]);var jn=se(vn,rn),dn=Ei("ready"),En=Ei("open.result"),Jt=Ei("api.ready"),ui=rn?{width:rn.clientWidth+"px",height:rn.clientHeight+"px"}:{width:"100vw",height:"100vh"};delete Lt.mount,vn&&delete Lt.url,delete Lt.subscriptions;var Gn=(Le=Le||Object.create(null),{on:function(Cn,jt){(Le[Cn]||(Le[Cn]=[])).push(jt)},off:function(Cn,jt){Le[Cn]&&Le[Cn].splice(Le[Cn].indexOf(jt)>>>0,1)},emit:function(Cn,jt){(Le[Cn]||[]).slice().map(function(mi){mi(jt)}),(Le["*"]||[]).slice().map(function(mi){mi(Cn,jt)})}}),mt={apiReadySended:!1},On=function(Cn,jt,mi){return Me(At,void 0,void 0,function(){return Ie(this,function(Hi){switch(Hi.label){case 0:return function(Oi,Mn,lr){if(Bn[Oi]){var Gi=!!Bn[Oi].find(function(fi){return fi===Mn});return Gi&&lr==="off"?(Gn.off(Oi,Mn),Bn[Oi]=Bn[Oi].filter(function(fi){return fi!==Mn}),!!Bn[Oi].length||(Bn[Oi]=void 0,!1)):(Gi||lr!=="on"||(Bn[Oi].push(Mn),Gn.on(Oi,Mn)),!0)}return lr==="on"?(Bn[Oi]=[],Bn[Oi].push(Mn),!1):lr==="off"||void 0}(Cn,jt,mi)?[3,2]:[4,dn];case 1:Hi.sent(),function(Oi,Mn){var lr=Oi.eventName,Gi=Oi.type,fi=Oi.handle;Mn==="on"?Gn.on(lr,fi):Gn.off(lr,fi),Gi==="base.event"&&pe({eventName:"basic.event",data:{eventName:lr,action:Mn}}),gn()}(function(Oi,Mn){var lr=Oi,Gi="base.event";switch(lr){case si.fileSaved:console.warn("fileSaved\u4E8B\u4EF6\u76D1\u542C\u5373\u5C06\u5F03\u7528\uFF0C \u63A8\u8350\u4F7F\u7528fileStatus\u8FDB\u884C\u6587\u4EF6\u72B6\u6001\u7684\u76D1\u542C"),lr="fileStatus";break;case si.fullscreenChange:lr="fullscreenchange";break;case"error":case"fileOpen":Gi="callback.event"}return{eventName:lr,type:Gi,handle:Mn}}(Cn,jt),mi),Hi.label=2;case 2:return[2]}})})};return Nn={url:vn,iframe:jn,version:"1.1.19",iframeReady:!1,tokenData:null,commandBars:null,tabs:{getTabs:function(){return Me(this,void 0,void 0,function(){return Ie(this,function(Cn){switch(Cn.label){case 0:return[4,dn];case 1:return Cn.sent(),[2,De({api:"tab.getTabs"})]}})})},switchTab:function(Cn){return Me(this,void 0,void 0,function(){return Ie(this,function(jt){switch(jt.label){case 0:return[4,dn];case 1:return jt.sent(),[2,De({api:"tab.switchTab",args:{tabKey:Cn}})]}})})}},setCooperUserColor:function(Cn){return Me(this,void 0,void 0,function(){return Ie(this,function(jt){switch(jt.label){case 0:return[4,dn];case 1:return jt.sent(),[2,De({api:"setCooperUserColor",args:Cn})]}})})},setToken:function(Cn){return Me(this,void 0,void 0,function(){return Ie(this,function(jt){switch(jt.label){case 0:return[4,dn];case 1:return jt.sent(),Nn.tokenData=Cn,pe({eventName:"setToken",data:Cn}),[2]}})})},ready:function(){return Me(this,void 0,void 0,function(){return Ie(this,function(Cn){switch(Cn.label){case 0:return mt.apiReadySended?[3,2]:[4,En];case 1:Cn.sent(),mt.apiReadySended=!0,pe({eventName:"api.ready"}),Cn.label=2;case 2:return[4,Jt];case 3:return Cn.sent(),[2,new Promise(function(jt){return setTimeout(function(){return jt(Nn==null?void 0:Nn.Application)},0)})]}})})},destroy:function(){Bn={},jn.destroy(),Pe.empty(),Nn=null,ut=new Set,Nt=0,document.removeEventListener("fullscreenchange",pn),fn()},save:function(){return Me(this,void 0,void 0,function(){return Ie(this,function(Cn){switch(Cn.label){case 0:return[4,dn];case 1:return Cn.sent(),[2,we({api:"save"})]}})})},setCommandBars:function(Cn){return Me(this,void 0,void 0,function(){return Ie(this,function(jt){switch(jt.label){case 0:return[4,dn];case 1:return jt.sent(),wt(Cn),[2]}})})},updateConfig:function(Cn){return Cn===void 0&&(Cn={}),Me(this,void 0,void 0,function(){return Ie(this,function(jt){switch(jt.label){case 0:return[4,dn];case 1:return jt.sent(),Cn.commandBars?(console.warn("Deprecated: `updateConfig()` \u65B9\u6CD5\u5373\u5C06\u5E9F\u5F03\uFF0C\u8BF7\u4F7F\u7528`setCommandBars()`\u4EE3\u66FF`updateConfig()`\u66F4\u65B0`commandBars`\u914D\u7F6E\u3002"),[4,wt(Cn.commandBars)]):[3,3];case 2:jt.sent(),jt.label=3;case 3:return[2]}})})},executeCommandBar:function(Cn){return Me(this,void 0,void 0,function(){return Ie(this,function(jt){switch(jt.label){case 0:return[4,dn];case 1:return jt.sent(),wt([{cmbId:Cn,attributes:[{name:"click",value:!0}]}]),[2]}})})},on:function(Cn,jt){return Me(this,void 0,void 0,function(){return Ie(this,function(mi){return[2,this.ApiEvent.AddApiEventListener(Cn,jt)]})})},off:function(Cn,jt){return Me(this,void 0,void 0,function(){return Ie(this,function(mi){return[2,this.ApiEvent.RemoveApiEventListener(Cn,jt)]})})},ApiEvent:{AddApiEventListener:function(Cn,jt){return Me(this,void 0,void 0,function(){return Ie(this,function(mi){switch(mi.label){case 0:return[4,On(Cn,jt,"on")];case 1:return[2,mi.sent()]}})})},RemoveApiEventListener:function(Cn,jt){return Me(this,void 0,void 0,function(){return Ie(this,function(mi){switch(mi.label){case 0:return[4,On(Cn,jt,"off")];case 1:return[2,mi.sent()]}})})}}},function(Cn,jt,mi,Hi,Oi,Mn){jt&&Ge(jt)&&(Oi.refreshToken=jt,Cn.refreshToken={eventName:Pt.getToken}),Mn&&Ge(Mn)&&(Oi.getClipboardData=Mn,Cn.getClipboardData={eventName:Pt.getClipboardData}),mi&&Ge(mi)&&(Oi.onToast=mi,Cn.onToast={eventName:Pt.onToast}),Hi&&Ge(Hi)&&(Oi.onHyperLinkOpen=Hi,Cn.onHyperLinkOpen={eventName:Pt.onHyperLinkOpen})}(Lt,cn,wn,sn,mt,Ft),qn(Nn,Gn,Lt,$t,mt,jn,ui),Nn}catch(Cn){console.error(Cn)}}console.log("aliyun JS-SDK V1.1.19");var Fe=Object.freeze({__proto__:null,listener:qn,config:$e});window.WPS=Fe;var Ne=$e,Qe={config:Ne};de.config=Ne,de.default=Qe,Object.defineProperty(de,"__esModule",{value:!0})})},55322:function(ze,be,de){"use strict";de.d(be,{Ax:function(){return Pe},Ds:function(){return Ge},KI:function(){return Ve},SI:function(){return Ie},f1:function(){return Me}});var le=de(12242);function Me(ot){let Je=!0;if(ot.length>0){for(let Xe=0;Xe<ot.length;Xe++)if(ot[Xe].compile_success==0||!ot[Xe].compile_success){Je=!1;break}}else Je=!1;return Je}function Ie(ot,Je=""){let Xe=[];for(let vt=0;vt<ot.length;vt++){let st=ot[vt],_t=Je?`${Je}/${st.name}`:`${st.name}`;Xe.push({title:st.name,type:st.type,isLeaf:st.type!=="tree",key:_t})}return Xe}function Pe(ot,Je,Xe){for(let vt=0;vt<ot.length;vt++){let st=ot[vt];if(st.key===Je){st.children=Xe;break}st.children&&Pe(st.children,Je,Xe)}return ot}function Ge(ot,Je,Xe){let vt;return function(){let st=this,_t=arguments,Ue=function(){vt=null,Xe||ot.apply(st,_t)},te=Xe&&!vt;clearTimeout(vt),vt=setTimeout(Ue,Je),te&&ot.apply(st,_t)}}const Oe=!0,Ve=le.Z.API_SERVER},44399:function(ze,be,de){"use strict";de.d(be,{Z:function(){return Ue}});var le=de(99571),Me=de(59301),Ie=Object.defineProperty,Pe=Object.defineProperties,Ge=Object.getOwnPropertyDescriptors,Oe=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable,Je=(te,ne,fe)=>ne in te?Ie(te,ne,{enumerable:!0,configurable:!0,writable:!0,value:fe}):te[ne]=fe,Xe=(te,ne)=>{for(var fe in ne||(ne={}))Ve.call(ne,fe)&&Je(te,fe,ne[fe]);if(Oe)for(var fe of Oe(ne))ot.call(ne,fe)&&Je(te,fe,ne[fe]);return te},vt=(te,ne)=>Pe(te,Ge(ne)),st=(te,ne)=>{var fe={};for(var se in te)Ve.call(te,se)&&ne.indexOf(se)<0&&(fe[se]=te[se]);if(te!=null&&Oe)for(var se of Oe(te))ne.indexOf(se)<0&&ot.call(te,se)&&(fe[se]=te[se]);return fe},_t=(te,ne,fe)=>new Promise((se,pe)=>{var Se=Re=>{try{De(fe.next(Re))}catch(Ze){pe(Ze)}},we=Re=>{try{De(fe.throw(Re))}catch(Ze){pe(Ze)}},De=Re=>Re.done?se(Re.value):Promise.resolve(Re.value).then(Se,we);De((fe=fe.apply(te,ne)).next())});const Ue=te=>{var ne=te,{children:fe}=ne,se=st(ne,["children"]);const[pe,Se]=(0,Me.useState)(!1);return Me.createElement(le.ZP,vt(Xe({},se),{loading:pe,onClick:we=>_t(void 0,null,function*(){try{Se(!0),yield se.onClick(we),Se(!1)}catch(De){console.error(De),Se(!1)}})}),fe)}},95487:function(ze,be,de){"use strict";var le=de(86204),Me=de.n(le),Ie=Object.defineProperty,Pe=(ot,Je,Xe)=>Je in ot?Ie(ot,Je,{enumerable:!0,configurable:!0,writable:!0,value:Xe}):ot[Je]=Xe,Ge=(ot,Je,Xe)=>Pe(ot,typeof Je!="symbol"?Je+"":Je,Xe),Oe=(ot,Je,Xe)=>new Promise((vt,st)=>{var _t=ne=>{try{te(Xe.next(ne))}catch(fe){st(fe)}},Ue=ne=>{try{te(Xe.throw(ne))}catch(fe){st(fe)}},te=ne=>ne.done?vt(ne.value):Promise.resolve(ne.value).then(_t,Ue);te((Xe=Xe.apply(ot,Je)).next())});class Ve extends le.EventEmitter{constructor(Je,Xe){super(),Ge(this,"url"),Ge(this,"body"),Ge(this,"fullContent",""),Ge(this,"controller",null),Ge(this,"buffer",""),this.url=Je,this.body=Xe}startStream(){return Oe(this,null,function*(){this.controller=new AbortController;const{signal:Je}=this.controller;try{const Xe=yield fetch(this.url,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},credentials:"include",body:JSON.stringify(this.body),signal:Je});if(!Xe.ok)throw new Error(`\u8BF7\u6C42\u5931\u8D25: ${Xe.status}`);const vt=Xe.headers.get("content-type");if(!vt)throw new Error("\u54CD\u5E94\u5934\u7F3A\u5C11 content-type");if(vt.includes("application/json")){const Ue=yield Xe.json();this.emit("error",Ue);return}if(!vt.includes("text/event-stream"))throw new Error("\u54CD\u5E94\u6570\u636E\u683C\u5F0F\u9519\u8BEF");const st=Xe.body.getReader(),_t=new TextDecoder("utf-8");for(;;){const{done:Ue,value:te}=yield st.read();if(Ue)break;const ne=_t.decode(te,{stream:!0});this.buffer+=ne;const fe=this.buffer.split(`
`);this.buffer=fe.pop()||"";for(const se of fe)if(se.startsWith("data:")){const pe=se.slice(5).trim();if(pe==="[DONE]")break;try{const Se=JSON.parse(pe);Se.data&&this.handleData(Se.data)}catch(Se){this.buffer=se+`
`+this.buffer,console.error("\u89E3\u6790 JSON \u5931\u8D25:",Se)}}}this.emit("done",this.fullContent)}catch(Xe){Xe.name==="AbortError"?this.emit("cancelled",this.fullContent):this.emit("error",Xe.message)}})}handleData(Je){Je.content&&(this.fullContent+=Je.content,this.emit("data",{chunk:Je,full:this.fullContent}))}cancelRequest(){var Je;(Je=this.controller)==null||Je.abort()}}be.Z=Ve},30828:function(ze,be,de){"use strict";de.d(be,{Z:function(){return _t}});var le=de(59301),Me=de(30641),Ie=de(77019),Pe=de(5269),Ge={smartWrp:"smartWrp___NjRcB"},Oe=de(89081),Ve=de(46133),ot=de(44399),Je=de(59301),Xe=(Ue,te,ne)=>new Promise((fe,se)=>{var pe=De=>{try{we(ne.next(De))}catch(Re){se(Re)}},Se=De=>{try{we(ne.throw(De))}catch(Re){se(Re)}},we=De=>De.done?fe(De.value):Promise.resolve(De.value).then(pe,Se);we((ne=ne.apply(Ue,te)).next())});const vt=`<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>\u5FEB\u901F\u6392\u5E8F\u6F14\u793A</title>
<style>
body {
font-family: Arial, sans-serif;
text-align: center;
margin: 20px;
}
.array-container {
display: flex;
justify-content: center;
align-items: flex-end;
height: 300px;
margin-top: 20px;
}
.bar {
width: 30px;
margin: 0 2px;
background-color: #4caf50;
color: white;
display: flex;
justify-content: center;
align-items: center;
border-radius: 5px;
transition: all 0.3s ease;
}
.bar.sorted {
background-color: #ff9800;
}
.bar.pivot {
background-color: #f44336;
}
</style>
</head>
<body>
<h1>\u5FEB\u901F\u6392\u5E8F\u7B97\u6CD5\u6F14\u793A</h1>
<button id="start-sort">\u5F00\u59CB\u6392\u5E8F</button>
<div class="array-container" id="array-container"></div>
<script>
const array = [34, 7, 23, 32, 5, 62]; // \u56FA\u5B9A\u6570\u7EC4
let bars = [];
// \u521D\u59CB\u5316\u6570\u7EC4\u663E\u793A
function initArrayDisplay() {
const container = document.getElementById('array-container');
container.innerHTML = '';
bars = array.map(value => {
const bar = document.createElement('div');
bar.className = 'bar';
bar.style.height = \`\${value * 5}px\`;
bar.textContent = value;
container.appendChild(bar);
return bar;
});
}
// \u9AD8\u4EAE\u67D0\u4E2A\u8303\u56F4\u5185\u7684\u67F1\u5B50
function highlightBars(indices, className) {
indices.forEach(index => bars[index].classList.add(className));
}
// \u79FB\u9664\u9AD8\u4EAE
function removeHighlightBars(indices, className) {
indices.forEach(index => bars[index].classList.remove(className));
}
// \u5FEB\u901F\u6392\u5E8F\u4E3B\u51FD\u6570
async function quickSort(arr, left = 0, right = arr.length - 1) {
if (left >= right) return;
const pivotIndex = await partition(arr, left, right);
await quickSort(arr, left, pivotIndex - 1);
await quickSort(arr, pivotIndex + 1, right);
}
// \u5206\u533A\u51FD\u6570
async function partition(arr, left, right) {
const pivot = arr[right];
let i = left - 1;
highlightBars([right], 'pivot'); // \u9AD8\u4EAE\u57FA\u51C6\u503C
for (let j = left; j < right; j++) {
highlightBars([j], 'sorted'); // \u9AD8\u4EAE\u5F53\u524D\u6BD4\u8F83\u5143\u7D20
await sleep(500);
if (arr[j] <= pivot) {
i++;
[arr[i], arr[j]] = [arr[j], arr[i]];
// \u66F4\u65B0\u67F1\u5B50\u9AD8\u5EA6
bars[i].style.height = \`\${arr[i] * 5}px\`;
bars[i].textContent = arr[i];
bars[j].style.height = \`\${arr[j] * 5}px\`;
bars[j].textContent = arr[j];
await sleep(500);
}
removeHighlightBars([j], 'sorted'); // \u79FB\u9664\u9AD8\u4EAE
}
// \u5C06\u57FA\u51C6\u503C\u653E\u5230\u6B63\u786E\u4F4D\u7F6E
[arr[i + 1], arr[right]] = [arr[right], arr[i + 1]];
bars[i + 1].style.height = \`\${arr[i + 1] * 5}px\`;
bars[i + 1].textContent = arr[i + 1];
bars[right].style.height = \`\${arr[right] * 5}px\`;
bars[right].textContent = arr[right];
removeHighlightBars([right], 'pivot'); // \u79FB\u9664\u57FA\u51C6\u503C\u9AD8\u4EAE
highlightBars([i + 1], 'sorted'); // \u9AD8\u4EAE\u6700\u7EC8\u4F4D\u7F6E
await sleep(500);
removeHighlightBars([i + 1], 'sorted');
return i + 1;
}
// \u5EF6\u8FDF\u51FD\u6570
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
// \u5F00\u59CB\u6392\u5E8F\u6309\u94AE\u70B9\u51FB\u4E8B\u4EF6
document.getElementById('start-sort').addEventListener('click', () => {
quickSort(array);
});
// \u521D\u59CB\u5316\u9875\u9762
initArrayDisplay();
<\/script>
</body>
</html>`;function st({open:Ue=!0,onChange:te,defaultValue:ne,placement:fe,width:se,height:pe,extra:Se,onDynamic:we,showExtra:De=!0}){const Re=(0,le.useRef)(null),Ze=(0,le.useRef)(null),[nt,rt]=(0,le.useState)(ne||""),[ft,xt]=(0,le.useState)(ne||""),[at,wt]=(0,le.useState)(!!Ue),[Mt,Xt]=(0,le.useState)(1),bn={selectOnLineNumbers:!0};(0,le.useEffect)(()=>{Ue&&(rt(ne),xt(ne),wt(!0))},[Ue,ne]),(0,le.useEffect)(()=>{nt!==""&&(clearTimeout(Ze.current),Ze.current=setTimeout(()=>{const fn=document.createElement("iframe");if(fn.style.width="100%",fn.style.height="100%",fn.style.border="0",Re.current){Re.current.innerHTML="",Re.current.appendChild(fn);const gn=fn.contentDocument||fn.contentWindow.document;gn.open(),gn.write(nt),gn.close()}},1e3))},[Ue,nt]);const pn=fn=>{rt(fn),te==null||te(fn,ft)};return Je.createElement(Me.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:at,width:De?700:"100%",height:pe||"100vh",rootClassName:Ge.smartWrp,destroyOnClose:!0,onClose:()=>wt(!1),extra:De&&Je.createElement("div",null,Je.createElement(Ve.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:Mt,onChange:fn=>Xt(fn)}),Je.createElement(ot.Z,{type:"primary",className:"ml20",onClick:()=>Xe(this,null,function*(){yield we(nt,()=>{wt(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},Je.createElement(Ie.Z,{className:"h100"},Je.createElement(Pe.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:Mt===1?"block":"none"}},Je.createElement("div",{className:"h100",ref:Re})),Je.createElement(Pe.Z,{flex:"1",style:{display:Mt===2?"block":"none"}},Je.createElement(Oe.ZP,{height:"90vh",value:ne,language:"html",theme:"vs",showMiniMap:!1,options:bn,onChange:pn}))))}var _t=st},44622:function(ze,be,de){"use strict";de.d(be,{Z:function(){return rt}});var le=de(59301),Me=de(96536),Ie=de(77596),Pe=de(93772),Ge=de(14179),Oe=de(56102),Ve={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},ot=de(6767),Je=de(90083),Xe=de(95827),vt=de(30084),st=de(10787),_t=de(53122),Ue=de(30828),te=Object.defineProperty,ne=Object.defineProperties,fe=Object.getOwnPropertyDescriptors,se=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,we=(ft,xt,at)=>xt in ft?te(ft,xt,{enumerable:!0,configurable:!0,writable:!0,value:at}):ft[xt]=at,De=(ft,xt)=>{for(var at in xt||(xt={}))pe.call(xt,at)&&we(ft,at,xt[at]);if(se)for(var at of se(xt))Se.call(xt,at)&&we(ft,at,xt[at]);return ft},Re=(ft,xt)=>ne(ft,fe(xt)),Ze=(ft,xt)=>{var at={};for(var wt in ft)pe.call(ft,wt)&&xt.indexOf(wt)<0&&(at[wt]=ft[wt]);if(ft!=null&&se)for(var wt of se(ft))xt.indexOf(wt)<0&&Se.call(ft,wt)&&(at[wt]=ft[wt]);return at},rt=({onFinish:ft,value:xt,streamingStatus:at,cancelIndex:wt,loadImage:Mt,onDynamic:Xt})=>{const[bn,pn]=(0,le.useState)(""),[fn,gn]=(0,le.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[Nt,ut]=(0,le.useState)(0),[it,an]=(0,le.useState)(!1),mn=on=>on.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(Bn,Nn)=>`<mathx data-text="${Nn.trim()}">$$${Nn.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),Ct=()=>{an(!0),ft==null||ft()};(0,le.useEffect)(()=>{const on=Mt?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
${xt}`:xt,Bn=mn(on);if(!it)if(Mt||!at||wt>0){pn(Bn),ut(Bn.length),(!at||wt>0)&&!Mt&&Ct();return}else if((Bn==null?void 0:Bn.length)<4)pn(Bn),ut(Bn.length);else if(Nt<Bn.length){const Nn=Bn.length-Nt,si=setInterval(()=>{pn(Bn.slice(0,Nt+2)),ut(Pt=>Pt+2)},Nn>10?Math.max(500/(Nn/2),20):50);return()=>clearInterval(si)}else at||Ct()},[xt,at,wt,Mt,Nt]);const un=(0,le.useMemo)(()=>le.createElement("section",{className:`${Ve.answer} fadeIn animated edu_md`},le.createElement(Me.UG,{remarkPlugins:[vt.Z,st.Z],rehypePlugins:[Xe.Z,Pe.Z],components:{code(on){var Bn=on,{node:Nn,inline:si,className:Pt,children:qn}=Bn,Ei=Ze(Bn,["node","inline","className","children"]);const $e=/language-(\w+)/.exec(Pt||""),Fe=String(qn).trim();return si||!$e?le.createElement("code",De({className:Pt},Ei),qn):le.createElement("code",{className:Ve.codeCopy,"data-text":`\`\`\`${$e?$e[1]:""}
${qn}
\`\`\``},le.createElement(Oe.CopyToClipboard,{text:Fe,onCopy:()=>ot.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},le.createElement("button",null,"\u590D\u5236")),$e[1]==="html"&&it&&le.createElement("button",{className:Ve.runCode,onClick:()=>{gn(De({},Re(De({},fn),{open:++fn.open,defaultValue:Fe,language:$e[1]})))}},"\u8FD0\u884CHTML"),le.createElement(Ie.Z,De({wrapLongLines:!0,style:Ge.Z,language:$e[1],PreTag:"div",showLineNumbers:!0,lineNumberStyle:{minWidth:"40px"}},Ei),Fe))},img({node:on}){var Bn;const Nn=(Bn=on.properties)==null?void 0:Bn.src;return le.createElement(Je.Z,{src:Nn,width:320,"data-text":Nn,onLoad:()=>Mt&&setTimeout(()=>Ct(),500)})}}},it?bn:`${bn}__`)),[bn]);return le.createElement(le.Fragment,null,le.createElement(Ue.Z,{defaultValue:fn.defaultValue,open:fn.open,language:fn.language,height:fn.height,onChange:(on,Bn)=>{pn(bn.replaceAll(Bn,on))},onDynamic:Xt}),un)}},49882:function(ze,be,de){"use strict";de.d(be,{Z:function(){return Ge}});var le=de(59301),Me=de(59895),Ie={draggableImage:"draggableImage___vcTso",img:"img___xAyno",close:"close___WUtfj",extraNode:"extraNode___tnBrt"},Ge=({src:Oe,onClick:Ve,topPercentage:ot=.62,draggableExtraNode:Je})=>{const Xe=(0,le.useRef)(null),vt=(0,le.useRef)(!1),st=(0,le.useRef)(!1),[_t,Ue]=(0,le.useState)(window.innerHeight*ot),[te,ne]=(0,le.useState)(!1),fe=10;return(0,le.useEffect)(()=>{if(Xe.current){let se=function(Re){var Ze;vt.current=!0,De=Re.pageY,we=Re.pageY-(((Ze=Xe.current)==null?void 0:Ze.getBoundingClientRect().top)||0),(0,Me.kk)("none"),document.onselectstart=function(){return!1}},pe=function(){vt.current&&!st.current&&Ve&&Ve(),vt.current=!1,st.current=!1,(0,Me.kk)("auto"),document.onselectstart=null},Se=function(Re){var Ze;if(vt.current){const rt=Re.pageY-we,ft=window.innerHeight-(((Ze=Xe.current)==null?void 0:Ze.offsetHeight)||0)-50,xt=50;if(!st.current&&Math.abs(De-Re.pageY)>fe&&(st.current=!0),st.current){let at=Math.max(xt,Math.min(rt,ft));Ue(at)}}},we=0,De=0;return Xe.current.addEventListener("mousedown",se),document.addEventListener("mousemove",Se),document.addEventListener("mouseup",pe),()=>{var Re,Ze;(Ze=(Re=Xe==null?void 0:Xe.current)==null?void 0:Re.removeEventListener)==null||Ze.call(Re,"mousedown",se),document.removeEventListener("mousemove",Se),document.removeEventListener("mouseup",pe)}}},[Ve]),(0,le.useEffect)(()=>{const se=()=>{Ue(window.innerHeight*ot)};return window.addEventListener("resize",se),()=>{window.removeEventListener("resize",se)}},[ot]),le.createElement("div",{className:Ie.draggableImage,style:{top:`${_t}px`,display:te?"none":"block",cursor:vt.current?"grabbing":"grab"},ref:Xe},Je&&le.createElement("div",{className:Ie.extraNode,onMouseUp:se=>se.stopPropagation(),onMouseDownCapture:se=>se.stopPropagation()},Je),le.createElement("img",{className:Ie.img,src:Oe,width:60,draggable:"false"}),le.createElement("i",{className:`iconfont icon-tupianguanbi ${Ie.close}`,onMouseUp:se=>{se.stopPropagation(),ne(!0)}}))}},30409:function(ze,be,de){"use strict";de.d(be,{Z:function(){return De}});var le=de(59301),Me={select:"select___Kt_GE",box:"box___S5_ly",text:"text___dtZDv",itemWrap:"itemWrap___xmw7x",item:"item___io6Bx",active:"active___nHRTI"},Ie=de(77736),Pe=Object.defineProperty,Ge=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,ot=(Re,Ze,nt)=>Ze in Re?Pe(Re,Ze,{enumerable:!0,configurable:!0,writable:!0,value:nt}):Re[Ze]=nt,Je=(Re,Ze)=>{for(var nt in Ze||(Ze={}))Oe.call(Ze,nt)&&ot(Re,nt,Ze[nt]);if(Ge)for(var nt of Ge(Ze))Ve.call(Ze,nt)&&ot(Re,nt,Ze[nt]);return Re};const Xe=Re=>React.createElement("svg",Je({className:"logo1_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:200,height:200},Re),React.createElement("path",{d:"M1019.407 620.8 891.834 397.781 946.49 293.12a29.099 29.099 0 0 0 6.4-36.395l-70.187-126.592a30.08 30.08 0 0 0-24.576-13.653H597.519L539.194 14.507a27.35 27.35 0 0 0-20.907-14.55H380.644a29.141 29.141 0 0 0-24.618 14.55v5.546L225.806 243.03H100.923a29.184 29.184 0 0 0-25.515 13.654L3.428 384.085a32.768 32.768 0 0 0 0 29.184L132.836 638.08 74.511 740.053a32.768 32.768 0 0 0 0 29.056l66.517 116.566a29.907 29.907 0 0 0 25.515 14.506H427.15l62.848 109.227A30.08 30.08 0 0 0 512.783 1024H660.41a29.141 29.141 0 0 0 24.576-14.55l128.469-224.853h114.773a31.915 31.915 0 0 0 24.662-15.445l66.474-117.419a28.16 28.16 0 0 0 0-30.976l.043.043zm-161.28 14.592L791.61 512.469 518.287 993.963l-74.752-122.88h-273.28l65.621-119.211h139.392L101.86 272.213h143.062L380.687 30.08l68.352 119.253-70.187 122.88H925.54l-69.205 121.942 137.6 241.194H858.17z",fill:"#605BEC"}),React.createElement("path",{d:"m499.983 699.307 174.379-274.731H324.708z",fill:"#605BEC"}));var vt="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTEwMTkuNDA3IDYyMC44IDg5MS44MzQgMzk3Ljc4MSA5NDYuNDkgMjkzLjEyYTI5LjA5OSAyOS4wOTkgMCAwIDAgNi40LTM2LjM5NWwtNzAuMTg3LTEyNi41OTJhMzAuMDggMzAuMDggMCAwIDAtMjQuNTc2LTEzLjY1M0g1OTcuNTE5TDUzOS4xOTQgMTQuNTA3YTI3LjM1IDI3LjM1IDAgMCAwLTIwLjkwNy0xNC41NUgzODAuNjQ0YTI5LjE0MSAyOS4xNDEgMCAwIDAtMjQuNjE4IDE0LjU1djUuNTQ2TDIyNS44MDYgMjQzLjAzSDEwMC45MjNhMjkuMTg0IDI5LjE4NCAwIDAgMC0yNS41MTUgMTMuNjU0TDMuNDI4IDM4NC4wODVhMzIuNzY4IDMyLjc2OCAwIDAgMCAwIDI5LjE4NEwxMzIuODM2IDYzOC4wOCA3NC41MTEgNzQwLjA1M2EzMi43NjggMzIuNzY4IDAgMCAwIDAgMjkuMDU2bDY2LjUxNyAxMTYuNTY2YTI5LjkwNyAyOS45MDcgMCAwIDAgMjUuNTE1IDE0LjUwNkg0MjcuMTVsNjIuODQ4IDEwOS4yMjdBMzAuMDggMzAuMDggMCAwIDAgNTEyLjc4MyAxMDI0SDY2MC40MWEyOS4xNDEgMjkuMTQxIDAgMCAwIDI0LjU3Ni0xNC41NWwxMjguNDY5LTIyNC44NTNoMTE0Ljc3M2EzMS45MTUgMzEuOTE1IDAgMCAwIDI0LjY2Mi0xNS40NDVsNjYuNDc0LTExNy40MTlhMjguMTYgMjguMTYgMCAwIDAgMC0zMC45NzZsLjA0My4wNDN6bS0xNjEuMjggMTQuNTkyTDc5MS42MSA1MTIuNDY5IDUxOC4yODcgOTkzLjk2M2wtNzQuNzUyLTEyMi44OGgtMjczLjI4bDY1LjYyMS0xMTkuMjExaDEzOS4zOTJMMTAxLjg2IDI3Mi4yMTNoMTQzLjA2MkwzODAuNjg3IDMwLjA4bDY4LjM1MiAxMTkuMjUzLTcwLjE4NyAxMjIuODhIOTI1LjU0bC02OS4yMDUgMTIxLjk0MiAxMzcuNiAyNDEuMTk0SDg1OC4xN3oiIGZpbGw9IiM2MDVCRUMiLz48cGF0aCBkPSJtNDk5Ljk4MyA2OTkuMzA3IDE3NC4zNzktMjc0LjczMUgzMjQuNzA4eiIgZmlsbD0iIzYwNUJFQyIvPjwvc3ZnPg==",st=Object.defineProperty,_t=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,ne=(Re,Ze,nt)=>Ze in Re?st(Re,Ze,{enumerable:!0,configurable:!0,writable:!0,value:nt}):Re[Ze]=nt,fe=(Re,Ze)=>{for(var nt in Ze||(Ze={}))Ue.call(Ze,nt)&&ne(Re,nt,Ze[nt]);if(_t)for(var nt of _t(Ze))te.call(Ze,nt)&&ne(Re,nt,Ze[nt]);return Re};const se=Re=>React.createElement("svg",fe({className:"logo2_svg__icon",viewBox:"0 0 1417 1024",xmlns:"http://www.w3.org/2000/svg",width:276.758,height:200},Re),React.createElement("path",{d:"M1364.44 118.705c-14.178-6.695-20.322 6.065-28.593 12.525-2.914 2.048-5.277 4.726-7.64 7.246-20.717 21.268-44.899 35.21-76.643 33.556a152.576 152.576 0 0 0-120.674 45.371c-7.404-41.826-32.06-66.875-69.553-82.865-19.693-8.35-39.543-16.7-53.248-34.737-9.61-12.919-12.288-27.333-17.015-41.512-3.15-8.507-6.144-17.25-16.384-18.668-11.185-1.733-15.517 7.247-19.928 14.73a189.125 189.125 0 0 0-23.552 98.461c1.575 76.88 35.446 138.083 102.636 181.642 7.562 4.963 9.531 9.925 7.09 17.25-4.49 14.967-9.926 29.54-14.81 44.584-2.992 9.61-7.561 11.658-18.274 7.483a309.484 309.484 0 0 1-96.886-63.015c-47.813-44.426-91.057-93.342-144.935-131.702a635.825 635.825 0 0 0-38.36-25.207c-54.982-51.2 7.167-93.262 21.582-98.225 14.966-5.199 5.277-23.158-43.402-22.922-48.68.237-93.184 15.833-149.977 36.628-8.428 3.15-17.092 5.514-25.993 7.326a557.844 557.844 0 0 0-160.768-5.436c-105.157 11.264-189.204 58.92-250.96 140.367-74.2 97.832-91.687 208.975-70.261 325.002 22.449 122.25 87.434 223.468 187.47 302.631 103.582 82 222.917 122.172 359.188 114.452 82.708-4.568 174.79-15.202 278.686-99.485 26.151 12.445 53.642 17.486 99.249 21.267 35.131 3.072 69.002-1.733 95.153-6.931 40.96-8.35 38.203-44.741 23.316-51.437-120.202-53.72-93.814-31.822-117.839-49.624 61.125-69.317 153.206-141.312 189.204-374.706 2.835-18.51.472-30.168 0-45.213-.237-9.137 1.969-12.603 12.918-13.706a240.089 240.089 0 0 0 86.173-25.442c77.982-40.803 109.332-107.914 116.736-188.259 1.103-12.288-.236-24.97-13.705-31.429zM685.45 842.043C569.108 754.215 512.55 725.307 489.157 726.49c-21.82 1.26-17.96 25.206-13.155 40.802 5.042 15.439 11.58 26.073 20.717 39.621 6.301 8.9 10.791 22.213-6.302 32.295-37.494 22.213-102.794-7.561-105.787-8.98-76.012-42.929-139.421-99.564-184.241-176.994a523.894 523.894 0 0 1-72.468-239.93c-1.024-20.56 5.278-27.885 26.703-31.587a272.148 272.148 0 0 1 85.307-2.127c118.942 16.699 220.16 67.741 305.073 148.48 48.443 46.001 85.071 100.982 122.88 154.703 40.173 57.029 83.338 111.458 138.32 155.963 19.376 15.675 34.894 27.569 49.781 36.234-44.74 4.805-119.414 5.829-170.456-32.926zm55.926-344.615c0-5.357 2.757-10.398 7.326-13.47a17.723 17.723 0 0 1 22.134 2.048c3.072 2.915 4.805 7.09 4.805 11.422a16.778 16.778 0 0 1-17.25 16.541 17.33 17.33 0 0 1-12.131-4.883 15.911 15.911 0 0 1-4.884-11.658zm173.529 85.464a104.37 104.37 0 0 1-33.005 8.586 71.444 71.444 0 0 1-44.504-13.548c-15.282-12.288-26.23-19.141-30.72-40.645a89.167 89.167 0 0 1 .787-31.429c3.939-17.487-.393-28.75-13.312-38.912-10.476-8.35-23.71-10.634-38.36-10.634a32.06 32.06 0 0 1-14.179-4.175c-6.144-2.914-11.106-10.24-6.301-19.14a60.18 60.18 0 0 1 10.712-11.265c19.85-10.79 42.693-7.246 63.882.788 19.693 7.798 34.501 21.898 55.926 41.905 21.74 24.183 25.68 30.8 38.125 48.916 9.846 14.179 18.747 28.75 24.89 45.45 3.703 10.397-1.102 18.905-13.941 24.103z",fill:"#4D6BFE"}));var pe="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDE0MTcgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjc2Ljc1OCIgaGVpZ2h0PSIyMDAiPjxwYXRoIGQ9Ik0xMzY0LjQ0IDExOC43MDVjLTE0LjE3OC02LjY5NS0yMC4zMjIgNi4wNjUtMjguNTkzIDEyLjUyNS0yLjkxNCAyLjA0OC01LjI3NyA0LjcyNi03LjY0IDcuMjQ2LTIwLjcxNyAyMS4yNjgtNDQuODk5IDM1LjIxLTc2LjY0MyAzMy41NTZhMTUyLjU3NiAxNTIuNTc2IDAgMCAwLTEyMC42NzQgNDUuMzcxYy03LjQwNC00MS44MjYtMzIuMDYtNjYuODc1LTY5LjU1My04Mi44NjUtMTkuNjkzLTguMzUtMzkuNTQzLTE2LjctNTMuMjQ4LTM0LjczNy05LjYxLTEyLjkxOS0xMi4yODgtMjcuMzMzLTE3LjAxNS00MS41MTItMy4xNS04LjUwNy02LjE0NC0xNy4yNS0xNi4zODQtMTguNjY4LTExLjE4NS0xLjczMy0xNS41MTcgNy4yNDctMTkuOTI4IDE0LjczYTE4OS4xMjUgMTg5LjEyNSAwIDAgMC0yMy41NTIgOTguNDYxYzEuNTc1IDc2Ljg4IDM1LjQ0NiAxMzguMDgzIDEwMi42MzYgMTgxLjY0MiA3LjU2MiA0Ljk2MyA5LjUzMSA5LjkyNSA3LjA5IDE3LjI1LTQuNDkgMTQuOTY3LTkuOTI2IDI5LjU0LTE0LjgxIDQ0LjU4NC0yLjk5MiA5LjYxLTcuNTYxIDExLjY1OC0xOC4yNzQgNy40ODNhMzA5LjQ4NCAzMDkuNDg0IDAgMCAxLTk2Ljg4Ni02My4wMTVjLTQ3LjgxMy00NC40MjYtOTEuMDU3LTkzLjM0Mi0xNDQuOTM1LTEzMS43MDJhNjM1LjgyNSA2MzUuODI1IDAgMCAwLTM4LjM2LTI1LjIwN2MtNTQuOTgyLTUxLjIgNy4xNjctOTMuMjYyIDIxLjU4Mi05OC4yMjUgMTQuOTY2LTUuMTk5IDUuMjc3LTIzLjE1OC00My40MDItMjIuOTIyLTQ4LjY4LjIzNy05My4xODQgMTUuODMzLTE0OS45NzcgMzYuNjI4LTguNDI4IDMuMTUtMTcuMDkyIDUuNTE0LTI1Ljk5MyA3LjMyNmE1NTcuODQ0IDU1Ny44NDQgMCAwIDAtMTYwLjc2OC01LjQzNmMtMTA1LjE1NyAxMS4yNjQtMTg5LjIwNCA1OC45Mi0yNTAuOTYgMTQwLjM2Ny03NC4yIDk3LjgzMi05MS42ODcgMjA4Ljk3NS03MC4yNjEgMzI1LjAwMiAyMi40NDkgMTIyLjI1IDg3LjQzNCAyMjMuNDY4IDE4Ny40NyAzMDIuNjMxIDEwMy41ODIgODIgMjIyLjkxNyAxMjIuMTcyIDM1OS4xODggMTE0LjQ1MiA4Mi43MDgtNC41NjggMTc0Ljc5LTE1LjIwMiAyNzguNjg2LTk5LjQ4NSAyNi4xNTEgMTIuNDQ1IDUzLjY0MiAxNy40ODYgOTkuMjQ5IDIxLjI2NyAzNS4xMzEgMy4wNzIgNjkuMDAyLTEuNzMzIDk1LjE1My02LjkzMSA0MC45Ni04LjM1IDM4LjIwMy00NC43NDEgMjMuMzE2LTUxLjQzNy0xMjAuMjAyLTUzLjcyLTkzLjgxNC0zMS44MjItMTE3LjgzOS00OS42MjQgNjEuMTI1LTY5LjMxNyAxNTMuMjA2LTE0MS4zMTIgMTg5LjIwNC0zNzQuNzA2IDIuODM1LTE4LjUxLjQ3Mi0zMC4xNjggMC00NS4yMTMtLjIzNy05LjEzNyAxLjk2OS0xMi42MDMgMTIuOTE4LTEzLjcwNmEyNDAuMDg5IDI0MC4wODkgMCAwIDAgODYuMTczLTI1LjQ0MmM3Ny45ODItNDAuODAzIDEwOS4zMzItMTA3LjkxNCAxMTYuNzM2LTE4OC4yNTkgMS4xMDMtMTIuMjg4LS4yMzYtMjQuOTctMTMuNzA1LTMxLjQyOXpNNjg1LjQ1IDg0Mi4wNDNDNTY5LjEwOCA3NTQuMjE1IDUxMi41NSA3MjUuMzA3IDQ4OS4xNTcgNzI2LjQ5Yy0yMS44MiAxLjI2LTE3Ljk2IDI1LjIwNi0xMy4xNTUgNDAuODAyIDUuMDQyIDE1LjQzOSAxMS41OCAyNi4wNzMgMjAuNzE3IDM5LjYyMSA2LjMwMSA4LjkgMTAuNzkxIDIyLjIxMy02LjMwMiAzMi4yOTUtMzcuNDk0IDIyLjIxMy0xMDIuNzk0LTcuNTYxLTEwNS43ODctOC45OC03Ni4wMTItNDIuOTI5LTEzOS40MjEtOTkuNTY0LTE4NC4yNDEtMTc2Ljk5NGE1MjMuODk0IDUyMy44OTQgMCAwIDEtNzIuNDY4LTIzOS45M2MtMS4wMjQtMjAuNTYgNS4yNzgtMjcuODg1IDI2LjcwMy0zMS41ODdhMjcyLjE0OCAyNzIuMTQ4IDAgMCAxIDg1LjMwNy0yLjEyN2MxMTguOTQyIDE2LjY5OSAyMjAuMTYgNjcuNzQxIDMwNS4wNzMgMTQ4LjQ4IDQ4LjQ0MyA0Ni4wMDEgODUuMDcxIDEwMC45ODIgMTIyLjg4IDE1NC43MDMgNDAuMTczIDU3LjAyOSA4My4zMzggMTExLjQ1OCAxMzguMzIgMTU1Ljk2MyAxOS4zNzYgMTUuNjc1IDM0Ljg5NCAyNy41NjkgNDkuNzgxIDM2LjIzNC00NC43NCA0LjgwNS0xMTkuNDE0IDUuODI5LTE3MC40NTYtMzIuOTI2em01NS45MjYtMzQ0LjYxNWMwLTUuMzU3IDIuNzU3LTEwLjM5OCA3LjMyNi0xMy40N2ExNy43MjMgMTcuNzIzIDAgMCAxIDIyLjEzNCAyLjA0OGMzLjA3MiAyLjkxNSA0LjgwNSA3LjA5IDQuODA1IDExLjQyMmExNi43NzggMTYuNzc4IDAgMCAxLTE3LjI1IDE2LjU0MSAxNy4zMyAxNy4zMyAwIDAgMS0xMi4xMzEtNC44ODMgMTUuOTExIDE1LjkxMSAwIDAgMS00Ljg4NC0xMS42NTh6bTE3My41MjkgODUuNDY0YTEwNC4zNyAxMDQuMzcgMCAwIDEtMzMuMDA1IDguNTg2IDcxLjQ0NCA3MS40NDQgMCAwIDEtNDQuNTA0LTEzLjU0OGMtMTUuMjgyLTEyLjI4OC0yNi4yMy0xOS4xNDEtMzAuNzItNDAuNjQ1YTg5LjE2NyA4OS4xNjcgMCAwIDEgLjc4Ny0zMS40MjljMy45MzktMTcuNDg3LS4zOTMtMjguNzUtMTMuMzEyLTM4LjkxMi0xMC40NzYtOC4zNS0yMy43MS0xMC42MzQtMzguMzYtMTAuNjM0YTMyLjA2IDMyLjA2IDAgMCAxLTE0LjE3OS00LjE3NWMtNi4xNDQtMi45MTQtMTEuMTA2LTEwLjI0LTYuMzAxLTE5LjE0YTYwLjE4IDYwLjE4IDAgMCAxIDEwLjcxMi0xMS4yNjVjMTkuODUtMTAuNzkgNDIuNjkzLTcuMjQ2IDYzLjg4Mi43ODggMTkuNjkzIDcuNzk4IDM0LjUwMSAyMS44OTggNTUuOTI2IDQxLjkwNSAyMS43NCAyNC4xODMgMjUuNjggMzAuOCAzOC4xMjUgNDguOTE2IDkuODQ2IDE0LjE3OSAxOC43NDcgMjguNzUgMjQuODkgNDUuNDUgMy43MDMgMTAuMzk3LTEuMTAyIDE4LjkwNS0xMy45NDEgMjQuMTAzeiIgZmlsbD0iIzRENkJGRSIvPjwvc3ZnPg==",Se=de(59301),De=({value:Re,onChange:Ze})=>{const[nt,rt]=(0,le.useState)(!1),ft=[{name:"\u901A\u4E49\u5343\u95EE",key:"qwen-max",img:vt},{name:"DeepSeek R1-671B",key:"deepseek-r1",img:pe}],xt=ft.find(at=>at.key===Re);return Se.createElement("div",{className:Me.select},Se.createElement(Ie.Z,{size:10},Se.createElement("span",{className:"c-grey-333 font16"},"\u6A21\u578B"),Se.createElement("div",{className:Me.box,onMouseLeave:()=>rt(!1)},Se.createElement("div",{className:Me.text,onClick:()=>rt(!0)},Se.createElement("img",{src:xt.img,width:20}),Se.createElement("span",null,xt.name),Se.createElement("b",{className:"iconfont icon-zhankai6"})),nt&&Se.createElement("div",{className:Me.itemWrap},Se.createElement("aside",null,ft.map(at=>Se.createElement("div",{key:at.key,className:`${Me.item} ${at.key===Re?Me.active:""}`,onClick:wt=>{wt.stopPropagation(),Ze(at.key),rt(!1)}},Se.createElement("img",{src:at.img,width:20}),Se.createElement("span",null,at.name))))))))}},20848:function(ze,be,de){"use strict";de.d(be,{Z:function(){return xt}});var le=de(59301),Me=de(62957),Ie=de(6767),Pe=de(29787),Ge=de(77019),Oe=de(25399),Ve=de(37568),ot=de(75727),Je=de(82326),Xe={judgment:"judgment___cE7n1",active:"active___VwnES",selectMore:"selectMore___x1UrU"},vt=de(24092),st=de(19565),_t="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAi5JREFUOE9lk81rE0EYxn+TNU2isNKC0oMXUXPxInipN8WA93rUk0gQBBHbHvoX9BRp8YuCFS1UREgUkZ5SEERIETQnD5HqxYNIMW3a7k4+dkfenV02tYfhHZaZ3z7P876jACo1UzQ+c2hKoYerujAC5B0oKMhn0lXI0Mk51EcMs+fKqqUq9ehyA59Ro8H4gIZMH/LDl2XvpN8KGdoOTKj5j6YaeEzKRQGQVA2HBvv/Pqwk3tfUo3Wz3fNww/hioiCqYsUchBQykMtE9jpqsWlMz4O+AJIlSmI7kkd8OLKQi20JRFSopW/G9HwQyCD2f/MyuIdhZxcWn4Hq2cO370nkUHsYq1KgXmxYQN8DqSeOwNXz8LcDYy5U38OP75AN4e6UBbx6kIapVn6lFgRQOglnjsHLD3DtIrR+wrtVECvTMWB5AZIc1OtNC5AlUq+fhTCEjd9wahwcBU9WwN+CmTtWwdN5Ox85B9SbLWO62so/nYcL4/BnF3QX8lk47sJaA740YeaWBTy+bxVEIa52jPECC7gyBkez8PyrDTAfQPkSbLZh+S1M37CAhUraWrW2Y4wXgh5YG0lH9rV2aEKl1WI1aqd04dOe2d4LcD0D3W4KSboiNZrQGDI86gWHjvrsmaoXMCkAP0ghESBWFPw3YMm4Z0NqqqlNUQc0/JBRsSKQYRvJjAgkUpG+l7bTZUJJKOvaFIOAOS+k5IW4un8wD5lSeS9oOvjUlWZ2qqxa/wBF3k0rRn8T3AAAAABJRU5ErkJggg==",Ue="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAAXNSR0IArs4c6QAAADxJREFUKFNjZEADBkkX5oOELswzSESWYhxAhTA3wZ3wn8EGzGZkOILiRrjCf1Bhxv82IFUYCgfQM8RaDQDYKCkNszfCOwAAAABJRU5ErkJggg==",te=de(46133),ne=Object.defineProperty,fe=Object.defineProperties,se=Object.getOwnPropertyDescriptors,pe=Object.getOwnPropertySymbols,Se=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable,De=(at,wt,Mt)=>wt in at?ne(at,wt,{enumerable:!0,configurable:!0,writable:!0,value:Mt}):at[wt]=Mt,Re=(at,wt)=>{for(var Mt in wt||(wt={}))Se.call(wt,Mt)&&De(at,Mt,wt[Mt]);if(pe)for(var Mt of pe(wt))we.call(wt,Mt)&&De(at,Mt,wt[Mt]);return at},Ze=(at,wt)=>fe(at,se(wt)),nt=(at,wt,Mt)=>new Promise((Xt,bn)=>{var pn=Nt=>{try{gn(Mt.next(Nt))}catch(ut){bn(ut)}},fn=Nt=>{try{gn(Mt.throw(Nt))}catch(ut){bn(ut)}},gn=Nt=>Nt.done?Xt(Nt.value):Promise.resolve(Nt.value).then(pn,fn);gn((Mt=Mt.apply(at,wt)).next())});const rt=({value:at,onChange:wt})=>{const Mt=["\u6B63\u786E","\u9519\u8BEF"];return le.createElement("div",{className:Xe.judgment},Mt.map(Xt=>le.createElement("div",{className:Xt===at?Xe.active:"",key:Xt},le.createElement("b",{onClick:()=>wt(Xt)},Xt==="\u6B63\u786E"?"T":"F"),le.createElement("span",null,Xt))))};var xt=({isEdit:at=!1,visible:wt,data:Mt,onClose:Xt,onOk:bn,changePage:pn})=>{const fn=[{type:0,question:"",answer:""},{type:1,question:"",answer:"\u6B63\u786E"},{type:2,question:"",answer:""}],[gn,Nt]=(0,le.useState)(!1),[ut,it]=(0,le.useState)(""),[an,mn]=(0,le.useState)(!1),[Ct,un]=(0,le.useState)([]),[on,Bn]=(0,le.useState)([]),[Nn,si]=(0,le.useState)([]);(0,le.useEffect)(()=>{var Ne,Qe;wt&&(at?(it(((Ne=Mt==null?void 0:Mt.page)==null?void 0:Ne.page_info)||""),un(((Qe=Mt==null?void 0:Mt.page)==null?void 0:Qe.smart_plan_page_knowledges)||[])):un([fn[0]]),Pt())},[wt]);const Pt=()=>nt(void 0,null,function*(){var Ne,Qe;console.log(Mt);let Ke=yield(0,vt.ZP)(`/api/courses/${Mt==null?void 0:Mt.coursesId}/smart_plans/${Mt==null?void 0:Mt.id}/page_list.json`,{method:"get",params:{position:Mt==null?void 0:Mt.position}});(Ke==null?void 0:Ke.status)==0&&(si(Ke==null?void 0:Ke.data),pn((Ne=Mt==null?void 0:Mt.page)==null?void 0:Ne.group_position),Bn((Qe=Mt==null?void 0:Mt.page)==null?void 0:Qe.group_position))}),qn=(Ne,Qe,Ke)=>{Ct[Qe][Ne]=Ke,un([...Ct])},Ei=()=>nt(void 0,null,function*(){var Ne,Qe,Ke,Le;Nt(!0);const Lt=(0,vt.ZP)(`/api/courses/${Mt==null?void 0:Mt.coursesId}/smart_plans/${Mt==null?void 0:Mt.id}/get_questions.json`,{method:"post",body:{url:(Ne=Mt==null?void 0:Mt.url)==null?void 0:Ne.map(rn=>rn==null?void 0:rn.url),count:3,type:0}}),tn=(0,vt.ZP)(`/api/courses/${Mt==null?void 0:Mt.coursesId}/smart_plans/${Mt==null?void 0:Mt.id}/get_page_info.json`,{method:"post",body:{url:(Qe=Mt==null?void 0:Mt.url)==null?void 0:Qe.map(rn=>rn==null?void 0:rn.url)}}),[$t,Ht]=yield Promise.all([Lt,tn]);($t==null?void 0:$t.status)===0&&un([...(Le=(Ke=$t==null?void 0:$t.data)==null?void 0:Ke.questions)==null?void 0:Le.map(rn=>(rn.type=0,rn))]),(Ht==null?void 0:Ht.status)===0&&it(Ht==null?void 0:Ht.data),Nt(!1)}),$e=Ne=>nt(void 0,null,function*(){var Qe,Ke,Le;Nt(!0);const At=Ct[Ne].type,Lt=yield(0,vt.ZP)(`/api/courses/${Mt==null?void 0:Mt.coursesId}/smart_plans/${Mt==null?void 0:Mt.id}/get_questions.json`,{method:"post",body:{url:(Qe=Mt==null?void 0:Mt.url)==null?void 0:Qe.map(tn=>tn==null?void 0:tn.url),count:1,type:At}});if((Lt==null?void 0:Lt.status)===0){const tn=(Le=(Ke=Lt==null?void 0:Lt.data)==null?void 0:Ke.questions)==null?void 0:Le[0];tn&&(Ct[Ne]=Ze(Re({},tn),{type:At}),At===0&&(Ct[Ne].answer=""),un([...Ct]))}Nt(!1)}),Fe=[{key:"1",label:"\u5224\u65AD\u9898"},{key:"2",label:"\u5173\u952E\u8BCD\u4F5C\u7B54"}];return le.createElement(Me.default,{centered:!0,destroyOnClose:!0,onCancel:Xt,open:wt,title:"\u667A\u80FD\u95EE\u7B54\u8BBE\u7F6E",okText:"\u786E\u8BA4",confirmLoading:an,afterClose:()=>{var Ne;it(""),un([]),pn([(Ne=Mt==null?void 0:Mt.page)==null?void 0:Ne.position])},onOk:()=>nt(void 0,null,function*(){var Ne;console.log(Ct,"questionData");const Qe=[],Ke=[];Ct.forEach((Lt,tn)=>{var $t;(!Lt.question||(($t=Lt.question)==null?void 0:$t.length)>200)&&Qe.push(tn+1),Lt.type!==0&&!Lt.answer&&Ke.push(tn+1)});let Le=[];if(Qe.length&&Le.push(`\u7B2C${Qe.join("\u3001")}\u9053\u95EE\u7B54\uFF0C\u672A\u8BBE\u7F6E\u95EE\u9898\u6216\u95EE\u9898\u8D85\u51FA200\u4E2A\u5B57\u7B26`),Ke.length&&Le.push(`\u7B2C${Ke.join("\u3001")}\u9053\u95EE\u7B54\uFF0C\u672A\u8BBE\u7F6E\u56DE\u7B54`),Le.length){Ie.ZP.warning(Le.join("\uFF1B"),4);return}mn(!0);const At=yield(0,vt.ZP)(`/api/smart_plan_item_banks/${(Ne=Mt==null?void 0:Mt.page)==null?void 0:Ne.id}/${at?"smart_plan_page_knowledges/update_knowledge":"smart_plan_page_knowledges"}.json`,{method:at?"put":"post",body:{questions:Ct,page_info:ut,page_list:on}});(At==null?void 0:At.status)===0&&bn(),mn(!1)}),wrapClassName:"QASetting-modal",bodyStyle:{paddingBottom:10,maxHeight:650},width:1e3},le.createElement(Pe.Z,{spinning:gn},le.createElement("div",{style:{minHeight:"70px"}},le.createElement("div",{className:"c-black"},"\u667A\u80FD\u95EE\u7B54\u89C4\u5219\u8BF4\u660E\u4F18\u5316\uFF1A\u667A\u80FD\u95EE\u7B54\u529F\u80FD\u53EF\u81EA\u52A8\u89E3\u6790\u8BFE\u4EF6\u77E5\u8BC6\u70B9\u5E76\u751F\u6210\u77E5\u8BC6\u70B9\u7684\u5173\u8054\u6027\u63D0\u95EE\uFF0C\u5728\u5B66\u751F\u5B66\u4E60\u65F6\u667A\u80FD\u63A8\u9001\u89E3\u6790\u548C\u95EE\u9898\uFF0C\u5168\u7A0B\u8BB0\u5F55\u4EA4\u6D41\u6570\u636E\u5E76\u751F\u6210\u4E2A\u6027\u5316\u5B66\u4E60\u62A5\u544A\u3002"),le.createElement("div",null,le.createElement(Ge.Z,{align:"middle",className:"mb10 mt20"},le.createElement("span",{className:"mr10 c-black",style:{fontWeight:500}},"\u9884\u8BBE\u89E3\u6790"),le.createElement(Oe.Z,{title:"\u667A\u80FD\u89E3\u6790\u8BFE\u4EF6\u5185\u5BB9\uFF0C\u5E76\u81EA\u52A8\u751F\u6210\u77E5\u8BC6\u70B9\u8BE6\u89E3\u53CA3\u4E2A\u5173\u8054\u63D0\u95EE\uFF0C\u52A9\u529B\u6559\u5E08\u8F7B\u677E\u521B\u5EFA\u4E92\u52A8\u8BFE\u5802\u3002"},le.createElement("img",{src:_t,onClick:()=>{Ei()},className:"iconfont icon-shuaxin4 font14 c-light-primary current"}))),le.createElement(st.Z,{height:200,defaultValue:ut,onChange:Ne=>it(Ne)})),le.createElement(te.op,{className:"mt20",onClick:()=>{Ct.push(fn[0]),un([...Ct]),setTimeout(()=>{const Ne=document.querySelector(".QASetting-modal"),Qe=Ne==null?void 0:Ne.querySelector(".ant-modal-body");Qe==null||Qe.scrollTo({top:Qe.scrollHeight,behavior:"smooth"})},0)},icon:le.createElement(Ge.Z,{align:"middle",justify:"center",style:{width:16,height:16,background:"rgba(48,97,208,0.1)",borderRadius:"50%"}},le.createElement("img",{src:Ue}))},"\u65B0\u589E\u95EE\u9898"),Ct.map((Ne,Qe)=>le.createElement("div",{key:Qe,style:{marginTop:Qe===0?20:30}},le.createElement(Ge.Z,{align:"middle",className:"mb10"},le.createElement("span",{className:"mr10 c-black",style:{fontWeight:500}},"\u95EE\u9898",Qe+1),le.createElement(Oe.Z,{title:"\u667A\u80FD\u5206\u6790\u8BFE\u4EF6\u5185\u5BB9\uFF0C\u81EA\u52A8\u751F\u6210\u77E5\u8BC6\u70B9\u5173\u8054\u63D0\u95EE\u3002"},le.createElement("img",{src:_t,onClick:()=>$e(Qe),className:"iconfont icon-shuaxin4 font14 c-light-primary current"})),le.createElement(Oe.Z,{title:"\u5220\u9664\u95EE\u9898"},le.createElement("i",{onClick:()=>{Ct.splice(Qe,1),un([...Ct])},style:{marginLeft:"auto"},className:"iconfont icon-shanchu15 font14 current c-grey-999"}))),le.createElement(Ve.default.TextArea,{onChange:Ke=>qn("question",Qe,Ke.target.value),value:Ne==null?void 0:Ne.question}),Ne.type===0&&le.createElement(ot.Z,{menu:{items:Fe,onClick:({key:Ke})=>{const Le=Number(Ke),At={type:Le,answer:fn[Le].answer,question:Ne.question};Ct[Qe]=At,un([...Ct])}},placement:"topRight"},le.createElement(te.op,{className:"mt10",shape:"default"},"\u9884\u8BBE\u7B54\u6848")),[1,2].includes(Ne.type)&&le.createElement(Ge.Z,{align:"middle",className:"mr10 mt10 mb10"},le.createElement("span",{className:"c-black"},"\u56DE\u7B54"),le.createElement("span",{className:"font14 c-light-primary current ml10",onClick:()=>{Ct[Qe]=fn[Ne.type===1?2:1],un([...Ct])}},le.createElement("i",{className:"iconfont icon-dingbu-qiehuanbanben font14 c-light-primary mr5"}),le.createElement("span",null,Ne.type===1?"\u5207\u6362\u81F3\u6587\u5B57\u4F5C\u7B54\u6A21\u5F0F":"\u5207\u6362\u81F3\u5224\u65AD\u9898\u6A21\u5F0F"))),Ne.type===1&&le.createElement(rt,{value:Ne.answer,onChange:Ke=>qn("answer",Qe,Ke)}),Ne.type===2&&le.createElement(Ve.default,{onChange:Ke=>qn("answer",Qe,Ke.target.value),placeholder:"\u8BF7\u8BBE\u7F6E\u56DE\u7B54\u5173\u952E\u8BCD\uFF0C\u8BF7\u7528\u2018\uFF0C\u2019\u5206\u9694\u5F00",value:Ne.answer})))),le.createElement("div",{style:{fontWeight:400,marginTop:"20px",display:"flex",alignItems:"center"}},le.createElement("div",{style:{fontWeight:500}},"\u5E94\u7528\u8BFE\u4EF6\u9875\u9762"),le.createElement("div",{style:{color:"#9096A3",fontSize:12,marginLeft:"10px"}},"\u667A\u80FD\u95EE\u7B54\u652F\u6301\u591A\u9875\u9762\u5173\u8054\uFF0C\u5B66\u751F\u6D4F\u89C8\u5173\u8054\u5E7B\u706F\u7247\u65F6\u5C06\u770B\u5230\u76F8\u540C\u7684\u89E3\u6790\u548C\u63D0\u95EE\u5185\u5BB9\u3002")),le.createElement(Je.default,{placeholder:"\u8BF7\u9009\u62E9\u5E7B\u706F\u7247\u9875\u7801",className:Xe.selectMore,style:{width:"100%",marginTop:"10px"},mode:"multiple",size:"large",value:on,showSearch:!1,onChange:Ne=>{pn(Ne),Bn(Ne)}},Nn==null?void 0:Nn.map((Ne,Qe)=>{var Ke;return le.createElement(Je.default.Option,{value:Ne,key:Qe,disabled:Ne==((Ke=Mt==null?void 0:Mt.page)==null?void 0:Ke.position)},"\u7B2C",Ne,"\u9875")}))))}},46010:function(ze,be,de){"use strict";de.d(be,{Z:function(){return Ri}});var le=de(59301),Me=de(6858),Ie={panel:"panel___sQgCV"},Ge=({children:Wn})=>le.createElement("div",{className:Ie.panel},Wn),Oe={head:"head___Sq9Jd",btn:"btn___qLoeT",center:"center___iV40j",left:"left___VTVFI",tool:"tool___sOsjb",right:"right___weWPx",borderBox:"borderBox___DAP9a",try:"try___xy70Z",btns:"btns___ZqNMP",add:"add___KnDP5",analysis:"analysis___F1nSY"},Ve=de(20848),ot=de(77736),Je=de(6767),Xe=de(77019),vt=de(62957),st=de(71570),_t=de(16448),Ue=Object.defineProperty,te=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,se=(Wn,ci,ti)=>ci in Wn?Ue(Wn,ci,{enumerable:!0,configurable:!0,writable:!0,value:ti}):Wn[ci]=ti,pe=(Wn,ci)=>{for(var ti in ci||(ci={}))ne.call(ci,ti)&&se(Wn,ti,ci[ti]);if(te)for(var ti of te(ci))fe.call(ci,ti)&&se(Wn,ti,ci[ti]);return Wn};const Se=Wn=>React.createElement("svg",pe({className:"b_svg__icon",width:200,height:200,viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Wn),React.createElement("path",{d:"M0 0h1024v1024H0z",fill:"#C4D6FE"}),React.createElement("path",{d:"M339.968 419.986h-219.94c-44.106 0-80.019-35.84-80.019-80.018v-219.94c0-44.106 35.84-80.019 80.018-80.019h219.941c44.178 0 80.018 35.84 80.018 80.018v219.941c0 44.178-35.84 80.018-80.018 80.018z",fill:"#FFF"}),React.createElement("path",{d:"M119.954 80.018a40.01 40.01 0 0 0-39.936 40.01v219.94c0 22.09 17.92 40.01 40.01 40.01h219.94a40.01 40.01 0 0 0 40.01-40.01v-219.94a40.01 40.01 0 0 0-40.01-40.01h-219.94M119.953 0h219.94C406.31 0 460.07 53.76 460.07 119.954v220.014a119.954 119.954 0 0 1-119.955 120.1h-220.16A119.954 119.954 0 0 1 0 340.115v-220.16C0 53.76 53.76 0 119.954 0zm784.092 983.99H683.959c-44.178 0-80.018-35.84-80.018-80.017V684.032c0-44.178 35.84-80.018 80.018-80.018h219.94c44.106 0 80.019 35.84 80.019 80.018v219.94c0 44.106-35.84 80.019-80.019 80.019z",fill:"#3061D0"}),React.createElement("path",{d:"M684.032 644.023a40.01 40.01 0 0 0-40.01 40.009v219.94c0 22.09 17.92 40.01 40.01 40.01h219.94a40.01 40.01 0 0 0 40.01-40.01v-219.94a40.01 40.01 0 0 0-40.01-40.01h-219.94m0-80.017h219.94c66.268 0 120.028 53.686 120.028 119.954v220.014A119.954 119.954 0 0 1 904.046 1024H683.959A119.954 119.954 0 0 1 563.93 904.046V683.959c0-66.34 53.687-120.028 119.955-120.028z",fill:"#FFF"}),React.createElement("path",{d:"M644.023 833.975H190.025v-79.872h453.998zM833.975 269.97H379.977v-79.945h453.998z",fill:"#3061D0"}),React.createElement("path",{d:"M874.057 230.034v241.957a40.01 40.01 0 0 1-80.091 0V230.034a40.01 40.01 0 1 1 80.018 0zM230.034 552.01v241.957a40.01 40.01 0 0 1-80.018 0V552.009a40.01 40.01 0 0 1 80.018 0z",fill:"#3061D0"}),React.createElement("path",{d:"M773.998 754.03h40.009c10.971 0 19.968 8.923 19.968 19.968v40.009a19.968 19.968 0 0 1-19.968 19.968h-40.01a19.968 19.968 0 0 1-19.967-19.968v-40.01c0-11.044 8.923-19.967 19.968-19.967z",fill:"#FFF"}),React.createElement("path",{d:"M209.993 190.025h40.01c11.044 0 19.967 8.924 19.967 19.968v40.01a19.968 19.968 0 0 1-19.968 19.967h-40.009a19.968 19.968 0 0 1-19.968-19.968v-40.009c0-10.971 8.924-19.968 19.968-19.968z",fill:"#3061D0"}));var we="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgd2lkdGg9IjIwMCIgaGVpZ2h0PSIyMDAiIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTAgMGgxMDI0djEwMjRIMHoiIGZpbGw9IiNDNEQ2RkUiLz48cGF0aCBkPSJNMzM5Ljk2OCA0MTkuOTg2aC0yMTkuOTRjLTQ0LjEwNiAwLTgwLjAxOS0zNS44NC04MC4wMTktODAuMDE4di0yMTkuOTRjMC00NC4xMDYgMzUuODQtODAuMDE5IDgwLjAxOC04MC4wMTloMjE5Ljk0MWM0NC4xNzggMCA4MC4wMTggMzUuODQgODAuMDE4IDgwLjAxOHYyMTkuOTQxYzAgNDQuMTc4LTM1Ljg0IDgwLjAxOC04MC4wMTggODAuMDE4eiIgZmlsbD0iI0ZGRiIvPjxwYXRoIGQ9Ik0xMTkuOTU0IDgwLjAxOGE0MC4wMSA0MC4wMSAwIDAgMC0zOS45MzYgNDAuMDF2MjE5Ljk0YzAgMjIuMDkgMTcuOTIgNDAuMDEgNDAuMDEgNDAuMDFoMjE5Ljk0YTQwLjAxIDQwLjAxIDAgMCAwIDQwLjAxLTQwLjAxdi0yMTkuOTRhNDAuMDEgNDAuMDEgMCAwIDAtNDAuMDEtNDAuMDFoLTIxOS45NE0xMTkuOTUzIDBoMjE5Ljk0QzQwNi4zMSAwIDQ2MC4wNyA1My43NiA0NjAuMDcgMTE5Ljk1NHYyMjAuMDE0YTExOS45NTQgMTE5Ljk1NCAwIDAgMS0xMTkuOTU1IDEyMC4xaC0yMjAuMTZBMTE5Ljk1NCAxMTkuOTU0IDAgMCAxIDAgMzQwLjExNXYtMjIwLjE2QzAgNTMuNzYgNTMuNzYgMCAxMTkuOTU0IDB6bTc4NC4wOTIgOTgzLjk5SDY4My45NTljLTQ0LjE3OCAwLTgwLjAxOC0zNS44NC04MC4wMTgtODAuMDE3VjY4NC4wMzJjMC00NC4xNzggMzUuODQtODAuMDE4IDgwLjAxOC04MC4wMThoMjE5Ljk0YzQ0LjEwNiAwIDgwLjAxOSAzNS44NCA4MC4wMTkgODAuMDE4djIxOS45NGMwIDQ0LjEwNi0zNS44NCA4MC4wMTktODAuMDE5IDgwLjAxOXoiIGZpbGw9IiMzMDYxRDAiLz48cGF0aCBkPSJNNjg0LjAzMiA2NDQuMDIzYTQwLjAxIDQwLjAxIDAgMCAwLTQwLjAxIDQwLjAwOXYyMTkuOTRjMCAyMi4wOSAxNy45MiA0MC4wMSA0MC4wMSA0MC4wMWgyMTkuOTRhNDAuMDEgNDAuMDEgMCAwIDAgNDAuMDEtNDAuMDF2LTIxOS45NGE0MC4wMSA0MC4wMSAwIDAgMC00MC4wMS00MC4wMWgtMjE5Ljk0bTAtODAuMDE3aDIxOS45NGM2Ni4yNjggMCAxMjAuMDI4IDUzLjY4NiAxMjAuMDI4IDExOS45NTR2MjIwLjAxNEExMTkuOTU0IDExOS45NTQgMCAwIDEgOTA0LjA0NiAxMDI0SDY4My45NTlBMTE5Ljk1NCAxMTkuOTU0IDAgMCAxIDU2My45MyA5MDQuMDQ2VjY4My45NTljMC02Ni4zNCA1My42ODctMTIwLjAyOCAxMTkuOTU1LTEyMC4wMjh6IiBmaWxsPSIjRkZGIi8+PHBhdGggZD0iTTY0NC4wMjMgODMzLjk3NUgxOTAuMDI1di03OS44NzJoNDUzLjk5OHpNODMzLjk3NSAyNjkuOTdIMzc5Ljk3N3YtNzkuOTQ1aDQ1My45OTh6IiBmaWxsPSIjMzA2MUQwIi8+PHBhdGggZD0iTTg3NC4wNTcgMjMwLjAzNHYyNDEuOTU3YTQwLjAxIDQwLjAxIDAgMCAxLTgwLjA5MSAwVjIzMC4wMzRhNDAuMDEgNDAuMDEgMCAxIDEgODAuMDE4IDB6TTIzMC4wMzQgNTUyLjAxdjI0MS45NTdhNDAuMDEgNDAuMDEgMCAwIDEtODAuMDE4IDBWNTUyLjAwOWE0MC4wMSA0MC4wMSAwIDAgMSA4MC4wMTggMHoiIGZpbGw9IiMzMDYxRDAiLz48cGF0aCBkPSJNNzczLjk5OCA3NTQuMDNoNDAuMDA5YzEwLjk3MSAwIDE5Ljk2OCA4LjkyMyAxOS45NjggMTkuOTY4djQwLjAwOWExOS45NjggMTkuOTY4IDAgMCAxLTE5Ljk2OCAxOS45NjhoLTQwLjAxYTE5Ljk2OCAxOS45NjggMCAwIDEtMTkuOTY3LTE5Ljk2OHYtNDAuMDFjMC0xMS4wNDQgOC45MjMtMTkuOTY3IDE5Ljk2OC0xOS45Njd6IiBmaWxsPSIjRkZGIi8+PHBhdGggZD0iTTIwOS45OTMgMTkwLjAyNWg0MC4wMWMxMS4wNDQgMCAxOS45NjcgOC45MjQgMTkuOTY3IDE5Ljk2OHY0MC4wMWExOS45NjggMTkuOTY4IDAgMCAxLTE5Ljk2OCAxOS45NjdoLTQwLjAwOWExOS45NjggMTkuOTY4IDAgMCAxLTE5Ljk2OC0xOS45Njh2LTQwLjAwOWMwLTEwLjk3MSA4LjkyNC0xOS45NjggMTkuOTY4LTE5Ljk2OHoiIGZpbGw9IiMzMDYxRDAiLz48L3N2Zz4=",De=Object.defineProperty,Re=Object.getOwnPropertySymbols,Ze=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,rt=(Wn,ci,ti)=>ci in Wn?De(Wn,ci,{enumerable:!0,configurable:!0,writable:!0,value:ti}):Wn[ci]=ti,ft=(Wn,ci)=>{for(var ti in ci||(ci={}))Ze.call(ci,ti)&&rt(Wn,ti,ci[ti]);if(Re)for(var ti of Re(ci))nt.call(ci,ti)&&rt(Wn,ti,ci[ti]);return Wn};const xt=Wn=>React.createElement("svg",ft({className:"c_svg__icon",width:200,height:173.41,viewBox:"0 0 1181 1024",xmlns:"http://www.w3.org/2000/svg"},Wn),React.createElement("path",{d:"M870.662 0c9.925 46.237 14.848 92.434 4.962 143.79H211.85C206.926 87.315 192.039 0 271.358 0H870.7zM320.863 92.434c9.846 0 14.848-10.24 9.846-20.519-4.923-10.28-14.808-15.439-19.77-15.439-9.925 5.12-14.888 15.439-9.925 20.559 0 10.24 9.924 15.399 19.81 15.399zm69.316-15.36c0-5.159-4.963-10.318-9.886-15.438-4.962-5.12-9.924-5.12-14.887 0s-9.885 5.12-9.885 15.399c0 10.24 4.923 15.399 14.848 15.399s19.81-10.24 19.81-15.36zm39.62 15.36c9.925 0 14.887-10.24 14.887-15.36 0-5.159 0-10.318-4.962-10.318-4.963-10.24-4.963-10.24-9.925-10.24-9.885 0-14.848 10.24-14.848 20.519 0 5.12 0 10.24 4.963 10.24 0 5.159 4.962 5.159 9.885 5.159z",fill:"#8DCAFC"}),React.createElement("path",{d:"M870.662 0h59.47c19.81 0 34.657 10.24 39.62 35.957 4.923 41.078 9.885 82.155 4.923 118.152-29.696-10.318-59.43-15.438-94.128-10.318h-4.923C885.51 97.593 885.51 46.237 870.662 0z",fill:"#63B9FC"}),React.createElement("path",{d:"M880.587 143.79c4.923 61.636 9.885 128.392 0 184.908-4.963 30.798 4.923 71.915 4.923 92.434 0 133.511 0 267.062 4.962 395.493H231.66c-4.923 0-9.886 0-9.886-5.12l-4.962-5.16V143.751h663.815zm-495.41 226.025 64.393-61.636c14.887-10.24 14.887-25.678 9.924-41.078-24.772-66.755-133.747 61.636-153.557 82.195-9.925 15.36-9.925 30.798 0 41.077 14.847 15.399 163.443 184.868 153.557 61.636 0-5.12-4.962-10.28-4.962-10.28l-69.276-61.675v-10.24zm257.57-82.155c0-10.28 0-15.4-4.922-25.678-4.963-10.28-9.925-15.439-19.81-15.439-14.888-5.12-34.658 5.12-39.62 20.558L528.848 457.13c-4.962 15.399 4.963 35.957 19.81 41.077 14.848 5.12 34.658-5.12 39.62-20.519l54.508-190.027zm138.71 66.755c4.963 5.12 9.925 10.24 9.925 15.4 0 5.12 0 10.279-4.962 15.399-14.848 15.438-128.785 107.872-39.62 113.031 4.962 0 9.885 0 14.847-5.159 24.773-20.558 54.508-46.237 79.24-66.756 29.736-30.837 64.433-51.356 19.85-92.473-24.812-25.678-118.9-138.631-143.672-61.596v15.36c9.925 20.558 34.658 46.236 64.393 66.794zM479.305 590.68c0-10.279-4.962-15.438-14.847-15.438H310.86c-9.846 0-14.848 5.12-14.848 15.438v5.12c0 10.24 4.962 15.4 14.887 15.4h158.48c4.963 0 9.925 0 9.925-5.12v-15.4zm188.255 77.035c0-10.279-14.887-20.558-34.697-20.558s-34.658 10.279-34.658 20.558c0 10.24 14.848 20.52 34.658 20.52s34.658-10.24 34.658-20.52zm-109.014 0c0-10.279-4.923-15.399-14.848-15.399H310.938c-4.962 0-9.924 0-9.924 5.12s-4.963 5.12-4.963 5.12c0 10.28 4.963 15.438 14.887 15.438h232.799c4.962 0 9.924 0 9.924-5.12 4.923 5.12 4.923 0 4.923-5.159zm183.292 66.756c0-10.24-9.924-15.4-24.772-15.4s-24.773 10.24-24.773 20.52 9.925 15.438 24.812 15.438c9.846 0 24.733-10.279 24.733-20.558zm-321.963 0c0-5.12 0-10.24-4.962-10.24s-4.963-5.16-9.925-5.16H310.86c-4.923 0-9.846 0-9.846 5.12-5.002 5.12-5.002 5.12-5.002 10.28 0 5.12 0 10.24 4.962 10.24s4.963 5.159 9.925 5.159h94.128c4.922 0 14.847-5.12 14.847-15.36zm227.836 0c0-10.24-4.923-15.4-14.848-15.4h-158.52c-4.962 0-9.885 0-9.885 5.12-4.963 5.12-4.963 5.12-4.963 10.28 0 5.12 0 10.24 4.963 10.24 4.923 5.159 4.923 5.159 9.885 5.159h158.52c4.963 0 9.925 0 9.925-5.12 4.923 0 4.923-5.12 4.923-10.24z",fill:"#3291FC"}),React.createElement("path",{d:"M880.587 143.79c29.695-5.12 64.392 0 94.127 10.28v82.233l-4.962 585.48H885.51c-4.923-133.51-4.923-267.061-4.923-395.453 0-20.558-9.925-61.635-4.963-92.473 9.886-61.596 4.963-128.391 4.963-190.027z",fill:"#3291FC"}),React.createElement("path",{d:"m974.675 159.229 128.785 5.12c-69.316-20.558-29.695 46.237-29.695 71.915h-94.128l-4.962-77.035zm-762.826 5.12v77.035h-89.165c-4.923 0-4.923 5.12-4.923 10.24v559.841c0 5.12 4.923 10.28 9.885 15.4 29.735 10.279 59.47 5.12 89.165-15.36l4.962 5.12c0 5.12 4.963 5.12 9.886 5.12h743.016l99.09 5.12c4.962 35.957-4.963 66.794-14.848 97.593H73.139c-4.923 0-9.846-5.12-14.848-5.12-4.923-20.559-9.885-30.838-9.885-46.237V215.705c0-30.798 14.847-46.236 44.582-46.236l118.86-5.12z",fill:"#A1AAEF"}),React.createElement("path",{d:"M1103.46 169.469c24.812 5.12 39.66 20.558 39.66 46.236 4.923 174.629 4.923 410.892-4.963 703.633l-39.62 5.12h-44.622c14.848-30.799 19.81-61.636 14.848-97.594v-585.44c4.962-30.799-34.658-92.435 34.658-71.916z",fill:"#A1AAEF"}),React.createElement("path",{d:"M211.888 241.423v564.922c-29.735 20.52-59.47 25.679-89.204 15.4-4.923 0-9.886-10.24-9.886-15.4V246.504c0-5.12 4.963-10.24 4.963-10.24l94.127 5.12z",fill:"#DDE2F0"}),React.createElement("path",{d:"M974.675 241.423h94.127v580.322l-99.05-5.12 4.923-575.241zM53.368 914.14c4.923 5.12 9.885 5.12 14.848 5.12h1030.282c14.887 30.838 14.887 66.795-4.923 97.593-341.773-5.12-678.624-5.12-1020.436 0-54.468 0-84.203-25.678-69.316-87.274 0-5.12 4.962-5.12 9.885-5.12 14.887 0 24.812-5.16 39.66-10.319z",fill:"#DAE0FF"}),React.createElement("path",{d:"m1138.157 919.338 29.735 5.12c4.923 0 9.885 5.12 9.885 10.24 14.848 66.795-14.847 97.632-84.202 87.353 19.81-35.958 19.81-66.756 4.962-97.593l39.62-5.12z",fill:"#CCD2F2"}),React.createElement("path",{d:"M310.938 56.476c-4.962 0-9.924 5.12-9.924 10.28 0 5.12 0 10.279 4.962 15.399s9.925 5.12 14.848 5.12c4.962 0 9.925-5.12 9.925-10.24s0-10.24-4.963-15.4c-4.962-5.12-9.885-5.12-14.848-5.12zm44.583 20.559c0 5.12 4.923 10.24 9.885 15.399 4.963 5.12 9.925 5.12 14.887 0 4.923-5.12 9.886-10.24 9.886-15.36 0-5.159-4.963-10.318-9.886-15.438-4.962-5.12-9.924-5.12-14.887 0s-9.885 5.12-9.885 15.399zm74.278-20.559c-9.885 0-14.848 10.28-14.848 20.559 0 10.24 4.963 15.399 14.848 15.399 9.925 0 14.887-10.24 14.887-15.36 0-10.318-9.925-20.598-14.887-20.598zm-44.583 323.578 69.355 66.756c4.963 5.12 4.963 5.12 4.963 10.28 9.885 118.15-138.71-51.357-153.558-61.637-9.925-15.36-9.925-30.798 0-46.197 19.81-20.558 128.785-148.95 153.558-87.314 9.885 15.36 4.962 30.798-9.925 46.197l-64.393 61.676v10.279zm232.838-133.511c24.772 5.12 29.695 20.519 24.772 41.077l-49.545 190.028c-4.962 20.519-19.81 25.678-39.62 20.519-19.81-5.12-24.812-20.52-19.81-41.078l49.506-190.027c4.962-20.558 14.887-25.678 34.657-20.558zm163.443 107.833c-29.695-20.558-49.545-46.237-69.316-66.756-4.962-5.12-4.962-10.279 0-15.399 24.733-77.074 118.86 35.918 143.633 61.597 44.583 41.116 9.886 61.635-19.81 92.473a504.114 504.114 0 0 1-79.28 66.756c-4.922 5.12-9.885 5.12-14.847 5.12-94.128-10.24 24.772-102.714 39.62-112.993 4.962-5.12 4.962-10.24 4.962-15.36 0-5.159 0-10.318-4.962-15.438z",fill:"#F1EFF2"}),React.createElement("path",{d:"M310.938 575.201H469.42c9.925 0 14.887 5.12 14.887 15.439v5.12c0 10.24-4.962 15.399-14.887 15.399H310.94c-9.925 0-14.888-5.12-14.888-15.36v-5.16c0-10.278 4.963-15.438 14.887-15.438z",fill:"#FDDD44"}),React.createElement("path",{d:"M598.244 665.272c0 5.908 4.923 17.763 14.848 17.763 9.885 0 24.772 5.907 34.657 0 9.925-5.908 19.81-11.816 19.81-17.763 0-5.907-4.923-17.801-14.847-17.801-9.886 0-24.773-5.908-34.658 0-14.887 5.907-19.81 11.854-19.81 17.801zm-287.306-17.801h232.799c9.924 0 14.847 5.907 14.847 17.801 0 11.816-4.923 17.763-14.847 17.763H310.938c-9.924 5.907-14.887 0-14.887-11.816 0-17.801 4.963-23.748 14.887-23.748z",fill:"#FC9743"}),React.createElement("path",{d:"M687.409 735.573c0 5.474 4.923 10.909 14.848 16.344 9.885 5.435 19.81 5.435 24.772 0 9.885-5.435 14.848-10.87 14.848-16.344 0-5.435-4.963-10.87-14.848-16.305-9.925-5.435-19.81-5.435-24.812 0-9.846 5.435-14.808 10.87-14.808 16.305zm-376.51-16.305h94.128c9.924 0 14.887 5.435 14.887 16.305 0 10.909-4.963 16.344-14.887 16.344h-94.128c-9.846 0-14.848-5.435-14.848-16.344 0-10.87 4.963-16.305 14.887-16.305zm163.483 0h158.52c9.924 0 14.847 5.435 14.847 16.305 0 10.909-4.923 16.344-14.847 16.344h-158.52c-9.886 0-14.848-5.435-14.848-16.344 0-10.87 4.962-16.305 14.848-16.305z",fill:"#28D1B3"}));var at="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgd2lkdGg9IjIwMCIgaGVpZ2h0PSIxNzMuNDEiIHZpZXdCb3g9IjAgMCAxMTgxIDEwMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg3MC42NjIgMGM5LjkyNSA0Ni4yMzcgMTQuODQ4IDkyLjQzNCA0Ljk2MiAxNDMuNzlIMjExLjg1QzIwNi45MjYgODcuMzE1IDE5Mi4wMzkgMCAyNzEuMzU4IDBIODcwLjd6TTMyMC44NjMgOTIuNDM0YzkuODQ2IDAgMTQuODQ4LTEwLjI0IDkuODQ2LTIwLjUxOS00LjkyMy0xMC4yOC0xNC44MDgtMTUuNDM5LTE5Ljc3LTE1LjQzOS05LjkyNSA1LjEyLTE0Ljg4OCAxNS40MzktOS45MjUgMjAuNTU5IDAgMTAuMjQgOS45MjQgMTUuMzk5IDE5LjgxIDE1LjM5OXptNjkuMzE2LTE1LjM2YzAtNS4xNTktNC45NjMtMTAuMzE4LTkuODg2LTE1LjQzOC00Ljk2Mi01LjEyLTkuOTI0LTUuMTItMTQuODg3IDBzLTkuODg1IDUuMTItOS44ODUgMTUuMzk5YzAgMTAuMjQgNC45MjMgMTUuMzk5IDE0Ljg0OCAxNS4zOTlzMTkuODEtMTAuMjQgMTkuODEtMTUuMzZ6bTM5LjYyIDE1LjM2YzkuOTI1IDAgMTQuODg3LTEwLjI0IDE0Ljg4Ny0xNS4zNiAwLTUuMTU5IDAtMTAuMzE4LTQuOTYyLTEwLjMxOC00Ljk2My0xMC4yNC00Ljk2My0xMC4yNC05LjkyNS0xMC4yNC05Ljg4NSAwLTE0Ljg0OCAxMC4yNC0xNC44NDggMjAuNTE5IDAgNS4xMiAwIDEwLjI0IDQuOTYzIDEwLjI0IDAgNS4xNTkgNC45NjIgNS4xNTkgOS44ODUgNS4xNTl6IiBmaWxsPSIjOERDQUZDIi8+PHBhdGggZD0iTTg3MC42NjIgMGg1OS40N2MxOS44MSAwIDM0LjY1NyAxMC4yNCAzOS42MiAzNS45NTcgNC45MjMgNDEuMDc4IDkuODg1IDgyLjE1NSA0LjkyMyAxMTguMTUyLTI5LjY5Ni0xMC4zMTgtNTkuNDMtMTUuNDM4LTk0LjEyOC0xMC4zMThoLTQuOTIzQzg4NS41MSA5Ny41OTMgODg1LjUxIDQ2LjIzNyA4NzAuNjYyIDB6IiBmaWxsPSIjNjNCOUZDIi8+PHBhdGggZD0iTTg4MC41ODcgMTQzLjc5YzQuOTIzIDYxLjYzNiA5Ljg4NSAxMjguMzkyIDAgMTg0LjkwOC00Ljk2MyAzMC43OTggNC45MjMgNzEuOTE1IDQuOTIzIDkyLjQzNCAwIDEzMy41MTEgMCAyNjcuMDYyIDQuOTYyIDM5NS40OTNIMjMxLjY2Yy00LjkyMyAwLTkuODg2IDAtOS44ODYtNS4xMmwtNC45NjItNS4xNlYxNDMuNzUxaDY2My44MTV6bS00OTUuNDEgMjI2LjAyNSA2NC4zOTMtNjEuNjM2YzE0Ljg4Ny0xMC4yNCAxNC44ODctMjUuNjc4IDkuOTI0LTQxLjA3OC0yNC43NzItNjYuNzU1LTEzMy43NDcgNjEuNjM2LTE1My41NTcgODIuMTk1LTkuOTI1IDE1LjM2LTkuOTI1IDMwLjc5OCAwIDQxLjA3NyAxNC44NDcgMTUuMzk5IDE2My40NDMgMTg0Ljg2OCAxNTMuNTU3IDYxLjYzNiAwLTUuMTItNC45NjItMTAuMjgtNC45NjItMTAuMjhsLTY5LjI3Ni02MS42NzV2LTEwLjI0em0yNTcuNTctODIuMTU1YzAtMTAuMjggMC0xNS40LTQuOTIyLTI1LjY3OC00Ljk2My0xMC4yOC05LjkyNS0xNS40MzktMTkuODEtMTUuNDM5LTE0Ljg4OC01LjEyLTM0LjY1OCA1LjEyLTM5LjYyIDIwLjU1OEw1MjguODQ4IDQ1Ny4xM2MtNC45NjIgMTUuMzk5IDQuOTYzIDM1Ljk1NyAxOS44MSA0MS4wNzcgMTQuODQ4IDUuMTIgMzQuNjU4LTUuMTIgMzkuNjItMjAuNTE5bDU0LjUwOC0xOTAuMDI3em0xMzguNzEgNjYuNzU1YzQuOTYzIDUuMTIgOS45MjUgMTAuMjQgOS45MjUgMTUuNCAwIDUuMTIgMCAxMC4yNzktNC45NjIgMTUuMzk5LTE0Ljg0OCAxNS40MzgtMTI4Ljc4NSAxMDcuODcyLTM5LjYyIDExMy4wMzEgNC45NjIgMCA5Ljg4NSAwIDE0Ljg0Ny01LjE1OSAyNC43NzMtMjAuNTU4IDU0LjUwOC00Ni4yMzcgNzkuMjQtNjYuNzU2IDI5LjczNi0zMC44MzcgNjQuNDMzLTUxLjM1NiAxOS44NS05Mi40NzMtMjQuODEyLTI1LjY3OC0xMTguOS0xMzguNjMxLTE0My42NzItNjEuNTk2djE1LjM2YzkuOTI1IDIwLjU1OCAzNC42NTggNDYuMjM2IDY0LjM5MyA2Ni43OTR6TTQ3OS4zMDUgNTkwLjY4YzAtMTAuMjc5LTQuOTYyLTE1LjQzOC0xNC44NDctMTUuNDM4SDMxMC44NmMtOS44NDYgMC0xNC44NDggNS4xMi0xNC44NDggMTUuNDM4djUuMTJjMCAxMC4yNCA0Ljk2MiAxNS40IDE0Ljg4NyAxNS40aDE1OC40OGM0Ljk2MyAwIDkuOTI1IDAgOS45MjUtNS4xMnYtMTUuNHptMTg4LjI1NSA3Ny4wMzVjMC0xMC4yNzktMTQuODg3LTIwLjU1OC0zNC42OTctMjAuNTU4cy0zNC42NTggMTAuMjc5LTM0LjY1OCAyMC41NThjMCAxMC4yNCAxNC44NDggMjAuNTIgMzQuNjU4IDIwLjUyczM0LjY1OC0xMC4yNCAzNC42NTgtMjAuNTJ6bS0xMDkuMDE0IDBjMC0xMC4yNzktNC45MjMtMTUuMzk5LTE0Ljg0OC0xNS4zOTlIMzEwLjkzOGMtNC45NjIgMC05LjkyNCAwLTkuOTI0IDUuMTJzLTQuOTYzIDUuMTItNC45NjMgNS4xMmMwIDEwLjI4IDQuOTYzIDE1LjQzOCAxNC44ODcgMTUuNDM4aDIzMi43OTljNC45NjIgMCA5LjkyNCAwIDkuOTI0LTUuMTIgNC45MjMgNS4xMiA0LjkyMyAwIDQuOTIzLTUuMTU5em0xODMuMjkyIDY2Ljc1NmMwLTEwLjI0LTkuOTI0LTE1LjQtMjQuNzcyLTE1LjRzLTI0Ljc3MyAxMC4yNC0yNC43NzMgMjAuNTIgOS45MjUgMTUuNDM4IDI0LjgxMiAxNS40MzhjOS44NDYgMCAyNC43MzMtMTAuMjc5IDI0LjczMy0yMC41NTh6bS0zMjEuOTYzIDBjMC01LjEyIDAtMTAuMjQtNC45NjItMTAuMjRzLTQuOTYzLTUuMTYtOS45MjUtNS4xNkgzMTAuODZjLTQuOTIzIDAtOS44NDYgMC05Ljg0NiA1LjEyLTUuMDAyIDUuMTItNS4wMDIgNS4xMi01LjAwMiAxMC4yOCAwIDUuMTIgMCAxMC4yNCA0Ljk2MiAxMC4yNHM0Ljk2MyA1LjE1OSA5LjkyNSA1LjE1OWg5NC4xMjhjNC45MjIgMCAxNC44NDctNS4xMiAxNC44NDctMTUuMzZ6bTIyNy44MzYgMGMwLTEwLjI0LTQuOTIzLTE1LjQtMTQuODQ4LTE1LjRoLTE1OC41MmMtNC45NjIgMC05Ljg4NSAwLTkuODg1IDUuMTItNC45NjMgNS4xMi00Ljk2MyA1LjEyLTQuOTYzIDEwLjI4IDAgNS4xMiAwIDEwLjI0IDQuOTYzIDEwLjI0IDQuOTIzIDUuMTU5IDQuOTIzIDUuMTU5IDkuODg1IDUuMTU5aDE1OC41MmM0Ljk2MyAwIDkuOTI1IDAgOS45MjUtNS4xMiA0LjkyMyAwIDQuOTIzLTUuMTIgNC45MjMtMTAuMjR6IiBmaWxsPSIjMzI5MUZDIi8+PHBhdGggZD0iTTg4MC41ODcgMTQzLjc5YzI5LjY5NS01LjEyIDY0LjM5MiAwIDk0LjEyNyAxMC4yOHY4Mi4yMzNsLTQuOTYyIDU4NS40OEg4ODUuNTFjLTQuOTIzLTEzMy41MS00LjkyMy0yNjcuMDYxLTQuOTIzLTM5NS40NTMgMC0yMC41NTgtOS45MjUtNjEuNjM1LTQuOTYzLTkyLjQ3MyA5Ljg4Ni02MS41OTYgNC45NjMtMTI4LjM5MSA0Ljk2My0xOTAuMDI3eiIgZmlsbD0iIzMyOTFGQyIvPjxwYXRoIGQ9Im05NzQuNjc1IDE1OS4yMjkgMTI4Ljc4NSA1LjEyYy02OS4zMTYtMjAuNTU4LTI5LjY5NSA0Ni4yMzctMjkuNjk1IDcxLjkxNWgtOTQuMTI4bC00Ljk2Mi03Ny4wMzV6bS03NjIuODI2IDUuMTJ2NzcuMDM1aC04OS4xNjVjLTQuOTIzIDAtNC45MjMgNS4xMi00LjkyMyAxMC4yNHY1NTkuODQxYzAgNS4xMiA0LjkyMyAxMC4yOCA5Ljg4NSAxNS40IDI5LjczNSAxMC4yNzkgNTkuNDcgNS4xMiA4OS4xNjUtMTUuMzZsNC45NjIgNS4xMmMwIDUuMTIgNC45NjMgNS4xMiA5Ljg4NiA1LjEyaDc0My4wMTZsOTkuMDkgNS4xMmM0Ljk2MiAzNS45NTctNC45NjMgNjYuNzk0LTE0Ljg0OCA5Ny41OTNINzMuMTM5Yy00LjkyMyAwLTkuODQ2LTUuMTItMTQuODQ4LTUuMTItNC45MjMtMjAuNTU5LTkuODg1LTMwLjgzOC05Ljg4NS00Ni4yMzdWMjE1LjcwNWMwLTMwLjc5OCAxNC44NDctNDYuMjM2IDQ0LjU4Mi00Ni4yMzZsMTE4Ljg2LTUuMTJ6IiBmaWxsPSIjQTFBQUVGIi8+PHBhdGggZD0iTTExMDMuNDYgMTY5LjQ2OWMyNC44MTIgNS4xMiAzOS42NiAyMC41NTggMzkuNjYgNDYuMjM2IDQuOTIzIDE3NC42MjkgNC45MjMgNDEwLjg5Mi00Ljk2MyA3MDMuNjMzbC0zOS42MiA1LjEyaC00NC42MjJjMTQuODQ4LTMwLjc5OSAxOS44MS02MS42MzYgMTQuODQ4LTk3LjU5NHYtNTg1LjQ0YzQuOTYyLTMwLjc5OS0zNC42NTgtOTIuNDM1IDM0LjY1OC03MS45MTZ6IiBmaWxsPSIjQTFBQUVGIi8+PHBhdGggZD0iTTIxMS44ODggMjQxLjQyM3Y1NjQuOTIyYy0yOS43MzUgMjAuNTItNTkuNDcgMjUuNjc5LTg5LjIwNCAxNS40LTQuOTIzIDAtOS44ODYtMTAuMjQtOS44ODYtMTUuNFYyNDYuNTA0YzAtNS4xMiA0Ljk2My0xMC4yNCA0Ljk2My0xMC4yNGw5NC4xMjcgNS4xMnoiIGZpbGw9IiNEREUyRjAiLz48cGF0aCBkPSJNOTc0LjY3NSAyNDEuNDIzaDk0LjEyN3Y1ODAuMzIybC05OS4wNS01LjEyIDQuOTIzLTU3NS4yNDF6TTUzLjM2OCA5MTQuMTRjNC45MjMgNS4xMiA5Ljg4NSA1LjEyIDE0Ljg0OCA1LjEyaDEwMzAuMjgyYzE0Ljg4NyAzMC44MzggMTQuODg3IDY2Ljc5NS00LjkyMyA5Ny41OTMtMzQxLjc3My01LjEyLTY3OC42MjQtNS4xMi0xMDIwLjQzNiAwLTU0LjQ2OCAwLTg0LjIwMy0yNS42NzgtNjkuMzE2LTg3LjI3NCAwLTUuMTIgNC45NjItNS4xMiA5Ljg4NS01LjEyIDE0Ljg4NyAwIDI0LjgxMi01LjE2IDM5LjY2LTEwLjMxOXoiIGZpbGw9IiNEQUUwRkYiLz48cGF0aCBkPSJtMTEzOC4xNTcgOTE5LjMzOCAyOS43MzUgNS4xMmM0LjkyMyAwIDkuODg1IDUuMTIgOS44ODUgMTAuMjQgMTQuODQ4IDY2Ljc5NS0xNC44NDcgOTcuNjMyLTg0LjIwMiA4Ny4zNTMgMTkuODEtMzUuOTU4IDE5LjgxLTY2Ljc1NiA0Ljk2Mi05Ny41OTNsMzkuNjItNS4xMnoiIGZpbGw9IiNDQ0QyRjIiLz48cGF0aCBkPSJNMzEwLjkzOCA1Ni40NzZjLTQuOTYyIDAtOS45MjQgNS4xMi05LjkyNCAxMC4yOCAwIDUuMTIgMCAxMC4yNzkgNC45NjIgMTUuMzk5czkuOTI1IDUuMTIgMTQuODQ4IDUuMTJjNC45NjIgMCA5LjkyNS01LjEyIDkuOTI1LTEwLjI0czAtMTAuMjQtNC45NjMtMTUuNGMtNC45NjItNS4xMi05Ljg4NS01LjEyLTE0Ljg0OC01LjEyem00NC41ODMgMjAuNTU5YzAgNS4xMiA0LjkyMyAxMC4yNCA5Ljg4NSAxNS4zOTkgNC45NjMgNS4xMiA5LjkyNSA1LjEyIDE0Ljg4NyAwIDQuOTIzLTUuMTIgOS44ODYtMTAuMjQgOS44ODYtMTUuMzYgMC01LjE1OS00Ljk2My0xMC4zMTgtOS44ODYtMTUuNDM4LTQuOTYyLTUuMTItOS45MjQtNS4xMi0xNC44ODcgMHMtOS44ODUgNS4xMi05Ljg4NSAxNS4zOTl6bTc0LjI3OC0yMC41NTljLTkuODg1IDAtMTQuODQ4IDEwLjI4LTE0Ljg0OCAyMC41NTkgMCAxMC4yNCA0Ljk2MyAxNS4zOTkgMTQuODQ4IDE1LjM5OSA5LjkyNSAwIDE0Ljg4Ny0xMC4yNCAxNC44ODctMTUuMzYgMC0xMC4zMTgtOS45MjUtMjAuNTk4LTE0Ljg4Ny0yMC41OTh6bS00NC41ODMgMzIzLjU3OCA2OS4zNTUgNjYuNzU2YzQuOTYzIDUuMTIgNC45NjMgNS4xMiA0Ljk2MyAxMC4yOCA5Ljg4NSAxMTguMTUtMTM4LjcxLTUxLjM1Ny0xNTMuNTU4LTYxLjYzNy05LjkyNS0xNS4zNi05LjkyNS0zMC43OTggMC00Ni4xOTcgMTkuODEtMjAuNTU4IDEyOC43ODUtMTQ4Ljk1IDE1My41NTgtODcuMzE0IDkuODg1IDE1LjM2IDQuOTYyIDMwLjc5OC05LjkyNSA0Ni4xOTdsLTY0LjM5MyA2MS42NzZ2MTAuMjc5em0yMzIuODM4LTEzMy41MTFjMjQuNzcyIDUuMTIgMjkuNjk1IDIwLjUxOSAyNC43NzIgNDEuMDc3bC00OS41NDUgMTkwLjAyOGMtNC45NjIgMjAuNTE5LTE5LjgxIDI1LjY3OC0zOS42MiAyMC41MTktMTkuODEtNS4xMi0yNC44MTItMjAuNTItMTkuODEtNDEuMDc4bDQ5LjUwNi0xOTAuMDI3YzQuOTYyLTIwLjU1OCAxNC44ODctMjUuNjc4IDM0LjY1Ny0yMC41NTh6bTE2My40NDMgMTA3LjgzM2MtMjkuNjk1LTIwLjU1OC00OS41NDUtNDYuMjM3LTY5LjMxNi02Ni43NTYtNC45NjItNS4xMi00Ljk2Mi0xMC4yNzkgMC0xNS4zOTkgMjQuNzMzLTc3LjA3NCAxMTguODYgMzUuOTE4IDE0My42MzMgNjEuNTk3IDQ0LjU4MyA0MS4xMTYgOS44ODYgNjEuNjM1LTE5LjgxIDkyLjQ3M2E1MDQuMTE0IDUwNC4xMTQgMCAwIDEtNzkuMjggNjYuNzU2Yy00LjkyMiA1LjEyLTkuODg1IDUuMTItMTQuODQ3IDUuMTItOTQuMTI4LTEwLjI0IDI0Ljc3Mi0xMDIuNzE0IDM5LjYyLTExMi45OTMgNC45NjItNS4xMiA0Ljk2Mi0xMC4yNCA0Ljk2Mi0xNS4zNiAwLTUuMTU5IDAtMTAuMzE4LTQuOTYyLTE1LjQzOHoiIGZpbGw9IiNGMUVGRjIiLz48cGF0aCBkPSJNMzEwLjkzOCA1NzUuMjAxSDQ2OS40MmM5LjkyNSAwIDE0Ljg4NyA1LjEyIDE0Ljg4NyAxNS40Mzl2NS4xMmMwIDEwLjI0LTQuOTYyIDE1LjM5OS0xNC44ODcgMTUuMzk5SDMxMC45NGMtOS45MjUgMC0xNC44ODgtNS4xMi0xNC44ODgtMTUuMzZ2LTUuMTZjMC0xMC4yNzggNC45NjMtMTUuNDM4IDE0Ljg4Ny0xNS40Mzh6IiBmaWxsPSIjRkRERDQ0Ii8+PHBhdGggZD0iTTU5OC4yNDQgNjY1LjI3MmMwIDUuOTA4IDQuOTIzIDE3Ljc2MyAxNC44NDggMTcuNzYzIDkuODg1IDAgMjQuNzcyIDUuOTA3IDM0LjY1NyAwIDkuOTI1LTUuOTA4IDE5LjgxLTExLjgxNiAxOS44MS0xNy43NjMgMC01LjkwNy00LjkyMy0xNy44MDEtMTQuODQ3LTE3LjgwMS05Ljg4NiAwLTI0Ljc3My01LjkwOC0zNC42NTggMC0xNC44ODcgNS45MDctMTkuODEgMTEuODU0LTE5LjgxIDE3LjgwMXptLTI4Ny4zMDYtMTcuODAxaDIzMi43OTljOS45MjQgMCAxNC44NDcgNS45MDcgMTQuODQ3IDE3LjgwMSAwIDExLjgxNi00LjkyMyAxNy43NjMtMTQuODQ3IDE3Ljc2M0gzMTAuOTM4Yy05LjkyNCA1LjkwNy0xNC44ODcgMC0xNC44ODctMTEuODE2IDAtMTcuODAxIDQuOTYzLTIzLjc0OCAxNC44ODctMjMuNzQ4eiIgZmlsbD0iI0ZDOTc0MyIvPjxwYXRoIGQ9Ik02ODcuNDA5IDczNS41NzNjMCA1LjQ3NCA0LjkyMyAxMC45MDkgMTQuODQ4IDE2LjM0NCA5Ljg4NSA1LjQzNSAxOS44MSA1LjQzNSAyNC43NzIgMCA5Ljg4NS01LjQzNSAxNC44NDgtMTAuODcgMTQuODQ4LTE2LjM0NCAwLTUuNDM1LTQuOTYzLTEwLjg3LTE0Ljg0OC0xNi4zMDUtOS45MjUtNS40MzUtMTkuODEtNS40MzUtMjQuODEyIDAtOS44NDYgNS40MzUtMTQuODA4IDEwLjg3LTE0LjgwOCAxNi4zMDV6bS0zNzYuNTEtMTYuMzA1aDk0LjEyOGM5LjkyNCAwIDE0Ljg4NyA1LjQzNSAxNC44ODcgMTYuMzA1IDAgMTAuOTA5LTQuOTYzIDE2LjM0NC0xNC44ODcgMTYuMzQ0aC05NC4xMjhjLTkuODQ2IDAtMTQuODQ4LTUuNDM1LTE0Ljg0OC0xNi4zNDQgMC0xMC44NyA0Ljk2My0xNi4zMDUgMTQuODg3LTE2LjMwNXptMTYzLjQ4MyAwaDE1OC41MmM5LjkyNCAwIDE0Ljg0NyA1LjQzNSAxNC44NDcgMTYuMzA1IDAgMTAuOTA5LTQuOTIzIDE2LjM0NC0xNC44NDcgMTYuMzQ0aC0xNTguNTJjLTkuODg2IDAtMTQuODQ4LTUuNDM1LTE0Ljg0OC0xNi4zNDQgMC0xMC44NyA0Ljk2Mi0xNi4zMDUgMTQuODQ4LTE2LjMwNXoiIGZpbGw9IiMyOEQxQjMiLz48L3N2Zz4=",wt=Object.defineProperty,Mt=Object.getOwnPropertySymbols,Xt=Object.prototype.hasOwnProperty,bn=Object.prototype.propertyIsEnumerable,pn=(Wn,ci,ti)=>ci in Wn?wt(Wn,ci,{enumerable:!0,configurable:!0,writable:!0,value:ti}):Wn[ci]=ti,fn=(Wn,ci)=>{for(var ti in ci||(ci={}))Xt.call(ci,ti)&&pn(Wn,ti,ci[ti]);if(Mt)for(var ti of Mt(ci))bn.call(ci,ti)&&pn(Wn,ti,ci[ti]);return Wn};const gn=Wn=>React.createElement("svg",fn({className:"d_svg__icon",width:200,height:200,viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Wn),React.createElement("path",{d:"m615.56 977.135-403.626-.341h-1.127a102.468 102.468 0 0 1-65.809-23.894 80.725 80.725 0 0 1-29.354-61.03l.58-616.039a80.486 80.486 0 0 1 29.355-60.86 103.117 103.117 0 0 1 65.809-23.893h1.194l67.243.683v3.448c-2.492 64.99-1.672 68.027 3.482 73.386l3.754 3.823h6.008a17.408 17.408 0 0 0 3.618-.478h107.11c282.897 0 282.897 0 286.72-1.706l5.974-2.595 1.604-5.973a275.801 275.801 0 0 0 1.024-46.285v-23.893l64.512.546h.648a102.4 102.4 0 0 1 71.783 28.911 79.748 79.748 0 0 1 23.893 56.15v360.789a208.282 208.282 0 0 0-117.077-35.84c-115.678 0-209.408 93.56-209.408 208.998a207.428 207.428 0 0 0 82.603 166.332l-.512-.24z",fill:"#3291FC"}),React.createElement("path",{d:"M634.266 989.867H211.149a116.531 116.531 0 0 1-74.82-27.239A93.628 93.628 0 0 1 102.4 891.7l.614-616.038a93.236 93.236 0 0 1 34.031-70.895 116.053 116.053 0 0 1 74.411-27.034h1.195l80.896.82v1.809c0 3.208 0 8.567-.615 15.086a394.923 394.923 0 0 0 0 63.83c.615 0 .683 0 .717-.342h109.944c198.246 0 280.337 0 281.156-.614 1.194-14.268 1.4-28.604.682-42.94V177.87l77.756.614h.683a115.268 115.268 0 0 1 80.725 32.768c17.579 17.408 27.443 41.028 27.41 65.707v370.21c-8.295-6.622-17.067-12.63-26.283-17.92V276.992a66.697 66.697 0 0 0-20.207-46.729 89.293 89.293 0 0 0-62.328-25.122h-.682l-51.064-.478v10.616a247.929 247.929 0 0 1-1.434 49.8l-3.276 12.288-11.947 5.086c-6.007 2.526-6.007 2.526-77.073 2.629H297.233a32.256 32.256 0 0 1-5.086.477h-1.194l-10.48-.477-7.236-7.578c-9.01-9.387-9.728-16.18-7.509-72.977l-53.862-.478h-1.195a90.18 90.18 0 0 0-57.242 20.65 67.96 67.96 0 0 0-24.815 50.996l-.682 616.004a67.584 67.584 0 0 0 24.849 50.995c16.11 13.551 36.522 20.992 57.583 21.027h388.744a210.75 210.75 0 0 0 34.475 25.907l.683.239z",fill:"#82BDFF"}),React.createElement("path",{d:"M624.64 235.759H350.345a23.962 23.962 0 0 1-23.894-24.235v-64.853a23.893 23.893 0 0 1 23.894-23.893h42.598a94.55 94.55 0 0 1 94.481-88.645 94.55 94.55 0 0 1 94.447 88.645h42.598a23.893 23.893 0 0 1 23.894 23.893v64.785a23.893 23.893 0 0 1-23.962 23.893l.239.41z",fill:"#38C9FF",fillOpacity:.4}),React.createElement("path",{d:"M562.654 810.667a179.302 179.302 0 0 0 179.473 179.131A179.302 179.302 0 0 0 921.6 810.667a179.063 179.063 0 0 0-89.737-155.136 179.746 179.746 0 0 0-179.473 0 179.063 179.063 0 0 0-89.736 155.136z",fill:"#38C9FF",opacity:.4}),React.createElement("path",{d:"m738.543 742.195 72.158 39.629a4.608 4.608 0 0 1 1.536 5.973l-79.258 134.28a31.232 31.232 0 0 1-22.528 15.02l-36.796 8.294a5.973 5.973 0 0 1-6.348-3.891l-17.238-35.84a31.642 31.642 0 0 1 2.697-27.17l79.667-134.93a4.506 4.506 0 0 1 6.008-1.57m84.206 20.549a4.096 4.096 0 0 1-5.973 1.365c-19.115-11.947-52.702-30.208-66.287-38.639a4.233 4.233 0 0 1-1.297-5.94l11.947-18.772a35.908 35.908 0 0 1 51.507-9.967l5.973 3.754c8.636 4.984 15.258 12.834 18.671 22.187 3.414 9.591 2.219 20.241-3.242 28.877",fill:"#00D8FB"}),React.createElement("path",{d:"M270.131 356.932c9.558-.239 19.08 1.536 27.955 5.12a53.737 53.737 0 0 1 31.096 34.748c2.56 8.397 3.857 17.135 3.755 25.941.068 6.35-.547 12.698-1.775 18.978a63.488 63.488 0 0 1-6.417 17.306l12.322 10.377c1.98 1.775 2.764 4.437 2.116 6.997a13.722 13.722 0 0 1-4.506 7.475 16.52 16.52 0 0 1-8.533 4.3 8.329 8.329 0 0 1-7.373-1.808l-10.342-8.602c-5.393 3.653-11.264 6.486-17.545 8.295-6.792 1.877-13.824 2.73-20.855 2.628a69.734 69.734 0 0 1-27.239-4.95 54.75 54.75 0 0 1-31.573-34.61 84.821 84.821 0 0 1-3.96-26.454 90.897 90.897 0 0 1 3.585-25.873c2.218-7.714 6.075-14.848 11.264-20.958 5.324-6.076 12.015-10.854 19.49-13.995a72.26 72.26 0 0 1 28.535-5.12v.205zm0 111.275c3.857.068 7.68-.341 11.435-1.229a35.499 35.499 0 0 0 9.455-3.96l-10.547-8.874a5.973 5.973 0 0 1-2.39-5.632 13.926 13.926 0 0 1 5.564-8.363 17.408 17.408 0 0 1 8.67-4.71 7.919 7.919 0 0 1 6.895 1.843l5.973 5.018a56.32 56.32 0 0 0 1.74-9.148c.342-3.243.513-6.554.479-9.83a77.79 77.79 0 0 0-1.98-17.92 42.325 42.325 0 0 0-6.383-14.678 30.55 30.55 0 0 0-11.435-9.864 37.683 37.683 0 0 0-17.169-3.584 37.035 37.035 0 0 0-17.237 3.652 31.642 31.642 0 0 0-11.4 9.83 40.98 40.98 0 0 0-6.35 14.405 76.66 76.66 0 0 0 0 34.099c1.025 5.222 3.073 10.172 5.974 14.643 2.936 4.267 6.827 7.85 11.435 10.308a35.713 35.713 0 0 0 17.578 3.96l-.307.034z",fill:"#FFF"}),React.createElement("path",{d:"m249.173 672.085-10.444 21.163a17.92 17.92 0 0 1-5.974 7.066 19.456 19.456 0 0 1-11.196 2.628 19.797 19.797 0 0 1-11.946-3.072c-2.97-2.082-3.311-5.666-1.092-10.718l48.878-110.455a11.264 11.264 0 0 1 5.12-5.257 25.532 25.532 0 0 1 21.163 0 11.469 11.469 0 0 1 5.052 5.257l49.357 110.865c1.911 4.676 1.365 8.09-1.536 10.24a19.422 19.422 0 0 1-11.947 3.208 17.408 17.408 0 0 1-10.923-2.526 18.534 18.534 0 0 1-5.495-6.314l-11.367-22.085H249.14zm42.428-20.787-18.227-45.636-18.296 45.636h36.523zm139.4-244.94h305.87c16.998 0 25.497 5.46 25.497 16.486 0 10.99-8.533 16.486-25.498 16.486H431.002c-16.999 0-25.498-5.495-25.498-16.486s8.533-16.487 25.498-16.487z",fill:"#0DFED4"}),React.createElement("path",{d:"M431.002 620.612h126.395c16.999 0 25.498 5.462 25.498 16.487 0 10.99-8.5 16.452-25.498 16.452H431.002c-16.999 0-25.498-5.461-25.498-16.452 0-10.991 8.533-16.487 25.498-16.487zm-10.889 120.969h72.26c9.728 0 14.61 5.495 14.61 16.486s-4.882 16.487-14.61 16.487h-72.26c-9.728 0-14.609-5.496-14.609-16.487 0-10.99 4.881-16.486 14.61-16.486z",fill:"#FFF"}));var Nt="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgd2lkdGg9IjIwMCIgaGVpZ2h0PSIyMDAiIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0ibTYxNS41NiA5NzcuMTM1LTQwMy42MjYtLjM0MWgtMS4xMjdhMTAyLjQ2OCAxMDIuNDY4IDAgMCAxLTY1LjgwOS0yMy44OTQgODAuNzI1IDgwLjcyNSAwIDAgMS0yOS4zNTQtNjEuMDNsLjU4LTYxNi4wMzlhODAuNDg2IDgwLjQ4NiAwIDAgMSAyOS4zNTUtNjAuODYgMTAzLjExNyAxMDMuMTE3IDAgMCAxIDY1LjgwOS0yMy44OTNoMS4xOTRsNjcuMjQzLjY4M3YzLjQ0OGMtMi40OTIgNjQuOTktMS42NzIgNjguMDI3IDMuNDgyIDczLjM4NmwzLjc1NCAzLjgyM2g2LjAwOGExNy40MDggMTcuNDA4IDAgMCAwIDMuNjE4LS40NzhoMTA3LjExYzI4Mi44OTcgMCAyODIuODk3IDAgMjg2LjcyLTEuNzA2bDUuOTc0LTIuNTk1IDEuNjA0LTUuOTczYTI3NS44MDEgMjc1LjgwMSAwIDAgMCAxLjAyNC00Ni4yODV2LTIzLjg5M2w2NC41MTIuNTQ2aC42NDhhMTAyLjQgMTAyLjQgMCAwIDEgNzEuNzgzIDI4LjkxMSA3OS43NDggNzkuNzQ4IDAgMCAxIDIzLjg5MyA1Ni4xNXYzNjAuNzg5YTIwOC4yODIgMjA4LjI4MiAwIDAgMC0xMTcuMDc3LTM1Ljg0Yy0xMTUuNjc4IDAtMjA5LjQwOCA5My41Ni0yMDkuNDA4IDIwOC45OThhMjA3LjQyOCAyMDcuNDI4IDAgMCAwIDgyLjYwMyAxNjYuMzMybC0uNTEyLS4yNHoiIGZpbGw9IiMzMjkxRkMiLz48cGF0aCBkPSJNNjM0LjI2NiA5ODkuODY3SDIxMS4xNDlhMTE2LjUzMSAxMTYuNTMxIDAgMCAxLTc0LjgyLTI3LjIzOUE5My42MjggOTMuNjI4IDAgMCAxIDEwMi40IDg5MS43bC42MTQtNjE2LjAzOGE5My4yMzYgOTMuMjM2IDAgMCAxIDM0LjAzMS03MC44OTUgMTE2LjA1MyAxMTYuMDUzIDAgMCAxIDc0LjQxMS0yNy4wMzRoMS4xOTVsODAuODk2LjgydjEuODA5YzAgMy4yMDggMCA4LjU2Ny0uNjE1IDE1LjA4NmEzOTQuOTIzIDM5NC45MjMgMCAwIDAgMCA2My44M2MuNjE1IDAgLjY4MyAwIC43MTctLjM0MmgxMDkuOTQ0YzE5OC4yNDYgMCAyODAuMzM3IDAgMjgxLjE1Ni0uNjE0IDEuMTk0LTE0LjI2OCAxLjQtMjguNjA0LjY4Mi00Mi45NFYxNzcuODdsNzcuNzU2LjYxNGguNjgzYTExNS4yNjggMTE1LjI2OCAwIDAgMSA4MC43MjUgMzIuNzY4YzE3LjU3OSAxNy40MDggMjcuNDQzIDQxLjAyOCAyNy40MSA2NS43MDd2MzcwLjIxYy04LjI5NS02LjYyMi0xNy4wNjctMTIuNjMtMjYuMjgzLTE3LjkyVjI3Ni45OTJhNjYuNjk3IDY2LjY5NyAwIDAgMC0yMC4yMDctNDYuNzI5IDg5LjI5MyA4OS4yOTMgMCAwIDAtNjIuMzI4LTI1LjEyMmgtLjY4MmwtNTEuMDY0LS40Nzh2MTAuNjE2YTI0Ny45MjkgMjQ3LjkyOSAwIDAgMS0xLjQzNCA0OS44bC0zLjI3NiAxMi4yODgtMTEuOTQ3IDUuMDg2Yy02LjAwNyAyLjUyNi02LjAwNyAyLjUyNi03Ny4wNzMgMi42MjlIMjk3LjIzM2EzMi4yNTYgMzIuMjU2IDAgMCAxLTUuMDg2LjQ3N2gtMS4xOTRsLTEwLjQ4LS40NzctNy4yMzYtNy41NzhjLTkuMDEtOS4zODctOS43MjgtMTYuMTgtNy41MDktNzIuOTc3bC01My44NjItLjQ3OGgtMS4xOTVhOTAuMTggOTAuMTggMCAwIDAtNTcuMjQyIDIwLjY1IDY3Ljk2IDY3Ljk2IDAgMCAwLTI0LjgxNSA1MC45OTZsLS42ODIgNjE2LjAwNGE2Ny41ODQgNjcuNTg0IDAgMCAwIDI0Ljg0OSA1MC45OTVjMTYuMTEgMTMuNTUxIDM2LjUyMiAyMC45OTIgNTcuNTgzIDIxLjAyN2gzODguNzQ0YTIxMC43NSAyMTAuNzUgMCAwIDAgMzQuNDc1IDI1LjkwN2wuNjgzLjIzOXoiIGZpbGw9IiM4MkJERkYiLz48cGF0aCBkPSJNNjI0LjY0IDIzNS43NTlIMzUwLjM0NWEyMy45NjIgMjMuOTYyIDAgMCAxLTIzLjg5NC0yNC4yMzV2LTY0Ljg1M2EyMy44OTMgMjMuODkzIDAgMCAxIDIzLjg5NC0yMy44OTNoNDIuNTk4YTk0LjU1IDk0LjU1IDAgMCAxIDk0LjQ4MS04OC42NDUgOTQuNTUgOTQuNTUgMCAwIDEgOTQuNDQ3IDg4LjY0NWg0Mi41OThhMjMuODkzIDIzLjg5MyAwIDAgMSAyMy44OTQgMjMuODkzdjY0Ljc4NWEyMy44OTMgMjMuODkzIDAgMCAxLTIzLjk2MiAyMy44OTNsLjIzOS40MXoiIGZpbGw9IiMzOEM5RkYiIGZpbGwtb3BhY2l0eT0iLjQiLz48cGF0aCBkPSJNNTYyLjY1NCA4MTAuNjY3YTE3OS4zMDIgMTc5LjMwMiAwIDAgMCAxNzkuNDczIDE3OS4xMzFBMTc5LjMwMiAxNzkuMzAyIDAgMCAwIDkyMS42IDgxMC42NjdhMTc5LjA2MyAxNzkuMDYzIDAgMCAwLTg5LjczNy0xNTUuMTM2IDE3OS43NDYgMTc5Ljc0NiAwIDAgMC0xNzkuNDczIDAgMTc5LjA2MyAxNzkuMDYzIDAgMCAwLTg5LjczNiAxNTUuMTM2eiIgZmlsbD0iIzM4QzlGRiIgb3BhY2l0eT0iLjQiLz48cGF0aCBkPSJtNzM4LjU0MyA3NDIuMTk1IDcyLjE1OCAzOS42MjlhNC42MDggNC42MDggMCAwIDEgMS41MzYgNS45NzNsLTc5LjI1OCAxMzQuMjhhMzEuMjMyIDMxLjIzMiAwIDAgMS0yMi41MjggMTUuMDJsLTM2Ljc5NiA4LjI5NGE1Ljk3MyA1Ljk3MyAwIDAgMS02LjM0OC0zLjg5MWwtMTcuMjM4LTM1Ljg0YTMxLjY0MiAzMS42NDIgMCAwIDEgMi42OTctMjcuMTdsNzkuNjY3LTEzNC45M2E0LjUwNiA0LjUwNiAwIDAgMSA2LjAwOC0xLjU3bTg0LjIwNiAyMC41NDlhNC4wOTYgNC4wOTYgMCAwIDEtNS45NzMgMS4zNjVjLTE5LjExNS0xMS45NDctNTIuNzAyLTMwLjIwOC02Ni4yODctMzguNjM5YTQuMjMzIDQuMjMzIDAgMCAxLTEuMjk3LTUuOTRsMTEuOTQ3LTE4Ljc3MmEzNS45MDggMzUuOTA4IDAgMCAxIDUxLjUwNy05Ljk2N2w1Ljk3MyAzLjc1NGM4LjYzNiA0Ljk4NCAxNS4yNTggMTIuODM0IDE4LjY3MSAyMi4xODcgMy40MTQgOS41OTEgMi4yMTkgMjAuMjQxLTMuMjQyIDI4Ljg3NyIgZmlsbD0iIzAwRDhGQiIvPjxwYXRoIGQ9Ik0yNzAuMTMxIDM1Ni45MzJjOS41NTgtLjIzOSAxOS4wOCAxLjUzNiAyNy45NTUgNS4xMmE1My43MzcgNTMuNzM3IDAgMCAxIDMxLjA5NiAzNC43NDhjMi41NiA4LjM5NyAzLjg1NyAxNy4xMzUgMy43NTUgMjUuOTQxLjA2OCA2LjM1LS41NDcgMTIuNjk4LTEuNzc1IDE4Ljk3OGE2My40ODggNjMuNDg4IDAgMCAxLTYuNDE3IDE3LjMwNmwxMi4zMjIgMTAuMzc3YzEuOTggMS43NzUgMi43NjQgNC40MzcgMi4xMTYgNi45OTdhMTMuNzIyIDEzLjcyMiAwIDAgMS00LjUwNiA3LjQ3NSAxNi41MiAxNi41MiAwIDAgMS04LjUzMyA0LjMgOC4zMjkgOC4zMjkgMCAwIDEtNy4zNzMtMS44MDhsLTEwLjM0Mi04LjYwMmMtNS4zOTMgMy42NTMtMTEuMjY0IDYuNDg2LTE3LjU0NSA4LjI5NS02Ljc5MiAxLjg3Ny0xMy44MjQgMi43My0yMC44NTUgMi42MjhhNjkuNzM0IDY5LjczNCAwIDAgMS0yNy4yMzktNC45NSA1NC43NSA1NC43NSAwIDAgMS0zMS41NzMtMzQuNjEgODQuODIxIDg0LjgyMSAwIDAgMS0zLjk2LTI2LjQ1NCA5MC44OTcgOTAuODk3IDAgMCAxIDMuNTg1LTI1Ljg3M2MyLjIxOC03LjcxNCA2LjA3NS0xNC44NDggMTEuMjY0LTIwLjk1OCA1LjMyNC02LjA3NiAxMi4wMTUtMTAuODU0IDE5LjQ5LTEzLjk5NWE3Mi4yNiA3Mi4yNiAwIDAgMSAyOC41MzUtNS4xMnYuMjA1em0wIDExMS4yNzVjMy44NTcuMDY4IDcuNjgtLjM0MSAxMS40MzUtMS4yMjlhMzUuNDk5IDM1LjQ5OSAwIDAgMCA5LjQ1NS0zLjk2bC0xMC41NDctOC44NzRhNS45NzMgNS45NzMgMCAwIDEtMi4zOS01LjYzMiAxMy45MjYgMTMuOTI2IDAgMCAxIDUuNTY0LTguMzYzIDE3LjQwOCAxNy40MDggMCAwIDEgOC42Ny00LjcxIDcuOTE5IDcuOTE5IDAgMCAxIDYuODk1IDEuODQzbDUuOTczIDUuMDE4YTU2LjMyIDU2LjMyIDAgMCAwIDEuNzQtOS4xNDhjLjM0Mi0zLjI0My41MTMtNi41NTQuNDc5LTkuODNhNzcuNzkgNzcuNzkgMCAwIDAtMS45OC0xNy45MiA0Mi4zMjUgNDIuMzI1IDAgMCAwLTYuMzgzLTE0LjY3OCAzMC41NSAzMC41NSAwIDAgMC0xMS40MzUtOS44NjQgMzcuNjgzIDM3LjY4MyAwIDAgMC0xNy4xNjktMy41ODQgMzcuMDM1IDM3LjAzNSAwIDAgMC0xNy4yMzcgMy42NTIgMzEuNjQyIDMxLjY0MiAwIDAgMC0xMS40IDkuODMgNDAuOTggNDAuOTggMCAwIDAtNi4zNSAxNC40MDUgNzYuNjYgNzYuNjYgMCAwIDAgMCAzNC4wOTljMS4wMjUgNS4yMjIgMy4wNzMgMTAuMTcyIDUuOTc0IDE0LjY0MyAyLjkzNiA0LjI2NyA2LjgyNyA3Ljg1IDExLjQzNSAxMC4zMDhhMzUuNzEzIDM1LjcxMyAwIDAgMCAxNy41NzggMy45NmwtLjMwNy4wMzR6IiBmaWxsPSIjRkZGIi8+PHBhdGggZD0ibTI0OS4xNzMgNjcyLjA4NS0xMC40NDQgMjEuMTYzYTE3LjkyIDE3LjkyIDAgMCAxLTUuOTc0IDcuMDY2IDE5LjQ1NiAxOS40NTYgMCAwIDEtMTEuMTk2IDIuNjI4IDE5Ljc5NyAxOS43OTcgMCAwIDEtMTEuOTQ2LTMuMDcyYy0yLjk3LTIuMDgyLTMuMzExLTUuNjY2LTEuMDkyLTEwLjcxOGw0OC44NzgtMTEwLjQ1NWExMS4yNjQgMTEuMjY0IDAgMCAxIDUuMTItNS4yNTcgMjUuNTMyIDI1LjUzMiAwIDAgMSAyMS4xNjMgMCAxMS40NjkgMTEuNDY5IDAgMCAxIDUuMDUyIDUuMjU3bDQ5LjM1NyAxMTAuODY1YzEuOTExIDQuNjc2IDEuMzY1IDguMDktMS41MzYgMTAuMjRhMTkuNDIyIDE5LjQyMiAwIDAgMS0xMS45NDcgMy4yMDggMTcuNDA4IDE3LjQwOCAwIDAgMS0xMC45MjMtMi41MjYgMTguNTM0IDE4LjUzNCAwIDAgMS01LjQ5NS02LjMxNGwtMTEuMzY3LTIyLjA4NUgyNDkuMTR6bTQyLjQyOC0yMC43ODctMTguMjI3LTQ1LjYzNi0xOC4yOTYgNDUuNjM2aDM2LjUyM3ptMTM5LjQtMjQ0Ljk0aDMwNS44N2MxNi45OTggMCAyNS40OTcgNS40NiAyNS40OTcgMTYuNDg2IDAgMTAuOTktOC41MzMgMTYuNDg2LTI1LjQ5OCAxNi40ODZINDMxLjAwMmMtMTYuOTk5IDAtMjUuNDk4LTUuNDk1LTI1LjQ5OC0xNi40ODZzOC41MzMtMTYuNDg3IDI1LjQ5OC0xNi40ODd6IiBmaWxsPSIjMERGRUQ0Ii8+PHBhdGggZD0iTTQzMS4wMDIgNjIwLjYxMmgxMjYuMzk1YzE2Ljk5OSAwIDI1LjQ5OCA1LjQ2MiAyNS40OTggMTYuNDg3IDAgMTAuOTktOC41IDE2LjQ1Mi0yNS40OTggMTYuNDUySDQzMS4wMDJjLTE2Ljk5OSAwLTI1LjQ5OC01LjQ2MS0yNS40OTgtMTYuNDUyIDAtMTAuOTkxIDguNTMzLTE2LjQ4NyAyNS40OTgtMTYuNDg3em0tMTAuODg5IDEyMC45NjloNzIuMjZjOS43MjggMCAxNC42MSA1LjQ5NSAxNC42MSAxNi40ODZzLTQuODgyIDE2LjQ4Ny0xNC42MSAxNi40ODdoLTcyLjI2Yy05LjcyOCAwLTE0LjYwOS01LjQ5Ni0xNC42MDktMTYuNDg3IDAtMTAuOTkgNC44ODEtMTYuNDg2IDE0LjYxLTE2LjQ4NnoiIGZpbGw9IiNGRkYiLz48L3N2Zz4=",ut=Object.defineProperty,it=Object.getOwnPropertySymbols,an=Object.prototype.hasOwnProperty,mn=Object.prototype.propertyIsEnumerable,Ct=(Wn,ci,ti)=>ci in Wn?ut(Wn,ci,{enumerable:!0,configurable:!0,writable:!0,value:ti}):Wn[ci]=ti,un=(Wn,ci)=>{for(var ti in ci||(ci={}))an.call(ci,ti)&&Ct(Wn,ti,ci[ti]);if(it)for(var ti of it(ci))mn.call(ci,ti)&&Ct(Wn,ti,ci[ti]);return Wn};const on=Wn=>React.createElement("svg",un({className:"e_svg__icon",width:200,height:200,viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Wn),React.createElement("path",{d:"M387.883 793.003A165.248 165.248 0 0 0 231.21 957.952c0 19.157 3.328 41.941 9.258 66.048H0V783.53c24.107 5.974 46.933 9.26 66.048 9.26a165.205 165.205 0 0 0 165.205-165.163 165.205 165.205 0 0 0-165.12-165.163c-19.2 0-41.984 3.285-66.09 9.216V231.253h240.469c-5.973-24.106-9.259-46.89-9.259-66.048A165.205 165.205 0 0 1 396.373 0v792.747z",fill:"#3061D0"}),React.createElement("path",{d:"M858.837 462.464c-19.157 0-41.941 3.285-66.048 9.216V231.253H552.32c5.93-24.106 9.216-46.89 9.216-66.048A165.205 165.205 0 0 0 396.416 0v792.747a165.205 165.205 0 0 1 165.12 165.205c0 19.157-3.285 41.941-9.216 66.048h240.47V783.53c24.106 5.974 46.89 9.26 66.047 9.26A165.205 165.205 0 0 0 1024 627.626a165.205 165.205 0 0 0-165.163-165.163z",fill:"#A4C8FC"}));var Bn="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgd2lkdGg9IjIwMCIgaGVpZ2h0PSIyMDAiIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTM4Ny44ODMgNzkzLjAwM0ExNjUuMjQ4IDE2NS4yNDggMCAwIDAgMjMxLjIxIDk1Ny45NTJjMCAxOS4xNTcgMy4zMjggNDEuOTQxIDkuMjU4IDY2LjA0OEgwVjc4My41M2MyNC4xMDcgNS45NzQgNDYuOTMzIDkuMjYgNjYuMDQ4IDkuMjZhMTY1LjIwNSAxNjUuMjA1IDAgMCAwIDE2NS4yMDUtMTY1LjE2MyAxNjUuMjA1IDE2NS4yMDUgMCAwIDAtMTY1LjEyLTE2NS4xNjNjLTE5LjIgMC00MS45ODQgMy4yODUtNjYuMDkgOS4yMTZWMjMxLjI1M2gyNDAuNDY5Yy01Ljk3My0yNC4xMDYtOS4yNTktNDYuODktOS4yNTktNjYuMDQ4QTE2NS4yMDUgMTY1LjIwNSAwIDAgMSAzOTYuMzczIDB2NzkyLjc0N3oiIGZpbGw9IiMzMDYxRDAiLz48cGF0aCBkPSJNODU4LjgzNyA0NjIuNDY0Yy0xOS4xNTcgMC00MS45NDEgMy4yODUtNjYuMDQ4IDkuMjE2VjIzMS4yNTNINTUyLjMyYzUuOTMtMjQuMTA2IDkuMjE2LTQ2Ljg5IDkuMjE2LTY2LjA0OEExNjUuMjA1IDE2NS4yMDUgMCAwIDAgMzk2LjQxNiAwdjc5Mi43NDdhMTY1LjIwNSAxNjUuMjA1IDAgMCAxIDE2NS4xMiAxNjUuMjA1YzAgMTkuMTU3LTMuMjg1IDQxLjk0MS05LjIxNiA2Ni4wNDhoMjQwLjQ3Vjc4My41M2MyNC4xMDYgNS45NzQgNDYuODkgOS4yNiA2Ni4wNDcgOS4yNkExNjUuMjA1IDE2NS4yMDUgMCAwIDAgMTAyNCA2MjcuNjI2YTE2NS4yMDUgMTY1LjIwNSAwIDAgMC0xNjUuMTYzLTE2NS4xNjN6IiBmaWxsPSIjQTRDOEZDIi8+PC9zdmc+",Nn=Object.defineProperty,si=Object.getOwnPropertySymbols,Pt=Object.prototype.hasOwnProperty,qn=Object.prototype.propertyIsEnumerable,Ei=(Wn,ci,ti)=>ci in Wn?Nn(Wn,ci,{enumerable:!0,configurable:!0,writable:!0,value:ti}):Wn[ci]=ti,$e=(Wn,ci)=>{for(var ti in ci||(ci={}))Pt.call(ci,ti)&&Ei(Wn,ti,ci[ti]);if(si)for(var ti of si(ci))qn.call(ci,ti)&&Ei(Wn,ti,ci[ti]);return Wn};const Fe=Wn=>React.createElement("svg",$e({className:"g_svg__icon",width:200,height:200,viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Wn),React.createElement("path",{d:"M867.26 801.314c-66.56 79.292-160.802 120.9-261.36 129.775h-.306a221.082 221.082 0 0 1-14.541 1.058c-.41.103-.82.103-1.229.103-.41.443-1.365.443-1.74.443a511.386 511.386 0 0 1-155.854-16.862l-1.672-.443a312.422 312.422 0 0 1-17.033-4.915 271.599 271.599 0 0 1-15.906-5.018 30.106 30.106 0 0 0-2.15-.649c-7.748-2.662-15.36-5.53-22.904-8.533a375.02 375.02 0 0 1-18.432-7.68 525.005 525.005 0 0 1-113.083-65.946c-.922-.75-1.946-1.501-2.902-2.355a486.605 486.605 0 0 1-133.666-157.49c-146.773-276.48 40.38-490.156 210.364-500.498 3.72-.239 7.339-.341 10.923-.341h9.83c150.903-7.885 315.392 78.233 430.216 195.515 1.434 1.4 2.731 2.8 4.096 4.267 5.7 5.803 11.162 11.742 16.521 17.715C909.278 514.867 965.12 684.544 867.26 801.314",fill:"#FFD066"}),React.createElement("path",{d:"M222.413 807.697a487.902 487.902 0 0 1-105.267-122.47c4.983-175.343 36.215-364.544 100.42-392.807 65.707 288.598 52.77 442.095 4.847 515.277z",fill:"#E97286"}),React.createElement("path",{d:"m206.916 794.18-41.472-620.202c-1.024-14.95 4.028-29.696 13.995-40.96a57.21 57.21 0 0 1 39.185-19.115l515.994-33.894c31.436-2.048 58.607 21.504 60.689 52.633l46.523 695.876a362.12 362.12 0 0 1-133.222 80.828l-235.93 15.53a542.447 542.447 0 0 1-59.153-14.403 331.537 331.537 0 0 1-15.906-5.018 30.106 30.106 0 0 0-2.15-.683c-7.748-2.628-15.36-5.495-22.904-8.533-6.212-2.39-12.322-4.95-18.432-7.646a524.97 524.97 0 0 1-147.217-94.447v.034z",fill:"#7E4EE3"}),React.createElement("path",{d:"m199.031 171.964 551.424-38.707 52.088 731.238-538.385 25.77-65.16-718.301",fill:"#FFF"}),React.createElement("path",{d:"M236.1 818.79a491.69 491.69 0 0 1-111.889-122.197c9.011-81.237 44.715-127.522 79.394-172.544 16.282-21.163 32.359-41.984 45.364-66.048 49.937-92.501 108.544-87.962 13.004 97.963-16.042 31.334-9.08 59.597-1.297 91.204 11.06 44.578 23.689 95.778-24.576 171.622z",fill:"#F69C93"}),React.createElement("path",{d:"m689.562 339.388-231.936 21.265a15.292 15.292 0 0 1-16.657-13.722l-3.14-33.519a15.223 15.223 0 0 1 13.857-16.486l231.902-21.265a15.258 15.258 0 0 1 16.657 13.721l3.14 33.485a15.223 15.223 0 0 1-13.858 16.52zm18.022 189.167-237.875 15.599a14.54 14.54 0 0 1-15.497-13.449l-2.39-35.02a14.507 14.507 0 0 1 13.62-15.395l237.875-15.599a14.54 14.54 0 0 1 15.497 13.449l2.39 35.055a14.507 14.507 0 0 1-13.62 15.36zM486.741 746.359l239.138-20.002a14.165 14.165 0 0 0 9.626-4.949 13.926 13.926 0 0 0 3.277-10.24l-3.072-35.84a13.96 13.96 0 0 0-4.984-9.523 14.234 14.234 0 0 0-10.308-3.243L481.28 682.598a14.063 14.063 0 0 0-12.902 15.121l3.072 35.875c.682 7.714 7.509 13.414 15.291 12.765z",fill:"#D5CFE3"}),React.createElement("path",{d:"M380.587 351.778c0 29.355-23.996 53.112-53.59 53.112-29.627 0-53.623-23.757-53.623-53.112s23.996-53.111 53.59-53.111c29.627 0 53.657 23.79 53.657 53.111zm18.227 192.683c0 29.354-23.996 53.145-53.624 53.145a53.385 53.385 0 0 1-53.623-53.145c0-29.355 23.996-53.112 53.59-53.112 29.661 0 53.657 23.791 53.657 53.112zm-35.908 237.431c19.421.342 37.546-9.66 47.343-26.282a52.702 52.702 0 0 0 0-53.726 53.726 53.726 0 0 0-47.343-26.249 53.385 53.385 0 0 0-52.566 53.112c0 28.945 23.382 52.565 52.566 53.145z",fill:"#E7E1F4"}),React.createElement("path",{d:"M288.324 349.389c-7.885-8.977 10.684-23.552 20.446-12.63 1.843 2.083 3.516 4.335 5.154 6.486 7.032 9.216 12.766 16.725 21.64 1.877 10.992-18.33 42.667-56.456 51.747-64.717 9.08-8.294 38.298 1.058 21.948 20.583-16.384 19.558-45.568 56.832-54.409 70.895-8.875 14.028-21.845 24.098-36.727 7.134-14.78-16.965-29.799-29.594-29.799-29.594zm16.384 193.604c-8.772-8.09 8.124-24.576 18.978-14.677 2.048 1.843 3.96 3.89 5.803 5.87 8.021 8.432 14.507 15.292 21.777-.409 8.943-19.354 36.352-60.587 44.51-69.768 8.192-9.216 38.23-2.936 24.03 18.193-14.165 21.162-39.253 61.269-46.524 76.185-7.304 14.882-19.217 26.249-35.772 10.923-16.52-15.292-32.768-26.283-32.768-26.283zm37.308 171.486c-9.66-11.025-28.33 3.413-20.48 12.493 0 0 14.882 12.766 29.594 29.798 14.677 17.067 27.784 7.134 36.727-6.86 8.943-13.995 38.434-51.064 54.955-70.486 16.486-19.388-12.698-29.013-21.846-20.787-9.113 8.226-41.096 46.148-52.155 64.375-9.012 14.78-14.678 7.237-21.64-2.048a114.142 114.142 0 0 0-5.12-6.485z",fill:"#00C6CD"}),React.createElement("path",{d:"M569.924 67.174c-49.97-119.5-164.59-54.1-185.856 11.094-31.266 1.706-57.07 2.935-70.997 3.345h-.341c-6.52.239-18.432.58-26.044 8.772-19.354 20.821 6.28 73.66 21.265 100.932a1297.067 1297.067 0 0 0 349.15-23.176c17.34-57.583 21.709-110.148-21.709-105.882-11.4 1.16-35.362 2.902-65.468 4.915zm-91.75.308c-1.707 0-3.96.068-6.588.17-19.353.683-58.3 2.048-38.98-22.698 25.566-32.7 75.23-31.062 91.136-4.916 15.906 26.147-31.266 27.444-45.568 27.444z",fill:"#3D3450"}),React.createElement("path",{d:"M830.669 1019.085a173.431 173.431 0 0 0 149.948-85.743 170.155 170.155 0 0 0 0-171.52 173.431 173.431 0 0 0-149.948-85.777c-95.608 0-173.124 76.8-173.124 171.52 0 94.72 77.482 171.52 173.124 171.52z",fill:"#00C572"}),React.createElement("path",{d:"M919.552 769.434a21.777 21.777 0 0 1 36.181 10.513 21.3 21.3 0 0 1-6.45 20.65l-29.697-31.163zm-161.178 61.235 5.735 7.782c11.4 15.463 22.733 30.925 34.099 46.422A13499.972 13499.972 0 0 1 916.514 772.3l3.072-2.867 29.696 31.163-3.038 2.833-39.594 37.376a12901.717 12901.717 0 0 0-96.154 92.092 21.777 21.777 0 0 1-32.666-2.799 13821.622 13821.622 0 0 0-48.674-66.355l-5.734-7.748 34.952-25.293zm0 0a21.777 21.777 0 0 0-30.242-4.642 21.3 21.3 0 0 0-4.71 29.935l34.952-25.26z",fill:"#FFF"}));var Ne="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgd2lkdGg9IjIwMCIgaGVpZ2h0PSIyMDAiIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg2Ny4yNiA4MDEuMzE0Yy02Ni41NiA3OS4yOTItMTYwLjgwMiAxMjAuOS0yNjEuMzYgMTI5Ljc3NWgtLjMwNmEyMjEuMDgyIDIyMS4wODIgMCAwIDEtMTQuNTQxIDEuMDU4Yy0uNDEuMTAzLS44Mi4xMDMtMS4yMjkuMTAzLS40MS40NDMtMS4zNjUuNDQzLTEuNzQuNDQzYTUxMS4zODYgNTExLjM4NiAwIDAgMS0xNTUuODU0LTE2Ljg2MmwtMS42NzItLjQ0M2EzMTIuNDIyIDMxMi40MjIgMCAwIDEtMTcuMDMzLTQuOTE1IDI3MS41OTkgMjcxLjU5OSAwIDAgMS0xNS45MDYtNS4wMTggMzAuMTA2IDMwLjEwNiAwIDAgMC0yLjE1LS42NDljLTcuNzQ4LTIuNjYyLTE1LjM2LTUuNTMtMjIuOTA0LTguNTMzYTM3NS4wMiAzNzUuMDIgMCAwIDEtMTguNDMyLTcuNjggNTI1LjAwNSA1MjUuMDA1IDAgMCAxLTExMy4wODMtNjUuOTQ2Yy0uOTIyLS43NS0xLjk0Ni0xLjUwMS0yLjkwMi0yLjM1NWE0ODYuNjA1IDQ4Ni42MDUgMCAwIDEtMTMzLjY2Ni0xNTcuNDljLTE0Ni43NzMtMjc2LjQ4IDQwLjM4LTQ5MC4xNTYgMjEwLjM2NC01MDAuNDk4IDMuNzItLjIzOSA3LjMzOS0uMzQxIDEwLjkyMy0uMzQxaDkuODNjMTUwLjkwMy03Ljg4NSAzMTUuMzkyIDc4LjIzMyA0MzAuMjE2IDE5NS41MTUgMS40MzQgMS40IDIuNzMxIDIuOCA0LjA5NiA0LjI2NyA1LjcgNS44MDMgMTEuMTYyIDExLjc0MiAxNi41MjEgMTcuNzE1QzkwOS4yNzggNTE0Ljg2NyA5NjUuMTIgNjg0LjU0NCA4NjcuMjYgODAxLjMxNCIgZmlsbD0iI0ZGRDA2NiIvPjxwYXRoIGQ9Ik0yMjIuNDEzIDgwNy42OTdhNDg3LjkwMiA0ODcuOTAyIDAgMCAxLTEwNS4yNjctMTIyLjQ3YzQuOTgzLTE3NS4zNDMgMzYuMjE1LTM2NC41NDQgMTAwLjQyLTM5Mi44MDcgNjUuNzA3IDI4OC41OTggNTIuNzcgNDQyLjA5NSA0Ljg0NyA1MTUuMjc3eiIgZmlsbD0iI0U5NzI4NiIvPjxwYXRoIGQ9Im0yMDYuOTE2IDc5NC4xOC00MS40NzItNjIwLjIwMmMtMS4wMjQtMTQuOTUgNC4wMjgtMjkuNjk2IDEzLjk5NS00MC45NmE1Ny4yMSA1Ny4yMSAwIDAgMSAzOS4xODUtMTkuMTE1bDUxNS45OTQtMzMuODk0YzMxLjQzNi0yLjA0OCA1OC42MDcgMjEuNTA0IDYwLjY4OSA1Mi42MzNsNDYuNTIzIDY5NS44NzZhMzYyLjEyIDM2Mi4xMiAwIDAgMS0xMzMuMjIyIDgwLjgyOGwtMjM1LjkzIDE1LjUzYTU0Mi40NDcgNTQyLjQ0NyAwIDAgMS01OS4xNTMtMTQuNDAzIDMzMS41MzcgMzMxLjUzNyAwIDAgMS0xNS45MDYtNS4wMTggMzAuMTA2IDMwLjEwNiAwIDAgMC0yLjE1LS42ODNjLTcuNzQ4LTIuNjI4LTE1LjM2LTUuNDk1LTIyLjkwNC04LjUzMy02LjIxMi0yLjM5LTEyLjMyMi00Ljk1LTE4LjQzMi03LjY0NmE1MjQuOTcgNTI0Ljk3IDAgMCAxLTE0Ny4yMTctOTQuNDQ3di4wMzR6IiBmaWxsPSIjN0U0RUUzIi8+PHBhdGggZD0ibTE5OS4wMzEgMTcxLjk2NCA1NTEuNDI0LTM4LjcwNyA1Mi4wODggNzMxLjIzOC01MzguMzg1IDI1Ljc3LTY1LjE2LTcxOC4zMDEiIGZpbGw9IiNGRkYiLz48cGF0aCBkPSJNMjM2LjEgODE4Ljc5YTQ5MS42OSA0OTEuNjkgMCAwIDEtMTExLjg4OS0xMjIuMTk3YzkuMDExLTgxLjIzNyA0NC43MTUtMTI3LjUyMiA3OS4zOTQtMTcyLjU0NCAxNi4yODItMjEuMTYzIDMyLjM1OS00MS45ODQgNDUuMzY0LTY2LjA0OCA0OS45MzctOTIuNTAxIDEwOC41NDQtODcuOTYyIDEzLjAwNCA5Ny45NjMtMTYuMDQyIDMxLjMzNC05LjA4IDU5LjU5Ny0xLjI5NyA5MS4yMDQgMTEuMDYgNDQuNTc4IDIzLjY4OSA5NS43NzgtMjQuNTc2IDE3MS42MjJ6IiBmaWxsPSIjRjY5QzkzIi8+PHBhdGggZD0ibTY4OS41NjIgMzM5LjM4OC0yMzEuOTM2IDIxLjI2NWExNS4yOTIgMTUuMjkyIDAgMCAxLTE2LjY1Ny0xMy43MjJsLTMuMTQtMzMuNTE5YTE1LjIyMyAxNS4yMjMgMCAwIDEgMTMuODU3LTE2LjQ4NmwyMzEuOTAyLTIxLjI2NWExNS4yNTggMTUuMjU4IDAgMCAxIDE2LjY1NyAxMy43MjFsMy4xNCAzMy40ODVhMTUuMjIzIDE1LjIyMyAwIDAgMS0xMy44NTggMTYuNTJ6bTE4LjAyMiAxODkuMTY3LTIzNy44NzUgMTUuNTk5YTE0LjU0IDE0LjU0IDAgMCAxLTE1LjQ5Ny0xMy40NDlsLTIuMzktMzUuMDJhMTQuNTA3IDE0LjUwNyAwIDAgMSAxMy42Mi0xNS4zOTVsMjM3Ljg3NS0xNS41OTlhMTQuNTQgMTQuNTQgMCAwIDEgMTUuNDk3IDEzLjQ0OWwyLjM5IDM1LjA1NWExNC41MDcgMTQuNTA3IDAgMCAxLTEzLjYyIDE1LjM2ek00ODYuNzQxIDc0Ni4zNTlsMjM5LjEzOC0yMC4wMDJhMTQuMTY1IDE0LjE2NSAwIDAgMCA5LjYyNi00Ljk0OSAxMy45MjYgMTMuOTI2IDAgMCAwIDMuMjc3LTEwLjI0bC0zLjA3Mi0zNS44NGExMy45NiAxMy45NiAwIDAgMC00Ljk4NC05LjUyMyAxNC4yMzQgMTQuMjM0IDAgMCAwLTEwLjMwOC0zLjI0M0w0ODEuMjggNjgyLjU5OGExNC4wNjMgMTQuMDYzIDAgMCAwLTEyLjkwMiAxNS4xMjFsMy4wNzIgMzUuODc1Yy42ODIgNy43MTQgNy41MDkgMTMuNDE0IDE1LjI5MSAxMi43NjV6IiBmaWxsPSIjRDVDRkUzIi8+PHBhdGggZD0iTTM4MC41ODcgMzUxLjc3OGMwIDI5LjM1NS0yMy45OTYgNTMuMTEyLTUzLjU5IDUzLjExMi0yOS42MjcgMC01My42MjMtMjMuNzU3LTUzLjYyMy01My4xMTJzMjMuOTk2LTUzLjExMSA1My41OS01My4xMTFjMjkuNjI3IDAgNTMuNjU3IDIzLjc5IDUzLjY1NyA1My4xMTF6bTE4LjIyNyAxOTIuNjgzYzAgMjkuMzU0LTIzLjk5NiA1My4xNDUtNTMuNjI0IDUzLjE0NWE1My4zODUgNTMuMzg1IDAgMCAxLTUzLjYyMy01My4xNDVjMC0yOS4zNTUgMjMuOTk2LTUzLjExMiA1My41OS01My4xMTIgMjkuNjYxIDAgNTMuNjU3IDIzLjc5MSA1My42NTcgNTMuMTEyem0tMzUuOTA4IDIzNy40MzFjMTkuNDIxLjM0MiAzNy41NDYtOS42NiA0Ny4zNDMtMjYuMjgyYTUyLjcwMiA1Mi43MDIgMCAwIDAgMC01My43MjYgNTMuNzI2IDUzLjcyNiAwIDAgMC00Ny4zNDMtMjYuMjQ5IDUzLjM4NSA1My4zODUgMCAwIDAtNTIuNTY2IDUzLjExMmMwIDI4Ljk0NSAyMy4zODIgNTIuNTY1IDUyLjU2NiA1My4xNDV6IiBmaWxsPSIjRTdFMUY0Ii8+PHBhdGggZD0iTTI4OC4zMjQgMzQ5LjM4OWMtNy44ODUtOC45NzcgMTAuNjg0LTIzLjU1MiAyMC40NDYtMTIuNjMgMS44NDMgMi4wODMgMy41MTYgNC4zMzUgNS4xNTQgNi40ODYgNy4wMzIgOS4yMTYgMTIuNzY2IDE2LjcyNSAyMS42NCAxLjg3NyAxMC45OTItMTguMzMgNDIuNjY3LTU2LjQ1NiA1MS43NDctNjQuNzE3IDkuMDgtOC4yOTQgMzguMjk4IDEuMDU4IDIxLjk0OCAyMC41ODMtMTYuMzg0IDE5LjU1OC00NS41NjggNTYuODMyLTU0LjQwOSA3MC44OTUtOC44NzUgMTQuMDI4LTIxLjg0NSAyNC4wOTgtMzYuNzI3IDcuMTM0LTE0Ljc4LTE2Ljk2NS0yOS43OTktMjkuNTk0LTI5Ljc5OS0yOS41OTR6bTE2LjM4NCAxOTMuNjA0Yy04Ljc3Mi04LjA5IDguMTI0LTI0LjU3NiAxOC45NzgtMTQuNjc3IDIuMDQ4IDEuODQzIDMuOTYgMy44OSA1LjgwMyA1Ljg3IDguMDIxIDguNDMyIDE0LjUwNyAxNS4yOTIgMjEuNzc3LS40MDkgOC45NDMtMTkuMzU0IDM2LjM1Mi02MC41ODcgNDQuNTEtNjkuNzY4IDguMTkyLTkuMjE2IDM4LjIzLTIuOTM2IDI0LjAzIDE4LjE5My0xNC4xNjUgMjEuMTYyLTM5LjI1MyA2MS4yNjktNDYuNTI0IDc2LjE4NS03LjMwNCAxNC44ODItMTkuMjE3IDI2LjI0OS0zNS43NzIgMTAuOTIzLTE2LjUyLTE1LjI5Mi0zMi43NjgtMjYuMjgzLTMyLjc2OC0yNi4yODN6bTM3LjMwOCAxNzEuNDg2Yy05LjY2LTExLjAyNS0yOC4zMyAzLjQxMy0yMC40OCAxMi40OTMgMCAwIDE0Ljg4MiAxMi43NjYgMjkuNTk0IDI5Ljc5OCAxNC42NzcgMTcuMDY3IDI3Ljc4NCA3LjEzNCAzNi43MjctNi44NiA4Ljk0My0xMy45OTUgMzguNDM0LTUxLjA2NCA1NC45NTUtNzAuNDg2IDE2LjQ4Ni0xOS4zODgtMTIuNjk4LTI5LjAxMy0yMS44NDYtMjAuNzg3LTkuMTEzIDguMjI2LTQxLjA5NiA0Ni4xNDgtNTIuMTU1IDY0LjM3NS05LjAxMiAxNC43OC0xNC42NzggNy4yMzctMjEuNjQtMi4wNDhhMTE0LjE0MiAxMTQuMTQyIDAgMCAwLTUuMTItNi40ODV6IiBmaWxsPSIjMDBDNkNEIi8+PHBhdGggZD0iTTU2OS45MjQgNjcuMTc0Yy00OS45Ny0xMTkuNS0xNjQuNTktNTQuMS0xODUuODU2IDExLjA5NC0zMS4yNjYgMS43MDYtNTcuMDcgMi45MzUtNzAuOTk3IDMuMzQ1aC0uMzQxYy02LjUyLjIzOS0xOC40MzIuNTgtMjYuMDQ0IDguNzcyLTE5LjM1NCAyMC44MjEgNi4yOCA3My42NiAyMS4yNjUgMTAwLjkzMmExMjk3LjA2NyAxMjk3LjA2NyAwIDAgMCAzNDkuMTUtMjMuMTc2YzE3LjM0LTU3LjU4MyAyMS43MDktMTEwLjE0OC0yMS43MDktMTA1Ljg4Mi0xMS40IDEuMTYtMzUuMzYyIDIuOTAyLTY1LjQ2OCA0LjkxNXptLTkxLjc1LjMwOGMtMS43MDcgMC0zLjk2LjA2OC02LjU4OC4xNy0xOS4zNTMuNjgzLTU4LjMgMi4wNDgtMzguOTgtMjIuNjk4IDI1LjU2Ni0zMi43IDc1LjIzLTMxLjA2MiA5MS4xMzYtNC45MTYgMTUuOTA2IDI2LjE0Ny0zMS4yNjYgMjcuNDQ0LTQ1LjU2OCAyNy40NDR6IiBmaWxsPSIjM0QzNDUwIi8+PHBhdGggZD0iTTgzMC42NjkgMTAxOS4wODVhMTczLjQzMSAxNzMuNDMxIDAgMCAwIDE0OS45NDgtODUuNzQzIDE3MC4xNTUgMTcwLjE1NSAwIDAgMCAwLTE3MS41MiAxNzMuNDMxIDE3My40MzEgMCAwIDAtMTQ5Ljk0OC04NS43NzdjLTk1LjYwOCAwLTE3My4xMjQgNzYuOC0xNzMuMTI0IDE3MS41MiAwIDk0LjcyIDc3LjQ4MiAxNzEuNTIgMTczLjEyNCAxNzEuNTJ6IiBmaWxsPSIjMDBDNTcyIi8+PHBhdGggZD0iTTkxOS41NTIgNzY5LjQzNGEyMS43NzcgMjEuNzc3IDAgMCAxIDM2LjE4MSAxMC41MTMgMjEuMyAyMS4zIDAgMCAxLTYuNDUgMjAuNjVsLTI5LjY5Ny0zMS4xNjN6bS0xNjEuMTc4IDYxLjIzNSA1LjczNSA3Ljc4MmMxMS40IDE1LjQ2MyAyMi43MzMgMzAuOTI1IDM0LjA5OSA0Ni40MjJBMTM0OTkuOTcyIDEzNDk5Ljk3MiAwIDAgMSA5MTYuNTE0IDc3Mi4zbDMuMDcyLTIuODY3IDI5LjY5NiAzMS4xNjMtMy4wMzggMi44MzMtMzkuNTk0IDM3LjM3NmExMjkwMS43MTcgMTI5MDEuNzE3IDAgMCAwLTk2LjE1NCA5Mi4wOTIgMjEuNzc3IDIxLjc3NyAwIDAgMS0zMi42NjYtMi43OTkgMTM4MjEuNjIyIDEzODIxLjYyMiAwIDAgMC00OC42NzQtNjYuMzU1bC01LjczNC03Ljc0OCAzNC45NTItMjUuMjkzem0wIDBhMjEuNzc3IDIxLjc3NyAwIDAgMC0zMC4yNDItNC42NDIgMjEuMyAyMS4zIDAgMCAwLTQuNzEgMjkuOTM1bDM0Ljk1Mi0yNS4yNnoiIGZpbGw9IiNGRkYiLz48L3N2Zz4=",Qe=Object.defineProperty,Ke=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,At=Object.prototype.propertyIsEnumerable,Lt=(Wn,ci,ti)=>ci in Wn?Qe(Wn,ci,{enumerable:!0,configurable:!0,writable:!0,value:ti}):Wn[ci]=ti,tn=(Wn,ci)=>{for(var ti in ci||(ci={}))Le.call(ci,ti)&&Lt(Wn,ti,ci[ti]);if(Ke)for(var ti of Ke(ci))At.call(ci,ti)&&Lt(Wn,ti,ci[ti]);return Wn};const $t=Wn=>React.createElement("svg",tn({className:"h_svg__icon",width:200,height:200,viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Wn),React.createElement("path",{d:"M931.294 166.775H536.439V856.27h394.855a24.235 24.235 0 0 0 24.44-24.371V192.102c0-14.063-10.343-25.327-24.44-25.327z",fill:"#FF8A65"}),React.createElement("path",{d:"M512 634.88h345.975v48.81H512v-48.81zm0 98.509h345.975v49.732H512V733.39zM660.548 290.61C578.765 290.611 512 357.205 512 438.818S578.765 587.06 660.548 587.06c81.784 0 148.514-66.628 148.514-148.24H660.548V290.61z",fill:"#FBE9E7"}),React.createElement("path",{d:"M709.427 240.879V389.12h148.548c0-81.647-66.764-148.241-148.548-148.241z",fill:"#FBE9E7"}),React.createElement("path",{d:"M586.274 955.733 68.267 857.225v-690.45l518.007-98.508z",fill:"#E64A19"}),React.createElement("path",{d:"M335.258 343.142H218.692v337.716h72.363V564.565h37.649c40.448 0 72.397-10.308 95.915-31.88 23.483-20.65 35.703-48.81 35.703-82.569 0-71.304-42.325-106.94-125.03-106.94zm-13.176 163.226H291.09V401.306h30.993c39.492 0 59.256 16.896 59.256 51.575 0 36.591-19.764 53.487-59.256 53.487z",fill:"#FFF"}));var Ht="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgd2lkdGg9IjIwMCIgaGVpZ2h0PSIyMDAiIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTkzMS4yOTQgMTY2Ljc3NUg1MzYuNDM5Vjg1Ni4yN2gzOTQuODU1YTI0LjIzNSAyNC4yMzUgMCAwIDAgMjQuNDQtMjQuMzcxVjE5Mi4xMDJjMC0xNC4wNjMtMTAuMzQzLTI1LjMyNy0yNC40NC0yNS4zMjd6IiBmaWxsPSIjRkY4QTY1Ii8+PHBhdGggZD0iTTUxMiA2MzQuODhoMzQ1Ljk3NXY0OC44MUg1MTJ2LTQ4Ljgxem0wIDk4LjUwOWgzNDUuOTc1djQ5LjczMkg1MTJWNzMzLjM5ek02NjAuNTQ4IDI5MC42MUM1NzguNzY1IDI5MC42MTEgNTEyIDM1Ny4yMDUgNTEyIDQzOC44MThTNTc4Ljc2NSA1ODcuMDYgNjYwLjU0OCA1ODcuMDZjODEuNzg0IDAgMTQ4LjUxNC02Ni42MjggMTQ4LjUxNC0xNDguMjRINjYwLjU0OFYyOTAuNjF6IiBmaWxsPSIjRkJFOUU3Ii8+PHBhdGggZD0iTTcwOS40MjcgMjQwLjg3OVYzODkuMTJoMTQ4LjU0OGMwLTgxLjY0Ny02Ni43NjQtMTQ4LjI0MS0xNDguNTQ4LTE0OC4yNDF6IiBmaWxsPSIjRkJFOUU3Ii8+PHBhdGggZD0iTTU4Ni4yNzQgOTU1LjczMyA2OC4yNjcgODU3LjIyNXYtNjkwLjQ1bDUxOC4wMDctOTguNTA4eiIgZmlsbD0iI0U2NEExOSIvPjxwYXRoIGQ9Ik0zMzUuMjU4IDM0My4xNDJIMjE4LjY5MnYzMzcuNzE2aDcyLjM2M1Y1NjQuNTY1aDM3LjY0OWM0MC40NDggMCA3Mi4zOTctMTAuMzA4IDk1LjkxNS0zMS44OCAyMy40ODMtMjAuNjUgMzUuNzAzLTQ4LjgxIDM1LjcwMy04Mi41NjkgMC03MS4zMDQtNDIuMzI1LTEwNi45NC0xMjUuMDMtMTA2Ljk0em0tMTMuMTc2IDE2My4yMjZIMjkxLjA5VjQwMS4zMDZoMzAuOTkzYzM5LjQ5MiAwIDU5LjI1NiAxNi44OTYgNTkuMjU2IDUxLjU3NSAwIDM2LjU5MS0xOS43NjQgNTMuNDg3LTU5LjI1NiA1My40ODd6IiBmaWxsPSIjRkZGIi8+PC9zdmc+",rn=Object.defineProperty,vn=Object.getOwnPropertySymbols,cn=Object.prototype.hasOwnProperty,wn=Object.prototype.propertyIsEnumerable,sn=(Wn,ci,ti)=>ci in Wn?rn(Wn,ci,{enumerable:!0,configurable:!0,writable:!0,value:ti}):Wn[ci]=ti,Ft=(Wn,ci)=>{for(var ti in ci||(ci={}))cn.call(ci,ti)&&sn(Wn,ti,ci[ti]);if(vn)for(var ti of vn(ci))wn.call(ci,ti)&&sn(Wn,ti,ci[ti]);return Wn};const jn=Wn=>React.createElement("svg",Ft({className:"i_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:200,height:200},Wn),React.createElement("path",{d:"M800.29 955.733H223.71A155.614 155.614 0 0 1 68.267 800.29V223.71A155.614 155.614 0 0 1 223.71 68.267h576.58A155.614 155.614 0 0 1 955.733 223.71v576.58A155.614 155.614 0 0 1 800.29 955.733z",fill:"#3291FC"}),React.createElement("path",{d:"M311.125 729.43a87.04 87.04 0 0 0-37.137-28.57c-62.293-26.863-91.443-99.43-64.58-161.724 5.734-11.98 12.595-23.415 21.709-33.724 14.302-14.267 24.576-31.983 29.73-51.405 5.7-22.869 14.848-44.032 27.443-63.453a26.35 26.35 0 0 0 2.287-27.41c-5.154-11.434-9.728-23.45-13.722-34.303-6.28-17.135-10.308-33.724-34.85-35.977a39.083 39.083 0 0 1-27.989-47.445c3.413-21.163 21.129-37.137 42.837-38.298 22.29 1.16 40.005 19.456 41.131 41.711 0 16.043 8.021 20.582 18.295 27.99 25.157 22.869 62.874 24.03 89.703 2.867a248.559 248.559 0 0 1 241.732-3.414c5.12 2.867 9.728 6.28 9.148 12.561-1.127 6.28-6.28 11.435-12.561 11.435-13.722 2.287-27.443 3.413-41.165 5.734-55.979 5.12-107.998 31.403-145.135 73.148a161.041 161.041 0 0 0-42.871 121.72 164.045 164.045 0 0 0 58.88 114.858 53.248 53.248 0 0 1 21.162 72.022c-2.32 3.959-5.188 7.953-8.601 11.946-2.287 3.448-4.574 7.441-7.988 12.595 21.163 5.7 43.418 2.868 62.84-7.987a155.068 155.068 0 0 1 80.555-24.576 234.086 234.086 0 0 0 182.306-112.025c1.16-1.127 2.867-1.707 5.734-3.414a207.19 207.19 0 0 1-8.021 55.979 281.054 281.054 0 0 1-266.855 218.317h-7.987a269.824 269.824 0 0 1-216.03-109.159z",fill:"#AFE9FF"}),React.createElement("path",{d:"M596.855 521.42a69.222 69.222 0 0 1-20.002-48.57v-1.708c0-21.162 9.728-36.59 22.87-39.424 11.98-2.867 27.409 9.694 34.85 27.99a66.56 66.56 0 0 1 .58 54.272 22.87 22.87 0 0 1-20.002 14.882 25.6 25.6 0 0 1-17.75-8.021l-.546.58zm123.427-40.55a70.007 70.007 0 0 1-11.4-65.74c2.286-11.981 14.267-21.163 26.282-18.842a27.443 27.443 0 0 1 14.267 7.987c9.728 10.855 16.59 23.996 18.876 38.298l1.127 11.98c0 6.315-1.127 12.596-3.414 18.876a26.863 26.863 0 0 1-23.45 20.002 29.935 29.935 0 0 1-22.288-12.56z",fill:"#FFF"}));var dn="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTgwMC4yOSA5NTUuNzMzSDIyMy43MUExNTUuNjE0IDE1NS42MTQgMCAwIDEgNjguMjY3IDgwMC4yOVYyMjMuNzFBMTU1LjYxNCAxNTUuNjE0IDAgMCAxIDIyMy43MSA2OC4yNjdoNTc2LjU4QTE1NS42MTQgMTU1LjYxNCAwIDAgMSA5NTUuNzMzIDIyMy43MXY1NzYuNThBMTU1LjYxNCAxNTUuNjE0IDAgMCAxIDgwMC4yOSA5NTUuNzMzeiIgZmlsbD0iIzMyOTFGQyIvPjxwYXRoIGQ9Ik0zMTEuMTI1IDcyOS40M2E4Ny4wNCA4Ny4wNCAwIDAgMC0zNy4xMzctMjguNTdjLTYyLjI5My0yNi44NjMtOTEuNDQzLTk5LjQzLTY0LjU4LTE2MS43MjQgNS43MzQtMTEuOTggMTIuNTk1LTIzLjQxNSAyMS43MDktMzMuNzI0IDE0LjMwMi0xNC4yNjcgMjQuNTc2LTMxLjk4MyAyOS43My01MS40MDUgNS43LTIyLjg2OSAxNC44NDgtNDQuMDMyIDI3LjQ0My02My40NTNhMjYuMzUgMjYuMzUgMCAwIDAgMi4yODctMjcuNDFjLTUuMTU0LTExLjQzNC05LjcyOC0yMy40NS0xMy43MjItMzQuMzAzLTYuMjgtMTcuMTM1LTEwLjMwOC0zMy43MjQtMzQuODUtMzUuOTc3YTM5LjA4MyAzOS4wODMgMCAwIDEtMjcuOTg5LTQ3LjQ0NWMzLjQxMy0yMS4xNjMgMjEuMTI5LTM3LjEzNyA0Mi44MzctMzguMjk4IDIyLjI5IDEuMTYgNDAuMDA1IDE5LjQ1NiA0MS4xMzEgNDEuNzExIDAgMTYuMDQzIDguMDIxIDIwLjU4MiAxOC4yOTUgMjcuOTkgMjUuMTU3IDIyLjg2OSA2Mi44NzQgMjQuMDMgODkuNzAzIDIuODY3YTI0OC41NTkgMjQ4LjU1OSAwIDAgMSAyNDEuNzMyLTMuNDE0YzUuMTIgMi44NjcgOS43MjggNi4yOCA5LjE0OCAxMi41NjEtMS4xMjcgNi4yOC02LjI4IDExLjQzNS0xMi41NjEgMTEuNDM1LTEzLjcyMiAyLjI4Ny0yNy40NDMgMy40MTMtNDEuMTY1IDUuNzM0LTU1Ljk3OSA1LjEyLTEwNy45OTggMzEuNDAzLTE0NS4xMzUgNzMuMTQ4YTE2MS4wNDEgMTYxLjA0MSAwIDAgMC00Mi44NzEgMTIxLjcyIDE2NC4wNDUgMTY0LjA0NSAwIDAgMCA1OC44OCAxMTQuODU4IDUzLjI0OCA1My4yNDggMCAwIDEgMjEuMTYyIDcyLjAyMmMtMi4zMiAzLjk1OS01LjE4OCA3Ljk1My04LjYwMSAxMS45NDYtMi4yODcgMy40NDgtNC41NzQgNy40NDEtNy45ODggMTIuNTk1IDIxLjE2MyA1LjcgNDMuNDE4IDIuODY4IDYyLjg0LTcuOTg3YTE1NS4wNjggMTU1LjA2OCAwIDAgMSA4MC41NTUtMjQuNTc2IDIzNC4wODYgMjM0LjA4NiAwIDAgMCAxODIuMzA2LTExMi4wMjVjMS4xNi0xLjEyNyAyLjg2Ny0xLjcwNyA1LjczNC0zLjQxNGEyMDcuMTkgMjA3LjE5IDAgMCAxLTguMDIxIDU1Ljk3OSAyODEuMDU0IDI4MS4wNTQgMCAwIDEtMjY2Ljg1NSAyMTguMzE3aC03Ljk4N2EyNjkuODI0IDI2OS44MjQgMCAwIDEtMjE2LjAzLTEwOS4xNTl6IiBmaWxsPSIjQUZFOUZGIi8+PHBhdGggZD0iTTU5Ni44NTUgNTIxLjQyYTY5LjIyMiA2OS4yMjIgMCAwIDEtMjAuMDAyLTQ4LjU3di0xLjcwOGMwLTIxLjE2MiA5LjcyOC0zNi41OSAyMi44Ny0zOS40MjQgMTEuOTgtMi44NjcgMjcuNDA5IDkuNjk0IDM0Ljg1IDI3Ljk5YTY2LjU2IDY2LjU2IDAgMCAxIC41OCA1NC4yNzIgMjIuODcgMjIuODcgMCAwIDEtMjAuMDAyIDE0Ljg4MiAyNS42IDI1LjYgMCAwIDEtMTcuNzUtOC4wMjFsLS41NDYuNTh6bTEyMy40MjctNDAuNTVhNzAuMDA3IDcwLjAwNyAwIDAgMS0xMS40LTY1Ljc0YzIuMjg2LTExLjk4MSAxNC4yNjctMjEuMTYzIDI2LjI4Mi0xOC44NDJhMjcuNDQzIDI3LjQ0MyAwIDAgMSAxNC4yNjcgNy45ODdjOS43MjggMTAuODU1IDE2LjU5IDIzLjk5NiAxOC44NzYgMzguMjk4bDEuMTI3IDExLjk4YzAgNi4zMTUtMS4xMjcgMTIuNTk2LTMuNDE0IDE4Ljg3NmEyNi44NjMgMjYuODYzIDAgMCAxLTIzLjQ1IDIwLjAwMiAyOS45MzUgMjkuOTM1IDAgMCAxLTIyLjI4OC0xMi41NnoiIGZpbGw9IiNGRkYiLz48L3N2Zz4=",En=de.p+"static/am.0d671d8c.gif",Jt=de(24092),ui=de(59895),Gn=de(69669),mt=de(12242),On=de(46133),Cn=de(79074),jt=Object.defineProperty,mi=Object.defineProperties,Hi=Object.getOwnPropertyDescriptors,Oi=Object.getOwnPropertySymbols,Mn=Object.prototype.hasOwnProperty,lr=Object.prototype.propertyIsEnumerable,Gi=(Wn,ci,ti)=>ci in Wn?jt(Wn,ci,{enumerable:!0,configurable:!0,writable:!0,value:ti}):Wn[ci]=ti,fi=(Wn,ci)=>{for(var ti in ci||(ci={}))Mn.call(ci,ti)&&Gi(Wn,ti,ci[ti]);if(Oi)for(var ti of Oi(ci))lr.call(ci,ti)&&Gi(Wn,ti,ci[ti]);return Wn},wi=(Wn,ci)=>mi(Wn,Hi(ci)),Li=(Wn,ci,ti)=>new Promise((ki,ni)=>{var Vt=$n=>{try{It(ti.next($n))}catch(Yn){ni(Yn)}},Ut=$n=>{try{It(ti.throw($n))}catch(Yn){ni(Yn)}},It=$n=>$n.done?ki($n.value):Promise.resolve($n.value).then(Vt,Ut);It((ti=ti.apply(Wn,ci)).next())});const Ce=({data:Wn,onFinish:ci})=>le.createElement(ot.Z,null,Wn.map((ti,ki)=>le.createElement(On.op,{key:ki,style:{height:28},shape:"default",size:"small",onClick:()=>ci(ti)},ti))),Ci=({text:Wn="",onFinish:ci})=>((0,le.useEffect)(()=>{Wn!=null&&Wn.includes("\u672C\u8F6E\u63D0\u95EE\u7ED3\u675F")&&ci()},[Wn]),le.createElement(le.Fragment,null));var Ri=({pageData:Wn,pageNum:ci,maxPage:ti,aiImg:ki,isCreator:ni,node:Vt,showModelPage:Ut,onModelPageChange:It,changePage:$n})=>{var Yn,yi,Rn,oi,qt,Gt,li,pt,yn,ii,Ti,zt;const xn=(0,st.useParams)(),[vi,nn]=(0,le.useState)(!1),[_e,Ni]=(0,le.useState)(!1),[hi,Pn]=(0,le.useState)(!0),Yi=(0,le.useRef)({}),Qi=(0,le.useRef)(null);(0,le.useEffect)(()=>{var en,gi;if((en=Wn==null?void 0:Wn.page)!=null&&en.id&&((gi=Wn==null?void 0:Wn.page)==null?void 0:gi.knowledge_need_answer)===!0){Pn(!1);const{stream:Mi,setLoading:ji,clearStatus:Fi,renderChatItems:Zi,setChatData:Sr,getData:gr}=Yi.current,mr=()=>Li(void 0,null,function*(){var br,Fn;(Fn=(br=Mi.current)==null?void 0:br.cancelRequest)==null||Fn.call(br),yield new Promise(Cr=>setTimeout(Cr,500)),Fi(),ji(!0);const dr="\u4E3B\u52A8\u63D0\u95EE\u5F00\u59CB",In=Zi(dr),wr={history:[]};In[0].show=!1,Sr(In),gr(dr,wr)});return Qi.current=setTimeout(mr,1e3),()=>{clearTimeout(Qi.current)}}},[(Yn=Wn==null?void 0:Wn.page)==null?void 0:Yn.id]),(0,le.useEffect)(()=>{ni===!1&&Ut&&_t.Z.publish("can-load-data",!1)},[ni,Ut]);const er=[{key:1,name:"PPT\u5236\u4F5C",img:Ht,des:"\u4E00\u53E5\u8BDD\u667A\u80FD\u751F\u6210PPT\u5927\u7EB2\uFF0C\u4F9D\u636E\u5927\u7EB2\u586B\u5145\u8BFE\u4EF6\u5185\u5BB9"},{key:2,name:"\u667A\u80FD\u52A8\u6548",img:at,des:"\u8F93\u5165\u77E5\u8BC6\u70B9\u5185\u5BB9\uFF0C\u81EA\u52A8\u751F\u6210\u53EF\u7F16\u8F91\u7684\u6559\u5B66\u52A8\u6548\u4EE3\u7801"},{key:3,name:"\u6DFB\u52A0\u8BD5\u9898",img:Nt,des:"\u667A\u80FD\u51FA\u9898+\u9898\u5E93\u7CBE\u9009+\u81EA\u7531\u5EFA\u9898+\u62D3\u5C55\u8BAD\u7EC3\uFF0C\u6559\u5B66\u6D4B\u8BC4\u5168\u641E\u5B9A"},{key:4,name:"\u667A\u80FD\u95EE\u7B54",img:dn,des:"\u901A\u8FC7\u667A\u80FD\u63A8\u8350+\u81EA\u5B9A\u4E49\u63D0\u95EE\u53CC\u6A21\u5F0F\uFF0C\u7CBE\u51C6\u68C0\u6D4B\u5B66\u4E60\u6210\u6548"}],Tn=[{key:4,name:"\u667A\u80FD\u51FA\u9898",img:Ne},{key:1,name:"\u9898\u5E93\u9009\u9898",img:de(19773)},{key:2,name:"\u81EA\u4E3B\u5EFA\u9898",img:de(96058)},{key:3,name:"\u62D3\u5C55\u7EC3\u4E60",img:Bn}],Zt=!((yi=Wn==null?void 0:Wn.item_banks)!=null&&yi.length)&&!((Rn=Wn==null?void 0:Wn.page)!=null&&Rn.animation_code)&&!((qt=(oi=Wn==null?void 0:Wn.page)==null?void 0:oi.smart_plan_page_knowledges)!=null&&qt.length),$i=en=>{Yi.current=en;const{stream:gi,setTyping:Mi,setLoading:ji,clearStatus:Fi,renderChatItems:Zi,setChatData:Sr,typing:gr,setCodePreview:mr,getData:br}=en,Fn=(dr,In)=>{if(gr){Je.ZP.warning("\u8BF7\u7B49\u5F85\u4EFB\u52A1\u5B8C\u6210");return}ji(!0),Fi();const wr=Zi(dr),Cr={file_ids:[],history:[]},Tr=In===2;mr(Tr),wr[1].codePreview=Tr,Cr.code_preview=Tr,Sr(wr),br(dr,Cr)};return le.createElement(le.Fragment,null,le.createElement("div",{className:ni?"mb30":"",style:{display:Ut?"block":"none"}},le.createElement("div",{className:Oe.head},le.createElement("strong",{className:"font18 c-black mr10"},ni?" \u667A\u6167\u5907\u8BFE":"\u667A\u80FD\u52A9\u6559"),ni&&le.createElement(le.Fragment,null,le.createElement("b",null),le.createElement("span",{className:"font16 c-grey-333"},"\u8BFE\u4EF6\u79D2\u751F\u6210\xB7\u667A\u80FD\u7CBE\u51C6\u51FA\u9898\xB7\u52A8\u6548\u5B9A\u5236-\u5168\u6D41\u7A0B\u5907\u8BFE\u89E3\u51B3\u65B9\u6848")),hi&&le.createElement("div",{className:Oe.btn,style:{width:"unset"},onClick:()=>{var dr,In;(In=(dr=gi.current)==null?void 0:dr.cancelRequest)==null||In.call(dr),Fi(),Mi(!1),ji(!1),Sr([]),It(!1),_t.Z.publish("can-load-data",!0)}},le.createElement("img",{width:14,src:we}),le.createElement("div",{style:{marginLeft:"6px"}},"\u8FD4\u56DE\u5B66\u4E60\u4E92\u52A8"))),ni&&le.createElement(le.Fragment,null,le.createElement("div",{className:Oe.center},le.createElement("div",{className:Oe.left},le.createElement(Xe.Z,{align:"middle"},le.createElement("b",{className:"font16 c-grey-333 mr10"},"\u667A\u80FD\u5DE5\u5177")),le.createElement("div",{className:Oe.tool},er.map(dr=>le.createElement("aside",{onClick:()=>{var In,wr;if(dr.key===1){const Cr=`/IntelligentTools/10?pathid=${xn.coursesId}&url=${window.location.origin}&name=${(wr=(In=(0,Gn.eY)())==null?void 0:In.course)==null?void 0:wr.course_name}&type=Course`;(0,ui.xg)(mt.Z.AI_PLATFORM_URL+Cr)}dr.key===2&&mr(!0),dr.key===3&&nn(!0),dr.key===4&&Ni(!0)},key:dr.name},le.createElement("img",{src:dr.img,width:28}),le.createElement("div",{className:"ml10"},le.createElement("b",{className:"c-grey-333"},dr.name),le.createElement("div",{className:"c-grey-666 mt5 font12"},dr.des)))))),le.createElement("div",{className:Oe.right,onClick:()=>Fn(`\u751F\u6210\u5FEB\u901F\u6392\u5E8F\u7B97\u6CD5\u7684\u53EF\u89C6\u5316\u6F14\u793A\u8FC7\u7A0B\uFF0C\u5305\u542B\u5982\u4E0B\u6838\u5FC3\u5143\u7D20\uFF1A
1. **\u76F4\u89C2\u7684\u6570\u7EC4\u5C55\u793A**\uFF1A\u7528\u67F1\u72B6\u56FE\u5F62\u5F0F\u5C55\u793A\u6570\u7EC4\uFF0C\u9AD8\u5EA6\u4EE3\u8868\u6570\u503C\u5927\u5C0F
2. **\u9010\u6B65\u6267\u884C**\uFF1A\u53EF\u4EE5\u4E00\u6B65\u4E00\u6B65\u6267\u884C\u5FEB\u901F\u6392\u5E8F\u7684\u6BCF\u4E2A\u6B65\u9AA4
3. **\u81EA\u52A8\u64AD\u653E**\uFF1A\u81EA\u52A8\u9010\u6B65\u6267\u884C\u6392\u5E8F\u8FC7\u7A0B
4. **\u76F4\u63A5\u5B8C\u6210**\uFF1A\u4E00\u952E\u5B8C\u6210\u6574\u4E2A\u6392\u5E8F\u8FC7\u7A0B
5. **\u989C\u8272\u6807\u8BB0**\uFF1A\u7528\u4E0D\u540C\u989C\u8272\u6807\u8BB0\u6838\u5FC3\u8981\u7D20
6. **\u4EE3\u7801\u663E\u793A**\uFF1A\u663E\u793A\u5F53\u524D\u6B65\u9AA4\u5BF9\u5E94\u7684\u4EE3\u7801
7. **\u6587\u5B57\u89E3\u91CA**\uFF1A\u8BE6\u7EC6\u8BF4\u660E\u5F53\u524D\u6B65\u9AA4\u7684\u539F\u7406`,2)},le.createElement("b",{className:"c-grey-333"},"\u52A8\u6548\u751F\u6210"),le.createElement("div",{style:{width:120},className:"c-grey-666 mt10 font12"},"\u4E00\u952E\u751F\u6210\u77E5\u8BC6\u70B9\u52A8\u6548",le.createElement("br",null),"\u652F\u6301\u5D4C\u5165\u8BFE\u4EF6\u6F14\u793A"),le.createElement("div",{className:Oe.borderBox},le.createElement("img",{className:"w-full h-full",src:En})))),le.createElement("div",{className:Oe.try},le.createElement("div",{className:"c-grey-333 mt10"},"\u8BD5\u4E00\u8BD5"),le.createElement("div",{className:Oe.btns},["\u5E2E\u6211\u4F18\u5316\u4E00\u4E0B\u672C\u9875\u7684\u8BFE\u4EF6\u5185\u5BB9"].map((dr,In)=>le.createElement("div",{key:In,onClick:()=>Li(void 0,null,function*(){return Fn(dr,In)})},le.createElement("span",{className:"mr20"},dr),le.createElement("i",{className:"iconfont icon-you2 font18"}))))))),le.createElement("div",{style:{display:Ut?"none":"block"}},Vt))},Vr=(en,gi)=>Li(void 0,null,function*(){var Mi,ji,Fi;const Zi=yield(0,Jt.ZP)(`/api/smart_plan_item_banks/${(Mi=Wn==null?void 0:Wn.page)==null?void 0:Mi.id}/animation_code.json`,{method:"put",body:{animation_code:en}});(Zi==null?void 0:Zi.status)===0&&(Je.ZP.success("\u64CD\u4F5C\u6210\u529F"),(Fi=(ji=Yi.current)==null?void 0:ji.setChatData)==null||Fi.call(ji,[]),_t.Z.publish("active-data-update",!0),gi(),setTimeout(()=>{It(!1)},500))});return le.createElement(le.Fragment,null,le.createElement(Ve.Z,{data:fi(wi(fi({},Wn),{url:ki,position:ci,maxPage:ti}),xn),visible:_e,changePage:$n,onOk:()=>{var en,gi;Je.ZP.success("\u64CD\u4F5C\u6210\u529F"),Ni(!1),(gi=(en=Yi.current)==null?void 0:en.setChatData)==null||gi.call(en,[]),_t.Z.publish("active-data-update",!0),setTimeout(()=>{It(!1)},500)},onClose:()=>Ni(!1)}),le.createElement(vt.default,{open:vi,title:"\u6DFB\u52A0\u8BD5\u9898",centered:!0,onCancel:()=>nn(!1),footer:null,width:640},le.createElement("div",{className:"c-grey-333"},"\u667A\u80FD\u51FA\u9898+\u9898\u5E93\u7CBE\u9009+\u81EA\u7531\u5EFA\u9898+\u62D3\u5C55\u8BAD\u7EC3\uFF0C\u6559\u5B66\u6D4B\u8BC4\u5168\u641E\u5B9A"),le.createElement("div",{className:Oe.add,style:{marginBottom:"20px"}},Tn.map(en=>le.createElement("div",{onClick:()=>{_t.Z.publish("active-modal-index",en.key),nn(!1)}},le.createElement("img",{width:18,src:en.img}),le.createElement("aside",{className:"ml10"},en.name))))),le.createElement(Me.Z,{showSource:!1,showSwitchingModel:!1,onDynamic:Vr,ReactComponent:Ge,hideInputBox:ni?!1:!((Gt=Wn==null?void 0:Wn.page)!=null&&Gt.enable_ai_tutor||(pt=(li=Wn==null?void 0:Wn.page)==null?void 0:li.smart_plan_page_knowledges)!=null&&pt.length||(yn=Wn==null?void 0:Wn.page)!=null&&yn.page_info),onSendMessage:()=>It(!0),showCodePreview:ni,topFunctionNode:en=>$i(en),footerContainerStyle:{marginLeft:20,marginBottom:20},placeholder:ni?"\u8F7B\u70B9\u6B64\u5904\uFF0C\u7ACB\u5373\u4F7F\u7528\u667A\u6167\u5907\u8BFE\u5DE5\u5177/\u6DFB\u52A0\u8BD5\u9898~":void 0,children:null,extraAnswerAction:(en,gi,Mi)=>{var ji;if(hi)return le.createElement(le.Fragment,null);const{isDisAbledUpload:Fi,getData:Zi,clearStatus:Sr,setLoading:gr,setChatData:mr,chatData:br,renderChatItems:Fn}=Mi,dr=In=>{Sr(),gr(!0),mr([...br,...Fn(In)]),Zi(In)};return le.createElement("div",{style:{marginRight:"auto",display:Fi||gi<br.length-1?"none":"block"}},((ji=en==null?void 0:en.text)==null?void 0:ji.includes("\u5224\u65AD\u9898"))&&le.createElement(Ce,{data:["\u6B63\u786E","\u9519\u8BEF"],onFinish:dr}),le.createElement(Ci,{text:en==null?void 0:en.text,onFinish:()=>{Pn(!0)}}))},headNode:!ni&&Ut&&le.createElement(le.Fragment,null,le.createElement("div",{className:"c-grey-333 font22"},le.createElement("span",{className:"mr5"},"\u{1F44B}"),"\u55E8\uFF0C\u6211\u662F\u4F60\u7684\u4E13\u5C5E\u667A\u80FD\u5B66\u4E60\u52A9\u624B\u3002"),(ii=Wn==null?void 0:Wn.page)!=null&&ii.page_info?le.createElement(le.Fragment,null,le.createElement("div",{className:"font16 mt20",style:{color:"#434D6C"}},"\u63A5\u4E0B\u6765\u7531\u6211\u6765\u68B3\u7406\u672C\u9875PPT\u7684\u6838\u5FC3\u5185\u5BB9\u3002\u6211\u4F1A\u91CD\u70B9\u8BB2\u89E3\u77E5\u8BC6\u6846\u67B6\u548C\u6613\u9519\u70B9\uFF0C\u5982\u679C\u9047\u5230\u4EFB\u4F55\u7591\u95EE\u2014\u2014\u65E0\u8BBA\u662F\u6982\u5FF5\u7406\u89E3\u8FD8\u662F\u4E60\u9898\u5E94\u7528\uFF0C\u90FD\u53EF\u4EE5\u968F\u65F6\u6211\u63D0\u95EE\u3002\u73B0\u5728\u8BA9\u6211\u4EEC\u5F00\u59CB\u8FD9\u9875\u7684\u5B66\u4E60\u5427\uFF01"),le.createElement("div",{className:Oe.analysis},le.createElement(Cn.Z,{value:(Ti=Wn==null?void 0:Wn.page)==null?void 0:Ti.page_info}))):le.createElement("div",{className:"font16 mt20",style:{color:"#434D6C"}},"\u6211\u80FD\u6DF1\u5EA6\u89E3\u6790\u8BFE\u4EF6\u91CD\u70B9\uFF0C\u52A9\u4F60\u638C\u63E1\u6838\u5FC3\u6982\u5FF5\uFF1B\u5FEB\u901F\u62C6\u89E3\u9898\u5E72\uFF0C\u5B9A\u4F4D\u95EE\u9898\u5E76\u63D0\u4F9B\u4F18\u5316\u65B9\u6848\u3002\u4F60\u53EF\u4EE5\u968F\u65F6\u63D0\u95EE\uFF0C\u8BA9\u5B66\u4E60\u6548\u7387\u7FFB\u500D")),showDefaultTips:!ni&&Ut,fetchData:{questionable_type:ni?"SmartPlan":"SmartPlanItemBank",ppt_url:ki==null?void 0:ki.map(en=>en==null?void 0:en.url),questionable_id:ni?xn==null?void 0:xn.id:(zt=Wn==null?void 0:Wn.page)==null?void 0:zt.id,position:ci,type:ni?10:11,is_chat:!0},title:"\u667A\u80FD\u52A9\u6559",fetchUrl:"/api/stream/course_qna_records/chat_messages.json",chatContainerStyle:{paddingLeft:20}}))}},76085:function(ze,be,de){"use strict";de.d(be,{Z:function(){return Ve}});var le=de(59301),Me={reasoning:"reasoning___S0mKl",btn:"btn____CIJG",content:"content___CIAh9"},Ie=de(29787),Pe=de(59301),Ge=(ot,Je,Xe)=>new Promise((vt,st)=>{var _t=ne=>{try{te(Xe.next(ne))}catch(fe){st(fe)}},Ue=ne=>{try{te(Xe.throw(ne))}catch(fe){st(fe)}},te=ne=>ne.done?vt(ne.value):Promise.resolve(ne.value).then(_t,Ue);te((Xe=Xe.apply(ot,Je)).next())}),Ve=({value:ot="",streamingStatus:Je,onFinish:Xe,cancelIndex:vt,time:st,loading:_t,loadAll:Ue})=>{const[te,ne]=(0,le.useState)(""),[fe,se]=(0,le.useState)(!0),pe=(0,le.useRef)(ot),Se=(0,le.useRef)(Je),we=(0,le.useRef)(0),De=(0,le.useRef)(null),[Re,Ze]=(0,le.useState)(!1),nt=70;(0,le.useEffect)(()=>{Se.current=Je},[Je]),(0,le.useEffect)(()=>{pe.current=ot},[ot]),(0,le.useEffect)(()=>{if(!Je){ne(pe.current);return}return Ze(!0),De.current=setInterval(rt,nt),()=>{clearInterval(De.current)}},[]),(0,le.useEffect)(()=>{Re&&(ne(pe.current),clearInterval(De.current),Ze(!1),Xe())},[vt]);const rt=()=>Ge(void 0,null,function*(){const ft=pe.current[we.current];ft!==void 0?(ne(xt=>xt+ft),we.current++,clearInterval(De.current),De.current=setInterval(rt,280/(pe.current.length-we.current))):Se.current===!1&&(ne(pe.current),clearInterval(De.current),Ze(!1),Xe())});return Pe.createElement("div",{className:`${Me.reasoning} fadeIn animated`},Pe.createElement("div",{className:Me.btn,onClick:()=>se(!fe)},Pe.createElement("i",{className:"iconfont icon-shendusikao"}),st?Pe.createElement("span",null,"\u5DF2\u6DF1\u5EA6\u601D\u8003\uFF08\u7528\u65F6 ",st," \u79D2\uFF09"):Pe.createElement("span",null,"\u601D\u8003\u4E2D..."),fe?Pe.createElement("b",{className:"iconfont icon-shouqi6"}):Pe.createElement("b",{className:"iconfont icon-zhankai6"})),_t&&Pe.createElement(Ie.Z,{spinning:!0,className:"mt20"}),fe&&!_t&&Pe.createElement("div",{className:Me.content},te,Re?Pe.createElement("span",{className:"aiBlink"},"__"):""))}},6858:function(ze,be,de){"use strict";de.d(be,{Z:function(){return mn}});var le=de(59301),Me=de(30641),Ie=de(6767),Pe=de(14566),Ge=de(62957),Oe=de(25399),Ve=de(37568),ot=de(99571),Je=de(29787),Xe=de(584),vt=de(93725),st=de(75727),_t=de(92310),Ue=de.n(_t),te=de(44622),ne=de(76085),fe=de(30409),se={loadingPic:"loadingPic___y2kKZ",loading:"loading___UEUk1",dot:"dot___TYXFV","dot-fade":"dot-fade___KWn1a",wrap:"wrap___nU3cS",chatContainer:"chatContainer___PNe3Q",footerContainer:"footerContainer___hQATV",btnWrp:"btnWrp___mS8l6",btn:"btn___3za5U",btnActive:"btnActive____jzfb",inputContainer:"inputContainer___iCQ3u",uploadBtn:"uploadBtn___OHHJF",sendBtn:"sendBtn___ktaQl",sendBtnDisabled:"sendBtnDisabled___DVncF",cancelBtn:"cancelBtn___bzMDI",lineFour:"lineFour___Lhbz5",fullIcon:"fullIcon___YWXTV",footerContainerSelected:"footerContainerSelected___pGBh3",full:"full___dZLXo",li:"li___PjMV3",avatarIcon:"avatarIcon___ztGQ3",img:"img___wZqEA",content:"content___OlYYG",borderBox:"borderBox___tjHwt",text:"text___yWTCV",fileWrap:"fileWrap___IX778",file:"file___fxAKb",fileName:"fileName___RA8nu",source:"source___nkLC0",action:"action___I2zGy",disabledInput:"disabledInput___Buork",backBottom:"backBottom___SMuL2",head:"head___v8Eom",headBtn:"headBtn___IS7xR",menuWarp:"menuWarp___G6yj0",menu:"menu___M8VWP",menuText:"menuText___gRpb5",menuDel:"menuDel___eH_wg",active:"active___KWwPV"},pe=de(24092),Se=de(59895),we=de(49882),De=de(37166),Re=de(28984),Ze=de(71986),nt=de(12242),rt=de(56102),ft=de(95487),xt=de(58617),at=de(32050),wt=Object.defineProperty,Mt=Object.defineProperties,Xt=Object.getOwnPropertyDescriptors,bn=Object.getOwnPropertySymbols,pn=Object.prototype.hasOwnProperty,fn=Object.prototype.propertyIsEnumerable,gn=(Ct,un,on)=>un in Ct?wt(Ct,un,{enumerable:!0,configurable:!0,writable:!0,value:on}):Ct[un]=on,Nt=(Ct,un)=>{for(var on in un||(un={}))pn.call(un,on)&&gn(Ct,on,un[on]);if(bn)for(var on of bn(un))fn.call(un,on)&&gn(Ct,on,un[on]);return Ct},ut=(Ct,un)=>Mt(Ct,Xt(un)),it=(Ct,un,on)=>new Promise((Bn,Nn)=>{var si=Ei=>{try{qn(on.next(Ei))}catch($e){Nn($e)}},Pt=Ei=>{try{qn(on.throw(Ei))}catch($e){Nn($e)}},qn=Ei=>Ei.done?Bn(Ei.value):Promise.resolve(Ei.value).then(si,Pt);qn((on=on.apply(Ct,un)).next())}),mn=({title:Ct="\u5934\u6B4CAI",placeholder:un,hideUpload:on,hideInputBox:Bn,aiIcon:Nn=De,userIcon:si=Re,dragIcon:Pt=Ze,children:qn,fetchUrl:Ei,fetchData:$e={},extraAnswerAction:Fe,showDefaultTips:Ne=!0,onOpen:Qe,onClose:Ke,loadingOption:Le,showPreference:At=!1,initMessage:Lt,customRequest:tn,visible:$t,width:Ht=1200,isCheckRestrictNumber:rn=!1,headNode:vn,headFunctionNode:cn,showRedraw:wn,showEdit:sn,promptPropName:Ft="prompt",topPercentage:jn,showSwitchingModel:dn=!1,showImageGenerator:En=!1,showLookHistory:Jt=!1,fetchListObject:ui,customPreference:Gn,customDataNode:mt,showAddSession:On,historyId:Cn,draggableExtraNode:jt,drawerExtraNode:mi,menuExtraFunctionNode:Hi,showSceneAwareness:Oi=!1,ReactComponent:Mn=Me.Z,topFunctionNode:lr,footerContainerStyle:Gi,chatContainerStyle:fi={},showCodePreview:wi=!1,showSource:Li=!0,onSendMessage:Ce,onDynamic:Ci=()=>{}})=>{var Bi,Ri;const[Wn,ci]=(0,le.useState)(!1),[ti,ki]=(0,le.useState)("qwen-max"),[ni,Vt]=(0,le.useState)([]),[Ut,It]=(0,le.useState)([]),[$n,Yn]=(0,le.useState)(!1),[yi,Rn]=(0,le.useState)(!1),[oi,qt]=(0,le.useState)(!1),[Gt,li]=(0,le.useState)([]),[pt,yn]=(0,le.useState)(""),[ii,Ti]=(0,le.useState)(0),[zt,xn]=(0,le.useState)(void 0),[vi,nn]=(0,le.useState)(!1),[_e,Ni]=(0,le.useState)(null),[hi,Pn]=(0,le.useState)(""),Yi=(0,le.useRef)(),Qi=(0,le.useRef)(null),er=(0,le.useRef)(null),[Tn,Zt]=(0,le.useState)(!1),[$i,Vr]=(0,le.useState)(!1),[en,gi]=(0,le.useState)(!1),[Mi,ji]=(0,le.useState)(!1),[Fi,Zi]=(0,le.useState)(!1),[Sr,gr]=(0,le.useState)(0),mr=(0,le.useRef)(null),br=(0,le.useRef)(!1),Fn=(0,le.useRef)(null),[dr,In]=(0,le.useState)(void 0),[wr,Cr]=(0,le.useState)(!0),[Tr,mo]=(0,le.useState)(Ht-28),[ao,Wr]=(0,le.useState)(!1),[Xr,pa]=(0,le.useState)(!0),[no,zi]=(0,le.useState)([]),lt=(0,le.useRef)([]),Go=(0,le.useRef)(null),Lr=(0,le.useRef)(null),zr=(0,le.useRef)(!1),$r=Tr-22,fo=pt==null?void 0:pt.split(`
`).length,{onAdd:Xi,onGetList:nr,onListClick:Ir,onListDelete:Ar,onListDealData:kr}=ui||{},Uo=50,hr=10,ar={maxCount:Uo,showUploadList:!1,withCredentials:!0,openFileDialogOnClick:!1,fileList:ni,multiple:!0,accept:".doc,.docx,.md,.txt,.pdf,.xlsx,.xls",beforeUpload:Yt=>it(void 0,null,function*(){var Pi,Ki,xr,Qr;const Yr=(Qr=(xr=(Ki=(Pi=Yt==null?void 0:Yt.name)==null?void 0:Pi.split("."))==null?void 0:Ki.slice(-1))==null?void 0:xr[0])==null?void 0:Qr.toLowerCase(),yo=["doc","docx","md","pdf","txt","xlsx","xls"].includes(Yr);return Yt.size==0?(Ie.ZP.warning("\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),Pe.default.LIST_IGNORE):yo?Yt.size/1024/1024>100?(Ie.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u5927\u5C0F\u9650\u5236100MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Pe.default.LIST_IGNORE):!0:(Ie.ZP.warning("\u76EE\u524D\u652F\u6301txt\u3001md\u3001doc\u3001docx\u3001pdf\u3001xlsx\u3001xls\u6587\u4EF6"),Pe.default.LIST_IGNORE)}),onChange:({fileList:Yt})=>{Vt(Yt)},action:`${(Bi=nt.Z)==null?void 0:Bi.API_SERVER}/api/intelligent_imports/upload_file.json`},ri={maxCount:hr,showUploadList:!1,withCredentials:!0,openFileDialogOnClick:!1,fileList:Ut,multiple:!0,accept:".jpg,.png,",beforeUpload:Yt=>{var Pi,Ki,xr,Qr;const Yr=(Qr=(xr=(Ki=(Pi=Yt==null?void 0:Yt.name)==null?void 0:Pi.split("."))==null?void 0:Ki.slice(-1))==null?void 0:xr[0])==null?void 0:Qr.toLowerCase(),yo=["jpg","png"].includes(Yr);return Yt.size==0?(Ie.ZP.warning("\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),Pe.default.LIST_IGNORE):yo?Yt.size/1024/1024>10?(Ie.ZP.warning("\u4E0A\u4F20\u7684\u56FE\u7247\u5927\u5C0F\u9650\u523610MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Pe.default.LIST_IGNORE):!0:(Ie.ZP.warning("\u76EE\u524D\u652F\u6301jpg\u3001png"),Pe.default.LIST_IGNORE)},onChange:({fileList:Yt})=>{It(Yt)},action:`${(Ri=nt.Z)==null?void 0:Ri.API_SERVER}/api/ai/generals/update_file.json`};(0,le.useEffect)(()=>{if(!Gt.length||!Yi.current)return;const Yt=Gt[Gt.length-1];Yt!=null&&Yt.loading&&(Yi.current.scrollTop=Yi.current.scrollHeight)},[Gt.length]),(0,le.useEffect)(()=>{if(!Yi.current||!mr.current)return;const Yt=new IntersectionObserver(([Pi])=>{Cr(Pi.isIntersecting)},{root:Yi.current,rootMargin:"70px",threshold:0});return Yt.observe(mr.current),()=>{mr.current&&Yt.unobserve(mr.current)}},[Yi.current,mr.current]),(0,le.useEffect)(()=>{if(!Tn)return;const Yt=Yi.current,Pi=Fn.current;br.current=!1;let Ki=Yt.scrollTop;const xr=()=>{const{scrollTop:Yr,scrollHeight:ur,clientHeight:yo}=Yt;Yr>Ki?Yr+yo>=ur-50&&(Yt.scrollTop=Yt.scrollHeight,br.current=!1):Yr<Ki&&(br.current=!0),Ki=Yr};Yt.addEventListener("scroll",xr);const Qr=new ResizeObserver(()=>{br.current||(Yt.scrollTop=Yt.scrollHeight)});return Qr.observe(Pi),()=>{var Yr;Qr.unobserve(Pi),(Yr=Yt==null?void 0:Yt.removeEventListener)==null||Yr.call(Yt,"scroll",xr)}},[Tn]),(0,le.useEffect)(()=>{!Tn&&lt.current.length&&(li([...Gt,...lt.current]),lt.current=[])},[Tn]),(0,le.useEffect)(()=>{if(!Yi.current)return;const Yt=new ResizeObserver(()=>{var Pi;Yi.current&&mo((Pi=Yi.current)==null?void 0:Pi.offsetWidth)});return Yt.observe(Yi.current),()=>{Yi.current&&Yt.unobserve(Yi.current)}},[Yi.current]),(0,le.useEffect)(()=>{typeof $t=="boolean"&&ci($t)},[$t]),(0,le.useEffect)(()=>{var Yt;if(Qi.current&&_e!==null){Qi.current.focus();const Pi=(Yt=Qi.current.resizableTextArea)==null?void 0:Yt.textArea;Pi&&(Pi.selectionStart=Pi.selectionEnd=Pi.value.length)}},[_e]),(0,le.useEffect)(()=>{fo<5&&nn(!1)},[fo]),(0,le.useEffect)(()=>{Wn&&Lt&&(li(Ji(Lt)),Yn(!0),aa(Lt,{history:[]})),Wn&&(Ho(),Cn?ca(Cn):On&&!dr&&An()),Wn||Zr()},[Wn]);const Ji=(Yt="",Pi=[],Ki=[])=>{const xr=Date.now();return[{text:Yt,key:xr,sender:"user",fileList:Pi,imageList:Ki,show:!0},{loading:!0,key:xr,sender:"AI",show:!0,model:ti,imageGenerator:Mi,thinkingEnabled:$i,codePreview:en}]},Zr=()=>{Pn(""),Ni(null),Vt([]),It([]),yn("")},jo=()=>{if(Qe){Qe({chatData:Gt,setChatData:li,setLoading:Yn,getData:aa,renderChatItems:Ji,handleAdd:An,identifier:dr});return}ci(!0)},Do=()=>{if(pa(!0),Ke){Ke();return}ci(!1)},Ao=()=>{nn(!vi)},Ho=()=>it(void 0,null,function*(){if(!rn)return;const Yt=yield(0,pe.ZP)("/api/intelligent_imports/check_number.json",{method:"get"});(Yt==null?void 0:Yt.status)===0&&(Yt==null?void 0:Yt.total_number)!==-1&&(Ti((Yt==null?void 0:Yt.total_number)-(Yt==null?void 0:Yt.remaining_number)),xn(Yt==null?void 0:Yt.total_number))}),Po=()=>{Ge.default.info({title:"\u63D0\u793A",icon:null,okText:"\u6211\u77E5\u9053\u4E86",width:510,centered:!0,content:le.createElement("div",null,le.createElement("div",{style:{color:"#FA6400"}},"\u60A8\u5DF2\u8FBE\u5230\u667A\u80FD\u52A9\u6559\u7684\u4F7F\u7528\u6B21\u6570"),le.createElement("div",{className:"c-grey-333 mt5"},"\u667A\u80FD\u52A9\u6559\u6BCF\u5929\u9650\u5236\u4F7F\u7528",zt,"\u6B21\uFF0C\u8BF7\u660E\u5929\u518D\u8BD5\u3002"))})},Sa=Yt=>Yt.reduce((Ki,xr)=>{if(xr.sender==="user"){const Qr=Yt.find(Yr=>Yr.key===xr.key&&Yr.sender==="AI");Qr&&(Qr!=null&&Qr.text)&&!(Qr!=null&&Qr.error)&&Ki.push({question:xr.text,answer:Qr.text})}return Ki},[]),aa=(...Yt)=>it(void 0,[...Yt],function*(Pi="",Ki={},xr=Gt){if(tn&&(yield tn({mes:Pi,setChatData:li,fileList:ni,body:Ki,checkNum:Ho,setLoading:Yn,bodyChatData:xr,setTyping:Zt,setImageGenerator:ji,renderChatItems:Ji})),!tn){const Qr=ni==null?void 0:ni.map(Io=>{var Wo;return(Wo=Io==null?void 0:Io.response)==null?void 0:Wo.file_id}),Yr=Ut==null?void 0:Ut.map(Io=>{var Wo;return(Wo=Io==null?void 0:Io.response)==null?void 0:Wo.data}),ur=Ki.history||Sa(xr),yo=Nt(Nt({identifier:dr,response_mode:"streaming",model:ti,scene_awareness:Fi,thinking_enabled:$i,image_generator:Mi,code_preview:en,file_ids:Qr,image_list:Yr,history:ur,[Ft]:Pi},$e),Ki),Jo=Object.fromEntries(Object.entries(yo).filter(([Io,Wo])=>Wo!==void 0));er.current=new ft.Z(nt.Z.API_SERVER+Ei,Jo),yield new Promise((Io,Wo)=>{let oa=null,ms=null;er.current.on("data",Zo=>{Zt(!0);const{chunk:{content:Aa,type:Sl,created:ll,msg:vs}}=Zo,ul=vs==="error";Sl==="thinking"&&(oa=oa||ll,li(Ol=>[...Ol].map((cs,Ts)=>Ts===Ol.length-1?ut(Nt({},cs),{reasoning:(cs.reasoning||"")+Aa,loading:!1,hideAnswer:!0,error:ul}):cs))),Sl==="text"&&(ms=ms||ll,li(Ol=>[...Ol].map((cs,Ts)=>Ts===Ol.length-1?ut(Nt({},cs),{text:(cs.text||"")+Aa,loading:!1,startTime:oa,endTime:ms,error:ul}):cs)))}),er.current.on("done",()=>{Io()}),er.current.on("error",Zo=>{let Aa="\u62B1\u6B49\uFF0C\u6211\u521A\u521A\u9047\u5230\u4E86\u4E00\u70B9\u95EE\u9898\uFF0C\u6CA1\u80FD\u5B8C\u6210\u60A8\u7684\u8BF7\u6C42\u3002\u8BF7\u60A8\u7A0D\u540E\u518D\u8BD5\u4E00\u6B21\uFF0C\u6216\u8005\u8054\u7CFB\u6280\u672F\u652F\u6301\u5E2E\u5FD9\u89E3\u51B3!";Object.prototype.toString.call(Zo)==="[object Object]"&&Zo.status===-9&&(Aa=Zo==null?void 0:Zo.message),li(Sl=>[...Sl].map((ll,vs)=>vs===Sl.length-1?ut(Nt({},ll),{text:Aa,loading:!1,error:!0}):ll)),Io()}),er.current.on("cancelled",()=>{Io()}),er.current.startStream()})}Ho(),Yn(!1)}),es=Yt=>{yn(Yt.target.value)},hn=(Yt,Pi)=>{if(Zr(),Yn(!0),Yt==="edit"){lt.current=Gt.slice(Pi+2);const Ki=Gt.splice(Pi),{fileList:xr=[],imageList:Qr=[]}=(Ki==null?void 0:Ki[0])||{},Yr=xr.map(Jo=>{var Io;return(Io=Jo.response)==null?void 0:Io.file_id}),ur=Qr.map(Jo=>{var Io;return(Io=Jo.response)==null?void 0:Io.data}),yo={history:Sa(Gt),file_ids:Yr,image_list:ur,edit:!0};li([...Gt,...Ji(hi,xr,Qr)]),aa(hi,yo,Gt)}if(Yt==="redraw"){lt.current=Gt.slice(Pi+1);const Ki=Gt.splice(Pi-1),{text:xr,fileList:Qr=[],imageList:Yr=[]}=(Ki==null?void 0:Ki[0])||{},ur=Qr.map(Io=>{var Wo;return(Wo=Io.response)==null?void 0:Wo.file_id}),yo=Yr.map(Io=>{var Wo;return(Wo=Io.response)==null?void 0:Wo.data}),Jo={history:Sa(Gt),file_ids:ur,image_list:yo,edit:!0};li([...Gt,...Ji(xr,Qr,Yr)]),aa(xr,Jo,Gt)}},ra=()=>{if(pt.trim()!==""){Zr(),Yn(!0);const Yt=ni.filter(Ki=>Ki.status==="done"),Pi=Ut.filter(Ki=>Ki.status==="done");li([...Gt,...Ji(pt,Yt,Pi)]),aa(pt)}},kl=Yt=>{if(Yt.shiftKey){if(Yt.key==="Enter")return}else if(Yt.key==="Enter"){if(Yt.preventDefault(),Pa||zr.current)return;ra()}},Ha=(Yt,Pi)=>{let Ki=!1;sn===!0?Ki=!0:sn==="last"&&(Ki=Gt.reduce((ur,yo,Jo)=>yo.sender==="user"?Jo:ur,-1)===Pi);const xr=Pi===_e,Qr=[...(Yt==null?void 0:Yt.fileList)||[],...(Yt==null?void 0:Yt.imageList)||[]];return le.createElement("div",{className:se.li,style:Nt({width:$r},fi)},le.createElement("div",{className:se.avatarIcon},le.createElement("img",{className:se.img,src:si})),le.createElement("div",{className:se.content},!!(Qr!=null&&Qr.length)&&le.createElement("div",{className:se.fileWrap},Qr==null?void 0:Qr.map((Yr,ur)=>{var yo,Jo;return le.createElement("div",{key:ur,className:se.file},le.createElement("img",{src:de(90034)(`./${((Jo=(yo=Yr==null?void 0:Yr.name)==null?void 0:yo.split("."))==null?void 0:Jo.pop())||"txt"}.png`),width:20,className:"mr10"}),le.createElement("aside",null,le.createElement(Oe.Z,{title:Yr==null?void 0:Yr.name},le.createElement("div",{className:se.fileName},Yr==null?void 0:Yr.name)),le.createElement("div",{className:"c-grey-999 font12"},(0,Se.RD)(Yr==null?void 0:Yr.size))))})),le.createElement("div",{className:se.borderBox},xr?le.createElement(Ve.default.TextArea,{value:hi,ref:Qi,autoSize:!0,placeholder:"\u8BF7\u8F93\u5165",bordered:!1,onChange:Yr=>Pn(Yr.target.value)}):le.createElement("div",{className:se.text},Yt==null?void 0:Yt.text)),xr?le.createElement("div",{className:se.action},le.createElement(ot.ZP,{onClick:()=>{Pn(""),Ni(null)},size:"small"},"\u53D6\u6D88"),le.createElement(ot.ZP,{disabled:!hi.trim(),onClick:()=>hn("edit",Pi),type:"primary",size:"small"},"\u786E\u8BA4")):le.createElement("div",{className:se.action},le.createElement(rt.CopyToClipboard,{text:(Yt==null?void 0:Yt.text)||"",onCopy:()=>Ie.ZP.success("\u590D\u5236\u6210\u529F")},le.createElement(Oe.Z,{title:"\u590D\u5236"},le.createElement("i",{className:"iconfont icon-fuzhi8 font13"}))),Ki&&!$n&&le.createElement(Oe.Z,{title:"\u7F16\u8F91"},le.createElement("i",{onClick:()=>{Ni(Pi),Pn((Yt==null?void 0:Yt.text)||"")},className:"iconfont icon-bianji10 font14"})))))},yl=(Yt,Pi)=>{let Ki=!1;wn===!0?Ki=!0:wn==="last"&&(Ki=Gt.reduce((Yr,ur,yo)=>ur.sender==="AI"?yo:Yr,-1)===Pi);let xr="";return Yt!=null&&Yt.source?xr=Yt==null?void 0:Yt.source:(Yt==null?void 0:Yt.model)==="deepseek-r1"?xr="\u7531deepseek\u751F\u6210":(Yt==null?void 0:Yt.model)==="qwen-max"&&(xr="\u7531\u901A\u4E49\u5343\u95EE\u751F\u6210"),le.createElement("div",{className:se.li,style:Nt({width:$r},fi)},le.createElement("div",{className:se.avatarIcon},le.createElement("img",{className:se.img,src:Nn})),le.createElement("div",{className:se.content},le.createElement("div",{className:se.borderBox},Yt.loading&&le.createElement(le.Fragment,null,Yt!=null&&Yt.imageGenerator?le.createElement("div",{className:se.loadingPic},"\u6B63\u5728\u751F\u6210\u4E2D",le.createElement("div",{className:"ai-loading"})):!(Yt!=null&&Yt.thinkingEnabled)&&le.createElement("div",null,le.createElement("div",{className:se.loading},le.createElement("div",{className:se.dot}),le.createElement("div",{className:se.dot}),le.createElement("div",{className:se.dot})),le.createElement("div",{style:{marginTop:10,color:"#9096A3"}},(Le==null?void 0:Le.text)||"\u8BF7\u8010\u5FC3\u7B49\u5F85\uFF0C\u76EE\u524D\u9AD8\u5CF0\u671F\u4F53\u9A8C\u4EBA\u6570\u8FC7\u591A\uFF0C\u6211\u4EEC\u5DF2\u8BB0\u5F55\u4E0B\u60A8\u7684\u9700\u6C42\uFF0C\u7A0D\u540E\u5C06\u81EA\u52A8\u4E3A\u60A8\u751F\u6210\u7B54\u6848\u3002"))),(Yt==null?void 0:Yt.thinkingEnabled)&&le.createElement(ne.Z,{time:Yt==null?void 0:Yt.time,cancelIndex:Sr,loading:Yt.loading,streamingStatus:!(Yt!=null&&Yt.text),onFinish:()=>{gr(0),li(Qr=>[...Qr].map((Yr,ur)=>ur===Qr.length-1?ut(Nt({},Yr),{hideAnswer:!1,time:Yr.startTime?Yr.endTime-Yr.startTime:null}):Yr))},value:Yt==null?void 0:Yt.reasoning}),!!(Yt!=null&&Yt.text)&&!Yt.hideAnswer&&le.createElement(te.Z,{onDynamic:Ci,cancelIndex:Sr,streamingStatus:$n,loadImage:!!(Yt!=null&&Yt.imageGenerator),onFinish:()=>it(void 0,null,function*(){gr(0),setTimeout(()=>Zt(!1),0)}),value:Yt==null?void 0:Yt.text})),Li&&!!(Yt!=null&&Yt.text)&&xr&&le.createElement("div",{className:se.source},xr),le.createElement("div",{className:se.action},Fe==null?void 0:Fe(Yt,Pi,so),!(Yt!=null&&Yt.imageGenerator)&&le.createElement(rt.CopyToClipboard,{text:String((Yt==null?void 0:Yt.text)||""),onCopy:()=>Ie.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},le.createElement(Oe.Z,{title:"\u590D\u5236"},le.createElement("i",{className:"iconfot icon-fuzhi8 font13"}))),At&&!$n&&le.createElement(le.Fragment,null,le.createElement(Oe.Z,{title:"\u559C\u6B22"},le.createElement("i",{style:Yt!=null&&Yt.like?{color:"#FA8D30"}:{},onClick:()=>Lo("like",!(Yt!=null&&Yt.like),Pi),className:"iconfot icon-yijiejue font15"})),le.createElement(Oe.Z,{title:"\u4E0D\u559C\u6B22"},le.createElement("i",{style:Yt!=null&&Yt.dislike?{color:"#e86d7c"}:{},onClick:()=>Lo("dislike",!(Yt!=null&&Yt.dislike),Pi),className:"iconfot icon-weijiejuezhengchang font15"}))),Ki&&!$n&&le.createElement(Oe.Z,{title:"\u91CD\u65B0\u751F\u6210"},le.createElement("i",{onClick:()=>hn("redraw",Pi),className:"iconfot icon-gengxin-genghuan-tihuan"})))))},Lo=(Yt,Pi,Ki)=>it(void 0,null,function*(){if(Gn){const xr=Gt.slice(0,Ki+1),Yr=Sa(xr).length;yield Gn({type:Yt,value:Pi,index:Ki,identifier:dr,objectIndex:Yr})}li(xr=>(xr[Ki][Yt]=Pi,Pi&&(xr[Ki][Yt==="like"?"dislike":"like"]=!1),[...xr]))}),lu=()=>{var Yt,Pi;gr(1),(Pi=(Yt=er.current)==null?void 0:Yt.cancelRequest)==null||Pi.call(Yt),Yn(!1),Zt(!1)},An=()=>it(void 0,null,function*(){var Yt,Pi,Ki;(Pi=(Yt=er.current)==null?void 0:Yt.cancelRequest)==null||Pi.call(Yt),Zr(),li([]),Yn(!0);const xr=yield Xi();(xr==null?void 0:xr.status)===0&&In((Ki=xr==null?void 0:xr.data)==null?void 0:Ki.identifier),Yn(!1),Zt(!1)}),zo=()=>it(void 0,null,function*(){var Yt;qt(!0);const Pi=yield nr();(Pi==null?void 0:Pi.status)===0&&zi(((Yt=Pi==null?void 0:Pi.data)==null?void 0:Yt.list)||[]),qt(!1)}),ca=(...Yt)=>it(void 0,[...Yt],function*(Pi=dr){var Ki,xr,Qr,Yr;(xr=(Ki=er.current)==null?void 0:Ki.cancelRequest)==null||xr.call(Ki),Zr(),Rn(!0);const ur=yield Ir(Pi);if(ur.status===0){const yo=kr(((Qr=ur==null?void 0:ur.data)==null?void 0:Qr.messages)||[]);li(yo),Rn(!1),In((Yr=ur==null?void 0:ur.data)==null?void 0:Yr.identifier);return}li([]),Rn(!1)}),sl=(Yt,Pi)=>it(void 0,null,function*(){(yield Ar(Yt)).status===0&&(Ie.ZP.success("\u5220\u9664\u6210\u529F"),Pi===dr&&An(),zo())}),Ga=()=>le.createElement("div",{className:se.menuWarp},le.createElement("h4",null,"\u5386\u53F2\u5BF9\u8BDD"),le.createElement(Je.Z,{spinning:oi},!no.length&&le.createElement(Xe.Z,{style:{width:250,paddingBottom:30},image:Xe.Z.PRESENTED_IMAGE_SIMPLE}),!!no.length&&le.createElement("div",{className:se.menu},no.map(function(Yt,Pi){return le.createElement("aside",{className:Ue()(dr===Yt.identifier&&se.active),key:Yt.id,onClick:()=>ca(Yt.id)},le.createElement("div",{className:se.menuText},le.createElement(Oe.Z,{title:Yt==null?void 0:Yt.question},le.createElement("span",null,Yt==null?void 0:Yt.question)),Hi&&Hi(Yt)),le.createElement("div",{className:se.menuDel,onClick:Ki=>Ki.stopPropagation()},le.createElement(vt.Z,{title:"\u63D0\u793A",description:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u672C\u6761\u5BF9\u8BDD\u5417\uFF1F",onConfirm:()=>sl(Yt.id,Yt.identifier),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88"},le.createElement("i",{className:"iconfont icon-shanchu14 delete-hover font14"}))))})))),Xs=Yt=>{if(Yt==="file"){if(Ut.length){Ge.default.confirm({centered:!0,icon:null,okText:"\u786E\u8BA4\u8986\u76D6",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u5DF2\u5B58\u5728\u56FE\u7247\uFF0C\u4E0A\u4F20\u6587\u4EF6\u540E\u56FE\u7247\u5C06\u4F1A\u88AB\u8986\u76D6?",onOk:()=>{It([]),Go.current.upload.uploader.fileInput.click()}});return}Go.current.upload.uploader.fileInput.click()}if(Yt==="image"){if(ni.length){Ge.default.confirm({centered:!0,icon:null,okText:"\u786E\u8BA4\u8986\u76D6",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u5DF2\u5B58\u5728\u6587\u4EF6\uFF0C\u4E0A\u4F20\u56FE\u7247\u540E\u6587\u4EF6\u5C06\u4F1A\u88AB\u8986\u76D6?",onOk:()=>{Vt([]),Lr.current.upload.uploader.fileInput.click()}});return}Lr.current.upload.uploader.fileInput.click()}},ps=[{key:"file",disabled:ni.length>=Uo,label:le.createElement(Oe.Z,{placement:"right",title:le.createElement("div",null,le.createElement("b",null,"\u4E0A\u4F20\u9644\u4EF6\uFF08\u4EC5\u8BC6\u522B\u6587\u5B57\uFF09"),le.createElement("div",null,"\u6700\u591A 50 \u4E2A\uFF0C\u6BCF\u4E2A 100 MB\uFF0C\u652F\u6301\u5404\u7C7B\u578B\u6587\u6863"))},le.createElement("span",null,le.createElement("i",{className:"iconfont icon-fujian3 font14 mr5"}),"\u4E0A\u4F20\u6587\u6863"))},ti!=="deepseek-r1"&&{key:"image",disabled:Ut.length>=hr,label:le.createElement(Oe.Z,{placement:"right",title:"\u652F\u6301\u4E0D\u8D85\u8FC710M\u7684PNG/JPG\u56FE\u7247\uFF0C\u6700\u591A10\u4E2A"},le.createElement("span",null,le.createElement("i",{className:"iconfont icon-tupianshangchuan font14 mr5"}),"\u4E0A\u4F20\u56FE\u7247"))}].filter(Boolean),cr=[...ni,...Ut],Pa=cr.some(Yt=>Yt.status==="uploading")||$n||Tn,Dl=ii>=zt,is=on||ni.length>=Uo||Ut.length>=hr,Kr=Mi||$i||Fi||en||!!cr.length,so={chatData:Gt,stream:er,isDisabledNum:Dl,isDisAbledUpload:Pa,checkNumModal:Po,checkNum:Ho,onClose:Do,setChatData:li,setLoading:Yn,getData:aa,clearStatus:Zr,typing:Tn,setImageGenerator:ji,renderChatItems:Ji,setSceneAwareness:Zi,setIdentifier:In,setCodePreview:gi,setTyping:Zt,onMenuClick:ca};return le.createElement(le.Fragment,null,qn?le.createElement("div",{onClick:jo},qn):qn!==null&&le.createElement(we.Z,{draggableExtraNode:jt,src:Pt,onClick:jo,topPercentage:jn}),le.createElement(Mn,{open:Wn,width:ao?"100%":Ht,afterOpenChange:Yt=>{Yt&&pa(!1)},push:!1,contentWrapperStyle:Xr?{}:{transition:"none"},extra:le.createElement("div",{className:se.head},mi,dn&&le.createElement(fe.Z,{value:ti,onChange:Yt=>{Vr(!1),ji(!1),ki(Yt),It([]),Vt([])}}),Jt&&le.createElement(le.Fragment,null,le.createElement(st.Z,{dropdownRender:Ga,onOpenChange:Yt=>{Yt&&zo()},placement:"bottomLeft",arrow:!0},le.createElement("div",{className:se.headBtn},le.createElement("i",{className:"icon-lishiduihua1 font14 mr10"}),"\u5386\u53F2\u5BF9\u8BDD"))),On&&le.createElement(le.Fragment,null,le.createElement("div",{className:se.headBtn,onClick:An},le.createElement("i",{className:"icon-xinjianduihua font14 mr10"}),"\u65B0\u5EFA\u5BF9\u8BDD")),le.createElement(Oe.Z,{title:ao?"\u9000\u51FA\u5168\u5C4F":"\u5168\u5C4F"},le.createElement("div",{className:se.headBtn,style:{padding:"0 12px"},onClick:()=>Wr(!ao)},ao&&le.createElement("i",{className:"iconfont icon-tuichuquanping3"}),!ao&&le.createElement("i",{className:"iconfont icon-quanping4"})))),title:le.createElement("span",{className:"c-grey-333 font16"},Ct),onClose:Do,bodyStyle:{paddingRight:4}},le.createElement("div",{className:Ue()(se.wrap,Wn&&"body-overflow-hidden")},le.createElement("div",{ref:Yi,className:se.chatContainer},lr==null?void 0:lr(so),Ne&&le.createElement("div",{className:`${se.li} mb20`,style:Nt({width:$r},fi)},le.createElement("div",{className:se.avatarIcon},le.createElement("img",{className:se.img,src:Nn})),le.createElement("div",{className:se.content},le.createElement("div",{className:se.borderBox},vn,cn==null?void 0:cn(so)))),le.createElement("div",{ref:Fn},le.createElement(Je.Z,{spinning:yi,className:"mt20"},Gt==null?void 0:Gt.map((Yt,Pi)=>le.createElement(le.Fragment,{key:Yt.key+Pi},Yt.show&&le.createElement(le.Fragment,null,Yt.sender==="user"&&Ha(Yt,Pi),Yt.sender==="AI"&&yl(Yt,Pi),mt&&!["AI","user"].includes(Yt.sender)&&mt(Yt,Pi,{width:$r})))))),!wr&&le.createElement("div",{className:se.backBottom,onClick:()=>{Yi.current.scrollTop=Yi.current.scrollHeight}},le.createElement("i",{className:"iconfont icon-huidaodibu"})),le.createElement("div",{ref:mr})),!Bn&&le.createElement("div",{style:Gi,className:Ue()(se.footerContainer,vi&&se.full,Kr&&se.footerContainerSelected)},le.createElement("div",{className:se.btnWrp},wi&&le.createElement(Oe.Z,{title:"\u66F4\u64C5\u957F\u5904\u7406\u4EE3\u7801\u95EE\u9898\uFF0C\u652F\u6301\u4E00\u53E5\u8BDD\u751F\u6210\u5E94\u7528"},le.createElement("div",{onClick:()=>gi(!en),className:Ue()(se.btn,en&&se.btnActive)},le.createElement("i",{className:"iconfont icon-daimamoshi1 mr10 font12"}),"\u4EE3\u7801\u6A21\u5F0F")),Oi&&le.createElement(Oe.Z,{title:"\u667A\u80FD\u611F\u77E5\u5F53\u524D\u60C5\u5883\uFF0C\u63D0\u4F9B\u9488\u5BF9\u6027\u89E3\u7B54"},le.createElement("div",{onClick:()=>Zi(!Fi),className:Ue()(se.btn,Fi&&se.btnActive)},le.createElement("i",{className:"iconfont icon-changjingganzhi mr10 font12"}),"\u573A\u666F\u611F\u77E5")),ti==="deepseek-r1"&&le.createElement(Oe.Z,{title:"\u8C03\u7528\u65B0\u6A21\u578B DeepSeek-R1\uFF0C\u89E3\u51B3\u63A8\u7406\u95EE\u9898"},le.createElement("div",{onClick:()=>Vr(!$i),className:Ue()(se.btn,$i&&se.btnActive)},le.createElement("i",{className:"iconfont icon-shendusikao mr10 font12"}),"\u6DF1\u5EA6\u601D\u8003\uFF08R1\uFF09")),En&&ti==="qwen-max"&&le.createElement("div",{onClick:()=>ji(!Mi),className:Ue()(se.btn,Mi&&se.btnActive)},le.createElement("i",{className:"iconfont icon-shangchuantupian2 mr10 font12"}),"\u56FE\u50CF\u751F\u6210"),cr.map(Yt=>le.createElement("div",{key:Yt.uid},(Yt==null?void 0:Yt.status)==="uploading"&&le.createElement(Je.Z,{indicator:le.createElement(xt.Z,{rev:"",spin:!0}),className:"mr10",size:"small",spinning:!0}),le.createElement("span",{title:Yt==null?void 0:Yt.name,className:"mr10"},(0,Se.Pq)(Yt.name,20)),le.createElement("i",{onClick:()=>{Vt(Pi=>Pi.filter(Ki=>Ki.uid!==Yt.uid)),It(Pi=>Pi.filter(Ki=>Ki.uid!==Yt.uid))},className:"iconfont current icon-shanchu15 delete-hover c-red-ee4 font12"})))),le.createElement(Oe.Z,{title:Dl&&le.createElement("div",null,le.createElement("div",null,"\u60A8\u5DF2\u8FBE\u5230\u667A\u80FD\u52A9\u6559\u7684\u4F7F\u7528\u6B21\u6570"),le.createElement("div",null,"\u667A\u80FD\u52A9\u6559\u6BCF\u5929\u9650\u5236\u4F7F",zt,"\u6B21\uFF0C\u8BF7\u660E\u5929\u518D\u8BD5\u3002"))},le.createElement("div",{className:Ue()(se.inputContainer,fo>4&&se.lineFour,Dl&&se.disabledInput)},le.createElement(Pe.default,Nt({ref:Go},ar)),le.createElement(Pe.default,Nt({ref:Lr},ri)),le.createElement(st.Z,{className:`${is&&"hide"}`,menu:{items:ps,onClick:Yt=>Xs(Yt.key)},placement:"top"},le.createElement(ot.ZP,{className:se.uploadBtn,icon:le.createElement(at.Z,{rev:"",style:{fontSize:18,color:"#FFF"}})})),le.createElement(Ve.default.TextArea,{rows:fo>4?4:fo,placeholder:un||"\u5728\u8FD9\u91CC\u8F93\u5165\u4F60\u7684\u95EE\u9898\u5427\uFF0CShift+Enter\u6362\u884C\uFF5E",value:pt,bordered:!1,style:is?{paddingLeft:0,marginLeft:0}:{},onChange:es,onPressEnter:kl,onFocus:()=>Ce==null?void 0:Ce(),onCompositionStart:()=>{zr.current=!0},onCompositionEnd:()=>{zr.current=!1}}),Tn?le.createElement(Oe.Z,{title:"\u505C\u6B62\u751F\u6210"},le.createElement("div",{className:`iconfont icon-tingzhihuida ${se.cancelBtn}`,onClick:lu})):le.createElement(ot.ZP,{className:(pt==null?void 0:pt.trim())===""?se.sendBtnDisabled:se.sendBtn,icon:le.createElement("i",{className:"iconfont icon-fasong2 c-white"}),disabled:Pa,onClick:ra}),fo>4&&le.createElement("span",{className:se.fullIcon,onClick:Ao},vi&&le.createElement("span",{className:"iconfont icon-shousuo"}),!vi&&le.createElement("span",{className:"iconfont icon-zhankai"}))))))))}},25138:function(ze,be,de){"use strict";de.d(be,{Z:function(){return vt}});var le=de(59301),Me={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Ie=de(92310),Pe=de.n(Ie),Ge=de(29787),Oe=de(2859),Ve=de(24092),ot=de(59895),Je=(st,_t,Ue)=>new Promise((te,ne)=>{var fe=Se=>{try{pe(Ue.next(Se))}catch(we){ne(we)}},se=Se=>{try{pe(Ue.throw(Se))}catch(we){ne(we)}},pe=Se=>Se.done?te(Se.value):Promise.resolve(Se.value).then(fe,se);pe((Ue=Ue.apply(st,_t)).next())}),vt=({data:st,className:_t,fullWidth:Ue,style:te={},onClose:ne,onOk:fe,showFullTools:se,noAssociationId:pe})=>{const Se=(0,le.useRef)(null),we=(0,le.useRef)(null),De=(0,le.useRef)(null),Re=(0,le.useRef)(null),[Ze,nt]=(0,le.useState)(!1),[rt,ft]=(0,le.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,le.useEffect)(()=>(De.current||(De.current=document.createElement("style"),document.head.appendChild(De.current)),st!=null&&st.visible?(document.body.setAttribute("data-custom","y-hidden"),De.current.innerHTML=" html { overflow-y: hidden; }",st!=null&&st.src&&xt()):(document.body.removeAttribute("data-custom"),De.current&&(document.head.removeChild(De.current),De.current=null)),()=>{document.body.removeAttribute("data-custom"),De.current&&(document.head.removeChild(De.current),De.current=null)}),[st==null?void 0:st.visible]);const xt=()=>Je(void 0,null,function*(){nt(!0),ft("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Xt=yield(0,ot.ZJ)(st==null?void 0:st.src);Se.current.src="",Se.current.src=Xt,Se.current.onload=function(){Mt()},nt(!1),ft("")}),at=Xt=>Je(void 0,null,function*(){nt(!0),ft("\u6B63\u5728\u4FDD\u5B58\u4E2D");const bn=yield(0,Ve.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:st.title,file:Xt.dataUrl}});bn!=null&&bn.id&&!pe?(yield(0,Ve.ZP)(`/api/attachments/${st.id}/add_subitem.json`,{method:"post",body:{subitem_id:bn==null?void 0:bn.id,settings:JSON.stringify(Xt.state)}})).status===0&&fe():bn!=null&&bn.id&&fe(bn),nt(!1),ft("")}),wt=()=>{const Xt=document.querySelector('a[href="https://markerjs.com/"]');Xt&&Xt.parentNode&&(Xt.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(pn=>{const fn=document.querySelector(pn.name);fn&&fn.setAttribute("title",pn.title)})},Mt=()=>{we.current=new Oe.hP(Se.current),we.current.targetRoot=Re.current,we.current.addEventListener("render",at),we.current.addEventListener("beforeclose",ne),se&&(we.current.availableMarkerTypes=we.current.ALL_MARKER_TYPES,we.current.uiStyleSettings.redoButtonVisible=!0,we.current.uiStyleSettings.notesButtonVisible=!0,we.current.uiStyleSettings.zoomButtonVisible=!0,we.current.uiStyleSettings.zoomOutButtonVisible=!0,we.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=we.current.uiStyleSettings,we.current.show(),st!=null&&st.snapshotData&&we.current.restoreState(st.snapshotData),setTimeout(()=>{window.scrollTo(0,0),wt()},300)};return le.createElement(le.Fragment,null,(st==null?void 0:st.visible)&&le.createElement(Ge.Z,{spinning:Ze,tip:rt,style:{position:"absolute",width:"100vw"}},le.createElement("div",{ref:Re,className:Pe()(Me.imageDimensions,_t,Ue?Me.fullWidth:""),style:te},le.createElement("img",{className:Me.img,ref:Se}))))}},88831:function(ze,be,de){"use strict";var le=de(59301),Me=de(77019),Ie=de(5269),Pe=de(20554),Ge=de(99571),Oe=de(79074),Ve=de(15547),ot=de(48136),Je=de(59301);const Xe=(0,le.forwardRef)(({callback:vt,showSaveButton:st,value:_t=""},Ue)=>{const te=(0,le.useRef)(),ne=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],fe=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
x=a + r\\text{cos}\\theta \\ \r
y=b + r\\text{sin}\\theta \r
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\left\\{\\begin{matrix} \r
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
\\end{matrix}\\right. \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
a \\perp \\alpha \\ \r
b \\perp \\alpha \r
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
a \\parallel \\partial ,b \\parallel \\partial \r
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
a \\perp m,a \\perp n \r
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
a^{2}+b^{2}=c^{2} \r
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
a,b \\in R^{+} \\ \r
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
a,b \\in R \\ \r
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
P \\left( \\emptyset \\right) =0 \\\\ \r
P \\left( S \\right) =1 \r
\\end{array}`},{value:`\\begin{array}{c} \r
\\forall A \\in S \\\\ \r
P \\left( A \\right) \\ge 0 \r
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
\\end{array}`},{value:`\\begin{array}{c} \r
P_{n}=n! \\\\ \r
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
\\end{array}`}]}]}],se=we=>{te.current.setValue(te.current.getValue()+" "+we.value+" ")},pe=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Je.createElement(Me.Z,{className:Ve.Z.lists,gutter:[10,10]},ne.map((we,De)=>Je.createElement(Ie.Z,{flex:"110px",className:Ve.Z.item},Je.createElement("div",null,Je.createElement(Oe.Z,{value:`$$${we.value}$$`}),we.name),Je.createElement("div",{className:Ve.Z.children},we.children.map((Re,Ze)=>Je.createElement("div",{key:Ze},Je.createElement("h1",null,Re.name),Je.createElement(Me.Z,{gutter:[10,10]},Re.data.map((nt,rt)=>Je.createElement(Ie.Z,{key:rt,onClick:()=>se(nt),className:Ve.Z.diamond},Je.createElement(Oe.Z,{value:"`$$"+nt.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Je.createElement(Me.Z,{className:Ve.Z.lists,gutter:[10,10]},fe.map((we,De)=>Je.createElement(Ie.Z,{flex:"110px",className:Ve.Z.item},Je.createElement("div",null,Je.createElement(Oe.Z,{value:"`$$"+we.value+"$$`"}),we.name),Je.createElement("div",{className:Ve.Z.children},we.children.map((Re,Ze)=>Je.createElement("div",{key:Ze},Re.name&&Je.createElement("h1",null,Re.name),Je.createElement(Me.Z,{gutter:[10,10]},Re.data.map((nt,rt)=>Je.createElement(Ie.Z,{key:rt,onClick:()=>se(nt),className:Ve.Z.diamond},Je.createElement(Oe.Z,{value:"`$$"+nt.value+"$$`"}))))))))))}],Se=()=>{var we=document.createElement("div");we.innerHTML=te.current.getValue();var De=we.innerText;return vt&&vt(De),De};return(0,le.useImperativeHandle)(Ue,()=>({getData:Se})),Je.createElement("div",{className:Ve.Z.mathWrap},Je.createElement(Pe.default,{defaultActiveKey:"1",items:pe}),Je.createElement("math-field",{locale:"zh_cn",className:Ve.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:te,style:{width:800,marginTop:30,fontSize:18}},_t||""),st&&Je.createElement("div",{className:Ve.Z.button},Je.createElement(Ge.ZP,{size:"large",onClick:Se,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});be.Z=Xe},12635:function(ze,be,de){"use strict";var le=de(59301),Me=de(93314),Ie=de(99571),Pe=Object.defineProperty,Ge=Object.defineProperties,Oe=Object.getOwnPropertyDescriptors,Ve=Object.getOwnPropertySymbols,ot=Object.prototype.hasOwnProperty,Je=Object.prototype.propertyIsEnumerable,Xe=(Ue,te,ne)=>te in Ue?Pe(Ue,te,{enumerable:!0,configurable:!0,writable:!0,value:ne}):Ue[te]=ne,vt=(Ue,te)=>{for(var ne in te||(te={}))ot.call(te,ne)&&Xe(Ue,ne,te[ne]);if(Ve)for(var ne of Ve(te))Je.call(te,ne)&&Xe(Ue,ne,te[ne]);return Ue},st=(Ue,te)=>Ge(Ue,Oe(te));const _t=({img:Ue,buttonProps:te={},styles:ne={},customText:fe,ButtonText:se,ButtonClick:pe,Buttonclass:Se,ButtonTwo:we,imgStyles:De,loading:Re=!1,className:Ze=""})=>le.createElement("section",{className:`tc animated fadeIn ${Ze}`,style:vt({color:"#999",margin:"100px auto",visibility:Re?"hidden":"visible"},ne)},le.createElement("img",{src:Ue||Me,style:st(vt({},De),{pointerEvents:"none",userSelect:"none"})}),le.createElement("p",{className:"mt20 font14"},fe||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),se&&le.createElement(Ie.ZP,vt({className:Se,onClick:pe},te),se),we&&we);be.Z=_t},6311:function(ze,be,de){"use strict";de.d(be,{Z:function(){return Se}});var le=de(59301),Me={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},Ie=de(99571),Pe=de(70557),Ge=de(89081),Oe=de(25399),Ve=de(59895),ot=de(76011),Je=de(12635),Xe=de(12242),vt=de(65789),st=de(59301),_t=Object.defineProperty,Ue=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,fe=(we,De,Re)=>De in we?_t(we,De,{enumerable:!0,configurable:!0,writable:!0,value:Re}):we[De]=Re,se=(we,De)=>{for(var Re in De||(De={}))te.call(De,Re)&&fe(we,Re,De[Re]);if(Ue)for(var Re of Ue(De))ne.call(De,Re)&&fe(we,Re,De[Re]);return we},pe=(we,De,Re)=>new Promise((Ze,nt)=>{var rt=at=>{try{xt(Re.next(at))}catch(wt){nt(wt)}},ft=at=>{try{xt(Re.throw(at))}catch(wt){nt(wt)}},xt=at=>at.done?Ze(at.value):Promise.resolve(at.value).then(rt,ft);xt((Re=Re.apply(we,De)).next())}),Se=({editOffice:we="view",data:De,theme:Re,type:Ze,filename:nt,monacoEditor:rt,className:ft,style:xt,close:at,onClose:wt,hasMask:Mt,disabledDownload:Xt,onImgDimensions:bn,showNodata:pn,recordInfo:fn})=>{const[gn,Nt]=(0,le.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[ut,it]=(0,le.useState)(""),[an,mn]=(0,le.useState)(),Ct=window.ENV==="build"?"/react/build":"",un=location.host.startsWith("localhost")?Xe.Z.PROXY_SERVER:Xe.Z.API_SERVER,Bn=10*(1024*1024),Nn=(0,le.useRef)();De!=null&&De.startsWith("/api")&&Ze!=="txt"&&(De=Xe.Z.API_SERVER+De);const si=$e=>$e.substring($e.lastIndexOf("/")+1).split(".").pop();nt&&rt&&(rt.filename=nt),(0,le.useEffect)(()=>{var $e,Fe;const Ne=(Fe=($e=document.cookie)==null?void 0:$e.replace(/\s/g,""))==null?void 0:Fe.split(";");Ne==null||Ne.map(Qe=>{let Ke=Qe.split("=");Ke[0]==="_educoder_session"&&it(Ke[1])})},[]),(0,le.useEffect)(()=>{Ze==="office"&&(De.indexOf("bigfilescdn.")>-1||De.indexOf("bigfiles1")>-1?mn({url:De,fileType:si(De),model:De.indexOf("model=edit")?"edit":"view"}):Pt())},[Ze,De]);const Pt=()=>pe(void 0,null,function*(){console.log("data:",De);let $e=De;De.startsWith("http")||($e=location.origin+$e);let Fe=new URL($e).pathname.split("/").pop();const Ne=yield(0,ot.gJ)({attachment_id:Fe});Ne.url=un+Ne.url,mn(Ne)}),qn=()=>{if(De.startsWith("http")||De.startsWith("blob:")){Ei();return}(0,Ve.Sv)(nt||"educoder",De,nt)},Ei=()=>{fn&&(0,vt.fc)({id:fn==null?void 0:fn.id,watch_type:1,course_id:fn==null?void 0:fn.course_id}),(0,Ve.Nd)(nt||"educoder",decodeURIComponent(De))};return st.createElement("div",{style:se({},xt||{}),className:`${Mt&&Me.bgBlack} ${Ze?Me.wrp:"hide"}`},at&&st.createElement("div",{className:Me.close,ref:Nn},!!bn&&st.createElement(Oe.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Nn.current},st.createElement("span",{onClick:()=>{wt(),bn()}},st.createElement("i",{className:"icon-yulanpizhu"}))),!Xt&&st.createElement(Oe.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Nn.current},st.createElement("span",{onClick:Ei},st.createElement("i",{className:"icon-quxiaozhiding"}))),st.createElement(Oe.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Nn.current},st.createElement("span",{className:"",onClick:wt},st.createElement("i",{className:"icon-guanbi1"})))),st.createElement("div",{className:`${Me[ft]} ${ft} ${Me.monaco} ${Ze==="txt"?"show":"hide"}`},Ze==="txt"&&st.createElement(st.Fragment,null,st.createElement(Ge.ZP,se({},rt)))),Ze==="audio"&&st.createElement("audio",{src:`${(De==null?void 0:De.indexOf("http://"))>-1||(De==null?void 0:De.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${De}`,autoPlay:!0}),Ze==="video"&&st.createElement(st.Fragment,null,(De==null?void 0:De.indexOf("http"))>-1?st.createElement("video",{controls:!0,src:`${De}`,autoPlay:!0}):st.createElement("video",{controls:!0,src:`data:video/mp4;base64,${De}`,autoPlay:!0})),Ze==="office"&&an&&st.createElement("iframe",{src:`${Ct}/office.html?key=${an.key}&url=${btoa(an.url)}&callbackUrl=${un+(an.callbackUrl||"")}&fileType=${an.fileType}&title=${an.title||""}&model=${we}&officeServer=${Xe.Z.ONLYOFFICE}&disabledDownload=${!!Xt}`}),Ze==="html"&&st.createElement("iframe",{src:De+"&disposition=inline"}),Ze==="pdf"&&st.createElement("iframe",{src:`${Ct}/js/pdfview/index.html?filename=${nt||"educoder.pdf"}&url=${encodeURIComponent(De)}&disabledDownload=${!!Xt}`}),Ze==="image"&&st.createElement("img",{src:`${(De==null?void 0:De.indexOf("http://"))>-1||(De==null?void 0:De.indexOf("https://"))>-1?"":"data:image/png;base64,"}${De}`}),(Ze==="other"||Ze==="download")&&st.createElement(st.Fragment,null,pn?st.createElement(Je.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:st.createElement(Ie.ZP,{icon:st.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:qn,disabled:Xt},"\u4E0B\u8F7D")}):st.createElement(Ie.ZP,{type:"primary",size:"middle",onClick:qn,disabled:Xt},st.createElement(Pe.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},79074:function(ze,be,de){"use strict";de.d(be,{z:function(){return Ze},Z:function(){return nt}});var le=de(59301),Me=de(53122),Ie=de(49405),Pe=de(64018),Ge=de(79710),Oe=de(12242),Ve=de(59895),ot=de(15342),Je=de(1012),Xe=de(6311),vt=de(59301),_t=({html:rt})=>{const ft=(0,le.useRef)(null),xt=(0,le.useRef)(null),at=`.markdown-body p {
margin: 0 0 16px 0 !important;
line-height: 28px;
white-space: pre-wrap;
}
ol,
ul,
li {
list-style-type: none
}
ol,
ul,
dl {
margin-bottom: 0px;
}
.markdown-body {
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
color: #333;
overflow: hidden;
font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif;
word-break: break-word;
font-size: 16px;
line-height: 1.6;
white-space: normal;
word-wrap: break-word;
position: relative;
}
.markdown-body ul>li {
list-style-type: disc;
}
.markdown-body ol>li {
list-style-type: decimal;
}
.markdown-body a {
background: transparent;
}
.markdown-body a:active,
.markdown-body a:hover {
outline: 0;
}
.markdown-body strong {
font-weight: bold;
}
.markdown-body h1 {
font-size: 2em;
margin: 0.67em 0;
}
.markdown-body img {
border: 0;
}
.markdown-body hr {
-moz-box-sizing: content-box;
box-sizing: content-box;
height: 0;
}
.markdown-body pre {
overflow: auto;
}
.markdown-body code,
.markdown-body kbd,
.markdown-body pre {
font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace;
font-size: 1em;
}
.markdown-body input {
color: inherit;
font: inherit;
margin: 0;
}
.markdown-body html input[disabled] {
cursor: default;
}
.markdown-body input {
line-height: normal;
}
.markdown-body input[type="checkbox"] {
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 0;
}
.markdown-body table {
border-collapse: collapse;
border-spacing: 0;
}
.markdown-body td,
.markdown-body th {
padding: 0;
}
.markdown-body * {
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.markdown-body input {
font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
}
.markdown-body a {
color: #4183c4;
text-decoration: none;
}
.markdown-body a:hover,
.markdown-body a:active {
text-decoration: underline;
}
.markdown-body hr {
height: 0;
margin: 15px 0;
overflow: hidden;
background: transparent;
border: 0;
border-bottom: 1px solid #ddd;
}
.markdown-body hr:before {
display: table;
content: "";
}
.markdown-body hr:after {
display: table;
clear: both;
content: "";
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
margin-top: 15px;
margin-bottom: 15px;
line-height: 1.1;
}
.markdown-body h1 {
font-size: 30px;
}
.markdown-body h2 {
font-size: 21px;
}
.markdown-body h3 {
font-size: 16px;
}
.markdown-body h4 {
font-size: 14px;
}
.markdown-body h5 {
font-size: 12px;
}
.markdown-body h6 {
font-size: 11px;
}
.markdown-body blockquote {
margin: 0;
}
.markdown-body ul,
.markdown-body ol {
padding: 0;
margin-top: 0;
margin-bottom: 0;
}
ul.linenums,
ol.linenums {
padding: 16px 0 0 36px !important;
}
.markdown-body ul,
.markdown-body ol {
padding-left: 2em;
}
.markdown-body ol ol,
.markdown-body ul ol {
list-style-type: lower-roman;
}
.markdown-body ul ul ol,
.markdown-body ul ol ol,
.markdown-body ol ul ol,
.markdown-body ol ol ol {
list-style-type: lower-alpha;
}
.markdown-body dd {
margin-left: 0;
}
.markdown-body code {
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
font-size: 12px;
}
.markdown-body pre {
margin-top: 0;
margin-bottom: 0;
font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
}
.markdown-body .octicon {
font: normal normal 16px octicons-anchor;
line-height: 1;
display: inline-block;
text-decoration: none;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.markdown-body .octicon-link:before {
content: '\f05c';
}
.markdown-body>*:first-child {
margin-top: 0 !important;
}
.markdown-body>*:last-child {
margin-bottom: 0 !important;
}
.markdown-body .anchor {
position: absolute;
top: 0;
left: 0;
display: block;
padding-right: 6px;
padding-left: 30px;
margin-left: -30px;
}
.markdown-body .anchor:focus {
outline: none;
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
position: relative;
margin-top: 1em;
margin-bottom: 16px;
font-weight: bold;
line-height: 1.4;
}
.markdown-body h1 .octicon-link,
.markdown-body h2 .octicon-link,
.markdown-body h3 .octicon-link,
.markdown-body h4 .octicon-link,
.markdown-body h5 .octicon-link,
.markdown-body h6 .octicon-link {
display: none;
color: #000;
vertical-align: middle;
}
.markdown-body h1:hover .anchor,
.markdown-body h2:hover .anchor,
.markdown-body h3:hover .anchor,
.markdown-body h4:hover .anchor,
.markdown-body h5:hover .anchor,
.markdown-body h6:hover .anchor {
padding-left: 8px;
margin-left: -30px;
text-decoration: none;
}
.markdown-body h1:hover .anchor .octicon-link,
.markdown-body h2:hover .anchor .octicon-link,
.markdown-body h3:hover .anchor .octicon-link,
.markdown-body h4:hover .anchor .octicon-link,
.markdown-body h5:hover .anchor .octicon-link,
.markdown-body h6:hover .anchor .octicon-link {
display: inline-block;
}
.markdown-body h1 {
padding-bottom: 0.3em;
font-size: 2.25em;
line-height: 1.2;
border-bottom: 1px solid #eee;
}
.markdown-body h1 .anchor {
line-height: 1;
}
.markdown-body h2 {
padding-bottom: 0.3em;
font-size: 1.75em;
line-height: 1.225;
border-bottom: 1px solid #eee;
}
.markdown-body h2 .anchor {
line-height: 1;
}
.markdown-body h3 {
font-size: 1.5em;
line-height: 1.43;
}
.markdown-body h3 .anchor {
line-height: 1.2;
}
.markdown-body h4 {
font-size: 1.25em;
}
.markdown-body h4 .anchor {
line-height: 1.2;
}
.markdown-body h5 {
font-size: 1em;
}
.markdown-body h5 .anchor {
line-height: 1.1;
}
.markdown-body h6 {
font-size: 1em;
color: #777;
}
.markdown-body h6 .anchor {
line-height: 1.1;
}
.markdown-body p,
.markdown-body blockquote,
.markdown-body ul,
.markdown-body ol,
.markdown-body dl,
.markdown-body table,
.markdown-body pre {
margin-top: 0;
margin-bottom: 16px;
}
.markdown-body ul ul,
.markdown-body ul ol,
.markdown-body ol ol,
.markdown-body ol ul {
margin-top: 0;
margin-bottom: 0;
}
.markdown-body li>p {
margin-top: 16px;
}
.markdown-body dl {
padding: 0;
}
.markdown-body dl dt {
padding: 0;
margin-top: 16px;
font-size: 1em;
font-style: italic;
font-weight: bold;
}
.markdown-body dl dd {
padding: 0 16px;
margin-bottom: 16px;
}
.markdown-body blockquote {
padding: 0 15px;
color: #777;
border-left: 4px solid #ddd;
}
.markdown-body blockquote> :first-child {
margin-top: 0;
}
.markdown-body blockquote> :last-child {
margin-bottom: 0;
}
.markdown-body table {
display: block;
width: 100%;
overflow: auto;
word-break: normal;
word-break: keep-all;
}
.markdown-body table th {
font-weight: bold;
text-align: revert;
}
.markdown-body table th,
.markdown-body table td {
padding: 6px 13px;
border: 1px solid #ddd;
}
.markdown-body table tr {
background-color: #fff;
border-top: 1px solid #ccc;
}
.markdown-body table tr:nth-child(2n) {
background-color: #f8f8f8;
}
.markdown-body img {
max-width: 100%;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.markdown-body code {
padding: 0;
padding-top: 0.2em;
padding-bottom: 0.2em;
margin: 0;
font-size: 85%;
background-color: rgba(0, 0, 0, 0.04);
border-radius: 3px;
}
.markdown-body code:has(.katex) {
background-color: transparent;
}
.markdown-body code:before,
.markdown-body code:after {
letter-spacing: -0.2em;
content: "\\00a0";
}
.markdown-body pre>code {
padding: 0;
margin: 0;
font-size: 100%;
word-break: normal;
white-space: pre;
background: transparent;
border: 0;
}
.markdown-body .highlight {
margin-bottom: 16px;
}
.markdown-body .highlight pre,
.markdown-body pre {
padding: 16px;
overflow: auto;
font-size: 85%;
line-height: 1.45;
background-color: #f7f7f7;
border-radius: 3px;
}
.markdown-body .highlight pre {
margin-bottom: 0;
word-break: normal;
}
.markdown-body pre {
word-wrap: normal;
}
.markdown-body pre code {
display: inline;
max-width: initial;
padding: 0;
margin: 0;
overflow: initial;
line-height: inherit;
word-wrap: normal;
background-color: transparent;
border: 0;
}
.markdown-body pre code:before,
.markdown-body pre code:after {
content: normal;
}
.markdown-body kbd {
display: inline-block;
padding: 3px 5px;
font-size: 11px;
line-height: 10px;
color: #555;
vertical-align: middle;
background-color: #fcfcfc;
border: solid 1px #ccc;
border-bottom-color: #bbb;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #bbb;
}
.markdown-body .pl-c {
color: #969896;
}
.markdown-body .pl-c1,
.markdown-body .pl-mdh,
.markdown-body .pl-mm,
.markdown-body .pl-mp,
.markdown-body .pl-mr,
.markdown-body .pl-s1 .pl-v,
.markdown-body .pl-s3,
.markdown-body .pl-sc,
.markdown-body .pl-sv {
color: #0086b3;
}
.markdown-body .pl-e,
.markdown-body .pl-en {
color: #795da3;
}
.markdown-body .pl-s1 .pl-s2,
.markdown-body .pl-smi,
.markdown-body .pl-smp,
.markdown-body .pl-stj,
.markdown-body .pl-vo,
.markdown-body .pl-vpf {
color: #333;
}
.markdown-body .pl-ent {
color: #63a35c;
}
.markdown-body .pl-k,
.markdown-body .pl-s,
.markdown-body .pl-st {
color: #a71d5d;
}
.markdown-body .pl-pds,
.markdown-body .pl-s1,
.markdown-body .pl-s1 .pl-pse .pl-s2,
.markdown-body .pl-sr,
.markdown-body .pl-sr .pl-cce,
.markdown-body .pl-sr .pl-sra,
.markdown-body .pl-sr .pl-sre,
.markdown-body .pl-src {
color: #df5000;
}
.markdown-body .pl-mo,
.markdown-body .pl-v {
color: #1d3e81;
}
.markdown-body .pl-id {
color: #b52a1d;
}
.markdown-body .pl-ii {
background-color: #b52a1d;
color: #f8f8f8;
}
.markdown-body .pl-sr .pl-cce {
color: #63a35c;
font-weight: bold;
}
.markdown-body .pl-ml {
color: #693a17;
}
.markdown-body .pl-mh,
.markdown-body .pl-mh .pl-en,
.markdown-body .pl-ms {
color: #1d3e81;
font-weight: bold;
}
.markdown-body .pl-mq {
color: #008080;
}
.markdown-body .pl-mi {
color: #333;
font-style: italic;
}
.markdown-body .pl-mb {
color: #333;
font-weight: bold;
}
.markdown-body .pl-md,
.markdown-body .pl-mdhf {
background-color: #ffecec;
color: #bd2c00;
}
.markdown-body .pl-mdht,
.markdown-body .pl-mi1 {
background-color: #eaffea;
color: #55a532;
}
.markdown-body .pl-mdr {
color: #795da3;
font-weight: bold;
}
.markdown-body kbd {
display: inline-block;
padding: 3px 5px;
font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
line-height: 10px;
color: #555;
vertical-align: middle;
background-color: #fcfcfc;
border: solid 1px #ccc;
border-bottom-color: #bbb;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #bbb;
}
.markdown-body .task-list-item {
list-style-type: none;
}
.markdown-body .task-list-item+.task-list-item {
margin-top: 3px;
}
.markdown-body .task-list-item input {
float: left;
margin: 0.3em 0 0.25em -1.6em;
vertical-align: middle;
}
.markdown-body :checked+.radio-label {
z-index: 1;
position: relative;
border-color: #4183c4;
}
/*! Pretty printing styles. Used with prettify.js. */
/* SPAN elements with the classes below are added by prettyprint. */
.pln {
color: #000
}
/* plain text */
@media screen {
.str {
color: #080
}
/* string content */
.kwd {
color: #008
}
/* a keyword */
.com {
color: #800
}
/* a comment */
.typ {
color: #606
}
/* a type name */
.lit {
color: #066
}
/* a literal value */
/* punctuation, lisp open bracket, lisp close bracket */
.pun,
.opn,
.clo {
color: #660
}
.tag {
color: #008
}
/* a markup tag name */
.atn {
color: #606
}
/* a markup attribute name */
.atv {
color: #080
}
/* a markup attribute value */
.dec,
.var {
color: #606
}
/* a declaration; a variable name */
.fun {
color: red
}
/* a function name */
}
/* Use higher contrast and text-weight for printable form. */
@media print,
projection {
.str {
color: #060
}
.kwd {
color: #006;
font-weight: bold
}
.com {
color: #600;
font-style: italic
}
.typ {
color: #404;
font-weight: bold
}
.lit {
color: #044
}
.pun,
.opn,
.clo {
color: #440
}
.tag {
color: #006;
font-weight: bold
}
.atn {
color: #404
}
.atv {
color: #060
}
}
/* Put a border around prettyprinted code snippets. */
pre.prettyprint {
padding: 2px;
/* border: 1px solid #888 */
}
/* Specify class=linenums on a pre to get line numbering */
ol.linenums {
margin-top: 0;
margin-bottom: 0
}
/* IE indents via margin-left */
li.L0,
li.L1,
li.L2,
li.L3,
li.L5,
li.L6,
li.L7,
li.L8 {
list-style-type: none
}
/* Alternate shading for lines */
li.L1,
li.L3,
li.L5,
li.L7,
li.L9 {
background: #eee
}
.markdown-body p,
.markdown-body blockquote,
.markdown-body ul,
.markdown-body ol,
.markdown-body dl,
.markdown-body table,
.markdown-body pre {
margin-top: 0;
margin-bottom: 16px;
}`;return(0,le.useEffect)(()=>{const wt=ft.current.attachShadow({mode:"open"});xt.current=document.createElement("div"),xt.current.className="markdown-body",xt.current.innerHTML=rt,wt.appendChild(xt.current);const Mt=document.createElement("style");return Mt.textContent=at,wt.appendChild(Mt),()=>{wt.innerHTML=""}},[]),(0,le.useEffect)(()=>{xt.current&&(xt.current.innerHTML=rt)},[rt]),vt.createElement("div",{ref:ft})},Ue=Object.defineProperty,te=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,se=(rt,ft,xt)=>ft in rt?Ue(rt,ft,{enumerable:!0,configurable:!0,writable:!0,value:xt}):rt[ft]=xt,pe=(rt,ft)=>{for(var xt in ft||(ft={}))ne.call(ft,xt)&&se(rt,xt,ft[xt]);if(te)for(var xt of te(ft))fe.call(ft,xt)&&se(rt,xt,ft[xt]);return rt};const Se="@\u2581\u2581@",we="@\u2581@",De=/<pre[^>]*>/g;function Re(rt){let ft=document.createElement("div");return ft.innerHTML=rt,ft.childNodes.length===0?"":ft.childNodes[0].nodeValue}const Ze=(rt,ft)=>{rt=rt||"";const xt=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,at=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,wt=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Mt=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return ft?rt.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(xt,(Xt,bn,pn,fn,gn,Nt,ut)=>{const it=bn||fn||Nt,an=pn||gn||ut||"?";return Oe.Z.API_SERVER+"/api/attachments/"+it+an+"&t="+(0,Ve.Jn)(it,Date.now())+(Xt.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(rt=rt.replace(Mt,(Xt,bn,pn,fn,gn,Nt,ut)=>{const it=bn||fn||Nt,an=pn||gn||ut||"?";return Oe.Z.API_SERVER+"/attachments/download/"+it+an+"&t="+(0,Ve.Jn)(it,Date.now())+(Xt.indexOf(")")>-1?")":"&")}).replace(xt,(Xt,bn,pn,fn,gn,Nt,ut)=>{const it=bn||fn||Nt,an=pn||gn||ut||"?";return Oe.Z.API_SERVER+"/api/attachments/"+it+an+"&t="+(0,Ve.Jn)(it,Date.now())+(Xt.indexOf(")")>-1?")":"&")}).replace(at,(Xt,bn,pn,fn,gn)=>{const Nt=bn||fn,ut=pn||gn||"";return'"'+Oe.Z.API_SERVER+"/api/attachments/"+Nt+ut+Nt+ut+"&t="+(0,Ve.Jn)(Nt,Date.now())}).replace(wt,(Xt,bn,pn,fn,gn)=>{const Nt=bn||fn,ut=pn||gn||"";return"("+Oe.Z.API_SERVER+"/files/uploads/"+Nt+ut+Nt+ut+"&t="+(0,Ve.Jn)(Nt,Date.now())}).replaceAll('src="(','src="').replaceAll("src='(",'src="').replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`),rt)};var nt=({value:rt="",className:ft,showTextOnly:xt,showLines:at,style:wt={},stylesPrev:Mt={},highlightKeywords:Xt,showProgramFill:bn,isProgramFill:pn,disabledFill:fn=!1,programFillValue:gn,onFillChange:Nt=an=>{},onFillBlur:ut=()=>{},onFillFocus:it=()=>{}})=>{let an=String(rt);const[mn,Ct]=(0,le.useState)(""),[un,on]=(0,le.useState)("office"),[Bn,Nn]=(0,le.useState)([]),si=(0,le.useRef)("a"+(0,Je.Z)()),Pt={},qn=(Ht,rn,vn)=>{const cn=document.createElement(Ht===we?"input":"textarea");cn.style.width="100%",cn.style.height=Ht===we?"40px":"151px",cn.rows=5,cn.spellcheck=!1,cn.name="edu-program-fill",cn.placeholder="\u8BF7\u8F93\u5165",cn.dataset.id=rn;const wn=Object.keys(Pt).length;return Pt[wn]=cn,`<span class="edu-program-fill-wrap ${Ht===we?"":"show"}" style="width:${Ht===we?"400px":"100%"}" title=${vn||""}><span>${cn.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function Ei(Ht){return Ht=Ht.replace(/!\[.*?\]\(.*?\)/g,""),Ht=Ht.replace(/\[.*?\]\(.*?\)/g,""),Ht=Ht.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),Ht=Ht.replace(/<embed.*?>/g,""),Ht=Ht.replace(/<img.*?>/g,""),Ht=Ht.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),Ht=Ht.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),Ht=Ht.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),Ht=Ht.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),Ht}const $e=Ht=>Ht.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(rn,vn){let cn=vn.replace(/(\n|\r)/g,"").split("}"),wn=[];return cn.map(sn=>{sn!=""&&wn.push(`.${si.current} ${sn}`)}),`<style>${wn.join("}")}</style>`}),Fe=(0,le.useMemo)(()=>{try{const cn=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,wn=/\"\/api\/attachments\/|\"\/attachments\/download\//g,sn=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Ft=/\(\/attachments\/download\//g;an=an.replace(Ft,"("+Oe.Z.API_SERVER+"/attachments/download/").replace(cn,"("+Oe.Z.API_SERVER+"/api/attachments/").replace(wn,'"'+Oe.Z.API_SERVER+"/api/attachments/").replace(sn,'"'+Oe.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`)}catch(cn){}if(bn){let cn=-1;return an=an.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(wn,sn,Ft){var jn;return++cn,qn(wn,cn,(jn=gn==null?void 0:gn[cn])==null?void 0:jn.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${$e(an||"")}</pre>`}let Ht=$e(an);Ht=(0,Ie.ZP)(Ht);const rn=(0,Ie.ez)();an.match(/\[TOC\]/)&&(Ht=Ht.replace("<p>[TOC]</p>",(0,Ie.Qv)()),(0,Ie.Iy)()),Ht=Ht.replace(/(__special_katext_id_\d+__)/g,(cn,wn)=>{const{type:sn,expression:Ft}=rn[wn];return(0,ot.renderToString)(Re(Ft)||"",{displayMode:sn==="block",throwOnError:!1,output:"html"})}),Ht=Ht.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,Ie.AL)();const vn=document.createElement("div");if(vn.innerHTML=Ht,xt)return vn.innerText;if(Xt){const cn=Xt.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Le(vn,cn),vn.innerHTML}return setTimeout(()=>tn(),500),vn.innerHTML},[an,Xt]);(0,le.useEffect)(()=>{At.current&&At.current.querySelectorAll(["input","textarea"]).forEach(rn=>{rn.oninput=Ne,rn.onblur=Qe,rn.onfocus=Ke})},[Bn]),(0,le.useEffect)(()=>{var Ht,rn,vn,cn,wn;if(gn!=null&&gn.length)try{const sn=At.current.querySelectorAll(".edu-program-fill-score"),Ft=At.current.querySelectorAll('[name="edu-program-fill"]');for(const[jn,dn]of Ft.entries())dn.value=((Ht=gn==null?void 0:gn[jn])==null?void 0:Ht.value)||"",((rn=gn==null?void 0:gn[jn])==null?void 0:rn.type)==="warning"?dn.className="program-fill-warning":((vn=gn==null?void 0:gn[jn])==null?void 0:vn.type)==="success"?dn.className="program-fill-success":dn.className="";for(const[jn,dn]of sn.entries())dn.innerHTML=(cn=gn==null?void 0:gn[jn])!=null&&cn.score?`${(wn=gn==null?void 0:gn[jn])==null?void 0:wn.score}\u5206`:"";Nn(gn)}catch(sn){console.log(sn,"error")}},[gn]);const Ne=Ht=>{Bn[Ht.target.dataset.id]=Bn[Ht.target.dataset.id]||{},Bn[Ht.target.dataset.id].value=Ht.target.value,Nn([...Bn]),Nt(Bn,Ht.target.dataset.id)},Qe=Ht=>{Bn[Ht.target.dataset.id]=Bn[Ht.target.dataset.id]||{},Bn[Ht.target.dataset.id].value=Ht.target.value,Nn([...Bn]),ut(Bn,Ht.target.dataset.id)},Ke=Ht=>{Bn[Ht.target.dataset.id]=Bn[Ht.target.dataset.id]||{},Bn[Ht.target.dataset.id].value=Ht.target.value,Nn([...Bn]),it(Bn,Ht.target.dataset.id)};function Le(Ht,rn){return Ht.childNodes.forEach(vn=>{var cn;if(vn.childNodes.length>0)Le(vn,rn);else if(vn.nodeName!=="IMG")if(vn.innerHTML)vn.innerHTML=(cn=vn.innerHTML)==null?void 0:cn.replace(new RegExp(rn,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const wn=document.createElement("span");wn.innerHTML=vn.textContent.replace(new RegExp(rn,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),vn.replaceWith(wn)}})}const At=(0,le.useRef)();Ie.jb.WebkitLineClamp=at,at&&(wt=pe(pe({},wt),Ie.jb));function Lt(Ht){let rn=Ht.target;if(rn.tagName.toUpperCase()==="A"){let vn=rn.getAttribute("href");if(vn.indexOf("office")>-1)Ht.preventDefault(),Ct(vn),on("office");else if(vn.indexOf("application/pdf")>-1)Ht.preventDefault(),Ct(vn),on("pdf");else if(vn.indexOf("text/html")>-1)Ht.preventDefault(),Ct(vn),on("html");else if(vn.startsWith("#")){Ht.preventDefault();let cn=document.getElementById(vn.replace("#",""));cn&&cn.scrollIntoView(!0)}}}const tn=()=>{var Ht;const rn=(Ht=At.current)==null?void 0:Ht.querySelectorAll("video");rn==null||rn.forEach(vn=>{if(vn.oncontextmenu=()=>!1,vn.src.indexOf(".m3u8")>-1&&!vn.canPlayType("application/vnd.apple.mpegurl")){if(Ge.ZP.isSupported()){var cn=new Ge.ZP;cn.loadSource(vn.src),cn.attachMedia(vn)}}})};(0,le.useEffect)(()=>{if(At.current&&Fe&&Fe.match(De)&&window.PR.prettyPrint(),At.current)return At.current.addEventListener("click",Lt),()=>{var Ht;(Ht=At.current)==null||Ht.removeEventListener("click",Lt),(0,Ie.AL)(),(0,Ie.Iy)()}},[Fe,At.current,Lt]),(0,le.useEffect)(()=>{var Ht;const rn=vn=>{vn.preventDefault(),vn.clipboardData.setData("text",window.getSelection().toString())};return(Ht=At.current)==null||Ht.addEventListener("copy",rn),()=>{var vn;(vn=At.current)==null||vn.removeEventListener("copy",rn)}},[At.current]);const $t=Ht=>/<style[\s\S]*?>/i.test(Ht||"");return le.createElement(le.Fragment,null,xt&&le.createElement("div",{ref:At},Fe),!xt&&!$t(Fe)&&le.createElement("div",{ref:At,style:pe({},wt),className:`${ft||""} ${fn?"disabled-fill":""} markdown-body ${si.current}`,dangerouslySetInnerHTML:{__html:Fe}}),!xt&&$t(Fe)&&le.createElement(_t,{html:Fe}),le.createElement(Xe.Z,{close:!0,data:mn,type:mn!=null&&mn.length?un:"",style:pe({},Mt),onClose:()=>Ct("")}))}},77531:function(ze,be,de){"use strict";de.d(be,{h:function(){return we}});var le=de(59301),Me=de(82326),Ie=de(28284),Pe=de(99571),Ge=de(89780),Oe=de.n(Ge),Ve=de(88540),ot=de(42271),Je=Object.defineProperty,Xe=Object.defineProperties,vt=Object.getOwnPropertyDescriptors,st=Object.getOwnPropertySymbols,_t=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,te=(De,Re,Ze)=>Re in De?Je(De,Re,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):De[Re]=Ze,ne=(De,Re)=>{for(var Ze in Re||(Re={}))_t.call(Re,Ze)&&te(De,Ze,Re[Ze]);if(st)for(var Ze of st(Re))Ue.call(Re,Ze)&&te(De,Ze,Re[Ze]);return De},fe=(De,Re)=>Xe(De,vt(Re));const se=Me.default.Option,pe={labelCol:{span:4},wrapperCol:{span:20}},Se={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};be.Z=({callback:De,onCancel:Re})=>{const[Ze,nt]=(0,le.useState)("python");function rt(xt){nt(Se[xt][1])}function ft(xt){De(xt)}return le.createElement(Ie.default,fe(ne({},pe),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:ft,style:{width:500}}),le.createElement(Ie.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},le.createElement(Me.default,{getPopupContainer:xt=>xt.parentNode,onChange:rt},Object.keys(Se).map(xt=>le.createElement(se,{key:xt,value:xt},Se[xt][0])))),le.createElement(Ie.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},le.createElement(we,{mode:Ze})),le.createElement("div",{className:"flex-container flex-end"},le.createElement(Pe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),le.createElement(Pe.ZP,{type:"ghost",onClick:Re},"\u53D6\u6D88")))};function we({value:De,onChange:Re,mode:Ze,options:nt={}}){const rt=(0,le.useRef)(),[ft,xt]=(0,le.useState)();return(0,le.useEffect)(()=>{if(ft){let at=function(wt){const Mt=wt.getValue();Re&&Re(Mt)};return ft.on("change",at),()=>{ft.off("change",at)}}},[ft,Re]),(0,le.useEffect)(()=>{ft&&ft.setOption("mode",Ze)},[ft,Ze]),(0,le.useEffect)(()=>{ft&&(De!==ft.getValue()||De==="")&&setTimeout(()=>{ft.setValue(De||"")},300)},[ft,De]),(0,le.useEffect)(()=>{if(rt.current&&!ft){const at=Oe().fromTextArea(rt.current,ne({mode:Ze,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},nt));xt(at)}},[rt.current,ft]),le.createElement("div",{className:"my-codemirror-container"},le.createElement("textarea",{ref:rt}))}},19565:function(ze,be,de){"use strict";de.d(be,{Z:function(){return ni}});var le=de(59301),Me=de(89780),Ie=de.n(Me),Pe=de(76374),Ge=de(88540),Oe=de(6313),Ve=de(25717),ot=de(99498),Je=de(25419),Xe=de(67549),vt=de(79074),st=({value:Vt="",className:Ut,showTextOnly:It,showLines:$n,style:Yn={}})=>{const yi=(0,le.useMemo)(()=>"",[Vt]);return le.createElement(le.Fragment,null,le.createElement("div",{dangerouslySetInnerHTML:{__html:yi}}))},_t=de(59301),Ue=Object.defineProperty,te=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,fe=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,pe=Object.prototype.propertyIsEnumerable,Se=(Vt,Ut,It)=>Ut in Vt?Ue(Vt,Ut,{enumerable:!0,configurable:!0,writable:!0,value:It}):Vt[Ut]=It,we=(Vt,Ut)=>{for(var It in Ut||(Ut={}))se.call(Ut,It)&&Se(Vt,It,Ut[It]);if(fe)for(var It of fe(Ut))pe.call(Ut,It)&&Se(Vt,It,Ut[It]);return Vt},De=(Vt,Ut)=>te(Vt,ne(Ut));let Re=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function Ze({onActionCallback:Vt,title:Ut,icon:It,actionName:$n,className:Yn="",children:yi}){function Rn(){Vt($n)}return _t.createElement("a",{title:Ut,className:Yn,onClick:Rn},_t.createElement("i",{className:`${It}`}),yi)}var nt=({watch:Vt,showNullButton:Ut,showNullProgramButton:It,onActionCallback:$n,fullScreen:Yn,insertTemp:yi,hidetoolBar:Rn,extraUse:oi})=>{const qt=[...Re,{title:`${Vt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Vt?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return _t.createElement("ul",{className:"markdown-toolbar-container"},!Rn&&qt.map((Gt,li)=>_t.createElement("li",{key:li},Gt.actionName?_t.createElement(Ze,De(we({},Gt),{onActionCallback:$n})):_t.createElement("span",{className:"v-line"}))),Ut?_t.createElement("li",null,_t.createElement(Ze,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:$n},_t.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,It?_t.createElement(_t.Fragment,null,_t.createElement("li",null,_t.createElement(Ze,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:$n},_t.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),_t.createElement("li",null,_t.createElement(Ze,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:$n},_t.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,yi&&_t.createElement("li",null,_t.createElement(Ze,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${yi}`,onActionCallback:$n},_t.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),oi&&_t.createElement("li",null,oi),_t.createElement("li",{className:"btn-full-screen"},_t.createElement(Ze,{icon:`${Yn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Yn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:$n})))},rt=de(52272),ft=de(28284),xt=de(37568),at=de(99571),wt=Object.defineProperty,Mt=Object.defineProperties,Xt=Object.getOwnPropertyDescriptors,bn=Object.getOwnPropertySymbols,pn=Object.prototype.hasOwnProperty,fn=Object.prototype.propertyIsEnumerable,gn=(Vt,Ut,It)=>Ut in Vt?wt(Vt,Ut,{enumerable:!0,configurable:!0,writable:!0,value:It}):Vt[Ut]=It,Nt=(Vt,Ut)=>{for(var It in Ut||(Ut={}))pn.call(Ut,It)&&gn(Vt,It,Ut[It]);if(bn)for(var It of bn(Ut))fn.call(Ut,It)&&gn(Vt,It,Ut[It]);return Vt},ut=(Vt,Ut)=>Mt(Vt,Xt(Ut));const it={labelCol:{span:4},wrapperCol:{span:20}};var an=({callback:Vt,onCancel:Ut})=>{function It($n){Vt($n)}return le.createElement(ft.default,ut(Nt({},it),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:It,style:{width:500}}),le.createElement(ft.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},le.createElement(xt.default,null)),le.createElement(ft.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},le.createElement(xt.default,null)),le.createElement("div",{className:"flex-container flex-end"},le.createElement(at.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),le.createElement(at.ZP,{type:"ghost",onClick:Ut},"\u53D6\u6D88")))},mn=de(77531),Ct=de(24141),un=de(62957),on=de(77019),Bn=de(25138),Nn=de(59301),si=({callback:Vt,onCancel:Ut})=>{const It=document.createElement("canvas"),$n=It.getContext("2d");It.width=1e3,It.height=800,$n.fillStyle="#ffffff",$n.fillRect(0,0,It.width,It.height);const Yn=It.toDataURL("image/png");return Nn.createElement(un.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Nn.createElement(on.Z,{style:{height:"100vh"}},Nn.createElement(Bn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Yn,visible:!0,title:String(Date.now())},onOk:yi=>{Vt({src:yi.url})},onClose:Ut})))},Pt=de(12378);function qn(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(qn,go.CommandHandler),qn.prototype.canAlignSelection=function(){var Vt=this.diagram;return!(Vt===null||Vt.isReadOnly||Vt.isModelReadOnly||Vt.selection.count<2)},qn.prototype.alignLeft=function(){var Vt=this.diagram;Vt.startTransaction("aligning left");var Ut=1/0;Vt.selection.each(function(It){It instanceof go.Link||(Ut=Math.min(It.position.x,Ut))}),Vt.selection.each(function(It){It instanceof go.Link||It.move(new go.Point(Ut,It.position.y))}),Vt.commitTransaction("aligning left")},qn.prototype.alignRight=function(){var Vt=this.diagram;Vt.startTransaction("aligning right");var Ut=-1/0;Vt.selection.each(function(It){if(!(It instanceof go.Link)){var $n=It.actualBounds.x+It.actualBounds.width;Ut=Math.max($n,Ut)}}),Vt.selection.each(function(It){It instanceof go.Link||It.move(new go.Point(Ut-It.actualBounds.width,It.position.y))}),Vt.commitTransaction("aligning right")},qn.prototype.alignTop=function(){var Vt=this.diagram;Vt.startTransaction("alignTop");var Ut=1/0;Vt.selection.each(function(It){It instanceof go.Link||(Ut=Math.min(It.position.y,Ut))}),Vt.selection.each(function(It){It instanceof go.Link||It.move(new go.Point(It.position.x,Ut))}),Vt.commitTransaction("alignTop")},qn.prototype.alignBottom=function(){var Vt=this.diagram;Vt.startTransaction("aligning bottom");var Ut=-1/0;Vt.selection.each(function(It){if(!(It instanceof go.Link)){var $n=It.actualBounds.y+It.actualBounds.height;Ut=Math.max($n,Ut)}}),Vt.selection.each(function(It){It instanceof go.Link||It.move(new go.Point(It.actualBounds.x,Ut-It.actualBounds.height))}),Vt.commitTransaction("aligning bottom")},qn.prototype.alignCenterX=function(){var Vt=this.diagram,Ut=Vt.selection.first();if(Ut){Vt.startTransaction("aligning Center X");var It=Ut.actualBounds.x+Ut.actualBounds.width/2;Vt.selection.each(function($n){$n instanceof go.Link||$n.move(new go.Point(It-$n.actualBounds.width/2,$n.actualBounds.y))}),Vt.commitTransaction("aligning Center X")}},qn.prototype.alignCenterY=function(){var Vt=this.diagram,Ut=Vt.selection.first();if(Ut){Vt.startTransaction("aligning Center Y");var It=Ut.actualBounds.y+Ut.actualBounds.height/2;Vt.selection.each(function($n){$n instanceof go.Link||$n.move(new go.Point($n.actualBounds.x,It-$n.actualBounds.height/2))}),Vt.commitTransaction("aligning Center Y")}},qn.prototype.alignColumn=function(Vt){var Ut=this.diagram;Ut.startTransaction("align Column"),Vt===void 0&&(Vt=0),Vt=parseFloat(Vt);var It=new Array;Ut.selection.each(function(oi){oi instanceof go.Link||It.push(oi)});for(var $n=0;$n<It.length-1;$n++){var Yn=It[$n],yi=Yn.actualBounds.y+Yn.actualBounds.height+Vt,Rn=It[$n+1];Rn.move(new go.Point(Yn.actualBounds.x,yi))}Ut.commitTransaction("align Column")},qn.prototype.alignRow=function(Vt){Vt===void 0&&(Vt=0),Vt=parseFloat(Vt);var Ut=this.diagram;Ut.startTransaction("align Row");var It=new Array;Ut.selection.each(function(oi){oi instanceof go.Link||It.push(oi)});for(var $n=0;$n<It.length-1;$n++){var Yn=It[$n],yi=Yn.actualBounds.x+Yn.actualBounds.width+Vt,Rn=It[$n+1];Rn.move(new go.Point(yi,Yn.actualBounds.y))}Ut.commitTransaction("align Row")},qn.prototype.canRotate=function(Vt){var Ut=this.diagram;return!(Ut===null||Ut.isReadOnly||Ut.isModelReadOnly||Ut.selection.count<1)},qn.prototype.rotate=function(Vt){Vt===void 0&&(Vt=90);var Ut=this.diagram;Ut.startTransaction("rotate "+Vt.toString());var Ut=this.diagram;Ut.selection.each(function(It){It instanceof go.Link||It instanceof go.Group||(It.angle+=Vt)}),Ut.commitTransaction("rotate "+Vt.toString())},qn.prototype.pullToFront=function(){var Vt=this.diagram;Vt.startTransaction("pullToFront");var Ut=new go.Map;Vt.selection.each(function(It){Ut.set(It.layer,0)}),Ut.iteratorKeys.each(function(It){var $n=0;It.parts.each(function(Yn){if(!Yn.isSelected){var yi=Yn.zOrder;isNaN(yi)?Yn.zOrder=0:$n=Math.max($n,yi)}}),Ut.set(It,$n)}),Vt.selection.each(function(It){qn._assignZOrder(It,Ut.get(It.layer)+1)}),Vt.commitTransaction("pullToFront")},qn.prototype.pushToBack=function(){var Vt=this.diagram;Vt.startTransaction("pushToBack");var Ut=new go.Map;Vt.selection.each(function(It){Ut.set(It.layer,0)}),Ut.iteratorKeys.each(function(It){var $n=0;It.parts.each(function(Yn){if(!Yn.isSelected){var yi=Yn.zOrder;isNaN(yi)?Yn.zOrder=0:$n=Math.min($n,yi)}}),Ut.set(It,$n)}),Vt.selection.each(function(It){qn._assignZOrder(It,Ut.get(It.layer)-1-qn._findGroupDepth(It))}),Vt.commitTransaction("pushToBack")},qn._assignZOrder=function(Vt,Ut,It){It===void 0&&(It=Vt),Vt.layer===It.layer&&(Vt.zOrder=Ut),Vt instanceof go.Group&&Vt.memberParts.each(function($n){qn._assignZOrder($n,Ut+1,It)})},qn._findGroupDepth=function(Vt){if(Vt instanceof go.Group){var Ut=0;return Vt.memberParts.each(function(It){Ut=Math.max(Ut,qn._findGroupDepth(It))}),Ut+1}else return 0},qn.prototype.doKeyDown=function(){var Vt=this.diagram;if(Vt!==null){var Ut=Vt.lastInput;if(Ut.key==="Up"||Ut.key==="Down"||Ut.key==="Left"||Ut.key==="Right"){var It=this.arrowKeyBehavior;if(It==="none")return;if(It==="select"){this._arrowKeySelect();return}else if(It==="move"){this._arrowKeyMove();return}else if(It==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},qn.prototype._getAllParts=function(){var Vt=new Array;return this.diagram.nodes.each(function(Ut){Vt.push(Ut)}),this.diagram.parts.each(function(Ut){Vt.push(Ut)}),Vt},qn.prototype._arrowKeyMove=function(){var Vt=this.diagram,Ut=Vt.lastInput,It=0,$n=0;if(Ut.control||Ut.meta)It=1,$n=1;else if(Vt.grid!==null){var Yn=Vt.grid.gridCellSize;$n=Yn.width,It=Yn.height}Vt.startTransaction("arrowKeyMove"),Vt.selection.each(function(yi){Ut.key==="Up"?yi.move(new go.Point(yi.actualBounds.x,yi.actualBounds.y-It)):Ut.key==="Down"?yi.move(new go.Point(yi.actualBounds.x,yi.actualBounds.y+It)):Ut.key==="Left"?yi.move(new go.Point(yi.actualBounds.x-$n,yi.actualBounds.y)):Ut.key==="Right"&&yi.move(new go.Point(yi.actualBounds.x+$n,yi.actualBounds.y))}),Vt.commitTransaction("arrowKeyMove")},qn.prototype._arrowKeySelect=function(){var Vt=this.diagram,Ut=Vt.lastInput,It=null;Ut.key==="Up"?It=this._findNearestPartTowards(270):Ut.key==="Down"?It=this._findNearestPartTowards(90):Ut.key==="Left"?It=this._findNearestPartTowards(180):Ut.key==="Right"&&(It=this._findNearestPartTowards(0)),It!==null&&(Ut.shift?It.isSelected=!0:Ut.control||Ut.meta?It.isSelected=!It.isSelected:Vt.select(It))},qn.prototype._findNearestPartTowards=function(Vt){var Ut=this.diagram.selection.first();if(Ut===null)return null;for(var It=Ut.actualBounds.center,$n=this._getAllParts(),Yn=1/0,yi=Ut,Rn=0;Rn<$n.length;Rn++){var oi=$n[Rn];if(oi!==Ut&&oi.canSelect()){var qt=oi.actualBounds.center,Gt=It.directionPoint(qt),li=this._angleCloseness(Gt,Vt);if(li<=45){var pt=It.distanceSquaredPoint(qt);pt*=1+Math.sin(li*Math.PI/180),pt<Yn&&(Yn=pt,yi=oi)}}}return yi},qn.prototype._angleCloseness=function(Vt,Ut){return Math.min(Math.abs(Ut-Vt),Math.min(Math.abs(Ut+360-Vt),Math.abs(Ut-360-Vt)))},qn.prototype._arrowKeyTree=function(){var Vt=this.diagram,Ut=Vt.selection.first();if(Ut instanceof go.Node){var It=Vt.lastInput;if(It.key==="Right"){if(!Ut.isTreeLeaf)if(!Ut.isTreeExpanded)Vt.commandHandler.canExpandTree(Ut)&&Vt.commandHandler.expandTree(Ut);else{var $n=this._sortTreeChildrenByY(Ut).first();$n!==null&&Vt.select($n)}}else if(It.key==="Left")if(!Ut.isTreeLeaf&&Ut.isTreeExpanded)Vt.commandHandler.canCollapseTree(Ut)&&Vt.commandHandler.collapseTree(Ut);else{var Yn=Ut.findTreeParentNode();Yn!==null&&Vt.select(Yn)}else if(It.key==="Up"){var Yn=Ut.findTreeParentNode();if(Yn!==null){var yi=this._sortTreeChildrenByY(Yn),Rn=yi.indexOf(Ut);if(Rn>0){for(var oi=yi.elt(Rn-1);oi!==null&&oi.isTreeExpanded&&!oi.isTreeLeaf;){var qt=this._sortTreeChildrenByY(oi);oi=qt.last()}oi!==null&&Vt.select(oi)}else Vt.select(Yn)}}else if(It.key==="Down")if(Ut.isTreeExpanded&&!Ut.isTreeLeaf){var $n=this._sortTreeChildrenByY(Ut).first();$n!==null&&Vt.select($n)}else for(;Ut!==null;){var Yn=Ut.findTreeParentNode();if(Yn===null)break;var yi=this._sortTreeChildrenByY(Yn),Rn=yi.indexOf(Ut);if(Rn<yi.length-1){Vt.select(yi.elt(Rn+1));break}else Ut=Yn}var Gt=Vt.selection.first();Gt!==null&&Vt.scrollToRect(Gt.actualBounds)}},qn.prototype._sortTreeChildrenByY=function(Vt){var Ut=new go.List().addAll(Vt.findTreeChildrenNodes());return Ut.sort(function(It,$n){var Yn=It.location,yi=$n.location;return Yn.y<yi.y?-1:Yn.y>yi.y?1:Yn.x<yi.x?-1:Yn.x>yi.x?1:0}),Ut},qn.prototype.copyToClipboard=function(Vt){go.CommandHandler.prototype.copyToClipboard.call(this,Vt),this._lastPasteOffset.set(this.pasteOffset)},qn.prototype.pasteFromClipboard=function(){var Vt=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Vt,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Vt},Object.defineProperty(qn.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Vt){if(Vt!=="move"&&Vt!=="select"&&Vt!=="scroll"&&Vt!=="tree"&&Vt!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Vt);this._arrowKeyBehavior=Vt}}),Object.defineProperty(qn.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Vt){if(!(Vt instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Vt);this._pasteOffset.set(Vt)}});var Ei=qn,$e=de(71584),Fe=de(5269),Ne=de(24092),Qe={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Ke=de(69669),Le=de(59301),At=(Vt,Ut,It)=>new Promise(($n,Yn)=>{var yi=qt=>{try{oi(It.next(qt))}catch(Gt){Yn(Gt)}},Rn=qt=>{try{oi(It.throw(qt))}catch(Gt){Yn(Gt)}},oi=qt=>qt.done?$n(qt.value):Promise.resolve(qt.value).then(yi,Rn);oi((It=It.apply(Vt,Ut)).next())});function Lt({onCancel:Vt,callback:Ut}){let It=(0,le.useRef)(),$n=(0,le.useRef)(),Yn=(0,le.useRef)(),yi=(0,le.useRef)(!1);const Rn=(0,le.useRef)(!1),[oi,qt]=(0,le.useState)(0);function Gt(){const pt=Pt.bx.make,yn={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};It.current=new Pt.S0($n.current,{padding:20,grid:pt(Pt.s_,"Grid",pt(Pt.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),pt(Pt.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:gi=>{var Mi=gi.diagram.commandHandler.addTopLevelParts(gi.diagram.selection,!0);Mi||gi.diagram.currentTool.doCancel()},commandHandler:pt(Ei),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:gi=>{var Mi=gi.subject;Mi.location=Mi.location.copy().snapToGridPoint(gi.diagram.grid.gridOrigin,gi.diagram.grid.gridCellSize),setTimeout(()=>{gi.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:gi=>{var Mi=gi.subject;setTimeout(()=>{gi.diagram.commandHandler.editTextBlock()})},LinkRelinked:gi=>{var Mi=gi.parameter.part;Mi.invalidateConnectedLinks();var ji=gi.subject;gi.diagram.toolManager.linkingTool.isForwards?ji.toNode.invalidateConnectedLinks():ji.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),It.current.nodeTemplate=pt(Pt.NB,"Auto",{locationSpot:Pt.z6.Center,locationObjectName:"SHAPE",desiredSize:new Pt.$u(120,60),minSize:new Pt.$u(40,40),resizable:!0,resizeCellSize:new Pt.$u(10,10),rotatable:!0},new Pt.KX("location","loc",Pt.E9.parse).makeTwoWay(Pt.E9.stringify),new Pt.KX("desiredSize","size",Pt.$u.parse).makeTwoWay(Pt.$u.stringify),pt(Pt.bn,{name:"SHAPE",fill:yn.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Pt.z6.AllSides,toSpot:Pt.z6.AllSides},new Pt.KX("figure"),new Pt.KX("fill"),new Pt.KX("stroke","borderColor"),new Pt.KX("strokeWidth","thickness"),new Pt.KX("strokeDashArray","dash")),pt(Pt.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),pt(Pt.al,{margin:1,textAlign:"center",overflow:Pt.al.OverflowEllipsis,editable:!0},new Pt.KX("text").makeTwoWay(),new Pt.KX("stroke","color"))),It.current.nodeTemplate.toolTip=pt("ToolTip",pt(Pt.s_,"Vertical",{maxSize:new Pt.$u(200,NaN)},pt(Pt.al,{font:"bold 10pt sans-serif",textAlign:"center"},new Pt.KX("text")),pt(Pt.al,{font:"10pt sans-serif",textAlign:"center"},new Pt.KX("text","details"))));function ii(gi,Mi){var ji=(Fi,Zi)=>{Fi.handled=!0,Fi.diagram.model.commit(Sr=>{var gr=Zi.part.adornedPart,mr=new Pt.E9().setRectSpot(gr.actualBounds,gi);mr.subtract(gr.location),mr.scale(2,2),mr.x+=Math.sign(mr.x)*130,mr.y+=Math.sign(mr.y)*130,mr.add(gr.location),mr.snapToGridPoint(Fi.diagram.grid.gridOrigin,Fi.diagram.grid.gridCellSize);var br=Sr.copyNodeData(gr.data);Sr.setGroupKeyForNodeData(br,Sr.getGroupKeyForNodeData(gr.data)),Sr.addNodeData(br);var Fn={from:gr.key,to:Sr.getKeyForNodeData(br)};Sr.addLinkData(Fn);var dr=Fi.diagram.findNodeForData(br);dr.location=mr,Fi.diagram.select(dr),setTimeout(()=>{Fi.diagram.commandHandler.editTextBlock()},20)})};return pt(Pt.bn,{figure:Mi,alignment:gi,alignmentFocus:gi.opposite(),width:gi.equals(Pt.z6.Top)||gi.equals(Pt.z6.Bottom)?25:18,height:gi.equals(Pt.z6.Top)||gi.equals(Pt.z6.Bottom)?18:25,fill:"orange",stroke:yn.white,strokeWidth:4,mouseEnter:(Fi,Zi)=>Zi.fill="dodgerblue",mouseLeave:(Fi,Zi)=>Zi.fill="orange",isActionable:!0,click:ji,contextClick:ji})}function Ti(gi){return pt(Pt.bn,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:(Mi,ji)=>ji.fill="dodgerblue",mouseLeave:(Mi,ji)=>ji.fill="orange",click:(Mi,ji)=>{Mi.diagram.commandHandler.showContextMenu(ji.part.adornedPart)}},gi||{})}It.current.nodeTemplate.selectionAdornmentTemplate=pt(Pt.uz,"Spot",pt(Pt.Vm,{padding:10}),ii(Pt.z6.Top,"TriangleUp"),ii(Pt.z6.Left,"TriangleLeft"),ii(Pt.z6.Right,"TriangleRight"),ii(Pt.z6.Bottom,"TriangleDown"),Ti({alignment:new Pt.z6(.75,0)}));function zt(gi,Mi){return(ji,Fi)=>{ji.handled=!0,ji.diagram.model.commit(Zi=>{Zi.set(Fi.part.adornedPart.data,gi,Mi)})}}function xn(gi,Mi){return Mi||(Mi="color"),pt(Pt.bn,{width:16,height:16,stroke:"lightgray",fill:gi,margin:1,background:"transparent",mouseEnter:(ji,Fi)=>Fi.stroke="dodgerblue",mouseLeave:(ji,Fi)=>Fi.stroke="lightgray",click:zt(Mi,gi),contextClick:zt(Mi,gi)})}function vi(){return[pt("ContextMenuButton",pt(Pt.s_,"Horizontal",xn(yn.white,"fill"),xn(yn.beige,"fill"),xn(yn.extralightblue,"fill"),xn(yn.extralightred,"fill"))),pt("ContextMenuButton",pt(Pt.s_,"Horizontal",xn(yn.lightgray,"fill"),xn(yn.lightgreen,"fill"),xn(yn.lightblue,"fill"),xn(yn.lightred,"fill")))]}function nn(){return[pt("ContextMenuButton",pt(Pt.s_,"Horizontal",xn(yn.black),xn(yn.green),xn(yn.blue),xn(yn.red))),pt("ContextMenuButton",pt(Pt.s_,"Horizontal",xn(yn.white),xn(yn.magenta),xn(yn.purple),xn(yn.orange)))]}function _e(gi,Mi){return Mi||(Mi="thickness"),pt(Pt.bn,"LineH",{width:16,height:16,strokeWidth:gi,margin:1,background:"transparent",mouseEnter:(ji,Fi)=>Fi.background="dodgerblue",mouseLeave:(ji,Fi)=>Fi.background="transparent",click:zt(Mi,gi),contextClick:zt(Mi,gi)})}function Ni(gi,Mi){return Mi||(Mi="dash"),pt(Pt.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:gi,margin:1,background:"transparent",mouseEnter:(ji,Fi)=>Fi.background="dodgerblue",mouseLeave:(ji,Fi)=>Fi.background="transparent",click:zt(Mi,gi),contextClick:zt(Mi,gi)})}function hi(){return[pt("ContextMenuButton",pt(Pt.s_,"Horizontal",_e(1),_e(2),_e(3),_e(4))),pt("ContextMenuButton",pt(Pt.s_,"Horizontal",Ni(null),Ni([2,4]),Ni([4,4])))]}function Pn(gi,Mi){return Mi||(Mi="figure"),pt(Pt.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:gi,margin:1,background:"transparent",mouseEnter:(ji,Fi)=>Fi.fill="dodgerblue",mouseLeave:(ji,Fi)=>Fi.fill="lightgray",click:zt(Mi,gi),contextClick:zt(Mi,gi)})}It.current.nodeTemplate.contextMenu=pt("ContextMenu",pt("ContextMenuButton",pt(Pt.s_,"Horizontal",Pn("Rectangle"),Pn("RoundedRectangle"),Pn("Ellipse"),Pn("Diamond"))),pt("ContextMenuButton",pt(Pt.s_,"Horizontal",Pn("Parallelogram2"),Pn("ManualOperation"),Pn("Procedure"),Pn("Cylinder1"))),pt("ContextMenuButton",pt(Pt.s_,"Horizontal",Pn("Terminator"),Pn("CreateRequest"),Pn("Document"),Pn("TriangleDown"))),vi(),nn(),hi()),It.current.groupTemplate=pt(Pt.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:Pt.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(gi,Mi)=>{var ji=Mi.addMembers(Mi.diagram.selection,!0);ji||Mi.diagram.currentTool.doCancel()},avoidable:!1},new Pt.KX("location","loc",Pt.E9.parse).makeTwoWay(Pt.E9.stringify),pt(Pt.s_,"Auto",{name:"BODY"},pt(Pt.bn,{parameter1:10,fill:yn.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Pt.z6.AllSides,toSpot:Pt.z6.AllSides},new Pt.KX("fill"),new Pt.KX("stroke","color"),new Pt.KX("strokeWidth","thickness"),new Pt.KX("strokeDashArray","dash")),pt(Pt.Vm,{background:"transparent",margin:20})),pt(Pt.al,{alignment:Pt.z6.Top,alignmentFocus:Pt.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new Pt.KX("text"),new Pt.KX("stroke","color"))),It.current.groupTemplate.selectionAdornmentTemplate=pt(Pt.uz,"Spot",pt(Pt.s_,"Auto",pt(Pt.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),pt(Pt.Vm,{margin:1.5})),Ti({alignment:Pt.z6.TopRight,alignmentFocus:Pt.z6.BottomRight})),It.current.groupTemplate.contextMenu=pt("ContextMenu",vi(),nn(),hi()),It.current.linkTemplate=pt(Pt.rU,{layerName:"Foreground",routing:Pt.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new Pt.KX("fromSpot","fromSpot",Pt.z6.parse),new Pt.KX("toSpot","toSpot",Pt.z6.parse),new Pt.KX("fromShortLength","dir",gi=>gi>=1?10:0),new Pt.KX("toShortLength","dir",gi=>gi>=1?10:0),new Pt.KX("points").makeTwoWay(),pt(Pt.bn,{strokeWidth:2},new Pt.KX("stroke","color"),new Pt.KX("strokeWidth","thickness"),new Pt.KX("strokeDashArray","dash")),pt(Pt.bn,{segmentIndex:0,segmentOffset:new Pt.E9(15,0),segmentOrientation:Pt.rU.OrientAlong,alignmentFocus:Pt.z6.Right,figure:"circle",width:10,strokeWidth:0},new Pt.KX("fill","color"),new Pt.KX("visible","dir",gi=>gi===1)),pt(Pt.bn,{segmentIndex:-1,segmentOffset:new Pt.E9(-10,6),segmentOrientation:Pt.rU.OrientPlus90,alignmentFocus:Pt.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Pt.KX("fill","color"),new Pt.KX("visible","dir",gi=>gi>=1),new Pt.KX("width","thickness",gi=>7+3*gi),new Pt.KX("height","thickness",gi=>7+3*gi),new Pt.KX("segmentOffset","thickness",gi=>new Pt.E9(-15,4+1.5*gi))),pt(Pt.bn,{segmentIndex:0,segmentOffset:new Pt.E9(15,-6),segmentOrientation:Pt.rU.OrientMinus90,alignmentFocus:Pt.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Pt.KX("fill","color"),new Pt.KX("visible","dir",gi=>gi===2),new Pt.KX("width","thickness",gi=>7+3*gi),new Pt.KX("height","thickness",gi=>7+3*gi),new Pt.KX("segmentOffset","thickness",gi=>new Pt.E9(-15,4+1.5*gi))),pt(Pt.al,{alignmentFocus:new Pt.z6(0,1,-4,0),editable:!0},new Pt.KX("text").makeTwoWay(),new Pt.KX("stroke","color"))),It.current.linkTemplate.selectionAdornmentTemplate=pt(Pt.uz,pt(Pt.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Yi(2)},new Pt.KX("pathPattern","thickness",Yi)),Ti({alignmentFocus:new Pt.z6(0,0,-6,-4)}));function Yi(gi){return pt(Pt.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(gi+4).toString()+" H3"})}function Qi(gi){var Mi="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return gi===0?Mi="M0 0 M16 16 M0 8 L16 8":gi===2&&(Mi="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),pt(Pt.bn,{geometryString:Mi,margin:2,background:"transparent",mouseEnter:(ji,Fi)=>Fi.background="dodgerblue",mouseLeave:(ji,Fi)=>Fi.background="transparent",click:zt("dir",gi),contextClick:zt("dir",gi)})}function er(gi){var Mi=(ji,Fi)=>{ji.handled=!0,ji.diagram.model.commit(Zi=>{var Sr=Fi.part.adornedPart;Zi.set(Sr.data,gi?"toSpot":"fromSpot",Pt.z6.stringify(Pt.z6.AllSides)),(gi?Sr.toNode:Sr.fromNode).invalidateConnectedLinks()})};return pt(Pt.bn,{width:12,height:12,fill:"transparent",mouseEnter:(ji,Fi)=>Fi.background="dodgerblue",mouseLeave:(ji,Fi)=>Fi.background="transparent",click:Mi,contextClick:Mi})}function Tn(gi,Mi){var ji=0,Fi=Pt.z6.RightSide;gi.equals(Pt.z6.Top)?(ji=270,Fi=Pt.z6.TopSide):gi.equals(Pt.z6.Left)?(ji=180,Fi=Pt.z6.LeftSide):gi.equals(Pt.z6.Bottom)&&(ji=90,Fi=Pt.z6.BottomSide),Mi||(ji-=180);var Zi=(Sr,gr)=>{Sr.handled=!0,Sr.diagram.model.commit(mr=>{var br=gr.part.adornedPart;mr.set(br.data,Mi?"toSpot":"fromSpot",Pt.z6.stringify(Fi)),(Mi?br.toNode:br.fromNode).invalidateConnectedLinks()})};return pt(Pt.bn,{alignment:gi,alignmentFocus:gi.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:ji,background:"transparent",mouseEnter:(Sr,gr)=>gr.background="dodgerblue",mouseLeave:(Sr,gr)=>gr.background="transparent",click:Zi,contextClick:Zi})}It.current.linkTemplate.contextMenu=pt("ContextMenu",nn(),hi(),pt("ContextMenuButton",pt(Pt.s_,"Horizontal",Qi(0),Qi(1),Qi(2))),pt("ContextMenuButton",pt(Pt.s_,"Horizontal",pt(Pt.s_,"Spot",er(!1),Tn(Pt.z6.Top,!1),Tn(Pt.z6.Left,!1),Tn(Pt.z6.Right,!1),Tn(Pt.z6.Bottom,!1)),pt(Pt.s_,"Spot",{margin:new Pt.Zt(0,0,0,2)},er(!0),Tn(Pt.z6.Top,!0),Tn(Pt.z6.Left,!0),Tn(Pt.z6.Right,!0),Tn(Pt.z6.Bottom,!0)))));const Zt=`{ "class": "GraphLinksModel",
"nodeDataArray": [
{"text":"Find Problem","key":-9,"loc":"-20 -140","color":"#3358ff","fill":"white","figure":"Procedure","thickness":3},
{"text":"What do we want?","key":-10,"loc":"-65 -324.305","group":-16,"figure":"Ellipse","fill":"white"},
{"text":"What do our users want?","key":-11,"loc":"105 -334.305","group":-20,"figure":"Ellipse","fill":"#ffffff","color":"black"},
{"text":"Meetings","key":-12,"loc":"-65 -444.305","group":-16,"figure":"TriangleDown","fill":"#ffffff"},
{"text":"Reviews","key":-13,"loc":"105 -454.305","group":-20,"figure":"TriangleDown","fill":"#ffffff","color":"black"},
{"text":"Can we solve it?","key":-14,"loc":"190 -140","color":"#7d33ff","fill":"#ffffff","figure":"Diamond","size":"140 80","thickness":3},
{"isGroup":true,"text":"Internal","key":-16,"loc":"-65 -384.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22},
{"isGroup":true,"text":"External","key":-20,"loc":"105 -394.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22},
{"isGroup":true,"text":"Sources","key":-22,"loc":"20 -400","fill":"#a5d2fa","dash":[4,4],"color":"#3358ff"}
],
"linkDataArray": [
{"from":-12,"to":-10,"points":[-65,-414.305,-65,-404.305,-65,-384.305,-65,-384.305,-65,-364.305,-65,-354.305],"dash":null,"dir":1},
{"from":-13,"to":-11,"points":[105,-424.305,105,-414.305,105,-394.305,105,-394.305,105,-374.305,105,-364.305],"dash":null,"color":"#000000","dir":1},
{"from":-10,"to":-9,"points":[-65,-294.305,-65,-284.305,-65,-232.1525,-40,-232.1525,-40,-180,-40,-170],"dir":2,"dash":[4,4]},
{"from":-11,"to":-9,"points":[105,-304.305,105,-294.305,105,-237.1525,0,-237.1525,0,-180,0,-170],"dash":[4,4],"dir":2},
{"from":-9,"to":-14,"points":[40,-150,58,-150,80,-150,80,-153.33333333333331,102,-153.33333333333331,120,-153.33333333333331],"dir":1,"color":"#3358ff"},
{"from":-14,"to":-9,"points":[190,-100,190,-90,-20,-90,-20,-95,-20,-100,-20,-110],"fromSpot":"BottomSide","toSpot":"BottomSide","text":"No","color":"#ff3333","thickness":2,"dir":1},
{"from":-9,"to":-14,"points":[40,-130,58,-130,80,-130,80,-126.66666666666666,102,-126.66666666666666,120,-126.66666666666666]}
]}`;var $i=["Rectangle","Square","RoundedRectangle","Border","Ellipse","Circle","TriangleRight","TriangleDown","TriangleLeft","TriangleUp","Triangle","Diamond","LineH","LineV","None","BarH","BarV","MinusLine","PlusLine","XLine","LineRight","LineDown","LineLeft","LineUp"];function Vr(gi){return console.log("shapeName:",gi),$i.indexOf(gi)>=0}var en=new Pt.YI(Yn.current,{maxSelectionCount:1,linkTemplate:pt(Pt.rU,{locationSpot:Pt.z6.Center,selectionAdornmentTemplate:pt(Pt.uz,"Link",{locationSpot:Pt.z6.Center},pt(Pt.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),pt(Pt.bn,{toArrow:"Standard",stroke:null}))},{routing:Pt.rU.AvoidsNodes,curve:Pt.rU.JumpOver,corner:5,toShortLength:4},new Pt.KX("points"),pt(Pt.bn,{isPanelMain:!0,strokeWidth:2}),pt(Pt.bn,{toArrow:"Standard",stroke:null})),model:new Pt.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...Pt.bn.getFigureGenerators().toArray().map(gi=>({text:"\u672A\u547D\u540D",size:"100 100",figure:gi.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return It.current.addDiagramListener("TextEdited",function(gi){var Mi;const ji=gi.subject.part;var Fi=(Mi=document.activeElement)==null?void 0:Mi.value;typeof Fi=="string"&&Fi.trim()===""&&It.current.model.commit(function(Zi){Zi.set(ji.data,"text","\u672A\u547D\u540D"),It.current.commandHandler.stopCommand()},"increment")}),en.nodeTemplate=pt(Pt.NB,"Auto",{locationSpot:Pt.z6.Center},new Pt.KX("location","location",Pt.E9.parse).makeTwoWay(Pt.E9.stringify),pt(Pt.bn,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new Pt.KX("stroke").makeTwoWay(),new Pt.KX("fill").makeTwoWay(),new Pt.KX("figure")),pt(Pt.al,{margin:new Pt.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new Pt.$u(16,16),maxSize:new Pt.$u(10,NaN),textAlign:"center",editable:!0},new Pt.KX("key").makeTwoWay())),setTimeout(()=>{It.current.grid=pt(Pt.s_,"Grid",pt(Pt.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),pt(Pt.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),It.current.grid.visible=!0,It.current.grid.gridCellStroke="darkgray",It.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=It.current,It.current}const li=()=>At(this,null,function*(){var pt,yn=It.current.makeImage();const ii=yield(0,Ne.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:yn.src,file_data:JSON.stringify({login:(pt=(0,Ke.eY)())==null?void 0:pt.login,data:JSON.parse(It.current.model.toJson())})}});Ut({src:ii.url})});return(0,le.useEffect)(()=>(setTimeout(()=>{Gt()},500),qt(oi+1),()=>{It.current=null}),[]),Le.createElement("div",{ref:Rn,className:"body-overflow-initial"},Le.createElement(un.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!oi,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Le.createElement(on.Z,null,Le.createElement(Fe.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Le.createElement(Fe.Z,{onClick:()=>{var pt,yn,ii=It.current.selection.first();if(yi.current=!yi.current,document.activeElement&&ii){let Ti=(yn=(pt=document.activeElement)==null?void 0:pt.value)==null?void 0:yn.trim();typeof Ti=="string"&&It.current.model.commit(function(zt){zt.set(ii.data,"text",Ti||"\u672A\u547D\u540D"),It.current.commandHandler.stopCommand()},"increment")}qt(oi+1)}},Le.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Vt},Le.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative",display:yi.current?"none":"block"},className:Qe.flowChartWrp},Le.createElement("div",{style:{display:"flex",height:"100%"}},Le.createElement("div",{style:{width:"300px",height:"100%"}},Le.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Le.createElement("div",{style:{height:"calc(100% - 50px)"},className:Qe.myPaletteDiv,ref:Yn})),Le.createElement("div",{style:{flex:1,position:"relative"}},Le.createElement("div",{ref:$n,style:{height:"80vh"}}))),Le.createElement("div",{className:"tr"},Le.createElement(at.ZP,{size:"large",onClick:li,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var tn=Lt,$t=de(47889),Ht=de(71051);const rn=$t.ZP.Group,vn={margin:"0 8px"};var cn=({callback:Vt,onCancel:Ut})=>{function It($n){Vt($n)}return le.createElement(ft.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:It},le.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},le.createElement("span",{style:vn},"\u5355\u5143\u683C\u6570\uFF1A"),le.createElement("span",{style:vn},"\u884C\u6570"),le.createElement(ft.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},le.createElement(Ht.Z,null)),le.createElement("span",{style:vn},"\u5217\u6570"),le.createElement(ft.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},le.createElement(Ht.Z,null))),le.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},le.createElement("span",{style:vn},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),le.createElement(ft.default.Item,{name:"align"},le.createElement(rn,null,le.createElement($t.ZP,{value:"default"},le.createElement("i",{className:"fa fa-align-justify"})),le.createElement($t.ZP,{value:"left"},le.createElement("i",{className:"fa fa-align-left"})),le.createElement($t.ZP,{value:"center"},le.createElement("i",{className:"fa fa-align-center"})),le.createElement($t.ZP,{value:"right"},le.createElement("i",{className:"fa fa-align-right"}))))),le.createElement("div",{className:"flex-container flex-end"},le.createElement(at.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),le.createElement(at.ZP,{type:"ghost",onClick:Ut},"\u53D6\u6D88")))},wn=de(71411),sn=de(91e3),Ft=de.n(sn),dn=(0,le.forwardRef)(({use3d:Vt,width:Ut,height:It,callback:$n,showSaveButton:Yn},yi)=>{const Rn=(0,le.useRef)(),oi=(0,le.useRef)(),[qt,Gt]=(0,le.useState)(!1),li=(0,le.useRef)({id:Rn,appName:"graphing",width:Ut||1e3,height:It||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,le.useEffect)(()=>{oi.current=new(Ft())(li.current,!0),window.onload=function(){oi.current.inject("applet_container")}},[]);const pt=()=>{var yn=window.ggbApplet.getPNGBase64(1,!0,72);return $n&&$n(yn),yn};return(0,le.useEffect)(()=>{li.current.appName=qt?"3D":"graphing",oi.current.inject("applet_container")},[qt]),(0,le.useEffect)(()=>{Gt(Vt)},[Vt]),(0,le.useImperativeHandle)(yi,()=>({getImgData:pt})),le.createElement(le.Fragment,null,le.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Rn}),le.createElement(on.Z,{align:"middle"},le.createElement(Fe.Z,{flex:1},le.createElement(wn.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:qt,onChange:yn=>Gt(yn)})),le.createElement(Fe.Z,null,le.createElement(at.ZP,{size:"large",onClick:pt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),En=de(88831),Jt=de(6767);const ui="link",Gn="upload-image",mt="add-flowchart",On="draw-image",Cn="add-flowchart",jt="code-block",mi="add-table",Hi="------------",Oi={default:Hi,left:`:${Hi}`,center:`:${Hi}:`,right:`${Hi}:`};var Mn=de(23206);function lr(){}let Gi=0;const fi=1e4,wi="\u2581",Li="@\u2581\u2581@",Ce="@\u2581@",Ci=`
**\u6A21\u677F\u6807\u9898**
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,Bi=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function Ri(Vt){return/^\d+$/.test(Vt)?`${Vt}px`:Vt}const ci=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",ti={[ci+"-B"]:"bold",[ci+"-I"]:"italic"},ki={[ui]:"\u6DFB\u52A0\u94FE\u63A5",[jt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Gn]:"\u6DFB\u52A0\u56FE\u7247",[On]:"\u6DFB\u52A0\u753B\u56FE",[mt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[mi]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var ni=({defaultValue:Vt="",onChange:Ut,width:It="100%",height:$n=400,miniToolbar:Yn=!1,isFocus:yi=!1,watch:Rn,insertTemp:oi,mode:qt="markdown",id:Gt="markdown-editor-id",showResizeBar:li=!1,noStorage:pt=!1,showNullButton:yn=!1,showNullProgramButton:ii=!1,hidetoolBar:Ti=!1,fullScreen:zt=!1,onBlur:xn,onCMBeforeChange:vi,onFullScreen:nn,className:_e="",disablePaste:Ni=!1,disabled:hi=!1,disabledFill:Pn=!1,placeholder:Yi="",values:Qi="",extraUse:er})=>{const[Tn,Zt]=(0,le.useState)(null),[$i,Vr]=(0,le.useState)(Vt),[en,gi]=(0,le.useState)(Rn),[Mi,ji]=(0,le.useState)(zt),[Fi,Zi]=(0,le.useState)(""),[Sr,gr]=(0,le.useState)(0),[mr,br]=(0,le.useState)($n),[Fn,dr]=(0,le.useState)(!1),[In,wr]=(0,le.useState)(0),[Cr,Tr]=(0,le.useState)(0),mo=(0,le.useRef)(),ao=(0,le.useRef)(),Wr=(0,le.useRef)(),Xr=(0,le.useRef)();(0,le.useEffect)(()=>{const hr=window.scrollY||window.pageYOffset;Vr(Qi),Tn==null||Tn.setValue(Qi),window.scrollTo(0,hr)},[Qi]),(0,le.useEffect)(()=>{nn==null||nn(Mi)},[Mi]),(0,le.useEffect)(()=>{if(mo.current){let hr=function(ri,Ji){var Zr;if(Ni){Ji.preventDefault();return}const jo=Ji.clipboardData;if(jo){const Do=jo.types.toString(),Ao=jo.items;if(Do==="Files"||jo.types.indexOf("Files")>-1){if(Ji.preventDefault(),qt=="stex")return;try{let Ho=Ao[1];((Zr=Ao[0])==null?void 0:Zr.kind)==="file"&&(Ho=Ao[0]);const Po=Ho.getAsFile(),Sa=Po.name.split(".").pop();(0,Ct.I)(Po,aa=>{var es,hn,ra;aa.id?((es=Po==null?void 0:Po.type)==null?void 0:es.indexOf("image"))>-1?ar.replaceSelection(`<img width="100%" src="/api/attachments/${aa.id}?type=${aa.content_type})" alt="" />`):((hn=Po==null?void 0:Po.type)==null?void 0:hn.indexOf("video"))>-1?ar.replaceSelection(`<video width="100%" controls src="/api/attachments/${aa.id}"></video>`):((ra=Po==null?void 0:Po.type)==null?void 0:ra.indexOf("pdf"))>-1?ar.replaceSelection(`<a href="/api/attachments/${aa.id}?type=${Po.type}&disposition=inline" target="_blank">${Po.name}</a>`):Bi.includes(Sa)?ar.replaceSelection(`<a href="/api/attachments/${aa.id}?type=office&disposition=inline" target="_blank">${Po.name}</a>`):ar.replaceSelection(`[${Po.name}](/api/attachments/${aa.id}?type=${aa.content_type})`):(aa==null?void 0:aa.status)===401&&(document.location.href="/user/login")})}catch(Ho){Jt.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const ar=Ie().fromTextArea(mo.current,{mode:qt,lineNumbers:!Yn,lineWrapping:!0,value:Vt,autoCloseTags:!0,autoCloseBrackets:!0});return ar.on("keyup",function(ri,Ji){Ji.keyCode===8&&(ri.getValue()==""?ar.setOption("placeholder",Yi):ar.setOption("placeholder",null))}),ar.on("keydown",function(ri,Ji){if(Ji.keyCode===8){var Zr=no(ri);Zr&&Ji.preventDefault()}}),yi&&ar.focus(),ar.on("paste",hr),hi&&ar.on("beforeChange",function(ri,Ji){(Ji.origin==="paste"||Ji.origin==="+input")&&Ji.cancel()}),Zt(ar),()=>{ar.off("paste",hr)}}},[]);const pa=(0,le.useCallback)(()=>{if(ao.current)try{}catch(hr){console.log(hr,"---- to set md editor body height")}},[mr,ao,Mi]);(0,le.useEffect)(()=>{function hr(){let ar=new Pe.Z(ri=>{for(let Ji of ri)(Ji.target.offsetHeight>0||Ji.target.offsetWidth>0)&&(pa(),Tn.setSize("100%","100%"),Tn.refresh())});return ar.observe(mo.current.parentElement),ar}if(Tn){const ar=hr();return()=>{var ri,Ji;(ri=mo.current)!=null&&ri.parentElement&&ar.unobserve((Ji=mo.current)==null?void 0:Ji.parentElement)}}},[Tn,pa]),(0,le.useEffect)(()=>{if(Tn){let hr=[];for(const[ar,ri]of Object.entries(ti)){let Ji={[ar]:()=>{zi(ri)}};hr.push(Ji),Tn.addKeyMap(Ji)}return()=>{for(let ar of hr)Tn.removeKeyMap(ar)}}},[Tn]),(0,le.useEffect)(()=>{zt!==Mi&&ji(zt)},[zt]),(0,Mn.Z)(()=>{if(!pt&&Sr>0){let hr=new Date().getTime(),ar=window.sessionStorage.getItem(Gt);hr>=Sr+fi&&(!ar||ar!==$i)&&(window.sessionStorage.setItem(Gt,$i),dr(!0))}},fi),(0,le.useEffect)(()=>{gi(Rn)},[Tn,Rn]),(0,le.useEffect)(()=>{Tn&&yi&&Tn.focus()},[Tn,yi]),(0,le.useEffect)(()=>{if(en&&Tn){let hr=function(ri){let Ji=ri.target;if(Xr.current){let Zr=Ji.scrollTop/Ji.scrollHeight;Xr.current.scrollTop=Xr.current.scrollHeight*Zr}};const ar=Tn.getScrollerElement();return ar.addEventListener("scroll",hr),()=>{ar.removeEventListener("scroll",hr)}}},[Tn,en]),(0,le.useEffect)(()=>{if(Tn&&vi){let hr=function(ar,ri){vi(ar,ri)};return Tn.on("beforeChange",hr),()=>{Tn.off("beforeChange",hr)}}},[Tn,vi]),(0,le.useEffect)(()=>{if(Tn&&xn){let hr=function(){xn(Tn.getValue())};return Tn.on("blur",hr),()=>{Tn.off("blur",hr)}}},[Tn,xn]);function no(hr,ar){var ri=hr.getDoc(),Ji=ri.getCursor(),Zr=ri.getLine(Ji.line),jo=Zr.charAt(Ji.ch-1),Do=Zr.lastIndexOf("@\u2581@",Ji.ch),Ao=Zr.lastIndexOf("@\u2581\u2581@",Ji.ch),Ho=Do>Ao?Do:Ao,Po=Do>Ao?3:4;if(Li.indexOf(jo)===-1)return null;if(console.log("change1:",ar,hr,Zr,Ji,Ho,Do,Ao,jo),Ho>=0&&Ji.ch-Ho<5){var Sa=Ho+Po;return ri.replaceRange("",{line:Ji.line,ch:Ho},{line:Ji.line,ch:Sa}),{line:Ji.line,ch:Sa}}return null}(0,le.useEffect)(()=>{if(Tn){let hr=function(ar,ri){const Ji=ar.getValue();Vr(Ji),gr(new Date().getTime()),ar.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Ut&&(ii?Ut(Ji,nr(Ji)):Ut(Ji))};return Tn.on("change",hr),()=>{Tn.off("change",hr)}}},[Tn,Ut]),(0,le.useEffect)(()=>{if(Tn)if(Vt==null)Tn.setValue(""),Vr("");else{const hr=window.scrollY||window.pageYOffset;Vt!==Tn.getValue()&&(Tn.setValue(Vt),Vr(Vt),Tn.setCursor(hi?1:Tn.lineCount(),0),window.scrollTo(0,hr))}},[Tn,Vt]);const zi=(0,le.useCallback)(hr=>{const ar=Tn.getCursor(),ri=Tn.getSelection();let Ji=ri.split(`
`);switch(hr){case"bold":return Tn.replaceSelection("**"+ri+"**"),ri===""&&Tn.setCursor(ar.line,ar.ch+2),Tn.focus();case"italic":return Tn.replaceSelection("*"+ri+"*"),ri===""&&Tn.setCursor(ar.line,ar.ch+1),Tn.focus();case"code":return Tn.replaceSelection("`"+ri+"`"),ri===""&&Tn.setCursor(ar.line,ar.ch+1),Tn.focus();case"inline-latex":return Zi("inline-latex"),Tn.focus();case"latex":return Tn.replaceSelection("```latex\n"+ri+"\n```"),Tn.setCursor(ar.line+1,ri.length+1),Tn.focus();case"line-break":return Tn.replaceSelection(`<br/>
`),Tn.focus();case"list-ul":return ri===""?Tn.replaceSelection("- "+ri):Tn.replaceSelection(Ji.map(Zr=>Zr===""?"":`- ${Zr}`).join(`
`)),Tn.focus();case"list-ol":return ri===""?Tn.replaceSelection("1. "+ri):Tn.replaceSelection(Ji.map((Zr,jo)=>Zr===""?"":`${jo+1}. ${Zr}`).join(`
`)),Tn.focus();case"add-null-ch":return ri===""&&Tn.setCursor(ar.line,ar.ch),Tn.replaceSelection(wi),Tn.focus();case"add-signal":return ri===""&&Tn.setCursor(ar.line,ar.ch),Tn.replaceSelection(Ce),Tn.focus();case"add-multiple":return ri===""&&Tn.setCursor(ar.line,ar.ch),Tn.replaceSelection(Li),Tn.focus();case"inster-template-1":return ri===""&&Tn.setCursor(ar.line,ar.ch),Tn.replaceSelection(Ci),Tn.focus();case"eraser":return Tn.setValue(""),Tn.focus();case"trigger-watch":return gi(!en),Tn.focus();case"trigger-full-screen":return ji(!Mi),Tn.focus();case ui:Zi(ui);return;case jt:Zi(jt);return;case Gn:Zi(Gn);return;case On:Zi(On);return;case"maths-latex":Zi("maths-latex");return;case mt:Zi(mt);return;case mi:Zi(mi);return;default:throw new Error}},[Tn,en,Mi]),lt=(0,le.useCallback)((hr,ar)=>{var ri,Ji,Zr,jo,Do,Ao;switch(Zi(""),Fi){case ui:const{title:es,link:hn}=hr;return Tn.replaceSelection(`[${es}](${hn})`),Tn.focus();case jt:const{language:ra,content:kl}=hr;return Tn.replaceSelection(["```"+ra,kl,"```"].join(`
`)),Tn.focus();case"maths-latex":for(var Ho=atob(hr),Po=new Uint8Array(Ho.length),Sa=0;Sa<Ho.length;Sa++)Po[Sa]=Ho.charCodeAt(Sa);var aa=new Blob([Po],{type:"image/png"});(0,Ct.I)(aa,Ga=>{Ga.id?Tn.replaceSelection(`![,](/api/attachments/${Ga.id}?type=${Ga.content_type})`):(Ga==null?void 0:Ga.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Tn.replaceSelection("`$$"+hr+"$$`");break;case Gn:case On:case Cn:const{src:Ha,alt:yl}=hr,Lo=ar,lu=(Zr=(Ji=(ri=Lo==null?void 0:Lo.name)==null?void 0:ri.split("."))==null?void 0:Ji.pop)==null?void 0:Zr.call(Ji);return((jo=Lo==null?void 0:Lo.type)==null?void 0:jo.indexOf("image"))>-1||!(Lo!=null&&Lo.type)?Lo!=null&&Lo.align||Lo!=null&&Lo.width?Tn.replaceSelection(`<p style="text-align:${Lo.align||"initial"}"><img width="${Lo.width?Lo.width+"%":"initial"}" src="${Ha}" alt="${yl||""}" /></p>`):Tn.replaceSelection(`<img width="100%" src="${Ha}" alt="${yl||""}" />`):((Do=Lo==null?void 0:Lo.type)==null?void 0:Do.indexOf("video"))>-1?Tn.replaceSelection(`<video width="100%" controls src="${Ha}"></video>`):((Ao=Lo==null?void 0:Lo.type)==null?void 0:Ao.indexOf("pdf"))>-1?Tn.replaceSelection(`<a href="${Ha}?type=${Lo.type}&disposition=inline" target="_blank">${Lo.name}</a>`):Bi.includes(lu)?Tn.replaceSelection(`<a href="${Ha}?type=office&disposition=inline" target="_blank">${Lo.name}</a>`):Tn.replaceSelection(`[${Lo.name}](${Ha})`),Tn.focus();case mi:const{row:An,col:zo,align:ca}=hr;let sl=`
`;for(let Ga=0;Ga<An;Ga++){let Xs=[],ps=[];for(let cr=0;cr<zo;cr++)Ga===1&&ps.push(Oi[ca]),Xs.push(" ");Ga===1&&(sl+=`| ${ps.join(" | ")} |
`),sl+=`| ${Xs.join(zo===1?"":" | ")} |
`}return Tn.replaceSelection(sl+`
`),Tn.focus();default:throw new Error}},[Tn,Fi]),Go=(0,le.useMemo)(()=>{switch(Fi){case ui:return le.createElement(an,{callback:lt,onCancel:Lr});case jt:return le.createElement(mn.Z,{callback:lt,onCancel:Lr});case Gn:return le.createElement(Ct.Z,{callback:lt,onCancel:Lr});case mt:return le.createElement(tn,{callback:lt,onCancel:Lr});case mi:return le.createElement(cn,{callback:lt,onCancel:Lr});case"maths-latex":return le.createElement(dn,{showSaveButton:!0,callback:lt});case"inline-latex":return le.createElement(En.Z,{showSaveButton:!0,callback:lt});default:return null}},[Fi]);function Lr(){Zi("")}(0,le.useEffect)(()=>{if(Wr.current){let hr=function(Do){Zr=!0,jo=Do.pageY},ar=function(){Zr=!1},ri=function(Do){if(Zr){let Ao=Do.pageY-jo;Ao<0&&(Ao=0),Ao>300&&(Ao=300);let Ho=$n+Ao+"px";br(Ho)}},Ji=Wr.current,Zr=!1,jo=0;return Ji.addEventListener("mousedown",hr),document.addEventListener("mousemove",ri),document.addEventListener("mouseup",ar),()=>{Ji.removeEventListener("mousedown",hr),document.removeEventListener("mousemove",ri),document.removeEventListener("mouseup",ar)}}},[Tn,Wr]),(0,le.useEffect)(()=>{br($n)},[$n]);const zr=Ri(It),$r=Ri(mr),fo={width:zr,height:$r},Xi=(0,le.useMemo)(()=>{if(Sr){let hr=new Date(Sr),ar=hr.getHours(),ri=hr.getMinutes(),Ji=hr.getSeconds();return ar=ar<10?"0"+ar:ar,ri=ri<10?"0"+ri:ri,Ji=Ji<10?"0"+Ji:Ji,`${ar}:${ri}:${Ji}`}return 0},[Sr]),nr=hr=>{const ar=[];if(ii){let ri=-1;hr=hr.replace(/(@▁▁@|@▁@)/g,function(Ji,Zr,jo){ar.push({multiLine:Ji!==Ce})})}return ar};function Ir(){window.sessionStorage.removeItem(Gt),dr(!1),gr(0)}function Ar(){dr(!1),gr(0),Tn.setValue(window.sessionStorage.getItem(Gt))}(0,le.useEffect)(()=>{ki[Fi]&&Fi!==On&&Fi!==mt&&setTimeout(()=>{const hr=document.getElementsByClassName("markdown-popup-form")[0],ar=window.innerWidth/2-hr.offsetWidth/2,ri=window.innerHeight/2-hr.offsetHeight/2;wr(ar),Tr(ri)},0)},[Fi]);const kr=hr=>{hr.preventDefault();const ar=hr.clientX-In,ri=hr.clientY-Cr;document.body.onmousemove=Ji=>{let Zr=Ji.clientX-ar,jo=Ji.clientY-ri;const Do=document.getElementsByClassName("markdown-popup-form")[0],Ao=window.innerWidth-Do.offsetWidth,Ho=window.innerHeight-Do.offsetHeight;Zr=Math.max(0,Math.min(Zr,Ao)),jo=Math.max(0,Math.min(jo,Ho)),Uo(Ji.clientX,Ji.clientY,ar,ri)&&(wr(Zr),Tr(jo))},document.body.onmouseup=function(){document.body.onmousemove=null}},Uo=(hr,ar,ri,Ji)=>{const Zr=document.body.clientHeight,jo=document.body.clientWidth;return hr<20&&ri>hr||hr>jo-20&&ri<hr||ar<20&&Ji>ar||ar>Zr-20&&Ji<ar?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return le.createElement(le.Fragment,null,le.createElement("div",{className:"markdown-editor-wrapper",ref:ao},le.createElement("div",{className:`markdown-editor-container ${_e} ${en?"on-preview":""} ${Yn?"mini":""} ${Mi?"full-screen":""}`,style:fo},le.createElement(nt,{insertTemp:oi,watch:en,fullScreen:Mi,showNullButton:yn,showNullProgramButton:ii,onActionCallback:zi,hidetoolBar:Ti,extraUse:er}),le.createElement("div",{className:"markdown-editor-body"},le.createElement("div",{className:"codemirror-container"},le.createElement("textarea",{ref:mo,placeholder:Yi})),en?le.createElement("div",{ref:Xr,className:"preview-container"},qt==="stex"&&le.createElement(st,{value:$i}),qt!=="stex"&&le.createElement(vt.Z,{disabledFill:Pn,showProgramFill:ii,value:$i})):null))),li?le.createElement("a",{ref:Wr,className:"editor-resize"}):null,Fi===On&&le.createElement(si,{callback:lt,onCancel:Lr}),Fi===mt&&le.createElement(tn,{callback:lt,onCancel:Lr}),le.createElement(rt.Z,null,ki[Fi]&&Fi!==On&&Fi!==mt?le.createElement(un.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:In,top:Cr},title:le.createElement("div",{style:{cursor:"move"},onMouseDown:kr},ki[Fi]),open:!0,onCancel:Lr,footer:null,destroyOnClose:!0,width:Fi===mt?"1200px":null,height:Fi===mt?"80vh":null,className:"markdown-popup-form"},Go):null))}},24141:function(ze,be,de){"use strict";de.d(be,{Z:function(){return Re},I:function(){return nt}});var le=de(28284),Me=de(6767),Ie=de(37568),Pe=de(77736),Ge=de(71051),Oe=de(47889),Ve=de(99571),ot=de(55322),Je=de(59301),Xe=de(59301),vt=Object.defineProperty,st=Object.defineProperties,_t=Object.getOwnPropertyDescriptors,Ue=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,fe=(rt,ft,xt)=>ft in rt?vt(rt,ft,{enumerable:!0,configurable:!0,writable:!0,value:xt}):rt[ft]=xt,se=(rt,ft)=>{for(var xt in ft||(ft={}))te.call(ft,xt)&&fe(rt,xt,ft[xt]);if(Ue)for(var xt of Ue(ft))ne.call(ft,xt)&&fe(rt,xt,ft[xt]);return rt},pe=(rt,ft)=>st(rt,_t(ft));const{useForm:Se}=le.default,we={width:280,marginRight:10},De={labelCol:{span:5},wrapperCol:{span:19}};var Re=({callback:rt,onCancel:ft})=>{const[xt]=Se();let at=(0,Je.useRef)();function wt(bn){at.current.width=xt.getFieldValue("width"),at.current.align=xt.getFieldValue("align"),rt(bn,at.current)}function Mt(bn,pn){if(bn.status===-1){Me.ZP.error(bn.message);return}xt.setFieldsValue({src:`/api/attachments/${bn.id}`,type:pn.type})}function Xt(bn){let pn=bn.target.files[0];at.current=pn,nt(pn,Mt)}return Xe.createElement(le.default,pe(se({form:xt},De),{className:"upload-image-panel",onFinish:wt,style:{width:470,overflow:"hidden"}}),Xe.createElement(le.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Xe.createElement("div",{className:"flex-container"},Xe.createElement(le.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},Xe.createElement(Ie.default,{style:we})),Xe.createElement(Ze,{onFileChange:Xt}))),Xe.createElement(le.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Xe.createElement(Ie.default,{style:{width:264}})),Xe.createElement(le.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Xe.createElement(Pe.Z,null,Xe.createElement(le.default.Item,{name:"width",style:{margin:0}},Xe.createElement(Ge.Z,{style:{width:264}})),Xe.createElement("span",{className:"ml8"},"%"))),Xe.createElement(le.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Xe.createElement(Oe.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),Xe.createElement("aside",null,Xe.createElement(le.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Xe.createElement(Ve.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Xe.createElement(Ve.ZP,{type:"default",onClick:ft},"\u53D6\u6D88"))))};function Ze({onFileChange:rt}){return Xe.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Xe.createElement("input",{type:"file",onChange:rt}))}function nt(rt,ft){if(!rt)throw new String("\u6CA1\u6709\u6587\u4EF6");let xt=new FormData;xt.append("editormd-image-file",rt),xt.append("file_param_name","editormd-image-file"),xt.append("byxhr","true");var at=new window.XMLHttpRequest;at.withCredentials=!0,at.addEventListener("load",function(wt){ft(JSON.parse(wt.target.responseText),rt)},!1),at.addEventListener("error",function(wt){console.error(wt)},!1),at.open("POST",`${ot.KI}/api/attachments.json`),at.send(xt)}},52272:function(ze,be,de){"use strict";de.d(be,{Z:function(){return Ie}});var le=de(59301),Me=de(4676);class Ie extends le.Component{constructor(Ge){super(Ge);const Oe=window.document;this.node=Oe.createElement("div"),Oe.body.appendChild(this.node)}render(){const{children:Ge}=this.props;return(0,Me.createPortal)(Ge,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},89081:function(ze,be,de){"use strict";de.d(be,{SV:function(){return At},ZP:function(){return Le}});var le=de(59301),Me=de(76374);const Ie={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},Pe={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(`
`)},{label:"System.out.println",content:["System.out.println($0)"].join(`
`)},{label:"System.out.print",content:["System.out.print($0)"].join(`
`)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},Ge={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
`)},{label:"if",content:["if () {"," $0","}"].join(`
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
`)},{label:"using namespace std;",content:["using namespace std;"].join(`
`)},{label:"include <iostream>",content:["#include <iostream>"].join(`
`)},{label:"include <vector>",content:["#include <vector>"].join(`
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
`)},{label:"include <map>",content:["#include <map>"].join(`
`)},{label:"include <string>",content:["#include <string>"].join(`
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
`)}]},Oe={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(`
`)}]},Ve={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(`
`)}]};var ot=de(53184),Je=de.n(ot),Xe=Object.defineProperty,vt=Object.defineProperties,st=Object.getOwnPropertyDescriptors,_t=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,ne=(Lt,tn,$t)=>tn in Lt?Xe(Lt,tn,{enumerable:!0,configurable:!0,writable:!0,value:$t}):Lt[tn]=$t,fe=(Lt,tn)=>{for(var $t in tn||(tn={}))Ue.call(tn,$t)&&ne(Lt,$t,tn[$t]);if(_t)for(var $t of _t(tn))te.call(tn,$t)&&ne(Lt,$t,tn[$t]);return Lt},se=(Lt,tn)=>vt(Lt,st(tn)),pe=(Lt,tn,$t)=>new Promise((Ht,rn)=>{var vn=sn=>{try{wn($t.next(sn))}catch(Ft){rn(Ft)}},cn=sn=>{try{wn($t.throw(sn))}catch(Ft){rn(Ft)}},wn=sn=>sn.done?Ht(sn.value):Promise.resolve(sn.value).then(vn,cn);wn(($t=$t.apply(Lt,tn)).next())});const Se={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},we=(Lt,tn)=>tn.map($t=>({label:$t,kind:Lt.languages.CompletionItemKind.Keyword,insertText:$t})),De=Lt=>Object.keys(Se.tables).map(tn=>({label:tn,kind:Lt.languages.CompletionItemKind.Variable,insertText:tn})),Re=(Lt,tn)=>{const $t=Se.tables[Lt];return $t?$t.map(Ht=>({label:Ht,kind:tn.languages.CompletionItemKind.Field,insertText:Ht})):[]};function Ze(Lt,tn,$t,Ht,rn){let vn=tn.getWordUntilPosition($t),cn={startLineNumber:$t.lineNumber,endLineNumber:$t.lineNumber,startColumn:vn.startColumn,endColumn:vn.endColumn},wn=Ht.map(sn=>({label:sn,kind:Lt.languages.CompletionItemKind.Keyword,insertText:sn,insertTextRules:Lt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:cn}));return rn.map(sn=>{wn.push(se(fe({},sn),{range:cn}))}),wn}var nt=Lt=>{Se.languages.map(rn=>(Lt.languages.registerDocumentFormattingEditProvider(rn,{provideDocumentFormattingEdits(vn,cn,wn){return pe(this,null,function*(){const sn=Je()(vn.getValue(),{indent_size:"2",indent_char:" ",max_preserve_newlines:"2",preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:"0",indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1});return[{range:vn.getFullModelRange(),text:sn}]})}}),rn));const tn=Ge.quickKey.map(rn=>({label:rn.label,kind:Lt.languages.CompletionItemKind.Method,insertText:rn.content,insertTextRules:Lt.languages.CompletionItemInsertTextRule.InsertAsSnippet})),$t=Oe.quickKey.map(rn=>({label:rn.label,kind:Lt.languages.CompletionItemKind.Method,insertText:rn.content,insertTextRules:Lt.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Ht=Pe.quickKey.map(rn=>({label:rn.label,kind:Lt.languages.CompletionItemKind.Method,insertText:rn.content,insertTextRules:Lt.languages.CompletionItemInsertTextRule.InsertAsSnippet}));Lt.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(rn,vn){var cn=rn.getWordUntilPosition(vn),wn={startLineNumber:vn.lineNumber,endLineNumber:vn.lineNumber,startColumn:cn.startColumn,endColumn:cn.endColumn},sn=rn.getLineContent(vn.lineNumber).substring(cn.startColumn-2,cn.endColumn);return{suggestions:[...Ge.keywords.map(Ft=>({label:Ft,kind:Lt.languages.CompletionItemKind.Function,documentation:Ft,insertText:Ft,insertTextRules:Lt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:wn})),...Ge.quickKey.map(Ft=>({label:Ft.label,kind:Lt.languages.CompletionItemKind.Function,documentation:Ft.content,insertText:sn.startsWith("#")?Ft.content.replace(/#/,""):Ft.content,insertTextRules:Lt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:wn}))]}}}),Lt.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(rn,vn){var cn=rn.getWordUntilPosition(vn),wn={startLineNumber:vn.lineNumber,endLineNumber:vn.lineNumber,startColumn:cn.startColumn,endColumn:cn.endColumn};return{suggestions:[...Ie.keywords.map(sn=>({label:sn,kind:Lt.languages.CompletionItemKind.Function,documentation:sn,insertText:sn,insertTextRules:Lt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:wn}))]}}}),Lt.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(rn,vn){var cn=rn.getWordUntilPosition(vn),wn={startLineNumber:vn.lineNumber,endLineNumber:vn.lineNumber,startColumn:cn.startColumn,endColumn:cn.endColumn},sn=rn.getLineContent(vn.lineNumber).substring(cn.startColumn-2,cn.endColumn);return{suggestions:[...Pe.keywords.map(Ft=>({label:Ft,kind:Lt.languages.CompletionItemKind.Function,documentation:Ft,insertText:Ft,insertTextRules:Lt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:wn})),...Pe.quickKey.map(Ft=>({label:Ft.label,kind:Lt.languages.CompletionItemKind.Function,documentation:Ft.content,insertText:sn.startsWith("#")?Ft.content.replace(/#/,""):Ft.content,insertTextRules:Lt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:wn}))]}}}),Lt.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(rn,vn){var cn=rn.getWordUntilPosition(vn),wn={startLineNumber:vn.lineNumber,endLineNumber:vn.lineNumber,startColumn:cn.startColumn,endColumn:cn.endColumn},sn=rn.getLineContent(vn.lineNumber).substring(cn.startColumn-2,cn.endColumn);return{suggestions:[...Ve.keywords.map(Ft=>({label:Ft,kind:Lt.languages.CompletionItemKind.Function,documentation:Ft,insertText:Ft,insertTextRules:Lt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:wn})),...Ve.quickKey.map(Ft=>({label:Ft.label,kind:Lt.languages.CompletionItemKind.Function,documentation:Ft.content,insertText:sn.startsWith("#")?Ft.content.replace(/#/,""):Ft.content,insertTextRules:Lt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:wn}))]}}}),Lt.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(rn,vn){var cn=rn.getWordUntilPosition(vn),wn={startLineNumber:vn.lineNumber,endLineNumber:vn.lineNumber,startColumn:cn.startColumn,endColumn:cn.endColumn},sn=rn.getLineContent(vn.lineNumber).substring(cn.startColumn-2,cn.endColumn);return{suggestions:[...Oe.keywords.map(Ft=>({label:Ft,kind:Lt.languages.CompletionItemKind.Function,documentation:Ft,insertText:Ft,insertTextRules:Lt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:wn})),...Oe.quickKey.map(Ft=>({label:Ft.label,kind:Lt.languages.CompletionItemKind.Function,documentation:Ft.content,insertText:sn.startsWith("#")?Ft.content.replace(/#/,""):Ft.content,insertTextRules:Lt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:wn}))]}}})};const rt="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var ft=Object.defineProperty,xt=(Lt,tn,$t)=>tn in Lt?ft(Lt,tn,{enumerable:!0,configurable:!0,writable:!0,value:$t}):Lt[tn]=$t,at=(Lt,tn,$t)=>xt(Lt,typeof tn!="symbol"?tn+"":tn,$t);const wt=class AE{constructor(tn,$t,Ht){this.placeholder=tn,this.editor=$t,this.monaco=Ht,$t.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return AE.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};at(wt,"ID","editor.widget.placeholderHint");var Xt=wt,bn=de(96236),pn=de(6767),fn=de(25399),gn=de(89392),Nt=de(16448),ut=de(56102),it=Object.defineProperty,an=Object.defineProperties,mn=Object.getOwnPropertyDescriptors,Ct=Object.getOwnPropertySymbols,un=Object.prototype.hasOwnProperty,on=Object.prototype.propertyIsEnumerable,Bn=(Lt,tn,$t)=>tn in Lt?it(Lt,tn,{enumerable:!0,configurable:!0,writable:!0,value:$t}):Lt[tn]=$t,Nn=(Lt,tn)=>{for(var $t in tn||(tn={}))un.call(tn,$t)&&Bn(Lt,$t,tn[$t]);if(Ct)for(var $t of Ct(tn))on.call(tn,$t)&&Bn(Lt,$t,tn[$t]);return Lt},si=(Lt,tn)=>an(Lt,mn(tn)),Pt=(Lt,tn)=>{var $t={};for(var Ht in Lt)un.call(Lt,Ht)&&tn.indexOf(Ht)<0&&($t[Ht]=Lt[Ht]);if(Lt!=null&&Ct)for(var Ht of Ct(Lt))tn.indexOf(Ht)<0&&on.call(Lt,Ht)&&($t[Ht]=Lt[Ht]);return $t},qn=(Lt,tn,$t)=>new Promise((Ht,rn)=>{var vn=sn=>{try{wn($t.next(sn))}catch(Ft){rn(Ft)}},cn=sn=>{try{wn($t.throw(sn))}catch(Ft){rn(Ft)}},wn=sn=>sn.done?Ht(sn.value):Promise.resolve(sn.value).then(vn,cn);wn(($t=$t.apply(Lt,tn)).next())});function Ei(Lt){return/^\d+$/.test(Lt)?`${Lt}px`:Lt}function $e(){}let Fe=!1;const Ne={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale",solidity:"sol"};function Qe(Lt=[]){let tn=Lt;if(Array.isArray(Lt)){for(let $t=0;$t<Lt.length;$t++){let Ht=Ne[Lt[$t]];if(Ht)return Ht}return tn[0]}return Ne[tn]||tn}let Ke=null;var Le=Lt=>{var tn=Lt,{width:$t="100%",height:Ht="100%",value:rn,language:vn="javascript",style:cn={},options:wn={},overrideServices:sn={},theme:Ft="vs-dark",onEditBlur:jn,isCopy:dn=!1,onSave:En,autoHeight:Jt=!1,forbidCopy:ui=!1,onChange:Gn=$e,editorDidMount:mt=$e,onFocus:On=$e,onBreakPoint:Cn=$e,breakPointValue:jt=[],filename:mi="educoder.txt",errorLine:Hi,errorContent:Oi="",highlightLine:Mn,openBreakPoint:lr=!1,placeholder:Gi="",showMiniMap:fi=!0}=tn,wi=Pt(tn,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"]);const Li=(0,le.useRef)(),Ce=(0,le.useRef)({}),Ci=(0,le.useRef)(),Bi=(0,le.useRef)(),Ri=(0,le.useRef)([]),Wn=(0,le.useRef)(!1),ci=(0,le.useRef)(),ti=(0,le.useRef)(),ki=(0,le.useRef)(!1),[ni,Vt]=(0,le.useState)(!1);function Ut(){let xn;return Li.current&&(xn=new Me.Z(vi=>{for(let nn of vi)(nn.target.offsetHeight>0||nn.target.offsetWidth>0)&&Ce.current.instance.layout()}),xn.observe(Li.current)),xn}function It(){pn.ZP.warning({content:decodeURIComponent(rt),key:"monaco-editor-tip"})}const $n=()=>{let xn=Ce.current.instance;if(rn!=null&&xn&&ni){const vi=xn.getModel();vi&&rn!==vi.getValue()&&(Fe=!0,vi.setValue(rn),xn.layout(),Fe=!1)}};(0,le.useEffect)(()=>{const xn=Nt.Z.subscribe("formatDocument",vi=>{var nn;let _e=Ce.current.instance;(nn=_e==null?void 0:_e.getAction)==null||nn.call(_e,"editor.action.formatDocument").run()});return window.updateMonacoValue=vi=>{Gn(vi)},xn},[]),(0,le.useEffect)(()=>{var xn;let vi=Ce.current.instance;Bi.current&&clearTimeout(Bi.current),Bi.current=setTimeout(()=>{$n()},500),rn&&(rn!=null&&rn.length)&&((xn=vi==null?void 0:vi.updateOptions)==null||xn.call(vi,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(rn.split(/\r\n|\r|\n/g).length))+3,5)}))},[rn,ni,Ce.current]),(0,le.useEffect)(()=>{if(Hi&&Ce.current&&Ce.current.instance){let vi=Ce.current.instance;vi.changeViewZones(function(nn){var _e=document.createElement("div");_e.style.padding="10px 20px",_e.style.width="calc(100% - 20px)",_e.className="my-error-line-wrp",_e.innerHTML=Oi,nn.addZone({afterLineNumber:Hi||11,heightInLines:3,domNode:_e})});var xn={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};vi.addOverlayWidget(xn),vi.revealPositionInCenter({lineNumber:20,column:1})}},[Hi,Ce.current,ni]);const Yn=(xn="",vi)=>{if(!xn||xn.trim()==="")return!0;const _e=Ce.current.instance.getModel().getLineTokens(vi);let Ni=!1;for(let hi=0;hi<2;hi++)_e.getStandardTokenType(hi)===1&&(Ni=!0);return Ni};(0,le.useEffect)(()=>{var xn;const vi=(xn=Ce.current)==null?void 0:xn.instance;if(vi&&ni&&ui){const nn=vi.onDidBlurEditorWidget(()=>{ki.current=!1}),_e=vi.onDidFocusEditorText(()=>{ki.current=!0});return()=>{nn.dispose(),_e.dispose()}}},[Ce.current,ni,ui]),(0,le.useEffect)(()=>{var xn;if((xn=Ce.current)!=null&&xn.instance&&ni&&lr){let vi=Ce.current.instance,nn=vi.getModel();if(!nn)return;(()=>{var en;let gi=[],Mi=[];const ji=nn.getAllDecorations();for(let Zi of ji)Zi.options.className==="highlighted-line"&&(gi.push((en=Zi==null?void 0:Zi.range)==null?void 0:en.startLineNumber),Mi.push(Zi==null?void 0:Zi.id));if(Mn===gi[0])return;nn.deltaDecorations(Mi,[]);const Fi=nn.getLineCount();Mn&&Mn<=Fi&&(vi.deltaDecorations([],[{range:new Ke.Range(Mn,1,Mn,nn.getLineMaxColumn(Mn)),options:{isWholeLine:!0,className:"highlighted-line"}}]),vi.revealLineInCenter(Mn))})();const Ni=(en=!1)=>{var gi;let Mi=[],ji=[];const Fi=nn.getAllDecorations();for(let Zi of Fi)Zi.options.linesDecorationsClassName==="breakpoints-select"&&(Mi.push((gi=Zi==null?void 0:Zi.range)==null?void 0:gi.startLineNumber),ji.push(Zi==null?void 0:Zi.id));if(en)return{lines:Mi,ids:ji};Cn(Mi)},hi=en=>qn(void 0,null,function*(){let gi={range:new Ke.Range(en,1,en,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield nn.deltaDecorations([],[gi]),Ni()}),Pn=en=>qn(void 0,null,function*(){let gi=[];const Mi=vi.getLineDecorations(en);for(let ji of Mi)ji.options.linesDecorationsClassName==="breakpoints-select"&&gi.push(ji.id);yield nn.deltaDecorations(gi,[]),Ni()}),Yi=en=>{let gi=vi.getLineDecorations(en);for(let Mi of gi)if(Mi.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,gn.isEqual)(jt,Ni(!0).lines)){nn.deltaDecorations(Ni(!0).ids,[]);const en=jt.map(gi=>({range:new Ke.Range(gi,1,gi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));nn.deltaDecorations([],en)}const Qi=vi.onDidChangeModelContent(en=>{let gi=vi.getPosition();if(gi){let Mi=gi.lineNumber;clearTimeout(ti.current),ti.current=setTimeout(()=>{Yn(nn.getLineContent(Mi),Mi)?Pn(Mi):Yi(Mi)?(Pn(Mi),hi(Mi)):Ni()},100)}}),er=vi.onMouseDown(en=>{var gi,Mi,ji;if(en.target.detail&&((ji=(Mi=(gi=en.target)==null?void 0:gi.element)==null?void 0:Mi.className)!=null&&ji.includes("line-numbers"))){let Fi=en.target.position.lineNumber;if(Yn(nn.getLineContent(Fi),Fi))return;Yi(Fi)?Pn(Fi):hi(Fi)}}),Tn=en=>{let gi={range:new Ke.Range(en,1,en,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Ri.current=vi.deltaDecorations(Ri.current,[gi])},Zt=()=>{Ri.current=vi.deltaDecorations(Ri.current,[])},$i=vi.onMouseMove(en=>{var gi,Mi,ji;if(Zt(),en.target.detail&&((ji=(Mi=(gi=en.target)==null?void 0:gi.element)==null?void 0:Mi.className)!=null&&ji.includes("line-numbers"))){let Fi=en.target.position.lineNumber;if(Yn(nn.getLineContent(Fi),Fi))return;Tn(Fi)}}),Vr=vi.onMouseLeave(()=>{Zt()});return()=>{Qi.dispose(),er.dispose(),$i.dispose(),Vr.dispose()}}},[Ce.current,ni,jt,Mn,lr,vn]),(0,le.useEffect)(()=>{var xn;(xn=Ce.current)!=null&&xn.instance&&lr&&Ce.current.instance.setPosition({lineNumber:0,column:0})},[Mn]);function yi(){let xn=Ce.current.instance;if(xn){const vi=xn.getSelection(),nn=Ce.current.pastePos||{},_e=new Ke.Range(nn.startLineNumber||vi.endLineNumber,nn.startColumn||vi.endColumn,nn.endLineNumber||vi.endLineNumber,nn.endColumn||vi.endColumn);setTimeout(()=>{xn.executeEdits("",[{range:_e,text:""}])},300)}}function Rn(xn){(window.navigator.platform.match("Mac")?xn.metaKey:xn.ctrlKey)&&xn.keyCode==83&&(xn.preventDefault(),En())}const oi=()=>{if(Jt&&Ce.current.instance){const xn=Ce.current.instance.getContentHeight();Ti(xn<Ht?Ht:xn)}else Ti(Ht)};function qt(xn){var vi=document.createEvent("MouseEvents");vi.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),xn.dispatchEvent(vi)}const Gt=xn=>{if(!ki.current)return;const{keyCode:vi,ctrlKey:nn,metaKey:_e,target:Ni,type:hi}=xn;return(hi==="paste"||(vi===67||vi===86)&&(_e||nn))&&Ni.nodeName==="TEXTAREA"&&(It(),xn.preventDefault()),!1};function li(xn,vi){var nn=window.URL||window.webkitURL||window,_e=new Blob([vi]),Ni=document.createElementNS("http://www.w3.org/1999/xhtml","a");Ni.href=nn.createObjectURL(_e),Ni.download=xn,qt(Ni)}(0,le.useEffect)(()=>{oi()},[oi]),(0,le.useEffect)(()=>{Li.current&&!ni&&Promise.all([de.e(8909),de.e(7960)]).then(de.bind(de,71448)).then(xn=>{try{Ke=xn,Ce.current.instance=Ke.editor.create(Li.current,{value:rn,language:Qe(vn),theme:Ft,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:fi||!1}},sn);const vi=Ce.current.instance;let Ni=[...bn.BH._menuItems].find(Qi=>Qi[0]._debugName=="EditorContext")[1],hi=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Pn=(Qi,er)=>{var Tn,Zt;let $i=Qi._first;do er.includes((Zt=(Tn=$i.element)==null?void 0:Tn.command)==null?void 0:Zt.id)&&Qi._remove($i);while($i=$i.next)};if(mt(vi,Ke),setTimeout(()=>{oi(),Ce.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{li(mi||"educoder.txt",vi.getValue())}})},500),Ce.current.subscription=vi.onDidChangeModelContent(Qi=>{Wn.current?clearTimeout(ci.current):(oi(),Gn(vi.getValue(),Qi)),ci.current=setTimeout(()=>{Wn.current=!1},500)}),window.Monaco||nt(Ke,Qe(vn)),ui&&(Pn(Ni,hi),Li.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Gt),window.removeEventListener("paste",Gt),window.addEventListener("keydown",Gt),window.addEventListener("paste",Gt)),window.Monaco=Ke,jn&&vi.onDidBlurEditorWidget(()=>{jn(vi.getValue())}),On&&vi.onDidFocusEditorText(()=>{On(vi.getValue())}),ui)try{vi.onDidPaste(Qi=>{const er=vi.getSelection(),Tn=Ce.current.pastePos||{},Zt=new Ke.Range(Tn.startLineNumber||er.endLineNumber,Tn.startColumn||er.endColumn,Tn.endLineNumber||er.endLineNumber,Tn.endColumn||er.endColumn);vi.executeEdits("",[{range:Qi.range,text:""}])})}catch(Qi){}let Yi=Ut();return Gi&&typeof Gi=="string"&&new Xt(Gi,vi,Ke),Vt(!0),()=>{const Qi=Ce.current.instance;Qi.dispose();const er=Qi.getModel();er&&er.dispose(),Ce.current.subscription&&Ce.current.subscription.dispose(),Yi.unobserve(Li.current)}}catch(vi){}})},[]),(0,le.useEffect)(()=>{if(Ce.current.instance&&ni)return document.addEventListener("keydown",Rn,!1),()=>{document.removeEventListener("keydown",Rn)}},[En,ni]),(0,le.useEffect)(()=>{let xn=Ce.current.instance;if(xn&&ni){let vi=Qe(vn);Ke.editor.setModelLanguage(xn.getModel(),vi)}},[vn,ni]),(0,le.useEffect)(()=>{Ce.current.instance&&ni&&Ke.editor.setTheme(Ft)},[Ft,ni]),(0,le.useEffect)(()=>{let xn=Ce.current.instance;Ci.current=wn,xn&&ni&&(xn.updateOptions(Nn({},wn)),setTimeout(()=>{xn.getModel().updateOptions(Nn({},wn))},200))},[JSON.stringify(wn),ni]),(0,le.useEffect)(()=>{let xn=Ce.current.instance;xn&&ni&&xn.layout()},[$t,Ht,ni]);const[pt,yn]=(0,le.useState)(Ei($t)),[ii,Ti]=(0,le.useState)(Ei(Ht)),zt=si(Nn({},cn),{width:pt,height:ii,position:"relative"});return le.createElement("div",{className:"my-monaco-editor",ref:Li,style:zt},dn&&le.createElement(ut.CopyToClipboard,{text:rn,onCopy:()=>pn.ZP.success("\u590D\u5236\u6210\u529F")},le.createElement(fn.Z,{title:"\u590D\u5236\u4EE3\u7801"},le.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},le.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function At({width:Lt="100%",height:tn="100%",original:$t,modified:Ht,language:rn,options:vn={}}){const cn=(0,le.useRef)(),[wn,sn]=(0,le.useState)(null);function Ft(Jt){let ui;return cn.current&&(ui=new Me.Z(Gn=>{for(let mt of Gn)(mt.target.offsetHeight>0||mt.target.offsetWidth>0)&&Jt.layout()}),ui.observe(cn.current)),ui}(0,le.useEffect)(()=>(cn.current&&Promise.all([de.e(8909),de.e(9404)]).then(de.bind(de,2550)).then(Jt=>{Ke=Jt;const ui=Ke.editor.createDiffEditor(cn.current,si(Nn({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},vn),{wordWrap:!0}));sn(ui);let Gn=Ft(ui);return()=>{ui.dispose();const mt=ui.getModel();mt&&mt.dispose(),Gn.unobserve(cn.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,le.useEffect)(()=>{wn&&wn.setModel({original:Ke.editor.createModel($t,rn),modified:Ke.editor.createModel(Ht,rn)})},[$t,Ht,rn,wn]);const jn=Ei(Lt),dn=Ei(tn),En={width:jn,height:dn};return le.createElement("div",{className:"my-diff-editor",ref:cn,style:En})}},46133:function(ze,be,de){"use strict";de.d(be,{jL:function(){return Ge},w9:function(){return un},QD:function(){return Gn},cQ:function(){return ut},op:function(){return Ft},O5:function(){return ti},_b:function(){return Hi},t7:function(){return se},Gi:function(){return qn},YG:function(){return si},qp:function(){return vt},vr:function(){return Cn},qE:function(){return En},Je:function(){return we},wb:function(){return bn},cq:function(){return Ke},tp:function(){return Ue}});var le=de(59301),Me={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},Ie="data:image/png;base64,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",Ge=({dataSource:ki=[],img:ni,imgWidth:Vt=346,title:Ut,sunTitle:It,bannerExtraContent:$n})=>le.createElement("div",{className:Me.banner},le.createElement("div",{className:Me.content},le.createElement("aside",null,le.createElement("p",null,le.createElement("b",null,Ut),le.createElement("span",null,It)),ki.length>0&&le.createElement("div",{className:Me.btns},ki.map((Yn,yi)=>le.createElement("div",{key:yi,onClick:Yn.click},Yn.name,Yn.sign?le.createElement("img",{src:Ie,width:39}):null))),$n),ni&&le.createElement("img",{style:{marginTop:33,marginRight:38},src:ni,width:Vt}))),Oe={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},Ve=de(92310),ot=de.n(Ve),Je=de(89392),vt=({dataSource:ki=[],value:ni,onChange:Vt,onTitleChange:Ut,className:It,title:$n,titleWidth:Yn=41,style:yi={},fontColor:Rn="#6A7283",showCount:oi})=>{const[qt,Gt]=(0,le.useState)(0),[li,pt]=(0,le.useState)(!1),yn=(0,le.useRef)(null),ii=(0,le.useRef)(null);return(0,le.useEffect)(()=>{var Ti;ki.length!==0&&(((Ti=yn==null?void 0:yn.current)==null?void 0:Ti.clientHeight)>97?Gt(1):Gt(0)),ki.length===0&&Gt(0),pt(!1)},[ki]),le.createElement("div",{className:ot()(Oe.row,It),style:yi},le.createElement("div",{onClick:(0,Je.throttle)(()=>Ut==null?void 0:Ut(),2e3),style:{width:Yn,marginTop:li?12:4},className:`${Oe.title} ${Ut?"current":""}`},$n),le.createElement("div",{className:li?`${Oe.tagsWrap} ${Oe.tagsBorderWrap}`:Oe.tagsWrap},le.createElement("div",{className:Oe.bar,ref:ii,style:qt>0?{height:qt===1?97:"auto",overflow:qt===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},le.createElement("div",{className:Oe.tag,ref:yn},ki==null?void 0:ki.map(Ti=>le.createElement("span",{onClick:()=>Vt(Ti.id),key:Ti.id,style:{color:Rn},className:ni===Ti.id?Oe.active:""},le.createElement("span",{title:Ti.name,className:Oe.name},Ti.name),!!oi&&le.createElement("span",{className:Oe.num},Ti.count))))),!!qt&&le.createElement(le.Fragment,null,qt===1?le.createElement("div",{onClick:()=>{var Ti;Gt(2),((Ti=yn==null?void 0:yn.current)==null?void 0:Ti.clientHeight)>245?pt(!0):pt(!1)},className:Oe.action},"\u5C55\u5F00",le.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):le.createElement("div",{onClick:()=>{ii.current.scrollTop=0,Gt(1),pt(!1)},className:Oe.action},"\u6536\u8D77",le.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},st={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},Ue=({dataSource:ki=[],value:ni,onChange:Vt,className:Ut,style:It={}})=>le.createElement("div",{style:It,className:ot()(st.tabs,Ut)},ki.map($n=>le.createElement("span",{onClick:()=>Vt($n.id),className:ni===$n.id?st.active:"",key:$n.id},$n.name))),te={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},ne=de(37568),se=({dataSource:ki=[],value:ni="",onChange:Vt,onInputChange:Ut=()=>{},className:It,style:$n={},placeholder:Yn,allowClear:yi=!1})=>{var Rn;const[oi,qt]=(0,le.useState)(""),[Gt,li]=(0,le.useState)("");(0,le.useEffect)(()=>{var ii;let Ti=ni;(ii=JSON.stringify(ni))!=null&&ii.includes("{")&&(qt(ni.id),Ti=ni.value||"");try{li(decodeURIComponent(Ti||""))}catch(zt){li(decodeURIComponent(Ti||""))}},[ni]);const pt=()=>{Vt(encodeURIComponent(Gt),oi||null)},yn=ii=>{ii!==oi&&(qt(ii),Vt(encodeURIComponent(Gt),ii))};return le.createElement("div",{className:ot()(te.input,It),style:$n},!!ki.length&&le.createElement("div",{className:te.dropdown},le.createElement("div",{className:te.text},(Rn=ki.find(ii=>ii.id===oi))==null?void 0:Rn.name,le.createElement("i",{className:"iconfont icon-zhankai4"}),le.createElement("b",{className:te.b1}),le.createElement("b",{className:te.b2})),le.createElement("div",{className:te.menu},ki.map((ii,Ti)=>le.createElement("div",{key:Ti,onClick:()=>yn(ii.id)},ii.name)))),le.createElement(ne.default,{onPressEnter:pt,value:Gt,onChange:ii=>{li(ii.target.value),Ut(encodeURIComponent(ii.target.value),oi||null)},bordered:!1,placeholder:Yn}),le.createElement("i",{onClick:pt,className:"iconfont icon-sousuo9 font14 pl10 current"}))},pe={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},we=({value:ki,onChange:ni,className:Vt,total:Ut,pageSize:It,style:$n={}})=>{const Yn=ki<2,yi=ki>=Math.ceil(Ut/It);return Ut<=It?le.createElement(le.Fragment,null):le.createElement("div",{className:ot()(pe.quickPager,Vt),style:$n},le.createElement("div",{onClick:()=>{Yn||ni(ki-1,"prev")},className:Yn?pe.disabled:""},"\u4E0A\u4E00\u9875"),le.createElement("div",{onClick:()=>{yi||ni(ki+1,"next")},className:yi?pe.disabled:""},"\u4E0B\u4E00\u9875"))},De={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},Re=de(29787),Ze=de(25399),nt=de(58018),rt=de(12242),ft=de(59895),xt=de(96908),at=de(57177),wt=de(81378),Mt=de(12635),bn=({className:ki,dataSource:ni=[],col:Vt=4,right:Ut,bottom:It=23,precision:$n=0,wrapWidth:Yn=1200,trackEventItems:yi,loading:Rn})=>{const oi=Math.floor((Yn-(Vt-1)*Ut)/Vt);return le.createElement(Re.Z,{spinning:Rn},le.createElement("div",{className:ot()(De.list,ki)},!!ni.length&&ni.map((qt,Gt)=>{const{name:li,id:pt,identifier:yn,power:ii,cover_image_id:Ti,pic:zt}=qt;return le.createElement("div",{className:De.wrap,key:pt,style:{width:oi,marginRight:(1+Gt)%Vt===0?0:Ut+$n,marginBottom:It}},le.createElement("a",{target:"_blank",href:`/shixuns/${yn}/challenges`,className:De.li,onClick:xn=>{xn.preventDefault(),yi&&(0,ft.L9)([yi]),ii&&(0,ft.xg)(`/shixuns/${yn}/challenges`)}},le.createElement("div",{className:De.img},le.createElement("img",{className:De.cover,src:`${zt}`}),qt.is_jupyter&&le.createElement("img",{className:De.sign,src:xt}),qt.is_jupyter_lab&&le.createElement("img",{className:De.sign,src:at}),qt.is_unity_3d&&le.createElement("img",{className:De.sign,src:wt})),le.createElement("div",{className:De.name},le.createElement(Ze.Z,{title:li||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},le.createElement("span",{className:De.e},li||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),le.createElement("div",{className:De.tags},le.createElement(Ze.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},le.createElement("span",null,le.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),le.createElement("span",null,qt.challenges_count))),!!qt.myshixuns_count&&le.createElement(Ze.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},le.createElement("span",null,le.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),le.createElement("span",null,qt.myshixuns_count))),le.createElement(Ze.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},le.createElement("span",null,le.createElement("span",null,qt.level))),le.createElement("div",{className:De.rate},le.createElement(nt.Z,{allowHalf:!0,disabled:!0,defaultValue:qt.score_info}),le.createElement("span",null,"\xA0",qt.score_info?`${qt.score_info}\u5206`:"5\u5206")))),!ii&&le.createElement("div",{className:De.lockWrap},le.createElement("img",{src:`${rt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),le.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!ni.length&&le.createElement(Mt.Z,null)))},pn={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf"},fn=de(69669),gn=de(59301),ut=({className:ki,dataSource:ni=[],col:Vt=4,right:Ut,bottom:It=23,precision:$n=0,wrapWidth:Yn=1200,trackEventItems:yi,loading:Rn,onRemove:oi=()=>{},isCurrent:qt=!0,showAlias:Gt=!1})=>{const li=Math.floor((Yn-(Vt-1)*Ut)/Vt),pt=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}];return gn.createElement(Re.Z,{spinning:Rn},gn.createElement("div",{className:ot()(pn.list,ki)},!!(ni!=null&&ni.length)&&(ni==null?void 0:ni.map((yn,ii)=>{var Ti;const{name:zt,id:xn,identifier:vi,featured:nn,school_name:_e,image_url:Ni,excellent:hi,is_plan:Pn}=yn;return gn.createElement("div",{key:xn,className:pn.wrap,style:{width:li,marginRight:(1+ii)%Vt===0?0:Ut+$n,marginBottom:It}},gn.createElement("a",{className:pn.li,onClick:Yi=>{Yi.preventDefault(),Yi.stopPropagation(),yi&&(0,ft.L9)([yi]),(0,ft.xg)(`/paths/${vi}`)}},gn.createElement("div",{className:pn.img},gn.createElement("img",{className:pn.cover,src:`${Ni}`}),qt&&(0,fn.bg)()&&(yn==null?void 0:yn.studying)&&gn.createElement("div",{className:`${pn.movebq} user-path-items`,onClick:Yi=>{Yi.stopPropagation(),oi(yn)}},gn.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),gn.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Ti=yn==null?void 0:yn.subject_tags)==null?void 0:Ti.map((Yi,Qi)=>{var er,Tn;if(Qi===0){const $i=(er=pt.find(Vr=>Vr.name==Yi))==null?void 0:er.swimg;return gn.createElement("img",{className:pn.sign,src:$i,style:{left:"-4px"}})}const Zt=(Tn=pt.find($i=>$i.name==Yi))==null?void 0:Tn.ptimg;return gn.createElement("img",{className:pn.sign,src:Zt,style:{left:`${48+52*(Qi-1)+2*Qi}px`}})}),gn.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(yn==null?void 0:yn.excellent)&&gn.createElement("div",{className:pn.bq},"\u5F00\u653E\u8BFE\u7A0B"))),gn.createElement("div",{className:pn.name},gn.createElement(Ze.Z,{title:Gt&&(yn!=null&&yn.excellent_alias_name)?gn.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${zt}`,gn.createElement("br",null),gn.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${yn==null?void 0:yn.excellent_alias_name}`)):zt},gn.createElement("span",{className:pn.e},Gt&&(yn==null?void 0:yn.excellent_alias_name)||zt))),gn.createElement(Ze.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${_e}`},gn.createElement("div",{className:pn.unit},gn.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),_e)),gn.createElement("div",{className:pn.tags},gn.createElement("div",null,gn.createElement(Ze.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},gn.createElement("span",null,gn.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),gn.createElement("span",null,yn.stages_count))),gn.createElement(Ze.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},gn.createElement("span",null,gn.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),gn.createElement("span",null,yn.members_count)))))))})),!ni.length&&gn.createElement(Mt.Z,null)))},it={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},an="data:image/png;base64,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",mn=de(59301),un=({className:ki,dataSource:ni=[],col:Vt=4,right:Ut,bottom:It=23,precision:$n=0,wrapWidth:Yn=1200,trackEventItems:yi,loading:Rn,handleVery:oi=()=>!0})=>{const qt=Math.floor((Yn-(Vt-1)*Ut)/Vt);return mn.createElement(Re.Z,{spinning:Rn},mn.createElement("div",{className:ot()(it.list,ki)},!!ni.length&&ni.map((Gt,li)=>{const{subject_identifier:pt,id:yn,identifier:ii,power:Ti}=Gt,zt=Gt.is_public!=0&&Gt.is_public;return mn.createElement("div",{className:it.wrap,key:yn,style:{width:qt,marginRight:(1+li)%Vt===0?0:Ut+$n,marginBottom:It}},mn.createElement("a",{className:it.li,onClick:xn=>{xn.preventDefault(),oi(Gt==null?void 0:Gt.first_category_url)&&(yi&&(0,ft.L9)([yi]),(0,ft.xg)(Gt.first_category_url))}},mn.createElement("div",{className:it.top},mn.createElement(Ze.Z,{title:Gt.name},mn.createElement("div",{className:it.name},Gt.name)),mn.createElement("img",{className:it.img,src:rt.Z.IMG_SERVER+"/images/"+Gt.avatar_url}),mn.createElement("div",{className:it.text,title:Gt.creator},Gt.creator),pt&&mn.createElement("div",{className:it.btns},mn.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),mn.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),zt&&mn.createElement("div",{className:it.sign},"\u516C\u5F00")),mn.createElement("div",{className:it.bottom},Gt.visits>0&&mn.createElement(Ze.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},mn.createElement("span",null,mn.createElement("i",{className:"iconfont icon-liulanyan"}),mn.createElement("span",null,Gt.visits))),Gt.course_members_count>0&&mn.createElement(Ze.Z,{title:"\u6210\u5458",placement:"bottom"},mn.createElement("span",null,mn.createElement("i",{className:"iconfont icon-chengyuan"}),Gt.course_members_count)),Gt.tasks_count>0&&mn.createElement(Ze.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},mn.createElement("span",null,mn.createElement("i",{className:"iconfont icon-zuoye"}),Gt.tasks_count)),Gt.is_end?mn.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):mn.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Gt.is_accessible&&mn.createElement("div",{className:it.lockWrap},mn.createElement("img",{src:`${rt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),mn.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!ni.length&&mn.createElement(Mt.Z,null)))},on={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},Bn=de(71570),si=({dataSource:ki=[],value:ni,onChange:Vt,className:Ut,style:It={},tabBarExtraContent:$n})=>le.createElement("div",{className:ot()(on.tabs,Ut),style:It},le.createElement("div",{className:on.tabsWrap},ki.map((Yn,yi)=>!(Yn!=null&&Yn.hide)&&le.createElement("aside",{className:on.tab,onClick:()=>{Vt(Yn.id),Yn.link&&Bn.history.push(Yn.link)},key:yi},le.createElement("div",{className:ni===Yn.id?on.active:""},Yn.name),(Yn==null?void 0:Yn.resetCount)==null&&(Yn==null?void 0:Yn.total)!==void 0&&le.createElement("span",null,"\uFF08",Yn==null?void 0:Yn.total,"\uFF09"),(Yn==null?void 0:Yn.resetCount)!==void 0&&(Yn==null?void 0:Yn.total)!==void 0&&le.createElement(Ze.Z,{title:(Yn==null?void 0:Yn.tip)!=null?Yn==null?void 0:Yn.tip:""},le.createElement("span",{style:{color:"#9096A3"}},"\uFF08",le.createElement("span",{style:{color:"#000"}},Yn==null?void 0:Yn.resetCount),"/",le.createElement("span",null,Yn==null?void 0:Yn.total),"\uFF09"))))),le.createElement("div",{className:on.tabBar},$n)),qn=({className:ki,style:ni={},children:Vt})=>le.createElement("div",{className:ot()(ki),style:ni},Vt),Ei={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},$e=de(75727),Fe=de(93041);const Ne=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Ke=({sortValue:ki,dropValue:ni,className:Vt,onSort:Ut,onDrop:It,dataSource:$n=Ne})=>{var Yn;return le.createElement("div",{className:ot()(Ei.orderWrap,Vt)},le.createElement($e.Z,{dropdownRender:()=>le.createElement(Fe.default,null,$n.map((yi,Rn)=>le.createElement(Fe.default.Item,{key:Rn,onClick:()=>It(yi.id)},yi.name)))},le.createElement("span",{className:Ei.orderTextWrap},(Yn=$n.find(yi=>ni===yi.id))==null?void 0:Yn.name)),le.createElement("span",{className:Ei.orderIconWrap},le.createElement("span",{className:Ei.orderAsc},le.createElement("i",{className:ki==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Ei.cursorPointer} ${Ei.active}`:`iconfont icon-sanjiaoxing-up font12 ${Ei.cursorPointer}`,onClick:()=>Ut(ki==="asc"?"desc":"asc")})),le.createElement("span",{className:Ei.orderDesc},le.createElement("i",{className:ki==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Ei.cursorPointer} ${Ei.active}`:`iconfont icon-sanjiaoxing-down font12 ${Ei.cursorPointer}`,onClick:()=>Ut(ki==="asc"?"desc":"asc")}))))},Le={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},At=de(99571),Lt=Object.defineProperty,tn=Object.getOwnPropertySymbols,$t=Object.prototype.hasOwnProperty,Ht=Object.prototype.propertyIsEnumerable,rn=(ki,ni,Vt)=>ni in ki?Lt(ki,ni,{enumerable:!0,configurable:!0,writable:!0,value:Vt}):ki[ni]=Vt,vn=(ki,ni)=>{for(var Vt in ni||(ni={}))$t.call(ni,Vt)&&rn(ki,Vt,ni[Vt]);if(tn)for(var Vt of tn(ni))Ht.call(ni,Vt)&&rn(ki,Vt,ni[Vt]);return ki},cn=(ki,ni)=>{var Vt={};for(var Ut in ki)$t.call(ki,Ut)&&ni.indexOf(Ut)<0&&(Vt[Ut]=ki[Ut]);if(ki!=null&&tn)for(var Ut of tn(ki))ni.indexOf(Ut)<0&&Ht.call(ki,Ut)&&(Vt[Ut]=ki[Ut]);return Vt},wn=(ki,ni,Vt)=>new Promise((Ut,It)=>{var $n=Rn=>{try{yi(Vt.next(Rn))}catch(oi){It(oi)}},Yn=Rn=>{try{yi(Vt.throw(Rn))}catch(oi){It(oi)}},yi=Rn=>Rn.done?Ut(Rn.value):Promise.resolve(Rn.value).then($n,Yn);yi((Vt=Vt.apply(ki,ni)).next())}),Ft=ki=>{var ni=ki,{className:Vt,style:Ut,children:It,loading:$n=!1,openLoading:Yn,onClick:yi=()=>{},size:Rn="middle",shape:oi="round"}=ni,qt=cn(ni,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Gt,li]=(0,le.useState)(!1);return le.createElement(At.ZP,vn({onClick:(0,Je.throttle)(pt=>wn(void 0,null,function*(){Yn&&li(!0);try{yield yi(pt)}catch(yn){console.log("error",yn)}Yn&&li(!1)}),2e3,{leading:!0,trailing:!1}),className:ot()(Le.btn,Le[`${Rn}-${oi}`],Vt),style:Ut,size:Rn,shape:oi,loading:Gt||$n},qt),It)},jn={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},En=({className:ki,style:ni,children:Vt=null,onClick:Ut,title:It})=>le.createElement("div",{className:ot()(jn.head,ki),style:ni},le.createElement("span",{className:"primary-hover",onClick:Ut},le.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),le.createElement("b",{title:It},It),le.createElement("div",{className:jn.node},Vt)),Jt={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},Gn=({confirmShow:ki=!0,confirmTitle:ni,confirmClick:Vt,cancelShow:Ut=!0,cancelTitle:It,cancelClick:$n,className:Yn,style:yi,confirmLoading:Rn=!1})=>le.createElement("div",{className:ot()(Jt.btns,Yn),style:yi},ki&&le.createElement(At.ZP,{loading:Rn,onClick:Vt,type:"primary",className:Jt.confirm},ni),Ut&&le.createElement(At.ZP,{onClick:$n,className:Jt.cancel},It)),mt={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},Cn=({className:ki,style:ni={},LeftContent:Vt,children:Ut,RightContent:It})=>le.createElement("div",{className:ot()(mt.fixedBottom,ki),style:ni},le.createElement("div",{className:mt.wrap},le.createElement("div",{className:mt.left},Vt),le.createElement("div",{className:mt.center},Ut),le.createElement("div",{className:mt.right},It))),jt={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},Hi=({className:ki,style:ni={},dataSource:Vt=[]})=>le.createElement("div",{className:ot()(jt.crumbs,ki),style:ni},Vt.map((Ut,It)=>It<Vt.length-1?le.createElement(le.Fragment,{key:It},Ut.path||Ut.onClick?le.createElement("span",{className:jt.hover,onClick:Ut!=null&&Ut.onClick?Ut.onClick:()=>Bn.history.push(Ut.path)},Ut.name):le.createElement("span",null,Ut.name),le.createElement("span",null,"\xA0",">","\xA0")):le.createElement("span",{key:It,style:{color:"#5F6368"}},Ut.name))),Oi=de(11938),Mn=Object.defineProperty,lr=Object.defineProperties,Gi=Object.getOwnPropertyDescriptors,fi=Object.getOwnPropertySymbols,wi=Object.prototype.hasOwnProperty,Li=Object.prototype.propertyIsEnumerable,Ce=(ki,ni,Vt)=>ni in ki?Mn(ki,ni,{enumerable:!0,configurable:!0,writable:!0,value:Vt}):ki[ni]=Vt,Ci=(ki,ni)=>{for(var Vt in ni||(ni={}))wi.call(ni,Vt)&&Ce(ki,Vt,ni[Vt]);if(fi)for(var Vt of fi(ni))Li.call(ni,Vt)&&Ce(ki,Vt,ni[Vt]);return ki},Bi=(ki,ni)=>lr(ki,Gi(ni)),Ri=(ki,ni)=>{var Vt={};for(var Ut in ki)wi.call(ki,Ut)&&ni.indexOf(Ut)<0&&(Vt[Ut]=ki[Ut]);if(ki!=null&&fi)for(var Ut of fi(ki))ni.indexOf(Ut)<0&&Li.call(ki,Ut)&&(Vt[Ut]=ki[Ut]);return Vt};const{Countdown:Wn}=Oi.default;var ti=ki=>{var ni=ki,{onChange:Vt}=ni,Ut=Ri(ni,["onChange"]);const[It,$n]=(0,le.useState)(null);(0,le.useEffect)(()=>{typeof It=="number"&&It>=0&&Vt(It)},[It]);const Yn=yi=>{const Rn=Math.floor(yi/1e3);$n(Rn)};return le.createElement(Wn,Bi(Ci({},Ut),{onChange:Yn}))}},23206:function(ze,be,de){"use strict";de.d(be,{Z:function(){return Me}});var le=de(59301);function Me(Ie,Pe){const Ge=(0,le.useRef)();(0,le.useEffect)(()=>{Ge.current=Ie}),(0,le.useEffect)(()=>{function Oe(){Ge.current()}if(Pe!==null){let Ve=setInterval(Oe,Pe);return()=>clearInterval(Ve)}},[Pe])}},12062:function(ze,be,de){"use strict";de.r(be),de.d(be,{default:function(){return jn}});var le=de(59301),Me=de(33756),Ie=de.n(Me),Pe=de(71570),Ge={box:"box___JDRma",question_buuton:"question_buuton___tVuIm",selectQuestion:"selectQuestion___xdvxF",addQuestion:"addQuestion___FQqbC",submit_button:"submit_button___NUmmN"},Oe=de(6767),Ve=de(29787),ot=de(62673),Je=de(99571),Xe=de(89392),vt={modalContent:"modalContent___hC3en",modalContentLeft:"modalContentLeft___v0x0I",green:"green___pAmUz",textArea:"textArea___ucgCJ",red:"red___eb0mt",row:"row___td54s",html:"html___F0iOy",line:"line___I6TCQ",submit_button:"submit_button___JCIit",Drawrap:"Drawrap___EoEUV",iframe:"iframe___SOG0q",c:"c___b2vnF",cpp:"cpp___P7I43",java:"java___WVWs5",python:"python___jYtaY"},st=de(79074),_t=Object.defineProperty,Ue=Object.defineProperties,te=Object.getOwnPropertyDescriptors,ne=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,pe=(dn,En,Jt)=>En in dn?_t(dn,En,{enumerable:!0,configurable:!0,writable:!0,value:Jt}):dn[En]=Jt,Se=(dn,En)=>{for(var Jt in En||(En={}))fe.call(En,Jt)&&pe(dn,Jt,En[Jt]);if(ne)for(var Jt of ne(En))se.call(En,Jt)&&pe(dn,Jt,En[Jt]);return dn},we=(dn,En)=>Ue(dn,te(En)),De=(dn,En,Jt)=>new Promise((ui,Gn)=>{var mt=jt=>{try{Cn(Jt.next(jt))}catch(mi){Gn(mi)}},On=jt=>{try{Cn(Jt.throw(jt))}catch(mi){Gn(mi)}},Cn=jt=>jt.done?ui(jt.value):Promise.resolve(jt.value).then(mt,On);Cn((Jt=Jt.apply(dn,En)).next())});const Re=({problemset:dn,dispatch:En,question:Jt,solutionVis:ui,pageCache:Gn,disabled:mt,onSubmit:On})=>{const[Cn,jt]=(0,le.useState)({}),[mi,Hi]=(0,le.useState)([]),Oi=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"];(0,le.useEffect)(()=>{const fi=(0,Xe.cloneDeep)(Jt);jt(fi),Hi(fi.choices)},[Jt]);const Mn=()=>De(void 0,null,function*(){var fi;if(!mi.some(Ce=>Ce==null?void 0:Ce.checked)){Oe.ZP.warning("\u8BF7\u60A8\u4F5C\u7B54\u540E\u518D\u63D0\u4EA4");return}const wi=(fi=mi==null?void 0:mi.filter(Ce=>Ce==null?void 0:Ce.checked))==null?void 0:fi.map(Ce=>Ce==null?void 0:Ce.choice_id),Li=yield On(Jt==null?void 0:Jt.smart_plan_item_bank_id,wi)}),lr=(fi,wi)=>{console.log(fi.target.checked);const Li=mi.map((Ce,Ci)=>we(Se({},Ce),{checked:Ci===wi?fi.target.checked:Ce.checked}));Hi(Li)},Gi=(fi=!1)=>{let wi="";return mi.forEach((Li,Ce)=>{fi?Li!=null&&Li.me_answered&&(wi=wi+Oi[Ce]):Li!=null&&Li.is_answer&&(wi=wi+Oi[Ce])}),wi};return le.createElement("div",null,le.createElement("div",{className:"c-light-primary mb5 font16"},"\u591A\u9009\u9898"),le.createElement(st.Z,{value:Cn==null?void 0:Cn.name}),mi==null?void 0:mi.map((fi,wi)=>{const{is_answer:Li,checked:Ce,choice_text:Ci,me_answered:Bi}=fi;let Ri="";return ui&&Li&&(Ri=vt.green),ui&&!Li&&(Ce||Bi)&&(Ri=vt.red),le.createElement("div",{key:wi,style:{pointerEvents:ui?"none":"auto"},className:`${vt.row} ${Ri}`},le.createElement(ot.default,{disabled:(Jt==null?void 0:Jt.status)=="ended"||(Jt==null?void 0:Jt.is_answered)||(Gn==null?void 0:Gn.is_end),style:{padding:3},onChange:Wn=>lr(Wn,wi),checked:Ce||(fi==null?void 0:fi.me_answered)}),le.createElement("span",null,Oi[wi],".\xA0"),le.createElement(st.Z,{className:vt.html,value:Ci}),ui&&Li&&le.createElement("span",{style:{paddingTop:4},className:"iconfont icon-duigou1 font16"}),ui&&!Li&&(Ce||Bi)&&le.createElement("span",{style:{fontWeight:600,paddingTop:5},className:"iconfont icon-guanbi font16"}))}),ui&&le.createElement(le.Fragment,null,le.createElement("div",{className:vt.line}),le.createElement("div",{className:"c-grey-333 mb5"},le.createElement("b",null,"\u6211\u7684\u7B54\u6848:\xA0"),Gi(!0)||"--"),le.createElement("div",{className:"c-grey-333 mb5"},le.createElement("b",null,"\u6B63\u786E\u7B54\u6848:\xA0"),Gi()),le.createElement("div",{className:"c-grey-333 mb10"},le.createElement("b",null,"\u89E3\u6790:\xA0"),(Cn==null?void 0:Cn.analysis)||"\u6682\u65E0\u89E3\u6790")),(Jt==null?void 0:Jt.status)!="ended"&&!(Jt!=null&&Jt.is_answered)&&!(Gn!=null&&Gn.is_end)&&le.createElement("div",{className:"flex justify-center"},le.createElement(Je.ZP,{className:vt.submit_button,type:"primary",onClick:()=>{Mn()}},"\u63D0\u4EA4")))};var Ze=(0,Pe.connect)(({problemset:dn})=>({problemset:dn}))(Re),nt=de(47889),rt=de(77019),ft=de(59301),xt=Object.defineProperty,at=Object.defineProperties,wt=Object.getOwnPropertyDescriptors,Mt=Object.getOwnPropertySymbols,Xt=Object.prototype.hasOwnProperty,bn=Object.prototype.propertyIsEnumerable,pn=(dn,En,Jt)=>En in dn?xt(dn,En,{enumerable:!0,configurable:!0,writable:!0,value:Jt}):dn[En]=Jt,fn=(dn,En)=>{for(var Jt in En||(En={}))Xt.call(En,Jt)&&pn(dn,Jt,En[Jt]);if(Mt)for(var Jt of Mt(En))bn.call(En,Jt)&&pn(dn,Jt,En[Jt]);return dn},gn=(dn,En)=>at(dn,wt(En)),Nt=(dn,En,Jt)=>new Promise((ui,Gn)=>{var mt=jt=>{try{Cn(Jt.next(jt))}catch(mi){Gn(mi)}},On=jt=>{try{Cn(Jt.throw(jt))}catch(mi){Gn(mi)}},Cn=jt=>jt.done?ui(jt.value):Promise.resolve(jt.value).then(mt,On);Cn((Jt=Jt.apply(dn,En)).next())});const ut=({problemset:dn,dispatch:En,question:Jt,pageCache:ui,solutionVis:Gn,disabled:mt,onSubmit:On})=>{const[Cn,jt]=(0,le.useState)({}),[mi,Hi]=(0,le.useState)([]),[Oi]=(0,Pe.useSearchParams)(),Mn=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"];(0,le.useEffect)(()=>{const fi=(0,Xe.cloneDeep)(Jt);jt(fi),Hi(fi.choices)},[Jt]);const lr=()=>Nt(void 0,null,function*(){var fi;if(!mi.some(Li=>Li==null?void 0:Li.checked)){Oe.ZP.warning("\u8BF7\u60A8\u4F5C\u7B54\u540E\u518D\u63D0\u4EA4");return}const wi=yield On(Jt==null?void 0:Jt.smart_plan_item_bank_id,(fi=mi.find(Li=>Li.checked))==null?void 0:fi.choice_id)}),Gi=(fi,wi)=>{const Li=mi.map((Ce,Ci)=>gn(fn({},Ce),{checked:Ci===wi?fi.target.checked:!1}));Hi(Li)};return ft.createElement("div",null,ft.createElement("div",{className:"c-light-primary mb5 font16"},"\u5355\u9009\u9898"),ft.createElement(st.Z,{value:Cn==null?void 0:Cn.name}),mi==null?void 0:mi.map((fi,wi)=>{const{is_answer:Li,checked:Ce,choice_text:Ci,me_answered:Bi}=fi;let Ri="";return Gn&&Li&&(Ri=vt.green),Gn&&!Li&&(Ce||Bi)&&(Ri=vt.red),ft.createElement("div",{key:wi,style:{pointerEvents:Gn?"none":"auto"},className:`${vt.row} ${Ri}`},ft.createElement(nt.ZP,{disabled:(Jt==null?void 0:Jt.status)=="ended"||(Jt==null?void 0:Jt.is_answered)||(ui==null?void 0:ui.is_end),onChange:Wn=>Gi(Wn,wi),checked:Ce||(fi==null?void 0:fi.me_answered)}),ft.createElement("span",null,Mn[wi],".\xA0"),ft.createElement(st.Z,{className:vt.html,value:Ci}),Gn&&Li&&ft.createElement("span",{style:{paddingTop:4},className:"iconfont icon-duigou1 font16"}),Gn&&!Li&&(Ce||Bi)&&ft.createElement("span",{style:{fontWeight:600,paddingTop:5},className:"iconfont icon-guanbi font16"}))}),Gn&&ft.createElement(le.Fragment,null,ft.createElement("div",{className:vt.line}),ft.createElement("div",{className:"c-grey-333 mb5"},ft.createElement("b",null,"\u6211\u7684\u7B54\u6848:\xA0"),Mn[mi.findIndex(fi=>fi==null?void 0:fi.me_answered)]||"--"),ft.createElement("div",{className:"c-grey-333 mb5"},ft.createElement("b",null,"\u6B63\u786E\u7B54\u6848:\xA0"),Mn[mi.findIndex(fi=>fi==null?void 0:fi.is_answer)]),ft.createElement(rt.Z,{className:"c-grey-333 mb10"},ft.createElement("b",null,"\u89E3\u6790:\xA0"),ft.createElement(st.Z,{className:`${vt.html} font14`,value:(Cn==null?void 0:Cn.analysis)||"\u6682\u65E0\u89E3\u6790"}))),(Jt==null?void 0:Jt.status)!="ended"&&!(Jt!=null&&Jt.is_answered)&&!(ui!=null&&ui.is_end)&&ft.createElement("div",{className:"flex justify-center"},ft.createElement(Je.ZP,{className:vt.submit_button,type:"primary",onClick:()=>{lr()}},"\u63D0\u4EA4")))};var it=(0,Pe.connect)(({problemset:dn})=>({problemset:dn}))(ut),an=Object.defineProperty,mn=Object.defineProperties,Ct=Object.getOwnPropertyDescriptors,un=Object.getOwnPropertySymbols,on=Object.prototype.hasOwnProperty,Bn=Object.prototype.propertyIsEnumerable,Nn=(dn,En,Jt)=>En in dn?an(dn,En,{enumerable:!0,configurable:!0,writable:!0,value:Jt}):dn[En]=Jt,si=(dn,En)=>{for(var Jt in En||(En={}))on.call(En,Jt)&&Nn(dn,Jt,En[Jt]);if(un)for(var Jt of un(En))Bn.call(En,Jt)&&Nn(dn,Jt,En[Jt]);return dn},Pt=(dn,En)=>mn(dn,Ct(En)),qn=(dn,En,Jt)=>new Promise((ui,Gn)=>{var mt=jt=>{try{Cn(Jt.next(jt))}catch(mi){Gn(mi)}},On=jt=>{try{Cn(Jt.throw(jt))}catch(mi){Gn(mi)}},Cn=jt=>jt.done?ui(jt.value):Promise.resolve(jt.value).then(mt,On);Cn((Jt=Jt.apply(dn,En)).next())});const Ei=({problemset:dn,dispatch:En,question:Jt,solutionVis:ui,pageCache:Gn,disabled:mt,onSubmit:On})=>{var Cn,jt;const[mi,Hi]=(0,le.useState)({}),[Oi,Mn]=(0,le.useState)([]),lr=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"];(0,le.useEffect)(()=>{const wi=(0,Xe.cloneDeep)(Jt);Hi(wi),Mn(wi.choices)},[Jt]);const Gi=()=>qn(void 0,null,function*(){var wi;if(!Oi.some(Ce=>Ce==null?void 0:Ce.checked)){Oe.ZP.warning("\u8BF7\u60A8\u4F5C\u7B54\u540E\u518D\u63D0\u4EA4");return}const Li=yield On(Jt==null?void 0:Jt.smart_plan_item_bank_id,(wi=Oi.find(Ce=>Ce.checked))==null?void 0:wi.choice_id)}),fi=(wi,Li)=>{console.log(wi.target.checked);const Ce=Oi.map((Ci,Bi)=>Pt(si({},Ci),{checked:Bi===Li?wi.target.checked:!1}));Mn(Ce)};return le.createElement("div",null,le.createElement("div",{className:"c-light-primary mb5 font16"},"\u5224\u65AD\u9898"),le.createElement(st.Z,{value:mi==null?void 0:mi.name}),Oi==null?void 0:Oi.map((wi,Li)=>{const{is_answer:Ce,checked:Ci,choice_text:Bi,me_answered:Ri}=wi;let Wn="";return ui&&Ce&&(Wn=vt.green),ui&&!Ce&&(Ci||Ri)&&(Wn=vt.red),le.createElement("div",{key:Li,style:{pointerEvents:ui?"none":"auto"},className:`${vt.row} ${Wn}`},le.createElement(nt.ZP,{disabled:(Jt==null?void 0:Jt.status)=="ended"||(Jt==null?void 0:Jt.is_answered)||(Gn==null?void 0:Gn.is_end),onChange:ci=>fi(ci,Li),checked:Ci||(wi==null?void 0:wi.me_answered)}),le.createElement(st.Z,{className:vt.html,value:Bi}),ui&&Ce&&le.createElement("span",{style:{paddingTop:4},className:"iconfont icon-duigou1 font16"}),ui&&!Ce&&(Ci||Ri)&&le.createElement("span",{style:{fontWeight:600,paddingTop:5},className:"iconfont icon-guanbi font16"}))}),ui&&le.createElement(le.Fragment,null,le.createElement("div",{className:vt.line}),le.createElement("div",{className:"c-grey-333 mb5"},le.createElement("b",null,"\u6211\u7684\u7B54\u6848:\xA0"),((Cn=Oi.find(wi=>wi==null?void 0:wi.me_answered))==null?void 0:Cn.choice_text)||"--"),le.createElement("div",{className:"c-grey-333 mb5"},le.createElement("b",null,"\u6B63\u786E\u7B54\u6848:\xA0"),(jt=Oi.find(wi=>wi==null?void 0:wi.is_answer))==null?void 0:jt.choice_text),le.createElement("div",{className:"c-grey-333 mb10"},le.createElement("b",null,"\u89E3\u6790:\xA0"),(mi==null?void 0:mi.analysis)||"\u6682\u65E0\u89E3\u6790")),(Jt==null?void 0:Jt.status)!="ended"&&!(Jt!=null&&Jt.is_answered)&&!(Gn!=null&&Gn.is_end)&&le.createElement("div",{className:"flex justify-center"},le.createElement(Je.ZP,{className:vt.submit_button,type:"primary",onClick:()=>{Gi()}},"\u63D0\u4EA4")))};var $e=(0,Pe.connect)(({problemset:dn})=>({problemset:dn}))(Ei),Fe=de(30641),Ne=de(76011),Qe=de(59301),Ke=(dn,En,Jt)=>new Promise((ui,Gn)=>{var mt=jt=>{try{Cn(Jt.next(jt))}catch(mi){Gn(mi)}},On=jt=>{try{Cn(Jt.throw(jt))}catch(mi){Gn(mi)}},Cn=jt=>jt.done?ui(jt.value):Promise.resolve(jt.value).then(mt,On);Cn((Jt=Jt.apply(dn,En)).next())});const Le=({problemset:dn,dispatch:En,question:Jt,pageCache:ui,solutionVis:Gn,disabled:mt,onSubmit:On})=>{var Cn;const[jt,mi]=(0,le.useState)(!1),[Hi,Oi]=(0,le.useState)(""),Mn=(0,Pe.useParams)(),[lr,Gi]=(0,le.useState)(!1),fi=(0,le.useRef)(null),[wi]=(0,Pe.useSearchParams)();(0,le.useEffect)(()=>{if(jt){const Ci=document.getElementById("iframeSmartPlan");if(Ci){const Bi={type:"showIntelligentTeacherStatus",aiStatus:Jt==null?void 0:Jt.enable_ai_tutor,questionStatus:(Jt==null?void 0:Jt.status)==="ended",pptStatus:ui==null?void 0:ui.is_end};Ci.contentWindow.postMessage(Bi,"*")}}},[Jt,ui==null?void 0:ui.is_end]),(0,le.useEffect)(()=>{const Ci=sessionStorage.getItem("iframeVisible"),Bi=sessionStorage.getItem("iframeUrl");Ci==="true"&&Bi&&(mi(!0),Oi(Bi));const Ri=Wn=>{Wn.state&&Wn.state.isIframePage?mi(!0):mi(!1)};return window.addEventListener("popstate",Ri),()=>{window.removeEventListener("popstate",Ri)}},[]);const Li=()=>Ke(void 0,null,function*(){if(Gi(!0),Jt!=null&&Jt.hack_identifier){const Ci=yield(0,Ne.nF)({id:Jt==null?void 0:Jt.hack_identifier});(Ci==null?void 0:Ci.status)===0&&(Oi(`/myproblems/${Ci==null?void 0:Ci.identifier}?type=smartPlan&exercisesId=${wi.get("id")}&coursesId=${wi.get("course_id")}&questionId=${Jt==null?void 0:Jt.id}&smartPlanItemBankId=${Jt==null?void 0:Jt.smart_plan_item_bank_id}&isMiniprogram=true`),sessionStorage.setItem("iframeVisible","true"),sessionStorage.setItem("iframeUrl",`/myproblems/${Ci==null?void 0:Ci.identifier}?type=smartPlan&exercisesId=${wi.get("id")}&coursesId=${wi.get("course_id")}&questionId=${Jt==null?void 0:Jt.id}&smartPlanItemBankId=${Jt==null?void 0:Jt.smart_plan_item_bank_id}&isMiniprogram=true`),history.pushState({isIframePage:!0},"",window.location.href))}Gi(!1)}),Ce={C:Qe.createElement("span",{className:vt.c},"C"),"C++":Qe.createElement("span",{className:vt.cpp},"C++"),Java:Qe.createElement("span",{className:vt.java},"Java"),Python:Qe.createElement("span",{className:vt.python},"Python")};return Qe.createElement("div",null,Qe.createElement("div",{className:"c-light-primary mb10 font16"},"\u7F16\u7A0B\u9898"),Qe.createElement("div",{style:{color:"#333",fontSize:"16px",marginBottom:"5px"}},Qe.createElement("span",{className:"mr10"},"\u7F16\u7A0B\u8BED\u8A00"),(Cn=Jt==null?void 0:Jt.languages)==null?void 0:Cn.map((Ci,Bi,Ri)=>Qe.createElement(le.Fragment,{key:Bi},Ce[Ci==null?void 0:Ci.language]))),Qe.createElement(st.Z,{value:Jt==null?void 0:Jt.name,className:"mt20 mb20"}),Qe.createElement(st.Z,{value:Jt==null?void 0:Jt.description}),Gn&&Qe.createElement("div",null,Qe.createElement("div",{className:vt.line}),Qe.createElement(rt.Z,{className:"c-grey-333 mb5",align:"middle"},Qe.createElement("b",null,"\u53C2\u8003\u7B54\u6848:\xA0"),Qe.createElement(st.Z,{className:`${vt.html} font14`,value:(Jt==null?void 0:Jt.answer_text)||"\u6682\u65E0\u89E3\u6790"})),Qe.createElement(rt.Z,{className:"c-grey-333 mb10",align:"middle"},Qe.createElement("b",null,"\u89E3\u6790:\xA0"),Qe.createElement(st.Z,{className:`${vt.html} font14`,value:(Jt==null?void 0:Jt.analysis)||"\u6682\u65E0\u89E3\u6790"}))),Qe.createElement("div",{className:"flex justify-center mt20"},Qe.createElement(Je.ZP,{loading:lr,className:vt.submit_button,type:"primary",onClick:()=>Ke(void 0,null,function*(){yield Li(),mi(!0)})},(Jt==null?void 0:Jt.status)!="ended"&&!(ui!=null&&ui.is_end)?"\u8FDB\u5165\u7B54\u9898":"\u67E5\u770B\u7B54\u9898")),Qe.createElement(Fe.Z,{title:"",placement:"bottom",rootClassName:vt.Drawrap,width:"100vw",height:"100vh",closable:!1,onClose:()=>{mi(!1)},maskClosable:!1,open:jt},Qe.createElement(Ve.Z,{spinning:lr},Qe.createElement("div",{style:{width:"100%",height:"100%",minHeight:"100vh"}},jt&&Qe.createElement("iframe",{ref:fi,id:"iframeSmartPlan",style:{width:"100vw",height:"100vh",minWidth:"1200px"},src:Hi,frameBorder:"0"})))))};var At=(0,Pe.connect)(({problemset:dn})=>({problemset:dn}))(Le),Lt=de(24092),tn=de(46010),$t=de(59301),Ht=(dn,En,Jt)=>new Promise((ui,Gn)=>{var mt=jt=>{try{Cn(Jt.next(jt))}catch(mi){Gn(mi)}},On=jt=>{try{Cn(Jt.throw(jt))}catch(mi){Gn(mi)}},Cn=jt=>jt.done?ui(jt.value):Promise.resolve(jt.value).then(mt,On);Cn((Jt=Jt.apply(dn,En)).next())});const rn=({user:dn,officeToken:En,globalSetting:Jt,loading:ui,problemset:Gn,dispatch:mt,pageCache:On,pageNum:Cn,aiImg:jt})=>{var mi,Hi,Oi,Mn,lr;const[Gi,fi]=(0,le.useState)([]),[wi]=(0,Pe.useSearchParams)(),[Li,Ce]=(0,le.useState)(0),[Ci,Bi]=(0,le.useState)(!1),[Ri,Wn]=(0,le.useState)(!(On!=null&&On.allow_answer&&!(On!=null&&On.is_end)&&(En==null?void 0:En.Status)!=="ended")),[ci,ti]=(0,le.useState)(!1),[ki,ni]=(0,le.useState)(!1),[Vt,Ut]=(0,le.useState)({});(0,le.useEffect)(()=>{Wn(!(On!=null&&On.allow_answer&&!(On!=null&&On.is_end)&&(En==null?void 0:En.Status)!=="ended"))},[On==null?void 0:On.allow_answer,!(On!=null&&On.is_end),(En==null?void 0:En.Status)!=="ended"]),(0,le.useEffect)(()=>{(Cn||On!=null&&On.page)&&It()},[Cn,On==null?void 0:On.page,On==null?void 0:On.allow_answer,On==null?void 0:On.has_item_bank,On==null?void 0:On.randomData,,On==null?void 0:On.enable_extra]);const It=()=>Ht(void 0,null,function*(){var yi,Rn,oi,qt,Gt,li;Bi(!0);let pt=yield(0,Lt.ZP)(`/api/courses/${wi.get("course_id")}/smart_plans/${wi.get("id")}/item_banks.json`,{method:"get",params:{position:Cn||(On==null?void 0:On.page)}});(pt==null?void 0:pt.status)==0&&(Ut(pt==null?void 0:pt.data),fi((yi=pt==null?void 0:pt.data)==null?void 0:yi.item_banks),Ce(0),ti((qt=(oi=(Rn=pt==null?void 0:pt.data)==null?void 0:Rn.item_banks)==null?void 0:oi[0])==null?void 0:qt.enable_ai_tutor),$n((li=(Gt=pt==null?void 0:pt.data)==null?void 0:Gt.item_banks)==null?void 0:li[0])),Bi(!1)}),$n=yi=>{if(On!=null&&On.is_end){ni(!0);return}switch(yi==null?void 0:yi.solution_visibility){case"hidden":ni(!1);break;case"show_after_edit":yi!=null&&yi.is_answered?ni(!0):ni(!1);break;case"show_after_submission":(yi==null?void 0:yi.status)==="ended"?ni(!0):ni(!1);break;case"show_after_ended":On!=null&&On.is_end?ni(!0):ni(!1);break}},Yn=(yi,Rn)=>Ht(void 0,null,function*(){const oi=yield(0,Lt.ZP)(`/api/smart_plan_item_banks/${yi}/user_answers.json`,{method:"post",body:{item_choice_id:Rn}});return(oi==null?void 0:oi.status)===0?(yield It(),Oe.ZP.success("\u63D0\u4EA4\u6210\u529F"),!0):!1});return $t.createElement("section",null,$t.createElement(Ve.Z,{spinning:Ci},$t.createElement("div",{className:Ge.box},Gi[Li]&&$t.createElement("div",null,((mi=Gi[Li])==null?void 0:mi.item_type)==="SINGLE"&&$t.createElement(it,{question:Gi[Li],onSubmit:Yn,disabled:Ri,pageCache:On,solutionVis:ki}),((Hi=Gi[Li])==null?void 0:Hi.item_type)==="MULTIPLE"&&$t.createElement(Ze,{question:Gi[Li],onSubmit:Yn,disabled:Ri,pageCache:On,solutionVis:ki}),((Oi=Gi[Li])==null?void 0:Oi.item_type)==="JUDGMENT"&&$t.createElement($e,{question:Gi[Li],onSubmit:Yn,disabled:Ri,pageCache:On,solutionVis:ki}),((Mn=Gi[Li])==null?void 0:Mn.item_type)==="PROGRAM"&&$t.createElement(At,{question:Gi[Li],onSubmit:Yn,disabled:Ri,pageCache:On,solutionVis:ki})),ci&&$t.createElement(tn.Z,{item_bank_ids:[(lr=Gi[Li])==null?void 0:lr.id],isStudent:!0,aiImg:jt}))))};var vn=(0,Pe.connect)(({user:dn,classroomList:En,loading:Jt,globalSetting:ui,problemset:Gn})=>({user:dn,classroomList:En,globalSetting:ui,loading:Jt.effects,problemset:Gn}))(rn),cn=de(59895),wn=de(62957),sn=(dn,En,Jt)=>new Promise((ui,Gn)=>{var mt=jt=>{try{Cn(Jt.next(jt))}catch(mi){Gn(mi)}},On=jt=>{try{Cn(Jt.throw(jt))}catch(mi){Gn(mi)}},Cn=jt=>jt.done?ui(jt.value):Promise.resolve(jt.value).then(mt,On);Cn((Jt=Jt.apply(dn,En)).next())});const Ft=({user:dn,classroomList:En,globalSetting:Jt,loading:ui,dispatch:Gn})=>{const mt=(0,le.useRef)(),On=(0,Pe.useParams)(),[Cn]=(0,Pe.useSearchParams)(),[jt,mi]=(0,le.useState)(),[Hi,Oi]=(0,le.useState)(),[Mn,lr]=(0,le.useState)(),[Gi,fi]=(0,le.useState)(""),[wi,Li]=(0,le.useState)("380rem"),Ce=(0,le.useRef)(Hi),Ci=(0,le.useRef)(),[Bi,Ri]=(0,le.useState)("");Cn.get("educoder_session")&&(0,cn.d8)("_educoder_session",Cn.get("educoder_session"),30),(0,le.useEffect)(()=>{jt!=null&&jt.WebofficeURL&&ni()},[jt]),(0,le.useEffect)(()=>{if(ti(),localStorage.userInfo)try{JSON.parse(localStorage.userInfo).real_name!=="\u6E38\u5BA2"&&(Ci.current=document.createElement("meta"),Ci.current.name="viewport",Ci.current.content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no",document.head.appendChild(Ci.current))}catch(It){}return()=>{document.head.removeChild(Ci.current)}},[]),(0,le.useEffect)(()=>{if(Hi!=null&&Hi.is_end&&!(jt!=null&&jt.IsCreator)){let It=JSON.parse(sessionStorage.getItem("endPPTIds"))||[];It&&(It!=null&&It.includes(Cn.get("id")))||(Oe.ZP.info("\u672C\u6B21\u6388\u8BFE\u5DF2\u7ED3\u675F\uFF0C\u611F\u8C22\u60A8\u7684\u53C2\u4E0E\uFF01"),(It==null?void 0:It.length)===0?It=[Cn.get("id")]:It.push(Cn.get("id")),sessionStorage.setItem("endPPTIds",JSON.stringify(It)))}},[Hi==null?void 0:Hi.is_end,jt]),(0,le.useEffect)(()=>{if(Hi!=null&&Hi.enable_extra&&!(Hi!=null&&Hi.is_end)){let It=JSON.parse(localStorage.getItem("extraPPTIds"))||[];It&&!(It!=null&&It.includes(Cn.get("id")))&&wn.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",icon:null,maskClosable:!1,keyboard:!1,closable:!1,cancelButtonProps:{style:{display:"none"}},title:"\u63D0\u793A",content:"\u606D\u559C\u4F60\u5DF2\u5B8C\u6210\u6240\u6709\u57FA\u7840\u4E60\u9898\uFF01\u8001\u5E08\u8FD8\u51C6\u5907\u4E86\u62D3\u5C55\u4E60\u9898\uFF0C\u53EF\u4EE5\u5F00\u59CB\u6311\u6218\u4E86\u54E6\uFF01",onOk:()=>sn(void 0,null,function*(){(It==null?void 0:It.length)===0?It=[Cn.get("id")]:It.push(Cn.get("id")),localStorage.setItem("extraPPTIds",JSON.stringify(It))})})}},[Hi==null?void 0:Hi.enable_extra]),(0,le.useEffect)(()=>{(Hi==null?void 0:Hi.is_end)===!1&&(jt==null?void 0:jt.Status)=="in_progress"&&Wn()},[Hi==null?void 0:Hi.is_end,jt]),(0,le.useEffect)(()=>{Mn&&ci(Mn)},[Mn]),(0,le.useEffect)(()=>{Ce.current=Hi},[Hi]);const Wn=()=>sn(void 0,null,function*(){const It=yield(0,Lt.ZP)(`/api/courses/${Cn.get("course_id")}/smart_plans/${Cn.get("id")}/start_class.json`,{method:"post"})});(0,le.useEffect)(()=>{var It;((It=dn==null?void 0:dn.userInfo)==null?void 0:It.real_name)==="\u6E38\u5BA2"&&Gn({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!1}})},[dn==null?void 0:dn.userInfo]);function ci(It){return sn(this,null,function*(){yield mt.current.ready();const $n=mt.current.Application;$n.ActivePresentation.SlideShowWindow.View.GotoSlide(It),yield(yield $n.ActivePresentation.SlideShowSettings).Run()})}function ti(){return sn(this,null,function*(){var It;const $n=yield(0,Lt.ZP)(`/api/courses/${Cn.get("course_id")}/smart_plans/${Cn.get("id")}/get_office_token.json`,{method:"get",params:{is_student:!0}}),Yn=((It=$n==null?void 0:$n.data)==null?void 0:It.FileName)||"";document.title=Yn,mi($n==null?void 0:$n.data),ki()})}function ki(){return sn(this,null,function*(){var It,$n;try{const Yn=yield(0,Lt.ZP)(`/api/courses/${Cn.get("course_id")}/smart_plans/${Cn.get("id")}/set_page_cache.json`,{method:"post",body:{type:1}});(It=Yn==null?void 0:Yn.data)!=null&&It.page&&lr(($n=Yn==null?void 0:Yn.data)==null?void 0:$n.page),Oi(Yn==null?void 0:Yn.data)}catch(Yn){}setTimeout(()=>{var Yn;((Yn=Ce.current)==null?void 0:Yn.is_end)===!1&&ki()},1e3)})}function ni(){return sn(this,null,function*(){var It=document.getElementById("weboffice-zone");mt.current=Ie().config({mount:It,url:jt.WebofficeURL,refreshToken:Vt}),mt.current.setToken({token:jt.AccessToken,timeout:25*60*1e3}),Ut()})}function Vt(){return new Promise(function(It){return sn(this,null,function*(){const $n=yield(0,Lt.ZP)(`/api/courses/${Cn.get("course_id")}/smart_plans/${Cn.get("id")}/refresh_office_token.json`,{method:"get",access_token:jt==null?void 0:jt.AccessToken,refresh_token:jt==null?void 0:jt.RefreshToken});It($n==null?void 0:$n.data)})})}function Ut(){return sn(this,null,function*(){yield mt.current.ready();const It=mt.current.Application;console.log("app:",It);const yi=yield(yield(yield It.ActivePresentation).Slides).Count;console.log("count:",yi);const Rn=yield It.ActivePresentation.SlideShowWindow.View.Slide.SlideIndex;console.log("curryPage:",Rn),fi(Rn);try{It.Sub.SlideSelectionChanged=qt=>sn(this,null,function*(){console.log("\u5207\u6362\u540E\u7684\u9875\u7801\uFF1A",qt),fi(qt)})}catch(qt){console.error("\u4E8B\u4EF6\u7ED1\u5B9A\u51FA\u9519:",qt)}It.Sub.SlideShowEnd=()=>sn(this,null,function*(){Li("380rem")});const oi=yield It.ActivePresentation.ExportAsFixedFormat({FixedFormatType:It.Enum.PpFixedFormatType.ppFixedFormatTypeIMG,From:1,To:1});console.log(oi),Ri(oi),setTimeout(()=>sn(this,null,function*(){yield(yield It.ActivePresentation.SlideShowSettings).Run()}),500)})}return le.createElement("div",null,le.createElement("div",{id:"weboffice-zone",style:{height:wi}}),le.createElement(vn,{pageCache:Hi,pageNum:Gi,officeToken:jt,aiImg:Bi}))};var jn=(0,Pe.connect)(({user:dn,classroomList:En,loading:Jt,globalSetting:ui})=>({user:dn,classroomList:En,globalSetting:ui,loading:Jt.effects}))(Ft)},49405:function(ze,be,de){"use strict";de.d(be,{AL:function(){return we},Iy:function(){return vt},Qv:function(){return Ue},ez:function(){return Se},jb:function(){return st}});var le=de(32834),Me=de.n(le),Ie=de(11690),Pe=de.n(Ie);let Ge=1;function Oe(rt,ft){const xt=rt.match(/^(\s+)(?:```)/);if(xt===null)return ft;const at=xt[1];return ft.split(`
`).map(wt=>{const Mt=wt.match(/^\s+/);if(Mt===null)return wt;const[Xt]=Mt;return Xt.length>=at.length?wt.slice(at.length):wt}).join(`
`)}let Ve=[],ot=["<ul>"];const Je=new(Me()).Renderer,Xe=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function vt(){Ve.length=0,ot=["<ul>"]}const st={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function _t(rt,ft,xt,at){if(ft>=rt.length||rt[ft].level<=xt)return ft;var wt=rt[ft];at.push("<li><a href='#"+Ge+wt.anchor+"'>"+wt.text+"</a>"),ft++;var Mt=[];return ft=_t(rt,ft,wt.level,Mt),Mt.length>0&&(at.push("<ul>"),Mt.forEach(function(Xt){at.push(Xt)}),at.push("</ul>")),at.push("</li>"),ft=_t(rt,ft,xt,at),ft}function Ue(){return _t(Ve,0,0,ot),ot.push("</ul>"),ot.join("")}const te={heading(rt){const ft=Xe.exec(rt);if(Ge+=1,ft)return{type:"heading",raw:ft[0],depth:ft[1].length,text:ft[2]}},fences(rt){const ft=this.rules.block.fences.exec(rt);if(ft){const xt=ft[0];let at=Oe(xt,ft[3]||"");const wt=ft[2]?ft[2].trim():ft[2];if(["latex","katex","math"].indexOf(wt)>=0){const Mt=se(),Xt=at;at=Mt,pe[Mt]={type:"block",expression:Xt}}return{type:"code",raw:xt,lang:wt,text:at}}}},ne=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let fe=0;const se=()=>`__special_katext_id_${fe++}__`;let pe={};function Se(){return pe}function we(){fe=0,pe={}}function De(rt){return rt=rt.replace(ne,(ft,xt)=>{const at=se();return pe[at]={type:"inline",expression:xt},at}),rt}const Re=Je.listitem;Je.listitem=function(rt){return Re(De(rt))};const Ze=Je.paragraph;Je.paragraph=function(rt){return Ze(De(rt))};const nt=Je.tablecell;Je.tablecell=function(rt,ft){return nt(De(rt),ft)},Je.code=function(rt,ft,xt){const at=(ft||"").match(/\S*/)[0];return at?["latex","katex","math"].indexOf(at)>=0?`<p class='editormd-tex'>${rt}</p>`:`<pre class="prettyprint linenums"><code class="language-${ft}">${xt?rt:(0,Ie.escape)(rt,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(xt?rt:(0,Ie.escape)(rt,!0))+"</code></pre>"},Je.heading=function(rt,ft,xt){let at=this.options.headerPrefix+xt.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Ve.push({anchor:at,level:ft,text:rt}),"<h"+ft+' id="'+Ge+at+'">'+rt+"</h"+ft+">"},Me().setOptions({silent:!0,gfm:!0,pedantic:!1}),Me().use({tokenizer:te,renderer:Je}),be.ZP=Me()},99498:function(ze,be,de){(function(le){le(de(89780))})(function(le){le.defineOption("placeholder","",function(ot,Je,Xe){var vt=Xe&&Xe!=le.Init;if(Je&&!vt)ot.on("blur",Ge),ot.on("change",Oe),ot.on("swapDoc",Oe),le.on(ot.getInputField(),"compositionupdate",ot.state.placeholderCompose=function(){Pe(ot)}),Oe(ot);else if(!Je&&vt){ot.off("blur",Ge),ot.off("change",Oe),ot.off("swapDoc",Oe),le.off(ot.getInputField(),"compositionupdate",ot.state.placeholderCompose),Me(ot);var st=ot.getWrapperElement();st.className=st.className.replace(" CodeMirror-empty","")}Je&&!ot.hasFocus()&&Ge(ot)});function Me(ot){ot.state.placeholder&&(ot.state.placeholder.parentNode.removeChild(ot.state.placeholder),ot.state.placeholder=null)}function Ie(ot){Me(ot);var Je=ot.state.placeholder=document.createElement("pre");Je.style.cssText="height: 0; overflow: visible",Je.style.direction=ot.getOption("direction"),Je.className="CodeMirror-placeholder CodeMirror-line-like";var Xe=ot.getOption("placeholder");typeof Xe=="string"&&(Xe=document.createTextNode(Xe)),Je.appendChild(Xe),ot.display.lineSpace.insertBefore(Je,ot.display.lineSpace.firstChild)}function Pe(ot){setTimeout(function(){var Je=!1,Xe=ot.getInputField();Xe.nodeName=="TEXTAREA"?Je=!Xe.value:ot.lineCount()==1&&(Je=!/[^\u200b]/.test(Xe.querySelector(".CodeMirror-line").textContent)),Je?Ie(ot):Me(ot)},20)}function Ge(ot){Ve(ot)&&Ie(ot)}function Oe(ot){var Je=ot.getWrapperElement(),Xe=Ve(ot);Je.className=Je.className.replace(" CodeMirror-empty","")+(Xe?" CodeMirror-empty":""),Xe?Ie(ot):Me(ot)}function Ve(ot){return ot.lineCount()===1&&ot.getLine(0)===""}})},25717:function(ze,be,de){(function(le){le(de(89780))})(function(le){var Me={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},Ie=le.Pos;le.defineOption("autoCloseBrackets",!1,function(te,ne,fe){fe&&fe!=le.Init&&(te.removeKeyMap(Ge),te.state.closeBrackets=null),ne&&(Oe(Pe(ne,"pairs")),te.state.closeBrackets=ne,te.addKeyMap(Ge))});function Pe(te,ne){return ne=="pairs"&&typeof te=="string"?te:typeof te=="object"&&te[ne]!=null?te[ne]:Me[ne]}var Ge={Backspace:Je,Enter:Xe};function Oe(te){for(var ne=0;ne<te.length;ne++){var fe=te.charAt(ne),se="'"+fe+"'";Ge[se]||(Ge[se]=Ve(fe))}}Oe(Me.pairs+"`");function Ve(te){return function(ne){return st(ne,te)}}function ot(te){var ne=te.state.closeBrackets;if(!ne||ne.override)return ne;var fe=te.getModeAt(te.getCursor());return fe.closeBrackets||ne}function Je(te){var ne=ot(te);if(!ne||te.getOption("disableInput"))return le.Pass;for(var fe=Pe(ne,"pairs"),se=te.listSelections(),pe=0;pe<se.length;pe++){if(!se[pe].empty())return le.Pass;var Se=_t(te,se[pe].head);if(!Se||fe.indexOf(Se)%2!=0)return le.Pass}for(var pe=se.length-1;pe>=0;pe--){var we=se[pe].head;te.replaceRange("",Ie(we.line,we.ch-1),Ie(we.line,we.ch+1),"+delete")}}function Xe(te){var ne=ot(te),fe=ne&&Pe(ne,"explode");if(!fe||te.getOption("disableInput"))return le.Pass;for(var se=te.listSelections(),pe=0;pe<se.length;pe++){if(!se[pe].empty())return le.Pass;var Se=_t(te,se[pe].head);if(!Se||fe.indexOf(Se)%2!=0)return le.Pass}te.operation(function(){var we=te.lineSeparator()||`
`;te.replaceSelection(we+we,null),te.execCommand("goCharLeft"),se=te.listSelections();for(var De=0;De<se.length;De++){var Re=se[De].head.line;te.indentLine(Re,null,!0),te.indentLine(Re+1,null,!0)}})}function vt(te){var ne=le.cmpPos(te.anchor,te.head)>0;return{anchor:new Ie(te.anchor.line,te.anchor.ch+(ne?-1:1)),head:new Ie(te.head.line,te.head.ch+(ne?1:-1))}}function st(te,ne){var fe=ot(te);if(!fe||te.getOption("disableInput"))return le.Pass;var se=Pe(fe,"pairs"),pe=se.indexOf(ne);if(pe==-1)return le.Pass;for(var Se=Pe(fe,"closeBefore"),we=Pe(fe,"triples"),De=se.charAt(pe+1)==ne,Re=te.listSelections(),Ze=pe%2==0,nt,rt=0;rt<Re.length;rt++){var ft=Re[rt],xt=ft.head,at,wt=te.getRange(xt,Ie(xt.line,xt.ch+1));if(Ze&&!ft.empty())at="surround";else if((De||!Ze)&&wt==ne)De&&Ue(te,xt)?at="both":we.indexOf(ne)>=0&&te.getRange(xt,Ie(xt.line,xt.ch+3))==ne+ne+ne?at="skipThree":at="skip";else if(De&&xt.ch>1&&we.indexOf(ne)>=0&&te.getRange(Ie(xt.line,xt.ch-2),xt)==ne+ne){if(xt.ch>2&&/\bstring/.test(te.getTokenTypeAt(Ie(xt.line,xt.ch-2))))return le.Pass;at="addFour"}else if(De){var Mt=xt.ch==0?" ":te.getRange(Ie(xt.line,xt.ch-1),xt);if(!le.isWordChar(wt)&&Mt!=ne&&!le.isWordChar(Mt))at="both";else return le.Pass}else if(Ze&&(wt.length===0||/\s/.test(wt)||Se.indexOf(wt)>-1))at="both";else return le.Pass;if(!nt)nt=at;else if(nt!=at)return le.Pass}var Xt=pe%2?se.charAt(pe-1):ne,bn=pe%2?ne:se.charAt(pe+1);te.operation(function(){if(nt=="skip")te.execCommand("goCharRight");else if(nt=="skipThree")for(var pn=0;pn<3;pn++)te.execCommand("goCharRight");else if(nt=="surround"){for(var fn=te.getSelections(),pn=0;pn<fn.length;pn++)fn[pn]=Xt+fn[pn]+bn;te.replaceSelections(fn,"around"),fn=te.listSelections().slice();for(var pn=0;pn<fn.length;pn++)fn[pn]=vt(fn[pn]);te.setSelections(fn)}else nt=="both"?(te.replaceSelection(Xt+bn,null),te.triggerElectric(Xt+bn),te.execCommand("goCharLeft")):nt=="addFour"&&(te.replaceSelection(Xt+Xt+Xt+Xt,"before"),te.execCommand("goCharRight"))})}function _t(te,ne){var fe=te.getRange(Ie(ne.line,ne.ch-1),Ie(ne.line,ne.ch+1));return fe.length==2?fe:null}function Ue(te,ne){var fe=te.getTokenAt(Ie(ne.line,ne.ch+1));return/\bstring/.test(fe.type)&&fe.start==ne.ch&&(ne.ch==0||!/\bstring/.test(te.getTokenTypeAt(ne)))}})},6313:function(ze,be,de){(function(le){le(de(89780),de(32855))})(function(le){le.defineOption("autoCloseTags",!1,function(Je,Xe,vt){if(vt!=le.Init&&vt&&Je.removeKeyMap("autoCloseTags"),!!Xe){var st={name:"autoCloseTags"};(typeof Xe!="object"||Xe.whenClosing!==!1)&&(st["'/'"]=function(_t){return Oe(_t)}),(typeof Xe!="object"||Xe.whenOpening!==!1)&&(st["'>'"]=function(_t){return Pe(_t)}),Je.addKeyMap(st)}});var Me=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Ie=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function Pe(Je){if(Je.getOption("disableInput"))return le.Pass;for(var Xe=Je.listSelections(),vt=[],st=Je.getOption("autoCloseTags"),_t=0;_t<Xe.length;_t++){if(!Xe[_t].empty())return le.Pass;var Ue=Xe[_t].head,te=Je.getTokenAt(Ue),ne=le.innerMode(Je.getMode(),te.state),fe=ne.state,se=ne.mode.xmlCurrentTag&&ne.mode.xmlCurrentTag(fe),pe=se&&se.name;if(!pe)return le.Pass;var Se=ne.mode.configuration=="html",we=typeof st=="object"&&st.dontCloseTags||Se&&Me,De=typeof st=="object"&&st.indentTags||Se&&Ie;te.end>Ue.ch&&(pe=pe.slice(0,pe.length-te.end+Ue.ch));var Re=pe.toLowerCase();if(!pe||te.type=="string"&&(te.end!=Ue.ch||!/[\"\']/.test(te.string.charAt(te.string.length-1))||te.string.length==1)||te.type=="tag"&&se.close||te.string.indexOf("/")==Ue.ch-te.start-1||we&&Ve(we,Re)>-1||ot(Je,ne.mode.xmlCurrentContext&&ne.mode.xmlCurrentContext(fe)||[],pe,Ue,!0))return le.Pass;var Ze=typeof st=="object"&&st.emptyTags;if(Ze&&Ve(Ze,pe)>-1){vt[_t]={text:"/>",newPos:le.Pos(Ue.line,Ue.ch+2)};continue}var nt=De&&Ve(De,Re)>-1;vt[_t]={indent:nt,text:">"+(nt?`
`:"")+"</"+pe+">",newPos:nt?le.Pos(Ue.line+1,0):le.Pos(Ue.line,Ue.ch+1)}}for(var rt=typeof st=="object"&&st.dontIndentOnAutoClose,_t=Xe.length-1;_t>=0;_t--){var ft=vt[_t];Je.replaceRange(ft.text,Xe[_t].head,Xe[_t].anchor,"+insert");var xt=Je.listSelections().slice(0);xt[_t]={head:ft.newPos,anchor:ft.newPos},Je.setSelections(xt),!rt&&ft.indent&&(Je.indentLine(ft.newPos.line,null,!0),Je.indentLine(ft.newPos.line+1,null,!0))}}function Ge(Je,Xe){for(var vt=Je.listSelections(),st=[],_t=Xe?"/":"</",Ue=Je.getOption("autoCloseTags"),te=typeof Ue=="object"&&Ue.dontIndentOnSlash,ne=0;ne<vt.length;ne++){if(!vt[ne].empty())return le.Pass;var fe=vt[ne].head,se=Je.getTokenAt(fe),pe=le.innerMode(Je.getMode(),se.state),Se=pe.state;if(Xe&&(se.type=="string"||se.string.charAt(0)!="<"||se.start!=fe.ch-1))return le.Pass;var we,De=pe.mode.name!="xml"&&Je.getMode().name=="htmlmixed";if(De&&pe.mode.name=="javascript")we=_t+"script";else if(De&&pe.mode.name=="css")we=_t+"style";else{var Re=pe.mode.xmlCurrentContext&&pe.mode.xmlCurrentContext(Se);if(!Re||Re.length&&ot(Je,Re,Re[Re.length-1],fe))return le.Pass;we=_t+Re[Re.length-1]}Je.getLine(fe.line).charAt(se.end)!=">"&&(we+=">"),st[ne]=we}if(Je.replaceSelections(st),vt=Je.listSelections(),!te)for(var ne=0;ne<vt.length;ne++)(ne==vt.length-1||vt[ne].head.line<vt[ne+1].head.line)&&Je.indentLine(vt[ne].head.line)}function Oe(Je){return Je.getOption("disableInput")?le.Pass:Ge(Je,!0)}le.commands.closeTag=function(Je){return Ge(Je)};function Ve(Je,Xe){if(Je.indexOf)return Je.indexOf(Xe);for(var vt=0,st=Je.length;vt<st;++vt)if(Je[vt]==Xe)return vt;return-1}function ot(Je,Xe,vt,st,_t){if(!le.scanForClosingTag)return!1;var Ue=Math.min(Je.lastLine()+1,st.line+500),te=le.scanForClosingTag(Je,st,null,Ue);if(!te||te.tag!=vt)return!1;for(var ne=_t?1:0,fe=Xe.length-1;fe>=0&&Xe[fe]==vt;fe--)++ne;st=te.to;for(var fe=1;fe<ne;fe++){var se=le.scanForClosingTag(Je,st,null,Ue);if(!se||se.tag!=vt)return!1;st=se.to}return!0}})},32855:function(ze,be,de){(function(le){le(de(89780))})(function(le){"use strict";var Me=le.Pos;function Ie(fe,se){return fe.line-se.line||fe.ch-se.ch}var Pe="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",Ge=Pe+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Oe=new RegExp("<(/?)(["+Pe+"]["+Ge+"]*)","g");function Ve(fe,se,pe,Se){this.line=se,this.ch=pe,this.cm=fe,this.text=fe.getLine(se),this.min=Se?Math.max(Se.from,fe.firstLine()):fe.firstLine(),this.max=Se?Math.min(Se.to-1,fe.lastLine()):fe.lastLine()}function ot(fe,se){var pe=fe.cm.getTokenTypeAt(Me(fe.line,se));return pe&&/\btag\b/.test(pe)}function Je(fe){if(!(fe.line>=fe.max))return fe.ch=0,fe.text=fe.cm.getLine(++fe.line),!0}function Xe(fe){if(!(fe.line<=fe.min))return fe.text=fe.cm.getLine(--fe.line),fe.ch=fe.text.length,!0}function vt(fe){for(;;){var se=fe.text.indexOf(">",fe.ch);if(se==-1){if(Je(fe))continue;return}if(!ot(fe,se+1)){fe.ch=se+1;continue}var pe=fe.text.lastIndexOf("/",se),Se=pe>-1&&!/\S/.test(fe.text.slice(pe+1,se));return fe.ch=se+1,Se?"selfClose":"regular"}}function st(fe){for(;;){var se=fe.ch?fe.text.lastIndexOf("<",fe.ch-1):-1;if(se==-1){if(Xe(fe))continue;return}if(!ot(fe,se+1)){fe.ch=se;continue}Oe.lastIndex=se,fe.ch=se;var pe=Oe.exec(fe.text);if(pe&&pe.index==se)return pe}}function _t(fe){for(;;){Oe.lastIndex=fe.ch;var se=Oe.exec(fe.text);if(!se){if(Je(fe))continue;return}if(!ot(fe,se.index+1)){fe.ch=se.index+1;continue}return fe.ch=se.index+se[0].length,se}}function Ue(fe){for(;;){var se=fe.ch?fe.text.lastIndexOf(">",fe.ch-1):-1;if(se==-1){if(Xe(fe))continue;return}if(!ot(fe,se+1)){fe.ch=se;continue}var pe=fe.text.lastIndexOf("/",se),Se=pe>-1&&!/\S/.test(fe.text.slice(pe+1,se));return fe.ch=se+1,Se?"selfClose":"regular"}}function te(fe,se){for(var pe=[];;){var Se=_t(fe),we,De=fe.line,Re=fe.ch-(Se?Se[0].length:0);if(!Se||!(we=vt(fe)))return;if(we!="selfClose")if(Se[1]){for(var Ze=pe.length-1;Ze>=0;--Ze)if(pe[Ze]==Se[2]){pe.length=Ze;break}if(Ze<0&&(!se||se==Se[2]))return{tag:Se[2],from:Me(De,Re),to:Me(fe.line,fe.ch)}}else pe.push(Se[2])}}function ne(fe,se){for(var pe=[];;){var Se=Ue(fe);if(!Se)return;if(Se=="selfClose"){st(fe);continue}var we=fe.line,De=fe.ch,Re=st(fe);if(!Re)return;if(Re[1])pe.push(Re[2]);else{for(var Ze=pe.length-1;Ze>=0;--Ze)if(pe[Ze]==Re[2]){pe.length=Ze;break}if(Ze<0&&(!se||se==Re[2]))return{tag:Re[2],from:Me(fe.line,fe.ch),to:Me(we,De)}}}}le.registerHelper("fold","xml",function(fe,se){for(var pe=new Ve(fe,se.line,0);;){var Se=_t(pe);if(!Se||pe.line!=se.line)return;var we=vt(pe);if(!we)return;if(!Se[1]&&we!="selfClose"){var De=Me(pe.line,pe.ch),Re=te(pe,Se[2]);return Re&&Ie(Re.from,De)>0?{from:De,to:Re.from}:null}}}),le.findMatchingTag=function(fe,se,pe){var Se=new Ve(fe,se.line,se.ch,pe);if(!(Se.text.indexOf(">")==-1&&Se.text.indexOf("<")==-1)){var we=vt(Se),De=we&&Me(Se.line,Se.ch),Re=we&&st(Se);if(!(!we||!Re||Ie(Se,se)>0)){var Ze={from:Me(Se.line,Se.ch),to:De,tag:Re[2]};return we=="selfClose"?{open:Ze,close:null,at:"open"}:Re[1]?{open:ne(Se,Re[2]),close:Ze,at:"close"}:(Se=new Ve(fe,De.line,De.ch,pe),{open:Ze,close:te(Se,Re[2]),at:"open"})}}},le.findEnclosingTag=function(fe,se,pe,Se){for(var we=new Ve(fe,se.line,se.ch,pe);;){var De=ne(we,Se);if(!De)break;var Re=new Ve(fe,se.line,se.ch,pe),Ze=te(Re,De.tag);if(Ze)return{open:De,close:Ze}}},le.scanForClosingTag=function(fe,se,pe,Se){var we=new Ve(fe,se.line,se.ch,Se?{from:0,to:Se}:null);return te(we,pe)}})},89780:function(ze){(function(be,de){ze.exports=de()})(this,function(){"use strict";var be=navigator.userAgent,de=navigator.platform,le=/gecko\/\d/i.test(be),Me=/MSIE \d/.test(be),Ie=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(be),Pe=/Edge\/(\d+)/.exec(be),Ge=Me||Ie||Pe,Oe=Ge&&(Me?document.documentMode||6:+(Pe||Ie)[1]),Ve=!Pe&&/WebKit\//.test(be),ot=Ve&&/Qt\/\d+\.\d+/.test(be),Je=!Pe&&/Chrome\//.test(be),Xe=/Opera\//.test(be),vt=/Apple Computer/.test(navigator.vendor),st=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(be),_t=/PhantomJS/.test(be),Ue=!Pe&&/AppleWebKit/.test(be)&&/Mobile\/\w+/.test(be),te=/Android/.test(be),ne=Ue||te||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(be),fe=Ue||/Mac/.test(de),se=/\bCrOS\b/.test(be),pe=/win/i.test(de),Se=Xe&&be.match(/Version\/(\d*\.\d*)/);Se&&(Se=Number(Se[1])),Se&&Se>=15&&(Xe=!1,Ve=!0);var we=fe&&(ot||Xe&&(Se==null||Se<12.11)),De=le||Ge&&Oe>=9;function Re(ie){return new RegExp("(^|\\s)"+ie+"(?:$|\\s)\\s*")}var Ze=function(ie,ae){var ve=ie.className,me=Re(ae).exec(ve);if(me){var Ee=ve.slice(me.index+me[0].length);ie.className=ve.slice(0,me.index)+(Ee?me[1]+Ee:"")}};function nt(ie){for(var ae=ie.childNodes.length;ae>0;--ae)ie.removeChild(ie.firstChild);return ie}function rt(ie,ae){return nt(ie).appendChild(ae)}function ft(ie,ae,ve,me){var Ee=document.createElement(ie);if(ve&&(Ee.className=ve),me&&(Ee.style.cssText=me),typeof ae=="string")Ee.appendChild(document.createTextNode(ae));else if(ae)for(var Be=0;Be<ae.length;++Be)Ee.appendChild(ae[Be]);return Ee}function xt(ie,ae,ve,me){var Ee=ft(ie,ae,ve,me);return Ee.setAttribute("role","presentation"),Ee}var at;document.createRange?at=function(ie,ae,ve,me){var Ee=document.createRange();return Ee.setEnd(me||ie,ve),Ee.setStart(ie,ae),Ee}:at=function(ie,ae,ve){var me=document.body.createTextRange();try{me.moveToElementText(ie.parentNode)}catch(Ee){return me}return me.collapse(!0),me.moveEnd("character",ve),me.moveStart("character",ae),me};function wt(ie,ae){if(ae.nodeType==3&&(ae=ae.parentNode),ie.contains)return ie.contains(ae);do if(ae.nodeType==11&&(ae=ae.host),ae==ie)return!0;while(ae=ae.parentNode)}function Mt(){var ie;try{ie=document.activeElement}catch(ae){ie=document.body||null}for(;ie&&ie.shadowRoot&&ie.shadowRoot.activeElement;)ie=ie.shadowRoot.activeElement;return ie}function Xt(ie,ae){var ve=ie.className;Re(ae).test(ve)||(ie.className+=(ve?" ":"")+ae)}function bn(ie,ae){for(var ve=ie.split(" "),me=0;me<ve.length;me++)ve[me]&&!Re(ve[me]).test(ae)&&(ae+=" "+ve[me]);return ae}var pn=function(ie){ie.select()};Ue?pn=function(ie){ie.selectionStart=0,ie.selectionEnd=ie.value.length}:Ge&&(pn=function(ie){try{ie.select()}catch(ae){}});function fn(ie){var ae=Array.prototype.slice.call(arguments,1);return function(){return ie.apply(null,ae)}}function gn(ie,ae,ve){ae||(ae={});for(var me in ie)ie.hasOwnProperty(me)&&(ve!==!1||!ae.hasOwnProperty(me))&&(ae[me]=ie[me]);return ae}function Nt(ie,ae,ve,me,Ee){ae==null&&(ae=ie.search(/[^\s\u00a0]/),ae==-1&&(ae=ie.length));for(var Be=me||0,qe=Ee||0;;){var ht=ie.indexOf(" ",Be);if(ht<0||ht>=ae)return qe+(ae-Be);qe+=ht-Be,qe+=ve-qe%ve,Be=ht+1}}var ut=function(){this.id=null,this.f=null,this.time=0,this.handler=fn(this.onTimeout,this)};ut.prototype.onTimeout=function(ie){ie.id=0,ie.time<=+new Date?ie.f():setTimeout(ie.handler,ie.time-+new Date)},ut.prototype.set=function(ie,ae){this.f=ae;var ve=+new Date+ie;(!this.id||ve<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,ie),this.time=ve)};function it(ie,ae){for(var ve=0;ve<ie.length;++ve)if(ie[ve]==ae)return ve;return-1}var an=50,mn={toString:function(){return"CodeMirror.Pass"}},Ct={scroll:!1},un={origin:"*mouse"},on={origin:"+move"};function Bn(ie,ae,ve){for(var me=0,Ee=0;;){var Be=ie.indexOf(" ",me);Be==-1&&(Be=ie.length);var qe=Be-me;if(Be==ie.length||Ee+qe>=ae)return me+Math.min(qe,ae-Ee);if(Ee+=Be-me,Ee+=ve-Ee%ve,me=Be+1,Ee>=ae)return me}}var Nn=[""];function si(ie){for(;Nn.length<=ie;)Nn.push(Pt(Nn)+" ");return Nn[ie]}function Pt(ie){return ie[ie.length-1]}function qn(ie,ae){for(var ve=[],me=0;me<ie.length;me++)ve[me]=ae(ie[me],me);return ve}function Ei(ie,ae,ve){for(var me=0,Ee=ve(ae);me<ie.length&&ve(ie[me])<=Ee;)me++;ie.splice(me,0,ae)}function $e(){}function Fe(ie,ae){var ve;return Object.create?ve=Object.create(ie):($e.prototype=ie,ve=new $e),ae&&gn(ae,ve),ve}var Ne=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Qe(ie){return/\w/.test(ie)||ie>"\x80"&&(ie.toUpperCase()!=ie.toLowerCase()||Ne.test(ie))}function Ke(ie,ae){return ae?ae.source.indexOf("\\w")>-1&&Qe(ie)?!0:ae.test(ie):Qe(ie)}function Le(ie){for(var ae in ie)if(ie.hasOwnProperty(ae)&&ie[ae])return!1;return!0}var At=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Lt(ie){return ie.charCodeAt(0)>=768&&At.test(ie)}function tn(ie,ae,ve){for(;(ve<0?ae>0:ae<ie.length)&&Lt(ie.charAt(ae));)ae+=ve;return ae}function $t(ie,ae,ve){for(var me=ae>ve?-1:1;;){if(ae==ve)return ae;var Ee=(ae+ve)/2,Be=me<0?Math.ceil(Ee):Math.floor(Ee);if(Be==ae)return ie(Be)?ae:ve;ie(Be)?ve=Be:ae=Be+me}}function Ht(ie,ae,ve,me){if(!ie)return me(ae,ve,"ltr",0);for(var Ee=!1,Be=0;Be<ie.length;++Be){var qe=ie[Be];(qe.from<ve&&qe.to>ae||ae==ve&&qe.to==ae)&&(me(Math.max(qe.from,ae),Math.min(qe.to,ve),qe.level==1?"rtl":"ltr",Be),Ee=!0)}Ee||me(ae,ve,"ltr")}var rn=null;function vn(ie,ae,ve){var me;rn=null;for(var Ee=0;Ee<ie.length;++Ee){var Be=ie[Ee];if(Be.from<ae&&Be.to>ae)return Ee;Be.to==ae&&(Be.from!=Be.to&&ve=="before"?me=Ee:rn=Ee),Be.from==ae&&(Be.from!=Be.to&&ve!="before"?me=Ee:rn=Ee)}return me!=null?me:rn}var cn=function(){var ie="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",ae="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ve(Tt){return Tt<=247?ie.charAt(Tt):1424<=Tt&&Tt<=1524?"R":1536<=Tt&&Tt<=1785?ae.charAt(Tt-1536):1774<=Tt&&Tt<=2220?"r":8192<=Tt&&Tt<=8203?"w":Tt==8204?"b":"L"}var me=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,Ee=/[stwN]/,Be=/[LRr]/,qe=/[Lb1n]/,ht=/[1n]/;function ct(Tt,ln,Dt){this.level=Tt,this.from=ln,this.to=Dt}return function(Tt,ln){var Dt=ln=="ltr"?"L":"R";if(Tt.length==0||ln=="ltr"&&!me.test(Tt))return!1;for(var Hn=Tt.length,Dn=[],Ii=0;Ii<Hn;++Ii)Dn.push(ve(Tt.charCodeAt(Ii)));for(var _i=0,Wi=Dt;_i<Hn;++_i){var sr=Dn[_i];sr=="m"?Dn[_i]=Wi:Wi=sr}for(var Mr=0,Er=Dt;Mr<Hn;++Mr){var Fr=Dn[Mr];Fr=="1"&&Er=="r"?Dn[Mr]="n":Be.test(Fr)&&(Er=Fr,Fr=="r"&&(Dn[Mr]="R"))}for(var oo=1,yr=Dn[0];oo<Hn-1;++oo){var No=Dn[oo];No=="+"&&yr=="1"&&Dn[oo+1]=="1"?Dn[oo]="1":No==","&&yr==Dn[oo+1]&&(yr=="1"||yr=="n")&&(Dn[oo]=yr),yr=No}for(var Ra=0;Ra<Hn;++Ra){var Ps=Dn[Ra];if(Ps==",")Dn[Ra]="N";else if(Ps=="%"){var Wa=void 0;for(Wa=Ra+1;Wa<Hn&&Dn[Wa]=="%";++Wa);for(var zl=Ra&&Dn[Ra-1]=="!"||Wa<Hn&&Dn[Wa]=="1"?"1":"N",hl=Ra;hl<Wa;++hl)Dn[hl]=zl;Ra=Wa-1}}for(var xs=0,$l=Dt;xs<Hn;++xs){var tl=Dn[xs];$l=="L"&&tl=="1"?Dn[xs]="L":Be.test(tl)&&($l=tl)}for(var bs=0;bs<Hn;++bs)if(Ee.test(Dn[bs])){var ea=void 0;for(ea=bs+1;ea<Hn&&Ee.test(Dn[ea]);++ea);for(var Ja=(bs?Dn[bs-1]:Dt)=="L",js=(ea<Hn?Dn[ea]:Dt)=="L",nl=Ja==js?Ja?"L":"R":Dt,Qu=bs;Qu<ea;++Qu)Dn[Qu]=nl;bs=ea-1}for(var Za=[],Du,ns=0;ns<Hn;)if(qe.test(Dn[ns])){var rf=ns;for(++ns;ns<Hn&&qe.test(Dn[ns]);++ns);Za.push(new ct(0,rf,ns))}else{var mu=ns,eu=Za.length,Ul=ln=="rtl"?1:0;for(++ns;ns<Hn&&Dn[ns]!="L";++ns);for(var ba=mu;ba<ns;)if(ht.test(Dn[ba])){mu<ba&&(Za.splice(eu,0,new ct(1,mu,ba)),eu+=Ul);var zs=ba;for(++ba;ba<ns&&ht.test(Dn[ba]);++ba);Za.splice(eu,0,new ct(2,zs,ba)),eu+=Ul,mu=ba}else++ba;mu<ns&&Za.splice(eu,0,new ct(1,mu,ns))}return ln=="ltr"&&(Za[0].level==1&&(Du=Tt.match(/^\s+/))&&(Za[0].from=Du[0].length,Za.unshift(new ct(0,0,Du[0].length))),Pt(Za).level==1&&(Du=Tt.match(/\s+$/))&&(Pt(Za).to-=Du[0].length,Za.push(new ct(0,Hn-Du[0].length,Hn)))),ln=="rtl"?Za.reverse():Za}}();function wn(ie,ae){var ve=ie.order;return ve==null&&(ve=ie.order=cn(ie.text,ae)),ve}var sn=[],Ft=function(ie,ae,ve){if(ie.addEventListener)ie.addEventListener(ae,ve,!1);else if(ie.attachEvent)ie.attachEvent("on"+ae,ve);else{var me=ie._handlers||(ie._handlers={});me[ae]=(me[ae]||sn).concat(ve)}};function jn(ie,ae){return ie._handlers&&ie._handlers[ae]||sn}function dn(ie,ae,ve){if(ie.removeEventListener)ie.removeEventListener(ae,ve,!1);else if(ie.detachEvent)ie.detachEvent("on"+ae,ve);else{var me=ie._handlers,Ee=me&&me[ae];if(Ee){var Be=it(Ee,ve);Be>-1&&(me[ae]=Ee.slice(0,Be).concat(Ee.slice(Be+1)))}}}function En(ie,ae){var ve=jn(ie,ae);if(ve.length)for(var me=Array.prototype.slice.call(arguments,2),Ee=0;Ee<ve.length;++Ee)ve[Ee].apply(null,me)}function Jt(ie,ae,ve){return typeof ae=="string"&&(ae={type:ae,preventDefault:function(){this.defaultPrevented=!0}}),En(ie,ve||ae.type,ie,ae),jt(ae)||ae.codemirrorIgnore}function ui(ie){var ae=ie._handlers&&ie._handlers.cursorActivity;if(ae)for(var ve=ie.curOp.cursorActivityHandlers||(ie.curOp.cursorActivityHandlers=[]),me=0;me<ae.length;++me)it(ve,ae[me])==-1&&ve.push(ae[me])}function Gn(ie,ae){return jn(ie,ae).length>0}function mt(ie){ie.prototype.on=function(ae,ve){Ft(this,ae,ve)},ie.prototype.off=function(ae,ve){dn(this,ae,ve)}}function On(ie){ie.preventDefault?ie.preventDefault():ie.returnValue=!1}function Cn(ie){ie.stopPropagation?ie.stopPropagation():ie.cancelBubble=!0}function jt(ie){return ie.defaultPrevented!=null?ie.defaultPrevented:ie.returnValue==!1}function mi(ie){On(ie),Cn(ie)}function Hi(ie){return ie.target||ie.srcElement}function Oi(ie){var ae=ie.which;return ae==null&&(ie.button&1?ae=1:ie.button&2?ae=3:ie.button&4&&(ae=2)),fe&&ie.ctrlKey&&ae==1&&(ae=3),ae}var Mn=function(){if(Ge&&Oe<9)return!1;var ie=ft("div");return"draggable"in ie||"dragDrop"in ie}(),lr;function Gi(ie){if(lr==null){var ae=ft("span","\u200B");rt(ie,ft("span",[ae,document.createTextNode("x")])),ie.firstChild.offsetHeight!=0&&(lr=ae.offsetWidth<=1&&ae.offsetHeight>2&&!(Ge&&Oe<8))}var ve=lr?ft("span","\u200B"):ft("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ve.setAttribute("cm-text",""),ve}var fi;function wi(ie){if(fi!=null)return fi;var ae=rt(ie,document.createTextNode("A\u062EA")),ve=at(ae,0,1).getBoundingClientRect(),me=at(ae,1,2).getBoundingClientRect();return nt(ie),!ve||ve.left==ve.right?!1:fi=me.right-ve.right<3}var Li=`
b`.split(/\n/).length!=3?function(ie){for(var ae=0,ve=[],me=ie.length;ae<=me;){var Ee=ie.indexOf(`
`,ae);Ee==-1&&(Ee=ie.length);var Be=ie.slice(ae,ie.charAt(Ee-1)=="\r"?Ee-1:Ee),qe=Be.indexOf("\r");qe!=-1?(ve.push(Be.slice(0,qe)),ae+=qe+1):(ve.push(Be),ae=Ee+1)}return ve}:function(ie){return ie.split(/\r\n?|\n/)},Ce=window.getSelection?function(ie){try{return ie.selectionStart!=ie.selectionEnd}catch(ae){return!1}}:function(ie){var ae;try{ae=ie.ownerDocument.selection.createRange()}catch(ve){}return!ae||ae.parentElement()!=ie?!1:ae.compareEndPoints("StartToEnd",ae)!=0},Ci=function(){var ie=ft("div");return"oncopy"in ie?!0:(ie.setAttribute("oncopy","return;"),typeof ie.oncopy=="function")}(),Bi=null;function Ri(ie){if(Bi!=null)return Bi;var ae=rt(ie,ft("span","x")),ve=ae.getBoundingClientRect(),me=at(ae,0,1).getBoundingClientRect();return Bi=Math.abs(ve.left-me.left)>1}var Wn={},ci={};function ti(ie,ae){arguments.length>2&&(ae.dependencies=Array.prototype.slice.call(arguments,2)),Wn[ie]=ae}function ki(ie,ae){ci[ie]=ae}function ni(ie){if(typeof ie=="string"&&ci.hasOwnProperty(ie))ie=ci[ie];else if(ie&&typeof ie.name=="string"&&ci.hasOwnProperty(ie.name)){var ae=ci[ie.name];typeof ae=="string"&&(ae={name:ae}),ie=Fe(ae,ie),ie.name=ae.name}else{if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(ie))return ni("application/xml");if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(ie))return ni("application/json")}return typeof ie=="string"?{name:ie}:ie||{name:"null"}}function Vt(ie,ae){ae=ni(ae);var ve=Wn[ae.name];if(!ve)return Vt(ie,"text/plain");var me=ve(ie,ae);if(Ut.hasOwnProperty(ae.name)){var Ee=Ut[ae.name];for(var Be in Ee)Ee.hasOwnProperty(Be)&&(me.hasOwnProperty(Be)&&(me["_"+Be]=me[Be]),me[Be]=Ee[Be])}if(me.name=ae.name,ae.helperType&&(me.helperType=ae.helperType),ae.modeProps)for(var qe in ae.modeProps)me[qe]=ae.modeProps[qe];return me}var Ut={};function It(ie,ae){var ve=Ut.hasOwnProperty(ie)?Ut[ie]:Ut[ie]={};gn(ae,ve)}function $n(ie,ae){if(ae===!0)return ae;if(ie.copyState)return ie.copyState(ae);var ve={};for(var me in ae){var Ee=ae[me];Ee instanceof Array&&(Ee=Ee.concat([])),ve[me]=Ee}return ve}function Yn(ie,ae){for(var ve;ie.innerMode&&(ve=ie.innerMode(ae),!(!ve||ve.mode==ie));)ae=ve.state,ie=ve.mode;return ve||{mode:ie,state:ae}}function yi(ie,ae,ve){return ie.startState?ie.startState(ae,ve):!0}var Rn=function(ie,ae,ve){this.pos=this.start=0,this.string=ie,this.tabSize=ae||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ve};Rn.prototype.eol=function(){return this.pos>=this.string.length},Rn.prototype.sol=function(){return this.pos==this.lineStart},Rn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Rn.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Rn.prototype.eat=function(ie){var ae=this.string.charAt(this.pos),ve;if(typeof ie=="string"?ve=ae==ie:ve=ae&&(ie.test?ie.test(ae):ie(ae)),ve)return++this.pos,ae},Rn.prototype.eatWhile=function(ie){for(var ae=this.pos;this.eat(ie););return this.pos>ae},Rn.prototype.eatSpace=function(){for(var ie=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>ie},Rn.prototype.skipToEnd=function(){this.pos=this.string.length},Rn.prototype.skipTo=function(ie){var ae=this.string.indexOf(ie,this.pos);if(ae>-1)return this.pos=ae,!0},Rn.prototype.backUp=function(ie){this.pos-=ie},Rn.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Nt(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Nt(this.string,this.lineStart,this.tabSize):0)},Rn.prototype.indentation=function(){return Nt(this.string,null,this.tabSize)-(this.lineStart?Nt(this.string,this.lineStart,this.tabSize):0)},Rn.prototype.match=function(ie,ae,ve){if(typeof ie=="string"){var me=function(qe){return ve?qe.toLowerCase():qe},Ee=this.string.substr(this.pos,ie.length);if(me(Ee)==me(ie))return ae!==!1&&(this.pos+=ie.length),!0}else{var Be=this.string.slice(this.pos).match(ie);return Be&&Be.index>0?null:(Be&&ae!==!1&&(this.pos+=Be[0].length),Be)}},Rn.prototype.current=function(){return this.string.slice(this.start,this.pos)},Rn.prototype.hideFirstChars=function(ie,ae){this.lineStart+=ie;try{return ae()}finally{this.lineStart-=ie}},Rn.prototype.lookAhead=function(ie){var ae=this.lineOracle;return ae&&ae.lookAhead(ie)},Rn.prototype.baseToken=function(){var ie=this.lineOracle;return ie&&ie.baseToken(this.pos)};function oi(ie,ae){if(ae-=ie.first,ae<0||ae>=ie.size)throw new Error("There is no line "+(ae+ie.first)+" in the document.");for(var ve=ie;!ve.lines;)for(var me=0;;++me){var Ee=ve.children[me],Be=Ee.chunkSize();if(ae<Be){ve=Ee;break}ae-=Be}return ve.lines[ae]}function qt(ie,ae,ve){var me=[],Ee=ae.line;return ie.iter(ae.line,ve.line+1,function(Be){var qe=Be.text;Ee==ve.line&&(qe=qe.slice(0,ve.ch)),Ee==ae.line&&(qe=qe.slice(ae.ch)),me.push(qe),++Ee}),me}function Gt(ie,ae,ve){var me=[];return ie.iter(ae,ve,function(Ee){me.push(Ee.text)}),me}function li(ie,ae){var ve=ae-ie.height;if(ve)for(var me=ie;me;me=me.parent)me.height+=ve}function pt(ie){if(ie.parent==null)return null;for(var ae=ie.parent,ve=it(ae.lines,ie),me=ae.parent;me;ae=me,me=me.parent)for(var Ee=0;me.children[Ee]!=ae;++Ee)ve+=me.children[Ee].chunkSize();return ve+ae.first}function yn(ie,ae){var ve=ie.first;e:do{for(var me=0;me<ie.children.length;++me){var Ee=ie.children[me],Be=Ee.height;if(ae<Be){ie=Ee;continue e}ae-=Be,ve+=Ee.chunkSize()}return ve}while(!ie.lines);for(var qe=0;qe<ie.lines.length;++qe){var ht=ie.lines[qe],ct=ht.height;if(ae<ct)break;ae-=ct}return ve+qe}function ii(ie,ae){return ae>=ie.first&&ae<ie.first+ie.size}function Ti(ie,ae){return String(ie.lineNumberFormatter(ae+ie.firstLineNumber))}function zt(ie,ae,ve){if(ve===void 0&&(ve=null),!(this instanceof zt))return new zt(ie,ae,ve);this.line=ie,this.ch=ae,this.sticky=ve}function xn(ie,ae){return ie.line-ae.line||ie.ch-ae.ch}function vi(ie,ae){return ie.sticky==ae.sticky&&xn(ie,ae)==0}function nn(ie){return zt(ie.line,ie.ch)}function _e(ie,ae){return xn(ie,ae)<0?ae:ie}function Ni(ie,ae){return xn(ie,ae)<0?ie:ae}function hi(ie,ae){return Math.max(ie.first,Math.min(ae,ie.first+ie.size-1))}function Pn(ie,ae){if(ae.line<ie.first)return zt(ie.first,0);var ve=ie.first+ie.size-1;return ae.line>ve?zt(ve,oi(ie,ve).text.length):Yi(ae,oi(ie,ae.line).text.length)}function Yi(ie,ae){var ve=ie.ch;return ve==null||ve>ae?zt(ie.line,ae):ve<0?zt(ie.line,0):ie}function Qi(ie,ae){for(var ve=[],me=0;me<ae.length;me++)ve[me]=Pn(ie,ae[me]);return ve}var er=function(ie,ae){this.state=ie,this.lookAhead=ae},Tn=function(ie,ae,ve,me){this.state=ae,this.doc=ie,this.line=ve,this.maxLookAhead=me||0,this.baseTokens=null,this.baseTokenPos=1};Tn.prototype.lookAhead=function(ie){var ae=this.doc.getLine(this.line+ie);return ae!=null&&ie>this.maxLookAhead&&(this.maxLookAhead=ie),ae},Tn.prototype.baseToken=function(ie){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=ie;)this.baseTokenPos+=2;var ae=this.baseTokens[this.baseTokenPos+1];return{type:ae&&ae.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-ie}},Tn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Tn.fromSaved=function(ie,ae,ve){return ae instanceof er?new Tn(ie,$n(ie.mode,ae.state),ve,ae.lookAhead):new Tn(ie,$n(ie.mode,ae),ve)},Tn.prototype.save=function(ie){var ae=ie!==!1?$n(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new er(ae,this.maxLookAhead):ae};function Zt(ie,ae,ve,me){var Ee=[ie.state.modeGen],Be={};Sr(ie,ae.text,ie.doc.mode,ve,function(Tt,ln){return Ee.push(Tt,ln)},Be,me);for(var qe=ve.state,ht=function(Tt){ve.baseTokens=Ee;var ln=ie.state.overlays[Tt],Dt=1,Hn=0;ve.state=!0,Sr(ie,ae.text,ln.mode,ve,function(Dn,Ii){for(var _i=Dt;Hn<Dn;){var Wi=Ee[Dt];Wi>Dn&&Ee.splice(Dt,1,Dn,Ee[Dt+1],Wi),Dt+=2,Hn=Math.min(Dn,Wi)}if(Ii)if(ln.opaque)Ee.splice(_i,Dt-_i,Dn,"overlay "+Ii),Dt=_i+2;else for(;_i<Dt;_i+=2){var sr=Ee[_i+1];Ee[_i+1]=(sr?sr+" ":"")+"overlay "+Ii}},Be),ve.state=qe,ve.baseTokens=null,ve.baseTokenPos=1},ct=0;ct<ie.state.overlays.length;++ct)ht(ct);return{styles:Ee,classes:Be.bgClass||Be.textClass?Be:null}}function $i(ie,ae,ve){if(!ae.styles||ae.styles[0]!=ie.state.modeGen){var me=Vr(ie,pt(ae)),Ee=ae.text.length>ie.options.maxHighlightLength&&$n(ie.doc.mode,me.state),Be=Zt(ie,ae,me);Ee&&(me.state=Ee),ae.stateAfter=me.save(!Ee),ae.styles=Be.styles,Be.classes?ae.styleClasses=Be.classes:ae.styleClasses&&(ae.styleClasses=null),ve===ie.doc.highlightFrontier&&(ie.doc.modeFrontier=Math.max(ie.doc.modeFrontier,++ie.doc.highlightFrontier))}return ae.styles}function Vr(ie,ae,ve){var me=ie.doc,Ee=ie.display;if(!me.mode.startState)return new Tn(me,!0,ae);var Be=gr(ie,ae,ve),qe=Be>me.first&&oi(me,Be-1).stateAfter,ht=qe?Tn.fromSaved(me,qe,Be):new Tn(me,yi(me.mode),Be);return me.iter(Be,ae,function(ct){en(ie,ct.text,ht);var Tt=ht.line;ct.stateAfter=Tt==ae-1||Tt%5==0||Tt>=Ee.viewFrom&&Tt<Ee.viewTo?ht.save():null,ht.nextLine()}),ve&&(me.modeFrontier=ht.line),ht}function en(ie,ae,ve,me){var Ee=ie.doc.mode,Be=new Rn(ae,ie.options.tabSize,ve);for(Be.start=Be.pos=me||0,ae==""&&gi(Ee,ve.state);!Be.eol();)Mi(Ee,Be,ve.state),Be.start=Be.pos}function gi(ie,ae){if(ie.blankLine)return ie.blankLine(ae);if(ie.innerMode){var ve=Yn(ie,ae);if(ve.mode.blankLine)return ve.mode.blankLine(ve.state)}}function Mi(ie,ae,ve,me){for(var Ee=0;Ee<10;Ee++){me&&(me[0]=Yn(ie,ve).mode);var Be=ie.token(ae,ve);if(ae.pos>ae.start)return Be}throw new Error("Mode "+ie.name+" failed to advance stream.")}var ji=function(ie,ae,ve){this.start=ie.start,this.end=ie.pos,this.string=ie.current(),this.type=ae||null,this.state=ve};function Fi(ie,ae,ve,me){var Ee=ie.doc,Be=Ee.mode,qe;ae=Pn(Ee,ae);var ht=oi(Ee,ae.line),ct=Vr(ie,ae.line,ve),Tt=new Rn(ht.text,ie.options.tabSize,ct),ln;for(me&&(ln=[]);(me||Tt.pos<ae.ch)&&!Tt.eol();)Tt.start=Tt.pos,qe=Mi(Be,Tt,ct.state),me&&ln.push(new ji(Tt,qe,$n(Ee.mode,ct.state)));return me?ln:new ji(Tt,qe,ct.state)}function Zi(ie,ae){if(ie)for(;;){var ve=ie.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!ve)break;ie=ie.slice(0,ve.index)+ie.slice(ve.index+ve[0].length);var me=ve[1]?"bgClass":"textClass";ae[me]==null?ae[me]=ve[2]:new RegExp("(?:^|\\s)"+ve[2]+"(?:$|\\s)").test(ae[me])||(ae[me]+=" "+ve[2])}return ie}function Sr(ie,ae,ve,me,Ee,Be,qe){var ht=ve.flattenSpans;ht==null&&(ht=ie.options.flattenSpans);var ct=0,Tt=null,ln=new Rn(ae,ie.options.tabSize,me),Dt,Hn=ie.options.addModeClass&&[null];for(ae==""&&Zi(gi(ve,me.state),Be);!ln.eol();){if(ln.pos>ie.options.maxHighlightLength?(ht=!1,qe&&en(ie,ae,me,ln.pos),ln.pos=ae.length,Dt=null):Dt=Zi(Mi(ve,ln,me.state,Hn),Be),Hn){var Dn=Hn[0].name;Dn&&(Dt="m-"+(Dt?Dn+" "+Dt:Dn))}if(!ht||Tt!=Dt){for(;ct<ln.start;)ct=Math.min(ln.start,ct+5e3),Ee(ct,Tt);Tt=Dt}ln.start=ln.pos}for(;ct<ln.pos;){var Ii=Math.min(ln.pos,ct+5e3);Ee(Ii,Tt),ct=Ii}}function gr(ie,ae,ve){for(var me,Ee,Be=ie.doc,qe=ve?-1:ae-(ie.doc.mode.innerMode?1e3:100),ht=ae;ht>qe;--ht){if(ht<=Be.first)return Be.first;var ct=oi(Be,ht-1),Tt=ct.stateAfter;if(Tt&&(!ve||ht+(Tt instanceof er?Tt.lookAhead:0)<=Be.modeFrontier))return ht;var ln=Nt(ct.text,null,ie.options.tabSize);(Ee==null||me>ln)&&(Ee=ht-1,me=ln)}return Ee}function mr(ie,ae){if(ie.modeFrontier=Math.min(ie.modeFrontier,ae),!(ie.highlightFrontier<ae-10)){for(var ve=ie.first,me=ae-1;me>ve;me--){var Ee=oi(ie,me).stateAfter;if(Ee&&(!(Ee instanceof er)||me+Ee.lookAhead<ae)){ve=me+1;break}}ie.highlightFrontier=Math.min(ie.highlightFrontier,ve)}}var br=!1,Fn=!1;function dr(){br=!0}function In(){Fn=!0}function wr(ie,ae,ve){this.marker=ie,this.from=ae,this.to=ve}function Cr(ie,ae){if(ie)for(var ve=0;ve<ie.length;++ve){var me=ie[ve];if(me.marker==ae)return me}}function Tr(ie,ae){for(var ve,me=0;me<ie.length;++me)ie[me]!=ae&&(ve||(ve=[])).push(ie[me]);return ve}function mo(ie,ae){ie.markedSpans=ie.markedSpans?ie.markedSpans.concat([ae]):[ae],ae.marker.attachLine(ie)}function ao(ie,ae,ve){var me;if(ie)for(var Ee=0;Ee<ie.length;++Ee){var Be=ie[Ee],qe=Be.marker,ht=Be.from==null||(qe.inclusiveLeft?Be.from<=ae:Be.from<ae);if(ht||Be.from==ae&&qe.type=="bookmark"&&(!ve||!Be.marker.insertLeft)){var ct=Be.to==null||(qe.inclusiveRight?Be.to>=ae:Be.to>ae);(me||(me=[])).push(new wr(qe,Be.from,ct?null:Be.to))}}return me}function Wr(ie,ae,ve){var me;if(ie)for(var Ee=0;Ee<ie.length;++Ee){var Be=ie[Ee],qe=Be.marker,ht=Be.to==null||(qe.inclusiveRight?Be.to>=ae:Be.to>ae);if(ht||Be.from==ae&&qe.type=="bookmark"&&(!ve||Be.marker.insertLeft)){var ct=Be.from==null||(qe.inclusiveLeft?Be.from<=ae:Be.from<ae);(me||(me=[])).push(new wr(qe,ct?null:Be.from-ae,Be.to==null?null:Be.to-ae))}}return me}function Xr(ie,ae){if(ae.full)return null;var ve=ii(ie,ae.from.line)&&oi(ie,ae.from.line).markedSpans,me=ii(ie,ae.to.line)&&oi(ie,ae.to.line).markedSpans;if(!ve&&!me)return null;var Ee=ae.from.ch,Be=ae.to.ch,qe=xn(ae.from,ae.to)==0,ht=ao(ve,Ee,qe),ct=Wr(me,Be,qe),Tt=ae.text.length==1,ln=Pt(ae.text).length+(Tt?Ee:0);if(ht)for(var Dt=0;Dt<ht.length;++Dt){var Hn=ht[Dt];if(Hn.to==null){var Dn=Cr(ct,Hn.marker);Dn?Tt&&(Hn.to=Dn.to==null?null:Dn.to+ln):Hn.to=Ee}}if(ct)for(var Ii=0;Ii<ct.length;++Ii){var _i=ct[Ii];if(_i.to!=null&&(_i.to+=ln),_i.from==null){var Wi=Cr(ht,_i.marker);Wi||(_i.from=ln,Tt&&(ht||(ht=[])).push(_i))}else _i.from+=ln,Tt&&(ht||(ht=[])).push(_i)}ht&&(ht=pa(ht)),ct&&ct!=ht&&(ct=pa(ct));var sr=[ht];if(!Tt){var Mr=ae.text.length-2,Er;if(Mr>0&&ht)for(var Fr=0;Fr<ht.length;++Fr)ht[Fr].to==null&&(Er||(Er=[])).push(new wr(ht[Fr].marker,null,null));for(var oo=0;oo<Mr;++oo)sr.push(Er);sr.push(ct)}return sr}function pa(ie){for(var ae=0;ae<ie.length;++ae){var ve=ie[ae];ve.from!=null&&ve.from==ve.to&&ve.marker.clearWhenEmpty!==!1&&ie.splice(ae--,1)}return ie.length?ie:null}function no(ie,ae,ve){var me=null;if(ie.iter(ae.line,ve.line+1,function(Dn){if(Dn.markedSpans)for(var Ii=0;Ii<Dn.markedSpans.length;++Ii){var _i=Dn.markedSpans[Ii].marker;_i.readOnly&&(!me||it(me,_i)==-1)&&(me||(me=[])).push(_i)}}),!me)return null;for(var Ee=[{from:ae,to:ve}],Be=0;Be<me.length;++Be)for(var qe=me[Be],ht=qe.find(0),ct=0;ct<Ee.length;++ct){var Tt=Ee[ct];if(!(xn(Tt.to,ht.from)<0||xn(Tt.from,ht.to)>0)){var ln=[ct,1],Dt=xn(Tt.from,ht.from),Hn=xn(Tt.to,ht.to);(Dt<0||!qe.inclusiveLeft&&!Dt)&&ln.push({from:Tt.from,to:ht.from}),(Hn>0||!qe.inclusiveRight&&!Hn)&&ln.push({from:ht.to,to:Tt.to}),Ee.splice.apply(Ee,ln),ct+=ln.length-3}}return Ee}function zi(ie){var ae=ie.markedSpans;if(ae){for(var ve=0;ve<ae.length;++ve)ae[ve].marker.detachLine(ie);ie.markedSpans=null}}function lt(ie,ae){if(ae){for(var ve=0;ve<ae.length;++ve)ae[ve].marker.attachLine(ie);ie.markedSpans=ae}}function Go(ie){return ie.inclusiveLeft?-1:0}function Lr(ie){return ie.inclusiveRight?1:0}function zr(ie,ae){var ve=ie.lines.length-ae.lines.length;if(ve!=0)return ve;var me=ie.find(),Ee=ae.find(),Be=xn(me.from,Ee.from)||Go(ie)-Go(ae);if(Be)return-Be;var qe=xn(me.to,Ee.to)||Lr(ie)-Lr(ae);return qe||ae.id-ie.id}function $r(ie,ae){var ve=Fn&&ie.markedSpans,me;if(ve)for(var Ee=void 0,Be=0;Be<ve.length;++Be)Ee=ve[Be],Ee.marker.collapsed&&(ae?Ee.from:Ee.to)==null&&(!me||zr(me,Ee.marker)<0)&&(me=Ee.marker);return me}function fo(ie){return $r(ie,!0)}function Xi(ie){return $r(ie,!1)}function nr(ie,ae){var ve=Fn&&ie.markedSpans,me;if(ve)for(var Ee=0;Ee<ve.length;++Ee){var Be=ve[Ee];Be.marker.collapsed&&(Be.from==null||Be.from<ae)&&(Be.to==null||Be.to>ae)&&(!me||zr(me,Be.marker)<0)&&(me=Be.marker)}return me}function Ir(ie,ae,ve,me,Ee){var Be=oi(ie,ae),qe=Fn&&Be.markedSpans;if(qe)for(var ht=0;ht<qe.length;++ht){var ct=qe[ht];if(ct.marker.collapsed){var Tt=ct.marker.find(0),ln=xn(Tt.from,ve)||Go(ct.marker)-Go(Ee),Dt=xn(Tt.to,me)||Lr(ct.marker)-Lr(Ee);if(!(ln>=0&&Dt<=0||ln<=0&&Dt>=0)&&(ln<=0&&(ct.marker.inclusiveRight&&Ee.inclusiveLeft?xn(Tt.to,ve)>=0:xn(Tt.to,ve)>0)||ln>=0&&(ct.marker.inclusiveRight&&Ee.inclusiveLeft?xn(Tt.from,me)<=0:xn(Tt.from,me)<0)))return!0}}}function Ar(ie){for(var ae;ae=fo(ie);)ie=ae.find(-1,!0).line;return ie}function kr(ie){for(var ae;ae=Xi(ie);)ie=ae.find(1,!0).line;return ie}function Uo(ie){for(var ae,ve;ae=Xi(ie);)ie=ae.find(1,!0).line,(ve||(ve=[])).push(ie);return ve}function hr(ie,ae){var ve=oi(ie,ae),me=Ar(ve);return ve==me?ae:pt(me)}function ar(ie,ae){if(ae>ie.lastLine())return ae;var ve=oi(ie,ae),me;if(!ri(ie,ve))return ae;for(;me=Xi(ve);)ve=me.find(1,!0).line;return pt(ve)+1}function ri(ie,ae){var ve=Fn&&ae.markedSpans;if(ve){for(var me=void 0,Ee=0;Ee<ve.length;++Ee)if(me=ve[Ee],!!me.marker.collapsed){if(me.from==null)return!0;if(!me.marker.widgetNode&&me.from==0&&me.marker.inclusiveLeft&&Ji(ie,ae,me))return!0}}}function Ji(ie,ae,ve){if(ve.to==null){var me=ve.marker.find(1,!0);return Ji(ie,me.line,Cr(me.line.markedSpans,ve.marker))}if(ve.marker.inclusiveRight&&ve.to==ae.text.length)return!0;for(var Ee=void 0,Be=0;Be<ae.markedSpans.length;++Be)if(Ee=ae.markedSpans[Be],Ee.marker.collapsed&&!Ee.marker.widgetNode&&Ee.from==ve.to&&(Ee.to==null||Ee.to!=ve.from)&&(Ee.marker.inclusiveLeft||ve.marker.inclusiveRight)&&Ji(ie,ae,Ee))return!0}function Zr(ie){ie=Ar(ie);for(var ae=0,ve=ie.parent,me=0;me<ve.lines.length;++me){var Ee=ve.lines[me];if(Ee==ie)break;ae+=Ee.height}for(var Be=ve.parent;Be;ve=Be,Be=ve.parent)for(var qe=0;qe<Be.children.length;++qe){var ht=Be.children[qe];if(ht==ve)break;ae+=ht.height}return ae}function jo(ie){if(ie.height==0)return 0;for(var ae=ie.text.length,ve,me=ie;ve=fo(me);){var Ee=ve.find(0,!0);me=Ee.from.line,ae+=Ee.from.ch-Ee.to.ch}for(me=ie;ve=Xi(me);){var Be=ve.find(0,!0);ae-=me.text.length-Be.from.ch,me=Be.to.line,ae+=me.text.length-Be.to.ch}return ae}function Do(ie){var ae=ie.display,ve=ie.doc;ae.maxLine=oi(ve,ve.first),ae.maxLineLength=jo(ae.maxLine),ae.maxLineChanged=!0,ve.iter(function(me){var Ee=jo(me);Ee>ae.maxLineLength&&(ae.maxLineLength=Ee,ae.maxLine=me)})}var Ao=function(ie,ae,ve){this.text=ie,lt(this,ae),this.height=ve?ve(this):1};Ao.prototype.lineNo=function(){return pt(this)},mt(Ao);function Ho(ie,ae,ve,me){ie.text=ae,ie.stateAfter&&(ie.stateAfter=null),ie.styles&&(ie.styles=null),ie.order!=null&&(ie.order=null),zi(ie),lt(ie,ve);var Ee=me?me(ie):1;Ee!=ie.height&&li(ie,Ee)}function Po(ie){ie.parent=null,zi(ie)}var Sa={},aa={};function es(ie,ae){if(!ie||/^\s*$/.test(ie))return null;var ve=ae.addModeClass?aa:Sa;return ve[ie]||(ve[ie]=ie.replace(/\S+/g,"cm-$&"))}function hn(ie,ae){var ve=xt("span",null,null,Ve?"padding-right: .1px":null),me={pre:xt("pre",[ve],"CodeMirror-line"),content:ve,col:0,pos:0,cm:ie,trailingSpace:!1,splitSpaces:ie.getOption("lineWrapping")};ae.measure={};for(var Ee=0;Ee<=(ae.rest?ae.rest.length:0);Ee++){var Be=Ee?ae.rest[Ee-1]:ae.line,qe=void 0;me.pos=0,me.addToken=kl,wi(ie.display.measure)&&(qe=wn(Be,ie.doc.direction))&&(me.addToken=yl(me.addToken,qe)),me.map=[];var ht=ae!=ie.display.externalMeasured&&pt(Be);lu(Be,me,$i(ie,Be,ht)),Be.styleClasses&&(Be.styleClasses.bgClass&&(me.bgClass=bn(Be.styleClasses.bgClass,me.bgClass||"")),Be.styleClasses.textClass&&(me.textClass=bn(Be.styleClasses.textClass,me.textClass||""))),me.map.length==0&&me.map.push(0,0,me.content.appendChild(Gi(ie.display.measure))),Ee==0?(ae.measure.map=me.map,ae.measure.cache={}):((ae.measure.maps||(ae.measure.maps=[])).push(me.map),(ae.measure.caches||(ae.measure.caches=[])).push({}))}if(Ve){var ct=me.content.lastChild;(/\bcm-tab\b/.test(ct.className)||ct.querySelector&&ct.querySelector(".cm-tab"))&&(me.content.className="cm-tab-wrap-hack")}return En(ie,"renderLine",ie,ae.line,me.pre),me.pre.className&&(me.textClass=bn(me.pre.className,me.textClass||"")),me}function ra(ie){var ae=ft("span","\u2022","cm-invalidchar");return ae.title="\\u"+ie.charCodeAt(0).toString(16),ae.setAttribute("aria-label",ae.title),ae}function kl(ie,ae,ve,me,Ee,Be,qe){if(ae){var ht=ie.splitSpaces?Ha(ae,ie.trailingSpace):ae,ct=ie.cm.state.specialChars,Tt=!1,ln;if(!ct.test(ae))ie.col+=ae.length,ln=document.createTextNode(ht),ie.map.push(ie.pos,ie.pos+ae.length,ln),Ge&&Oe<9&&(Tt=!0),ie.pos+=ae.length;else{ln=document.createDocumentFragment();for(var Dt=0;;){ct.lastIndex=Dt;var Hn=ct.exec(ae),Dn=Hn?Hn.index-Dt:ae.length-Dt;if(Dn){var Ii=document.createTextNode(ht.slice(Dt,Dt+Dn));Ge&&Oe<9?ln.appendChild(ft("span",[Ii])):ln.appendChild(Ii),ie.map.push(ie.pos,ie.pos+Dn,Ii),ie.col+=Dn,ie.pos+=Dn}if(!Hn)break;Dt+=Dn+1;var _i=void 0;if(Hn[0]==" "){var Wi=ie.cm.options.tabSize,sr=Wi-ie.col%Wi;_i=ln.appendChild(ft("span",si(sr),"cm-tab")),_i.setAttribute("role","presentation"),_i.setAttribute("cm-text"," "),ie.col+=sr}else Hn[0]=="\r"||Hn[0]==`
`?(_i=ln.appendChild(ft("span",Hn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),_i.setAttribute("cm-text",Hn[0]),ie.col+=1):(_i=ie.cm.options.specialCharPlaceholder(Hn[0]),_i.setAttribute("cm-text",Hn[0]),Ge&&Oe<9?ln.appendChild(ft("span",[_i])):ln.appendChild(_i),ie.col+=1);ie.map.push(ie.pos,ie.pos+1,_i),ie.pos++}}if(ie.trailingSpace=ht.charCodeAt(ae.length-1)==32,ve||me||Ee||Tt||Be||qe){var Mr=ve||"";me&&(Mr+=me),Ee&&(Mr+=Ee);var Er=ft("span",[ln],Mr,Be);if(qe)for(var Fr in qe)qe.hasOwnProperty(Fr)&&Fr!="style"&&Fr!="class"&&Er.setAttribute(Fr,qe[Fr]);return ie.content.appendChild(Er)}ie.content.appendChild(ln)}}function Ha(ie,ae){if(ie.length>1&&!/ /.test(ie))return ie;for(var ve=ae,me="",Ee=0;Ee<ie.length;Ee++){var Be=ie.charAt(Ee);Be==" "&&ve&&(Ee==ie.length-1||ie.charCodeAt(Ee+1)==32)&&(Be="\xA0"),me+=Be,ve=Be==" "}return me}function yl(ie,ae){return function(ve,me,Ee,Be,qe,ht,ct){Ee=Ee?Ee+" cm-force-border":"cm-force-border";for(var Tt=ve.pos,ln=Tt+me.length;;){for(var Dt=void 0,Hn=0;Hn<ae.length&&(Dt=ae[Hn],!(Dt.to>Tt&&Dt.from<=Tt));Hn++);if(Dt.to>=ln)return ie(ve,me,Ee,Be,qe,ht,ct);ie(ve,me.slice(0,Dt.to-Tt),Ee,Be,null,ht,ct),Be=null,me=me.slice(Dt.to-Tt),Tt=Dt.to}}}function Lo(ie,ae,ve,me){var Ee=!me&&ve.widgetNode;Ee&&ie.map.push(ie.pos,ie.pos+ae,Ee),!me&&ie.cm.display.input.needsContentAttribute&&(Ee||(Ee=ie.content.appendChild(document.createElement("span"))),Ee.setAttribute("cm-marker",ve.id)),Ee&&(ie.cm.display.input.setUneditable(Ee),ie.content.appendChild(Ee)),ie.pos+=ae,ie.trailingSpace=!1}function lu(ie,ae,ve){var me=ie.markedSpans,Ee=ie.text,Be=0;if(!me){for(var qe=1;qe<ve.length;qe+=2)ae.addToken(ae,Ee.slice(Be,Be=ve[qe]),es(ve[qe+1],ae.cm.options));return}for(var ht=Ee.length,ct=0,Tt=1,ln="",Dt,Hn,Dn=0,Ii,_i,Wi,sr,Mr;;){if(Dn==ct){Ii=_i=Wi=Hn="",Mr=null,sr=null,Dn=1/0;for(var Er=[],Fr=void 0,oo=0;oo<me.length;++oo){var yr=me[oo],No=yr.marker;if(No.type=="bookmark"&&yr.from==ct&&No.widgetNode)Er.push(No);else if(yr.from<=ct&&(yr.to==null||yr.to>ct||No.collapsed&&yr.to==ct&&yr.from==ct)){if(yr.to!=null&&yr.to!=ct&&Dn>yr.to&&(Dn=yr.to,_i=""),No.className&&(Ii+=" "+No.className),No.css&&(Hn=(Hn?Hn+";":"")+No.css),No.startStyle&&yr.from==ct&&(Wi+=" "+No.startStyle),No.endStyle&&yr.to==Dn&&(Fr||(Fr=[])).push(No.endStyle,yr.to),No.title&&((Mr||(Mr={})).title=No.title),No.attributes)for(var Ra in No.attributes)(Mr||(Mr={}))[Ra]=No.attributes[Ra];No.collapsed&&(!sr||zr(sr.marker,No)<0)&&(sr=yr)}else yr.from>ct&&Dn>yr.from&&(Dn=yr.from)}if(Fr)for(var Ps=0;Ps<Fr.length;Ps+=2)Fr[Ps+1]==Dn&&(_i+=" "+Fr[Ps]);if(!sr||sr.from==ct)for(var Wa=0;Wa<Er.length;++Wa)Lo(ae,0,Er[Wa]);if(sr&&(sr.from||0)==ct){if(Lo(ae,(sr.to==null?ht+1:sr.to)-ct,sr.marker,sr.from==null),sr.to==null)return;sr.to==ct&&(sr=!1)}}if(ct>=ht)break;for(var zl=Math.min(ht,Dn);;){if(ln){var hl=ct+ln.length;if(!sr){var xs=hl>zl?ln.slice(0,zl-ct):ln;ae.addToken(ae,xs,Dt?Dt+Ii:Ii,Wi,ct+xs.length==Dn?_i:"",Hn,Mr)}if(hl>=zl){ln=ln.slice(zl-ct),ct=zl;break}ct=hl,Wi=""}ln=Ee.slice(Be,Be=ve[Tt++]),Dt=es(ve[Tt++],ae.cm.options)}}}function An(ie,ae,ve){this.line=ae,this.rest=Uo(ae),this.size=this.rest?pt(Pt(this.rest))-ve+1:1,this.node=this.text=null,this.hidden=ri(ie,ae)}function zo(ie,ae,ve){for(var me=[],Ee,Be=ae;Be<ve;Be=Ee){var qe=new An(ie.doc,oi(ie.doc,Be),Be);Ee=Be+qe.size,me.push(qe)}return me}var ca=null;function sl(ie){ca?ca.ops.push(ie):ie.ownsGroup=ca={ops:[ie],delayedCallbacks:[]}}function Ga(ie){var ae=ie.delayedCallbacks,ve=0;do{for(;ve<ae.length;ve++)ae[ve].call(null);for(var me=0;me<ie.ops.length;me++){var Ee=ie.ops[me];if(Ee.cursorActivityHandlers)for(;Ee.cursorActivityCalled<Ee.cursorActivityHandlers.length;)Ee.cursorActivityHandlers[Ee.cursorActivityCalled++].call(null,Ee.cm)}}while(ve<ae.length)}function Xs(ie,ae){var ve=ie.ownsGroup;if(ve)try{Ga(ve)}finally{ca=null,ae(ve)}}var ps=null;function cr(ie,ae){var ve=jn(ie,ae);if(ve.length){var me=Array.prototype.slice.call(arguments,2),Ee;ca?Ee=ca.delayedCallbacks:ps?Ee=ps:(Ee=ps=[],setTimeout(Pa,0));for(var Be=function(ht){Ee.push(function(){return ve[ht].apply(null,me)})},qe=0;qe<ve.length;++qe)Be(qe)}}function Pa(){var ie=ps;ps=null;for(var ae=0;ae<ie.length;++ae)ie[ae]()}function Dl(ie,ae,ve,me){for(var Ee=0;Ee<ae.changes.length;Ee++){var Be=ae.changes[Ee];Be=="text"?Yt(ie,ae):Be=="gutter"?Ki(ie,ae,ve,me):Be=="class"?Pi(ie,ae):Be=="widget"&&xr(ie,ae,me)}ae.changes=null}function is(ie){return ie.node==ie.text&&(ie.node=ft("div",null,null,"position: relative"),ie.text.parentNode&&ie.text.parentNode.replaceChild(ie.node,ie.text),ie.node.appendChild(ie.text),Ge&&Oe<8&&(ie.node.style.zIndex=2)),ie.node}function Kr(ie,ae){var ve=ae.bgClass?ae.bgClass+" "+(ae.line.bgClass||""):ae.line.bgClass;if(ve&&(ve+=" CodeMirror-linebackground"),ae.background)ve?ae.background.className=ve:(ae.background.parentNode.removeChild(ae.background),ae.background=null);else if(ve){var me=is(ae);ae.background=me.insertBefore(ft("div",null,ve),me.firstChild),ie.display.input.setUneditable(ae.background)}}function so(ie,ae){var ve=ie.display.externalMeasured;return ve&&ve.line==ae.line?(ie.display.externalMeasured=null,ae.measure=ve.measure,ve.built):hn(ie,ae)}function Yt(ie,ae){var ve=ae.text.className,me=so(ie,ae);ae.text==ae.node&&(ae.node=me.pre),ae.text.parentNode.replaceChild(me.pre,ae.text),ae.text=me.pre,me.bgClass!=ae.bgClass||me.textClass!=ae.textClass?(ae.bgClass=me.bgClass,ae.textClass=me.textClass,Pi(ie,ae)):ve&&(ae.text.className=ve)}function Pi(ie,ae){Kr(ie,ae),ae.line.wrapClass?is(ae).className=ae.line.wrapClass:ae.node!=ae.text&&(ae.node.className="");var ve=ae.textClass?ae.textClass+" "+(ae.line.textClass||""):ae.line.textClass;ae.text.className=ve||""}function Ki(ie,ae,ve,me){if(ae.gutter&&(ae.node.removeChild(ae.gutter),ae.gutter=null),ae.gutterBackground&&(ae.node.removeChild(ae.gutterBackground),ae.gutterBackground=null),ae.line.gutterClass){var Ee=is(ae);ae.gutterBackground=ft("div",null,"CodeMirror-gutter-background "+ae.line.gutterClass,"left: "+(ie.options.fixedGutter?me.fixedPos:-me.gutterTotalWidth)+"px; width: "+me.gutterTotalWidth+"px"),ie.display.input.setUneditable(ae.gutterBackground),Ee.insertBefore(ae.gutterBackground,ae.text)}var Be=ae.line.gutterMarkers;if(ie.options.lineNumbers||Be){var qe=is(ae),ht=ae.gutter=ft("div",null,"CodeMirror-gutter-wrapper","left: "+(ie.options.fixedGutter?me.fixedPos:-me.gutterTotalWidth)+"px");if(ie.display.input.setUneditable(ht),qe.insertBefore(ht,ae.text),ae.line.gutterClass&&(ht.className+=" "+ae.line.gutterClass),ie.options.lineNumbers&&(!Be||!Be["CodeMirror-linenumbers"])&&(ae.lineNumber=ht.appendChild(ft("div",Ti(ie.options,ve),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+me.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+ie.display.lineNumInnerWidth+"px"))),Be)for(var ct=0;ct<ie.display.gutterSpecs.length;++ct){var Tt=ie.display.gutterSpecs[ct].className,ln=Be.hasOwnProperty(Tt)&&Be[Tt];ln&&ht.appendChild(ft("div",[ln],"CodeMirror-gutter-elt","left: "+me.gutterLeft[Tt]+"px; width: "+me.gutterWidth[Tt]+"px"))}}}function xr(ie,ae,ve){ae.alignable&&(ae.alignable=null);for(var me=Re("CodeMirror-linewidget"),Ee=ae.node.firstChild,Be=void 0;Ee;Ee=Be)Be=Ee.nextSibling,me.test(Ee.className)&&ae.node.removeChild(Ee);Yr(ie,ae,ve)}function Qr(ie,ae,ve,me){var Ee=so(ie,ae);return ae.text=ae.node=Ee.pre,Ee.bgClass&&(ae.bgClass=Ee.bgClass),Ee.textClass&&(ae.textClass=Ee.textClass),Pi(ie,ae),Ki(ie,ae,ve,me),Yr(ie,ae,me),ae.node}function Yr(ie,ae,ve){if(ur(ie,ae.line,ae,ve,!0),ae.rest)for(var me=0;me<ae.rest.length;me++)ur(ie,ae.rest[me],ae,ve,!1)}function ur(ie,ae,ve,me,Ee){if(ae.widgets)for(var Be=is(ve),qe=0,ht=ae.widgets;qe<ht.length;++qe){var ct=ht[qe],Tt=ft("div",[ct.node],"CodeMirror-linewidget"+(ct.className?" "+ct.className:""));ct.handleMouseEvents||Tt.setAttribute("cm-ignore-events","true"),yo(ct,Tt,ve,me),ie.display.input.setUneditable(Tt),Ee&&ct.above?Be.insertBefore(Tt,ve.gutter||ve.text):Be.appendChild(Tt),cr(ct,"redraw")}}function yo(ie,ae,ve,me){if(ie.noHScroll){(ve.alignable||(ve.alignable=[])).push(ae);var Ee=me.wrapperWidth;ae.style.left=me.fixedPos+"px",ie.coverGutter||(Ee-=me.gutterTotalWidth,ae.style.paddingLeft=me.gutterTotalWidth+"px"),ae.style.width=Ee+"px"}ie.coverGutter&&(ae.style.zIndex=5,ae.style.position="relative",ie.noHScroll||(ae.style.marginLeft=-me.gutterTotalWidth+"px"))}function Jo(ie){if(ie.height!=null)return ie.height;var ae=ie.doc.cm;if(!ae)return 0;if(!wt(document.body,ie.node)){var ve="position: relative;";ie.coverGutter&&(ve+="margin-left: -"+ae.display.gutters.offsetWidth+"px;"),ie.noHScroll&&(ve+="width: "+ae.display.wrapper.clientWidth+"px;"),rt(ae.display.measure,ft("div",[ie.node],null,ve))}return ie.height=ie.node.parentNode.offsetHeight}function Io(ie,ae){for(var ve=Hi(ae);ve!=ie.wrapper;ve=ve.parentNode)if(!ve||ve.nodeType==1&&ve.getAttribute("cm-ignore-events")=="true"||ve.parentNode==ie.sizer&&ve!=ie.mover)return!0}function Wo(ie){return ie.lineSpace.offsetTop}function oa(ie){return ie.mover.offsetHeight-ie.lineSpace.offsetHeight}function ms(ie){if(ie.cachedPaddingH)return ie.cachedPaddingH;var ae=rt(ie.measure,ft("pre","x","CodeMirror-line-like")),ve=window.getComputedStyle?window.getComputedStyle(ae):ae.currentStyle,me={left:parseInt(ve.paddingLeft),right:parseInt(ve.paddingRight)};return!isNaN(me.left)&&!isNaN(me.right)&&(ie.cachedPaddingH=me),me}function Zo(ie){return an-ie.display.nativeBarWidth}function Aa(ie){return ie.display.scroller.clientWidth-Zo(ie)-ie.display.barWidth}function Sl(ie){return ie.display.scroller.clientHeight-Zo(ie)-ie.display.barHeight}function ll(ie,ae,ve){var me=ie.options.lineWrapping,Ee=me&&Aa(ie);if(!ae.measure.heights||me&&ae.measure.width!=Ee){var Be=ae.measure.heights=[];if(me){ae.measure.width=Ee;for(var qe=ae.text.firstChild.getClientRects(),ht=0;ht<qe.length-1;ht++){var ct=qe[ht],Tt=qe[ht+1];Math.abs(ct.bottom-Tt.bottom)>2&&Be.push((ct.bottom+Tt.top)/2-ve.top)}}Be.push(ve.bottom-ve.top)}}function vs(ie,ae,ve){if(ie.line==ae)return{map:ie.measure.map,cache:ie.measure.cache};for(var me=0;me<ie.rest.length;me++)if(ie.rest[me]==ae)return{map:ie.measure.maps[me],cache:ie.measure.caches[me]};for(var Ee=0;Ee<ie.rest.length;Ee++)if(pt(ie.rest[Ee])>ve)return{map:ie.measure.maps[Ee],cache:ie.measure.caches[Ee],before:!0}}function ul(ie,ae){ae=Ar(ae);var ve=pt(ae),me=ie.display.externalMeasured=new An(ie.doc,ae,ve);me.lineN=ve;var Ee=me.built=hn(ie,me);return me.text=Ee.pre,rt(ie.display.lineMeasure,Ee.pre),me}function Ol(ie,ae,ve,me){return Ds(ie,Ts(ie,ae),ve,me)}function cs(ie,ae){if(ae>=ie.display.viewFrom&&ae<ie.display.viewTo)return ie.display.view[As(ie,ae)];var ve=ie.display.externalMeasured;if(ve&&ae>=ve.lineN&&ae<ve.lineN+ve.size)return ve}function Ts(ie,ae){var ve=pt(ae),me=cs(ie,ve);me&&!me.text?me=null:me&&me.changes&&(Dl(ie,me,ve,Yc(ie)),ie.curOp.forceUpdate=!0),me||(me=ul(ie,ae));var Ee=vs(me,ae,ve);return{line:ae,view:me,rect:null,map:Ee.map,cache:Ee.cache,before:Ee.before,hasHeights:!1}}function Ds(ie,ae,ve,me,Ee){ae.before&&(ve=-1);var Be=ve+(me||""),qe;return ae.cache.hasOwnProperty(Be)?qe=ae.cache[Be]:(ae.rect||(ae.rect=ae.view.text.getBoundingClientRect()),ae.hasHeights||(ll(ie,ae.view,ae.rect),ae.hasHeights=!0),qe=Ca(ie,ae,ve,me),qe.bogus||(ae.cache[Be]=qe)),{left:qe.left,right:qe.right,top:Ee?qe.rtop:qe.top,bottom:Ee?qe.rbottom:qe.bottom}}var Hu={left:0,right:0,top:0,bottom:0};function xc(ie,ae,ve){for(var me,Ee,Be,qe,ht,ct,Tt=0;Tt<ie.length;Tt+=3)if(ht=ie[Tt],ct=ie[Tt+1],ae<ht?(Ee=0,Be=1,qe="left"):ae<ct?(Ee=ae-ht,Be=Ee+1):(Tt==ie.length-3||ae==ct&&ie[Tt+3]>ae)&&(Be=ct-ht,Ee=Be-1,ae>=ct&&(qe="right")),Ee!=null){if(me=ie[Tt+2],ht==ct&&ve==(me.insertLeft?"left":"right")&&(qe=ve),ve=="left"&&Ee==0)for(;Tt&&ie[Tt-2]==ie[Tt-3]&&ie[Tt-1].insertLeft;)me=ie[(Tt-=3)+2],qe="left";if(ve=="right"&&Ee==ct-ht)for(;Tt<ie.length-3&&ie[Tt+3]==ie[Tt+4]&&!ie[Tt+5].insertLeft;)me=ie[(Tt+=3)+2],qe="right";break}return{node:me,start:Ee,end:Be,collapse:qe,coverStart:ht,coverEnd:ct}}function bc(ie,ae){var ve=Hu;if(ae=="left")for(var me=0;me<ie.length&&(ve=ie[me]).left==ve.right;me++);else for(var Ee=ie.length-1;Ee>=0&&(ve=ie[Ee]).left==ve.right;Ee--);return ve}function Ca(ie,ae,ve,me){var Ee=xc(ae.map,ve,me),Be=Ee.node,qe=Ee.start,ht=Ee.end,ct=Ee.collapse,Tt;if(Be.nodeType==3){for(var ln=0;ln<4;ln++){for(;qe&&Lt(ae.line.text.charAt(Ee.coverStart+qe));)--qe;for(;Ee.coverStart+ht<Ee.coverEnd&&Lt(ae.line.text.charAt(Ee.coverStart+ht));)++ht;if(Ge&&Oe<9&&qe==0&&ht==Ee.coverEnd-Ee.coverStart?Tt=Be.parentNode.getBoundingClientRect():Tt=bc(at(Be,qe,ht).getClientRects(),me),Tt.left||Tt.right||qe==0)break;ht=qe,qe=qe-1,ct="right"}Ge&&Oe<11&&(Tt=ad(ie.display.measure,Tt))}else{qe>0&&(ct=me="right");var Dt;ie.options.lineWrapping&&(Dt=Be.getClientRects()).length>1?Tt=Dt[me=="right"?Dt.length-1:0]:Tt=Be.getBoundingClientRect()}if(Ge&&Oe<9&&!qe&&(!Tt||!Tt.left&&!Tt.right)){var Hn=Be.parentNode.getClientRects()[0];Hn?Tt={left:Hn.left,right:Hn.left+sc(ie.display),top:Hn.top,bottom:Hn.bottom}:Tt=Hu}for(var Dn=Tt.top-ae.rect.top,Ii=Tt.bottom-ae.rect.top,_i=(Dn+Ii)/2,Wi=ae.view.measure.heights,sr=0;sr<Wi.length-1&&!(_i<Wi[sr]);sr++);var Mr=sr?Wi[sr-1]:0,Er=Wi[sr],Fr={left:(ct=="right"?Tt.right:Tt.left)-ae.rect.left,right:(ct=="left"?Tt.left:Tt.right)-ae.rect.left,top:Mr,bottom:Er};return!Tt.left&&!Tt.right&&(Fr.bogus=!0),ie.options.singleCursorHeightPerLine||(Fr.rtop=Dn,Fr.rbottom=Ii),Fr}function ad(ie,ae){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Ri(ie))return ae;var ve=screen.logicalXDPI/screen.deviceXDPI,me=screen.logicalYDPI/screen.deviceYDPI;return{left:ae.left*ve,right:ae.right*ve,top:ae.top*me,bottom:ae.bottom*me}}function wc(ie){if(ie.measure&&(ie.measure.cache={},ie.measure.heights=null,ie.rest))for(var ae=0;ae<ie.rest.length;ae++)ie.measure.caches[ae]={}}function oc(ie){ie.display.externalMeasure=null,nt(ie.display.lineMeasure);for(var ae=0;ae<ie.display.view.length;ae++)wc(ie.display.view[ae])}function Gu(ie){oc(ie),ie.display.cachedCharWidth=ie.display.cachedTextHeight=ie.display.cachedPaddingH=null,ie.options.lineWrapping||(ie.display.maxLineChanged=!0),ie.display.lineNumChars=null}function rs(){return Je&&te?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function ds(){return Je&&te?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function _a(ie){var ae=0;if(ie.widgets)for(var ve=0;ve<ie.widgets.length;++ve)ie.widgets[ve].above&&(ae+=Jo(ie.widgets[ve]));return ae}function Ya(ie,ae,ve,me,Ee){if(!Ee){var Be=_a(ae);ve.top+=Be,ve.bottom+=Be}if(me=="line")return ve;me||(me="local");var qe=Zr(ae);if(me=="local"?qe+=Wo(ie.display):qe-=ie.display.viewOffset,me=="page"||me=="window"){var ht=ie.display.lineSpace.getBoundingClientRect();qe+=ht.top+(me=="window"?0:ds());var ct=ht.left+(me=="window"?0:rs());ve.left+=ct,ve.right+=ct}return ve.top+=qe,ve.bottom+=qe,ve}function Yo(ie,ae,ve){if(ve=="div")return ae;var me=ae.left,Ee=ae.top;if(ve=="page")me-=rs(),Ee-=ds();else if(ve=="local"||!ve){var Be=ie.display.sizer.getBoundingClientRect();me+=Be.left,Ee+=Be.top}var qe=ie.display.lineSpace.getBoundingClientRect();return{left:me-qe.left,top:Ee-qe.top}}function xo(ie,ae,ve,me,Ee){return me||(me=oi(ie.doc,ae.line)),Ya(ie,me,Ol(ie,me,ae.ch,Ee),ve)}function Fo(ie,ae,ve,me,Ee,Be){me=me||oi(ie.doc,ae.line),Ee||(Ee=Ts(ie,me));function qe(Ii,_i){var Wi=Ds(ie,Ee,Ii,_i?"right":"left",Be);return _i?Wi.left=Wi.right:Wi.right=Wi.left,Ya(ie,me,Wi,ve)}var ht=wn(me,ie.doc.direction),ct=ae.ch,Tt=ae.sticky;if(ct>=me.text.length?(ct=me.text.length,Tt="before"):ct<=0&&(ct=0,Tt="after"),!ht)return qe(Tt=="before"?ct-1:ct,Tt=="before");function ln(Ii,_i,Wi){var sr=ht[_i],Mr=sr.level==1;return qe(Wi?Ii-1:Ii,Mr!=Wi)}var Dt=vn(ht,ct,Tt),Hn=rn,Dn=ln(ct,Dt,Tt=="before");return Hn!=null&&(Dn.other=ln(ct,Hn,Tt!="before")),Dn}function hs(ie,ae){var ve=0;ae=Pn(ie.doc,ae),ie.options.lineWrapping||(ve=sc(ie.display)*ae.ch);var me=oi(ie.doc,ae.line),Ee=Zr(me)+Wo(ie.display);return{left:ve,right:ve,top:Ee,bottom:Ee+me.height}}function La(ie,ae,ve,me,Ee){var Be=zt(ie,ae,ve);return Be.xRel=Ee,me&&(Be.outside=me),Be}function Ka(ie,ae,ve){var me=ie.doc;if(ve+=ie.display.viewOffset,ve<0)return La(me.first,0,null,-1,-1);var Ee=yn(me,ve),Be=me.first+me.size-1;if(Ee>Be)return La(me.first+me.size-1,oi(me,Be).text.length,null,1,1);ae<0&&(ae=0);for(var qe=oi(me,Ee);;){var ht=Kn(ie,qe,Ee,ae,ve),ct=nr(qe,ht.ch+(ht.xRel>0||ht.outside>0?1:0));if(!ct)return ht;var Tt=ct.find(1);if(Tt.line==Ee)return Tt;qe=oi(me,Ee=Tt.line)}}function ir(ie,ae,ve,me){me-=_a(ae);var Ee=ae.text.length,Be=$t(function(qe){return Ds(ie,ve,qe-1).bottom<=me},Ee,0);return Ee=$t(function(qe){return Ds(ie,ve,qe).top>me},Be,Ee),{begin:Be,end:Ee}}function cl(ie,ae,ve,me){ve||(ve=Ts(ie,ae));var Ee=Ya(ie,ae,Ds(ie,ve,me),"line").top;return ir(ie,ae,ve,Ee)}function Bt(ie,ae,ve,me){return ie.bottom<=ve?!1:ie.top>ve?!0:(me?ie.left:ie.right)>ae}function Kn(ie,ae,ve,me,Ee){Ee-=Zr(ae);var Be=Ts(ie,ae),qe=_a(ae),ht=0,ct=ae.text.length,Tt=!0,ln=wn(ae,ie.doc.direction);if(ln){var Dt=(ie.options.lineWrapping?ac:uu)(ie,ae,ve,Be,ln,me,Ee);Tt=Dt.level!=1,ht=Tt?Dt.from:Dt.to-1,ct=Tt?Dt.to:Dt.from-1}var Hn=null,Dn=null,Ii=$t(function(oo){var yr=Ds(ie,Be,oo);return yr.top+=qe,yr.bottom+=qe,Bt(yr,me,Ee,!1)?(yr.top<=Ee&&yr.left<=me&&(Hn=oo,Dn=yr),!0):!1},ht,ct),_i,Wi,sr=!1;if(Dn){var Mr=me-Dn.left<Dn.right-me,Er=Mr==Tt;Ii=Hn+(Er?0:1),Wi=Er?"after":"before",_i=Mr?Dn.left:Dn.right}else{!Tt&&(Ii==ct||Ii==ht)&&Ii++,Wi=Ii==0?"after":Ii==ae.text.length?"before":Ds(ie,Be,Ii-(Tt?1:0)).bottom+qe<=Ee==Tt?"after":"before";var Fr=Fo(ie,zt(ve,Ii,Wi),"line",ae,Be);_i=Fr.left,sr=Ee<Fr.top?-1:Ee>=Fr.bottom?1:0}return Ii=tn(ae.text,Ii,1),La(ve,Ii,Wi,sr,me-_i)}function uu(ie,ae,ve,me,Ee,Be,qe){var ht=$t(function(Dt){var Hn=Ee[Dt],Dn=Hn.level!=1;return Bt(Fo(ie,zt(ve,Dn?Hn.to:Hn.from,Dn?"before":"after"),"line",ae,me),Be,qe,!0)},0,Ee.length-1),ct=Ee[ht];if(ht>0){var Tt=ct.level!=1,ln=Fo(ie,zt(ve,Tt?ct.from:ct.to,Tt?"after":"before"),"line",ae,me);Bt(ln,Be,qe,!0)&&ln.top>qe&&(ct=Ee[ht-1])}return ct}function ac(ie,ae,ve,me,Ee,Be,qe){var ht=ir(ie,ae,me,qe),ct=ht.begin,Tt=ht.end;/\s/.test(ae.text.charAt(Tt-1))&&Tt--;for(var ln=null,Dt=null,Hn=0;Hn<Ee.length;Hn++){var Dn=Ee[Hn];if(!(Dn.from>=Tt||Dn.to<=ct)){var Ii=Dn.level!=1,_i=Ds(ie,me,Ii?Math.min(Tt,Dn.to)-1:Math.max(ct,Dn.from)).right,Wi=_i<Be?Be-_i+1e9:_i-Be;(!ln||Dt>Wi)&&(ln=Dn,Dt=Wi)}}return ln||(ln=Ee[Ee.length-1]),ln.from<ct&&(ln={from:ct,to:ln.to,level:ln.level}),ln.to>Tt&&(ln={from:ln.from,to:Tt,level:ln.level}),ln}var Js;function Wl(ie){if(ie.cachedTextHeight!=null)return ie.cachedTextHeight;if(Js==null){Js=ft("pre",null,"CodeMirror-line-like");for(var ae=0;ae<49;++ae)Js.appendChild(document.createTextNode("x")),Js.appendChild(ft("br"));Js.appendChild(document.createTextNode("x"))}rt(ie.measure,Js);var ve=Js.offsetHeight/50;return ve>3&&(ie.cachedTextHeight=ve),nt(ie.measure),ve||1}function sc(ie){if(ie.cachedCharWidth!=null)return ie.cachedCharWidth;var ae=ft("span","xxxxxxxxxx"),ve=ft("pre",[ae],"CodeMirror-line-like");rt(ie.measure,ve);var me=ae.getBoundingClientRect(),Ee=(me.right-me.left)/10;return Ee>2&&(ie.cachedCharWidth=Ee),Ee||10}function Yc(ie){for(var ae=ie.display,ve={},me={},Ee=ae.gutters.clientLeft,Be=ae.gutters.firstChild,qe=0;Be;Be=Be.nextSibling,++qe){var ht=ie.display.gutterSpecs[qe].className;ve[ht]=Be.offsetLeft+Be.clientLeft+Ee,me[ht]=Be.clientWidth}return{fixedPos:Vc(ae),gutterTotalWidth:ae.gutters.offsetWidth,gutterLeft:ve,gutterWidth:me,wrapperWidth:ae.wrapper.clientWidth}}function Vc(ie){return ie.scroller.getBoundingClientRect().left-ie.sizer.getBoundingClientRect().left}function ma(ie){var ae=Wl(ie.display),ve=ie.options.lineWrapping,me=ve&&Math.max(5,ie.display.scroller.clientWidth/sc(ie.display)-3);return function(Ee){if(ri(ie.doc,Ee))return 0;var Be=0;if(Ee.widgets)for(var qe=0;qe<Ee.widgets.length;qe++)Ee.widgets[qe].height&&(Be+=Ee.widgets[qe].height);return ve?Be+(Math.ceil(Ee.text.length/me)||1)*ae:Be+ae}}function Br(ie){var ae=ie.doc,ve=ma(ie);ae.iter(function(me){var Ee=ve(me);Ee!=me.height&&li(me,Ee)})}function os(ie,ae,ve,me){var Ee=ie.display;if(!ve&&Hi(ae).getAttribute("cm-not-content")=="true")return null;var Be,qe,ht=Ee.lineSpace.getBoundingClientRect();try{Be=ae.clientX-ht.left,qe=ae.clientY-ht.top}catch(Dt){return null}var ct=Ka(ie,Be,qe),Tt;if(me&&ct.xRel>0&&(Tt=oi(ie.doc,ct.line).text).length==ct.ch){var ln=Nt(Tt,Tt.length,ie.options.tabSize)-Tt.length;ct=zt(ct.line,Math.max(0,Math.round((Be-ms(ie.display).left)/sc(ie.display))-ln))}return ct}function As(ie,ae){if(ae>=ie.display.viewTo||(ae-=ie.display.viewFrom,ae<0))return null;for(var ve=ie.display.view,me=0;me<ve.length;me++)if(ae-=ve[me].size,ae<0)return me}function ko(ie,ae,ve,me){ae==null&&(ae=ie.doc.first),ve==null&&(ve=ie.doc.first+ie.doc.size),me||(me=0);var Ee=ie.display;if(me&&ve<Ee.viewTo&&(Ee.updateLineNumbers==null||Ee.updateLineNumbers>ae)&&(Ee.updateLineNumbers=ae),ie.curOp.viewChanged=!0,ae>=Ee.viewTo)Fn&&hr(ie.doc,ae)<Ee.viewTo&&ja(ie);else if(ve<=Ee.viewFrom)Fn&&ar(ie.doc,ve+me)>Ee.viewFrom?ja(ie):(Ee.viewFrom+=me,Ee.viewTo+=me);else if(ae<=Ee.viewFrom&&ve>=Ee.viewTo)ja(ie);else if(ae<=Ee.viewFrom){var Be=Os(ie,ve,ve+me,1);Be?(Ee.view=Ee.view.slice(Be.index),Ee.viewFrom=Be.lineN,Ee.viewTo+=me):ja(ie)}else if(ve>=Ee.viewTo){var qe=Os(ie,ae,ae,-1);qe?(Ee.view=Ee.view.slice(0,qe.index),Ee.viewTo=qe.lineN):ja(ie)}else{var ht=Os(ie,ae,ae,-1),ct=Os(ie,ve,ve+me,1);ht&&ct?(Ee.view=Ee.view.slice(0,ht.index).concat(zo(ie,ht.lineN,ct.lineN)).concat(Ee.view.slice(ct.index)),Ee.viewTo+=me):ja(ie)}var Tt=Ee.externalMeasured;Tt&&(ve<Tt.lineN?Tt.lineN+=me:ae<Tt.lineN+Tt.size&&(Ee.externalMeasured=null))}function po(ie,ae,ve){ie.curOp.viewChanged=!0;var me=ie.display,Ee=ie.display.externalMeasured;if(Ee&&ae>=Ee.lineN&&ae<Ee.lineN+Ee.size&&(me.externalMeasured=null),!(ae<me.viewFrom||ae>=me.viewTo)){var Be=me.view[As(ie,ae)];if(Be.node!=null){var qe=Be.changes||(Be.changes=[]);it(qe,ve)==-1&&qe.push(ve)}}}function ja(ie){ie.display.viewFrom=ie.display.viewTo=ie.doc.first,ie.display.view=[],ie.display.viewOffset=0}function Os(ie,ae,ve,me){var Ee=As(ie,ae),Be,qe=ie.display.view;if(!Fn||ve==ie.doc.first+ie.doc.size)return{index:Ee,lineN:ve};for(var ht=ie.display.viewFrom,ct=0;ct<Ee;ct++)ht+=qe[ct].size;if(ht!=ae){if(me>0){if(Ee==qe.length-1)return null;Be=ht+qe[Ee].size-ae,Ee++}else Be=ht-ae;ae+=Be,ve+=Be}for(;hr(ie.doc,ve)!=ve;){if(Ee==(me<0?0:qe.length-1))return null;ve+=me*qe[Ee-(me<0?1:0)].size,Ee+=me}return{index:Ee,lineN:ve}}function ta(ie,ae,ve){var me=ie.display,Ee=me.view;Ee.length==0||ae>=me.viewTo||ve<=me.viewFrom?(me.view=zo(ie,ae,ve),me.viewFrom=ae):(me.viewFrom>ae?me.view=zo(ie,ae,me.viewFrom).concat(me.view):me.viewFrom<ae&&(me.view=me.view.slice(As(ie,ae))),me.viewFrom=ae,me.viewTo<ve?me.view=me.view.concat(zo(ie,me.viewTo,ve)):me.viewTo>ve&&(me.view=me.view.slice(0,As(ie,ve)))),me.viewTo=ve}function qs(ie){for(var ae=ie.display.view,ve=0,me=0;me<ae.length;me++){var Ee=ae[me];!Ee.hidden&&(!Ee.node||Ee.changes)&&++ve}return ve}function Qa(ie){ie.display.input.showSelection(ie.display.input.prepareSelection())}function Tu(ie,ae){ae===void 0&&(ae=!0);for(var ve=ie.doc,me={},Ee=me.cursors=document.createDocumentFragment(),Be=me.selection=document.createDocumentFragment(),qe=0;qe<ve.sel.ranges.length;qe++)if(!(!ae&&qe==ve.sel.primIndex)){var ht=ve.sel.ranges[qe];if(!(ht.from().line>=ie.display.viewTo||ht.to().line<ie.display.viewFrom)){var ct=ht.empty();(ct||ie.options.showCursorWhenSelecting)&&Oo(ie,ht.head,Ee),ct||wo(ie,ht,Be)}}return me}function Oo(ie,ae,ve){var me=Fo(ie,ae,"div",null,null,!ie.options.singleCursorHeightPerLine),Ee=ve.appendChild(ft("div","\xA0","CodeMirror-cursor"));if(Ee.style.left=me.left+"px",Ee.style.top=me.top+"px",Ee.style.height=Math.max(0,me.bottom-me.top)*ie.options.cursorHeight+"px",me.other){var Be=ve.appendChild(ft("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Be.style.display="",Be.style.left=me.other.left+"px",Be.style.top=me.other.top+"px",Be.style.height=(me.other.bottom-me.other.top)*.85+"px"}}function ys(ie,ae){return ie.top-ae.top||ie.left-ae.left}function wo(ie,ae,ve){var me=ie.display,Ee=ie.doc,Be=document.createDocumentFragment(),qe=ms(ie.display),ht=qe.left,ct=Math.max(me.sizerWidth,Aa(ie)-me.sizer.offsetLeft)-qe.right,Tt=Ee.direction=="ltr";function ln(Er,Fr,oo,yr){Fr<0&&(Fr=0),Fr=Math.round(Fr),yr=Math.round(yr),Be.appendChild(ft("div",null,"CodeMirror-selected","position: absolute; left: "+Er+`px;
top: `+Fr+"px; width: "+(oo==null?ct-Er:oo)+`px;
height: `+(yr-Fr)+"px"))}function Dt(Er,Fr,oo){var yr=oi(Ee,Er),No=yr.text.length,Ra,Ps;function Wa(xs,$l){return xo(ie,zt(Er,xs),"div",yr,$l)}function zl(xs,$l,tl){var bs=cl(ie,yr,null,xs),ea=$l=="ltr"==(tl=="after")?"left":"right",Ja=tl=="after"?bs.begin:bs.end-(/\s/.test(yr.text.charAt(bs.end-1))?2:1);return Wa(Ja,ea)[ea]}var hl=wn(yr,Ee.direction);return Ht(hl,Fr||0,oo==null?No:oo,function(xs,$l,tl,bs){var ea=tl=="ltr",Ja=Wa(xs,ea?"left":"right"),js=Wa($l-1,ea?"right":"left"),nl=Fr==null&&xs==0,Qu=oo==null&&$l==No,Za=bs==0,Du=!hl||bs==hl.length-1;if(js.top-Ja.top<=3){var ns=(Tt?nl:Qu)&&Za,rf=(Tt?Qu:nl)&&Du,mu=ns?ht:(ea?Ja:js).left,eu=rf?ct:(ea?js:Ja).right;ln(mu,Ja.top,eu-mu,Ja.bottom)}else{var Ul,ba,zs,Lc;ea?(Ul=Tt&&nl&&Za?ht:Ja.left,ba=Tt?ct:zl(xs,tl,"before"),zs=Tt?ht:zl($l,tl,"after"),Lc=Tt&&Qu&&Du?ct:js.right):(Ul=Tt?zl(xs,tl,"before"):ht,ba=!Tt&&nl&&Za?ct:Ja.right,zs=!Tt&&Qu&&Du?ht:js.left,Lc=Tt?zl($l,tl,"after"):ct),ln(Ul,Ja.top,ba-Ul,Ja.bottom),Ja.bottom<js.top&&ln(ht,Ja.bottom,null,js.top),ln(zs,js.top,Lc-zs,js.bottom)}(!Ra||ys(Ja,Ra)<0)&&(Ra=Ja),ys(js,Ra)<0&&(Ra=js),(!Ps||ys(Ja,Ps)<0)&&(Ps=Ja),ys(js,Ps)<0&&(Ps=js)}),{start:Ra,end:Ps}}var Hn=ae.from(),Dn=ae.to();if(Hn.line==Dn.line)Dt(Hn.line,Hn.ch,Dn.ch);else{var Ii=oi(Ee,Hn.line),_i=oi(Ee,Dn.line),Wi=Ar(Ii)==Ar(_i),sr=Dt(Hn.line,Hn.ch,Wi?Ii.text.length+1:null).end,Mr=Dt(Dn.line,Wi?0:null,Dn.ch).start;Wi&&(sr.top<Mr.top-2?(ln(sr.right,sr.top,null,sr.bottom),ln(ht,Mr.top,Mr.left,Mr.bottom)):ln(sr.right,sr.top,Mr.left-sr.right,sr.bottom)),sr.bottom<Mr.top&&ln(ht,sr.bottom,null,Mr.top)}ve.appendChild(Be)}function Xo(ie){if(ie.state.focused){var ae=ie.display;clearInterval(ae.blinker);var ve=!0;ae.cursorDiv.style.visibility="",ie.options.cursorBlinkRate>0?ae.blinker=setInterval(function(){ie.hasFocus()||lc(ie),ae.cursorDiv.style.visibility=(ve=!ve)?"":"hidden"},ie.options.cursorBlinkRate):ie.options.cursorBlinkRate<0&&(ae.cursorDiv.style.visibility="hidden")}}function $o(ie){ie.state.focused||(ie.display.input.focus(),ho(ie))}function va(ie){ie.state.delayingBlurEvent=!0,setTimeout(function(){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1,lc(ie))},100)}function ho(ie,ae){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1),ie.options.readOnly!="nocursor"&&(ie.state.focused||(En(ie,"focus",ie,ae),ie.state.focused=!0,Xt(ie.display.wrapper,"CodeMirror-focused"),!ie.curOp&&ie.display.selForContextMenu!=ie.doc.sel&&(ie.display.input.reset(),Ve&&setTimeout(function(){return ie.display.input.reset(!0)},20)),ie.display.input.receivedFocus()),Xo(ie))}function lc(ie,ae){ie.state.delayingBlurEvent||(ie.state.focused&&(En(ie,"blur",ie,ae),ie.state.focused=!1,Ze(ie.display.wrapper,"CodeMirror-focused")),clearInterval(ie.display.blinker),setTimeout(function(){ie.state.focused||(ie.display.shift=!1)},150))}function Pr(ie){for(var ae=ie.display,ve=ae.lineDiv.offsetTop,me=0;me<ae.view.length;me++){var Ee=ae.view[me],Be=ie.options.lineWrapping,qe=void 0,ht=0;if(!Ee.hidden){if(Ge&&Oe<8){var ct=Ee.node.offsetTop+Ee.node.offsetHeight;qe=ct-ve,ve=ct}else{var Tt=Ee.node.getBoundingClientRect();qe=Tt.bottom-Tt.top,!Be&&Ee.text.firstChild&&(ht=Ee.text.firstChild.getBoundingClientRect().right-Tt.left-1)}var ln=Ee.line.height-qe;if((ln>.005||ln<-.005)&&(li(Ee.line,qe),gh(Ee.line),Ee.rest))for(var Dt=0;Dt<Ee.rest.length;Dt++)gh(Ee.rest[Dt]);if(ht>ie.display.sizerWidth){var Hn=Math.ceil(ht/sc(ie.display));Hn>ie.display.maxLineLength&&(ie.display.maxLineLength=Hn,ie.display.maxLine=Ee.line,ie.display.maxLineChanged=!0)}}}}function gh(ie){if(ie.widgets)for(var ae=0;ae<ie.widgets.length;++ae){var ve=ie.widgets[ae],me=ve.node.parentNode;me&&(ve.height=me.offsetHeight)}}function Co(ie,ae,ve){var me=ve&&ve.top!=null?Math.max(0,ve.top):ie.scroller.scrollTop;me=Math.floor(me-Wo(ie));var Ee=ve&&ve.bottom!=null?ve.bottom:me+ie.wrapper.clientHeight,Be=yn(ae,me),qe=yn(ae,Ee);if(ve&&ve.ensure){var ht=ve.ensure.from.line,ct=ve.ensure.to.line;ht<Be?(Be=ht,qe=yn(ae,Zr(oi(ae,ht))+ie.wrapper.clientHeight)):Math.min(ct,ae.lastLine())>=qe&&(Be=yn(ae,Zr(oi(ae,ct))-ie.wrapper.clientHeight),qe=ct)}return{from:Be,to:Math.max(qe,Be+1)}}function ph(ie,ae){if(!Jt(ie,"scrollCursorIntoView")){var ve=ie.display,me=ve.sizer.getBoundingClientRect(),Ee=null;if(ae.top+me.top<0?Ee=!0:ae.bottom+me.top>(window.innerHeight||document.documentElement.clientHeight)&&(Ee=!1),Ee!=null&&!_t){var Be=ft("div","\u200B",null,`position: absolute;
top: `+(ae.top-ve.viewOffset-Wo(ie.display))+`px;
height: `+(ae.bottom-ae.top+Zo(ie)+ve.barHeight)+`px;
left: `+ae.left+"px; width: "+Math.max(2,ae.right-ae.left)+"px;");ie.display.lineSpace.appendChild(Be),Be.scrollIntoView(Ee),ie.display.lineSpace.removeChild(Be)}}}function Tc(ie,ae,ve,me){me==null&&(me=0);var Ee;!ie.options.lineWrapping&&ae==ve&&(ae=ae.ch?zt(ae.line,ae.sticky=="before"?ae.ch-1:ae.ch,"after"):ae,ve=ae.sticky=="before"?zt(ae.line,ae.ch+1,"before"):ae);for(var Be=0;Be<5;Be++){var qe=!1,ht=Fo(ie,ae),ct=!ve||ve==ae?ht:Fo(ie,ve);Ee={left:Math.min(ht.left,ct.left),top:Math.min(ht.top,ct.top)-me,right:Math.max(ht.left,ct.left),bottom:Math.max(ht.bottom,ct.bottom)+me};var Tt=Bd(ie,Ee),ln=ie.doc.scrollTop,Dt=ie.doc.scrollLeft;if(Tt.scrollTop!=null&&(cu(ie,Tt.scrollTop),Math.abs(ie.doc.scrollTop-ln)>1&&(qe=!0)),Tt.scrollLeft!=null&&(Kl(ie,Tt.scrollLeft),Math.abs(ie.doc.scrollLeft-Dt)>1&&(qe=!0)),!qe)break}return Ee}function Au(ie,ae){var ve=Bd(ie,ae);ve.scrollTop!=null&&cu(ie,ve.scrollTop),ve.scrollLeft!=null&&Kl(ie,ve.scrollLeft)}function Bd(ie,ae){var ve=ie.display,me=Wl(ie.display);ae.top<0&&(ae.top=0);var Ee=ie.curOp&&ie.curOp.scrollTop!=null?ie.curOp.scrollTop:ve.scroller.scrollTop,Be=Sl(ie),qe={};ae.bottom-ae.top>Be&&(ae.bottom=ae.top+Be);var ht=ie.doc.height+oa(ve),ct=ae.top<me,Tt=ae.bottom>ht-me;if(ae.top<Ee)qe.scrollTop=ct?0:ae.top;else if(ae.bottom>Ee+Be){var ln=Math.min(ae.top,(Tt?ht:ae.bottom)-Be);ln!=Ee&&(qe.scrollTop=ln)}var Dt=ie.options.fixedGutter?0:ve.gutters.offsetWidth,Hn=ie.curOp&&ie.curOp.scrollLeft!=null?ie.curOp.scrollLeft:ve.scroller.scrollLeft-Dt,Dn=Aa(ie)-ve.gutters.offsetWidth,Ii=ae.right-ae.left>Dn;return Ii&&(ae.right=ae.left+Dn),ae.left<10?qe.scrollLeft=0:ae.left<Hn?qe.scrollLeft=Math.max(0,ae.left+Dt-(Ii?0:10)):ae.right>Dn+Hn-3&&(qe.scrollLeft=ae.right+(Ii?0:10)-Dn),qe}function sd(ie,ae){ae!=null&&(Rs(ie),ie.curOp.scrollTop=(ie.curOp.scrollTop==null?ie.doc.scrollTop:ie.curOp.scrollTop)+ae)}function Zl(ie){Rs(ie);var ae=ie.getCursor();ie.curOp.scrollToPos={from:ae,to:ae,margin:ie.options.cursorScrollMargin}}function Rl(ie,ae,ve){(ae!=null||ve!=null)&&Rs(ie),ae!=null&&(ie.curOp.scrollLeft=ae),ve!=null&&(ie.curOp.scrollTop=ve)}function To(ie,ae){Rs(ie),ie.curOp.scrollToPos=ae}function Rs(ie){var ae=ie.curOp.scrollToPos;if(ae){ie.curOp.scrollToPos=null;var ve=hs(ie,ae.from),me=hs(ie,ae.to);Ac(ie,ve,me,ae.margin)}}function Ac(ie,ae,ve,me){var Ee=Bd(ie,{left:Math.min(ae.left,ve.left),top:Math.min(ae.top,ve.top)-me,right:Math.max(ae.right,ve.right),bottom:Math.max(ae.bottom,ve.bottom)+me});Rl(ie,Ee.scrollLeft,Ee.scrollTop)}function cu(ie,ae){Math.abs(ie.doc.scrollTop-ae)<2||(le||We(ie,{top:ae}),Cu(ie,ae,!0),le&&We(ie),Wu(ie,100))}function Cu(ie,ae,ve){ae=Math.max(0,Math.min(ie.display.scroller.scrollHeight-ie.display.scroller.clientHeight,ae)),!(ie.display.scroller.scrollTop==ae&&!ve)&&(ie.doc.scrollTop=ae,ie.display.scrollbars.setScrollTop(ae),ie.display.scroller.scrollTop!=ae&&(ie.display.scroller.scrollTop=ae))}function Kl(ie,ae,ve,me){ae=Math.max(0,Math.min(ae,ie.display.scroller.scrollWidth-ie.display.scroller.clientWidth)),!((ve?ae==ie.doc.scrollLeft:Math.abs(ie.doc.scrollLeft-ae)<2)&&!me)&&(ie.doc.scrollLeft=ae,Rt(ie),ie.display.scroller.scrollLeft!=ae&&(ie.display.scroller.scrollLeft=ae),ie.display.scrollbars.setScrollLeft(ae))}function El(ie){var ae=ie.display,ve=ae.gutters.offsetWidth,me=Math.round(ie.doc.height+oa(ie.display));return{clientHeight:ae.scroller.clientHeight,viewHeight:ae.wrapper.clientHeight,scrollWidth:ae.scroller.scrollWidth,clientWidth:ae.scroller.clientWidth,viewWidth:ae.wrapper.clientWidth,barLeft:ie.options.fixedGutter?ve:0,docHeight:me,scrollHeight:me+Zo(ie)+ae.barHeight,nativeBarWidth:ae.nativeBarWidth,gutterWidth:ve}}var Yu=function(ie,ae,ve){this.cm=ve;var me=this.vert=ft("div",[ft("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),Ee=this.horiz=ft("div",[ft("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");me.tabIndex=Ee.tabIndex=-1,ie(me),ie(Ee),Ft(me,"scroll",function(){me.clientHeight&&ae(me.scrollTop,"vertical")}),Ft(Ee,"scroll",function(){Ee.clientWidth&&ae(Ee.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Ge&&Oe<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Yu.prototype.update=function(ie){var ae=ie.scrollWidth>ie.clientWidth+1,ve=ie.scrollHeight>ie.clientHeight+1,me=ie.nativeBarWidth;if(ve){this.vert.style.display="block",this.vert.style.bottom=ae?me+"px":"0";var Ee=ie.viewHeight-(ae?me:0);this.vert.firstChild.style.height=Math.max(0,ie.scrollHeight-ie.clientHeight+Ee)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(ae){this.horiz.style.display="block",this.horiz.style.right=ve?me+"px":"0",this.horiz.style.left=ie.barLeft+"px";var Be=ie.viewWidth-ie.barLeft-(ve?me:0);this.horiz.firstChild.style.width=Math.max(0,ie.scrollWidth-ie.clientWidth+Be)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&ie.clientHeight>0&&(me==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ve?me:0,bottom:ae?me:0}},Yu.prototype.setScrollLeft=function(ie){this.horiz.scrollLeft!=ie&&(this.horiz.scrollLeft=ie),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Yu.prototype.setScrollTop=function(ie){this.vert.scrollTop!=ie&&(this.vert.scrollTop=ie),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Yu.prototype.zeroWidthHack=function(){var ie=fe&&!st?"12px":"18px";this.horiz.style.height=this.vert.style.width=ie,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ut,this.disableVert=new ut},Yu.prototype.enableZeroWidthBar=function(ie,ae,ve){ie.style.pointerEvents="auto";function me(){var Ee=ie.getBoundingClientRect(),Be=ve=="vert"?document.elementFromPoint(Ee.right-1,(Ee.top+Ee.bottom)/2):document.elementFromPoint((Ee.right+Ee.left)/2,Ee.bottom-1);Be!=ie?ie.style.pointerEvents="none":ae.set(1e3,me)}ae.set(1e3,me)},Yu.prototype.clear=function(){var ie=this.horiz.parentNode;ie.removeChild(this.horiz),ie.removeChild(this.vert)};var xl=function(){};xl.prototype.update=function(){return{bottom:0,right:0}},xl.prototype.setScrollLeft=function(){},xl.prototype.setScrollTop=function(){},xl.prototype.clear=function(){};function du(ie,ae){ae||(ae=El(ie));var ve=ie.display.barWidth,me=ie.display.barHeight;uc(ie,ae);for(var Ee=0;Ee<4&&ve!=ie.display.barWidth||me!=ie.display.barHeight;Ee++)ve!=ie.display.barWidth&&ie.options.lineWrapping&&Pr(ie),uc(ie,El(ie)),ve=ie.display.barWidth,me=ie.display.barHeight}function uc(ie,ae){var ve=ie.display,me=ve.scrollbars.update(ae);ve.sizer.style.paddingRight=(ve.barWidth=me.right)+"px",ve.sizer.style.paddingBottom=(ve.barHeight=me.bottom)+"px",ve.heightForcer.style.borderBottom=me.bottom+"px solid transparent",me.right&&me.bottom?(ve.scrollbarFiller.style.display="block",ve.scrollbarFiller.style.height=me.bottom+"px",ve.scrollbarFiller.style.width=me.right+"px"):ve.scrollbarFiller.style.display="",me.bottom&&ie.options.coverGutterNextToScrollbar&&ie.options.fixedGutter?(ve.gutterFiller.style.display="block",ve.gutterFiller.style.height=me.bottom+"px",ve.gutterFiller.style.width=ae.gutterWidth+"px"):ve.gutterFiller.style.display=""}var Vu={native:Yu,null:xl};function cc(ie){ie.display.scrollbars&&(ie.display.scrollbars.clear(),ie.display.scrollbars.addClass&&Ze(ie.display.wrapper,ie.display.scrollbars.addClass)),ie.display.scrollbars=new Vu[ie.options.scrollbarStyle](function(ae){ie.display.wrapper.insertBefore(ae,ie.display.scrollbarFiller),Ft(ae,"mousedown",function(){ie.state.focused&&setTimeout(function(){return ie.display.input.focus()},0)}),ae.setAttribute("cm-not-content","true")},function(ae,ve){ve=="horizontal"?Kl(ie,ae):cu(ie,ae)},ie),ie.display.scrollbars.addClass&&Xt(ie.display.wrapper,ie.display.scrollbars.addClass)}var dc=0;function hu(ie){ie.curOp={cm:ie,viewChanged:!1,startHeight:ie.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++dc},sl(ie.curOp)}function Nu(ie){var ae=ie.curOp;ae&&Xs(ae,function(ve){for(var me=0;me<ve.ops.length;me++)ve.ops[me].cm.curOp=null;ld(ve)})}function ld(ie){for(var ae=ie.ops,ve=0;ve<ae.length;ve++)mh(ae[ve]);for(var me=0;me<ae.length;me++)vh(ae[me]);for(var Ee=0;Ee<ae.length;Ee++)yh(ae[Ee]);for(var Be=0;Be<ae.length;Be++)Ia(ae[Be]);for(var qe=0;qe<ae.length;qe++)Mu(ae[qe])}function mh(ie){var ae=ie.cm,ve=ae.display;ud(ae),ie.updateMaxLine&&Do(ae),ie.mustUpdate=ie.viewChanged||ie.forceUpdate||ie.scrollTop!=null||ie.scrollToPos&&(ie.scrollToPos.from.line<ve.viewFrom||ie.scrollToPos.to.line>=ve.viewTo)||ve.maxLineChanged&&ae.options.lineWrapping,ie.update=ie.mustUpdate&&new Pu(ae,ie.mustUpdate&&{top:ie.scrollTop,ensure:ie.scrollToPos},ie.forceUpdate)}function vh(ie){ie.updatedDisplay=ie.mustUpdate&&xe(ie.cm,ie.update)}function yh(ie){var ae=ie.cm,ve=ae.display;ie.updatedDisplay&&Pr(ae),ie.barMeasure=El(ae),ve.maxLineChanged&&!ae.options.lineWrapping&&(ie.adjustWidthTo=Ol(ae,ve.maxLine,ve.maxLine.text.length).left+3,ae.display.sizerWidth=ie.adjustWidthTo,ie.barMeasure.scrollWidth=Math.max(ve.scroller.clientWidth,ve.sizer.offsetLeft+ie.adjustWidthTo+Zo(ae)+ae.display.barWidth),ie.maxScrollLeft=Math.max(0,ve.sizer.offsetLeft+ie.adjustWidthTo-Aa(ae))),(ie.updatedDisplay||ie.selectionChanged)&&(ie.preparedSelection=ve.input.prepareSelection())}function Ia(ie){var ae=ie.cm;ie.adjustWidthTo!=null&&(ae.display.sizer.style.minWidth=ie.adjustWidthTo+"px",ie.maxScrollLeft<ae.doc.scrollLeft&&Kl(ae,Math.min(ae.display.scroller.scrollLeft,ie.maxScrollLeft),!0),ae.display.maxLineChanged=!1);var ve=ie.focus&&ie.focus==Mt();ie.preparedSelection&&ae.display.input.showSelection(ie.preparedSelection,ve),(ie.updatedDisplay||ie.startHeight!=ae.doc.height)&&du(ae,ie.barMeasure),ie.updatedDisplay&&Et(ae,ie.barMeasure),ie.selectionChanged&&Xo(ae),ae.state.focused&&ie.updateInput&&ae.display.input.reset(ie.typing),ve&&$o(ie.cm)}function Mu(ie){var ae=ie.cm,ve=ae.display,me=ae.doc;if(ie.updatedDisplay&&je(ae,ie.update),ve.wheelStartX!=null&&(ie.scrollTop!=null||ie.scrollLeft!=null||ie.scrollToPos)&&(ve.wheelStartX=ve.wheelStartY=null),ie.scrollTop!=null&&Cu(ae,ie.scrollTop,ie.forceScroll),ie.scrollLeft!=null&&Kl(ae,ie.scrollLeft,!0,!0),ie.scrollToPos){var Ee=Tc(ae,Pn(me,ie.scrollToPos.from),Pn(me,ie.scrollToPos.to),ie.scrollToPos.margin);ph(ae,Ee)}var Be=ie.maybeHiddenMarkers,qe=ie.maybeUnhiddenMarkers;if(Be)for(var ht=0;ht<Be.length;++ht)Be[ht].lines.length||En(Be[ht],"hide");if(qe)for(var ct=0;ct<qe.length;++ct)qe[ct].lines.length&&En(qe[ct],"unhide");ve.wrapper.offsetHeight&&(me.scrollTop=ae.display.scroller.scrollTop),ie.changeObjs&&En(ae,"changes",ae,ie.changeObjs),ie.update&&ie.update.finish()}function Ko(ie,ae){if(ie.curOp)return ae();hu(ie);try{return ae()}finally{Nu(ie)}}function Xa(ie,ae){return function(){if(ie.curOp)return ae.apply(ie,arguments);hu(ie);try{return ae.apply(ie,arguments)}finally{Nu(ie)}}}function as(ie){return function(){if(this.curOp)return ie.apply(this,arguments);hu(this);try{return ie.apply(this,arguments)}finally{Nu(this)}}}function ts(ie){return function(){var ae=this.cm;if(!ae||ae.curOp)return ie.apply(this,arguments);hu(ae);try{return ie.apply(this,arguments)}finally{Nu(ae)}}}function Wu(ie,ae){ie.doc.highlightFrontier<ie.display.viewTo&&ie.state.highlight.set(ae,fn(fs,ie))}function fs(ie){var ae=ie.doc;if(!(ae.highlightFrontier>=ie.display.viewTo)){var ve=+new Date+ie.options.workTime,me=Vr(ie,ae.highlightFrontier),Ee=[];ae.iter(me.line,Math.min(ae.first+ae.size,ie.display.viewTo+500),function(Be){if(me.line>=ie.display.viewFrom){var qe=Be.styles,ht=Be.text.length>ie.options.maxHighlightLength?$n(ae.mode,me.state):null,ct=Zt(ie,Be,me,!0);ht&&(me.state=ht),Be.styles=ct.styles;var Tt=Be.styleClasses,ln=ct.classes;ln?Be.styleClasses=ln:Tt&&(Be.styleClasses=null);for(var Dt=!qe||qe.length!=Be.styles.length||Tt!=ln&&(!Tt||!ln||Tt.bgClass!=ln.bgClass||Tt.textClass!=ln.textClass),Hn=0;!Dt&&Hn<qe.length;++Hn)Dt=qe[Hn]!=Be.styles[Hn];Dt&&Ee.push(me.line),Be.stateAfter=me.save(),me.nextLine()}else Be.text.length<=ie.options.maxHighlightLength&&en(ie,Be.text,me),Be.stateAfter=me.line%5==0?me.save():null,me.nextLine();if(+new Date>ve)return Wu(ie,ie.options.workDelay),!0}),ae.highlightFrontier=me.line,ae.modeFrontier=Math.max(ae.modeFrontier,me.line),Ee.length&&Ko(ie,function(){for(var Be=0;Be<Ee.length;Be++)po(ie,Ee[Be],"text")})}}var Pu=function(ie,ae,ve){var me=ie.display;this.viewport=ae,this.visible=Co(me,ie.doc,ae),this.editorIsHidden=!me.wrapper.offsetWidth,this.wrapperHeight=me.wrapper.clientHeight,this.wrapperWidth=me.wrapper.clientWidth,this.oldDisplayWidth=Aa(ie),this.force=ve,this.dims=Yc(ie),this.events=[]};Pu.prototype.signal=function(ie,ae){Gn(ie,ae)&&this.events.push(arguments)},Pu.prototype.finish=function(){for(var ie=0;ie<this.events.length;ie++)En.apply(null,this.events[ie])};function ud(ie){var ae=ie.display;!ae.scrollbarsClipped&&ae.scroller.offsetWidth&&(ae.nativeBarWidth=ae.scroller.offsetWidth-ae.scroller.clientWidth,ae.heightForcer.style.height=Zo(ie)+"px",ae.sizer.style.marginBottom=-ae.nativeBarWidth+"px",ae.sizer.style.borderRightWidth=Zo(ie)+"px",ae.scrollbarsClipped=!0)}function cd(ie){if(ie.hasFocus())return null;var ae=Mt();if(!ae||!wt(ie.display.lineDiv,ae))return null;var ve={activeElt:ae};if(window.getSelection){var me=window.getSelection();me.anchorNode&&me.extend&&wt(ie.display.lineDiv,me.anchorNode)&&(ve.anchorNode=me.anchorNode,ve.anchorOffset=me.anchorOffset,ve.focusNode=me.focusNode,ve.focusOffset=me.focusOffset)}return ve}function Fs(ie){if(!(!ie||!ie.activeElt||ie.activeElt==Mt())&&(ie.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(ie.activeElt.nodeName)&&ie.anchorNode&&wt(document.body,ie.anchorNode)&&wt(document.body,ie.focusNode))){var ae=window.getSelection(),ve=document.createRange();ve.setEnd(ie.anchorNode,ie.anchorOffset),ve.collapse(!1),ae.removeAllRanges(),ae.addRange(ve),ae.extend(ie.focusNode,ie.focusOffset)}}function xe(ie,ae){var ve=ie.display,me=ie.doc;if(ae.editorIsHidden)return ja(ie),!1;if(!ae.force&&ae.visible.from>=ve.viewFrom&&ae.visible.to<=ve.viewTo&&(ve.updateLineNumbers==null||ve.updateLineNumbers>=ve.viewTo)&&ve.renderedView==ve.view&&qs(ie)==0)return!1;Wt(ie)&&(ja(ie),ae.dims=Yc(ie));var Ee=me.first+me.size,Be=Math.max(ae.visible.from-ie.options.viewportMargin,me.first),qe=Math.min(Ee,ae.visible.to+ie.options.viewportMargin);ve.viewFrom<Be&&Be-ve.viewFrom<20&&(Be=Math.max(me.first,ve.viewFrom)),ve.viewTo>qe&&ve.viewTo-qe<20&&(qe=Math.min(Ee,ve.viewTo)),Fn&&(Be=hr(ie.doc,Be),qe=ar(ie.doc,qe));var ht=Be!=ve.viewFrom||qe!=ve.viewTo||ve.lastWrapHeight!=ae.wrapperHeight||ve.lastWrapWidth!=ae.wrapperWidth;ta(ie,Be,qe),ve.viewOffset=Zr(oi(ie.doc,ve.viewFrom)),ie.display.mover.style.top=ve.viewOffset+"px";var ct=qs(ie);if(!ht&&ct==0&&!ae.force&&ve.renderedView==ve.view&&(ve.updateLineNumbers==null||ve.updateLineNumbers>=ve.viewTo))return!1;var Tt=cd(ie);return ct>4&&(ve.lineDiv.style.display="none"),et(ie,ve.updateLineNumbers,ae.dims),ct>4&&(ve.lineDiv.style.display=""),ve.renderedView=ve.view,Fs(Tt),nt(ve.cursorDiv),nt(ve.selectionDiv),ve.gutters.style.height=ve.sizer.style.minHeight=0,ht&&(ve.lastWrapHeight=ae.wrapperHeight,ve.lastWrapWidth=ae.wrapperWidth,Wu(ie,400)),ve.updateLineNumbers=null,!0}function je(ie,ae){for(var ve=ae.viewport,me=!0;;me=!1){if(!me||!ie.options.lineWrapping||ae.oldDisplayWidth==Aa(ie)){if(ve&&ve.top!=null&&(ve={top:Math.min(ie.doc.height+oa(ie.display)-Sl(ie),ve.top)}),ae.visible=Co(ie.display,ie.doc,ve),ae.visible.from>=ie.display.viewFrom&&ae.visible.to<=ie.display.viewTo)break}else me&&(ae.visible=Co(ie.display,ie.doc,ve));if(!xe(ie,ae))break;Pr(ie);var Ee=El(ie);Qa(ie),du(ie,Ee),Et(ie,Ee),ae.force=!1}ae.signal(ie,"update",ie),(ie.display.viewFrom!=ie.display.reportedViewFrom||ie.display.viewTo!=ie.display.reportedViewTo)&&(ae.signal(ie,"viewportChange",ie,ie.display.viewFrom,ie.display.viewTo),ie.display.reportedViewFrom=ie.display.viewFrom,ie.display.reportedViewTo=ie.display.viewTo)}function We(ie,ae){var ve=new Pu(ie,ae);if(xe(ie,ve)){Pr(ie),je(ie,ve);var me=El(ie);Qa(ie),du(ie,me),Et(ie,me),ve.finish()}}function et(ie,ae,ve){var me=ie.display,Ee=ie.options.lineNumbers,Be=me.lineDiv,qe=Be.firstChild;function ht(Ii){var _i=Ii.nextSibling;return Ve&&fe&&ie.display.currentWheelTarget==Ii?Ii.style.display="none":Ii.parentNode.removeChild(Ii),_i}for(var ct=me.view,Tt=me.viewFrom,ln=0;ln<ct.length;ln++){var Dt=ct[ln];if(!Dt.hidden)if(!Dt.node||Dt.node.parentNode!=Be){var Hn=Qr(ie,Dt,Tt,ve);Be.insertBefore(Hn,qe)}else{for(;qe!=Dt.node;)qe=ht(qe);var Dn=Ee&&ae!=null&&ae<=Tt&&Dt.lineNumber;Dt.changes&&(it(Dt.changes,"gutter")>-1&&(Dn=!1),Dl(ie,Dt,Tt,ve)),Dn&&(nt(Dt.lineNumber),Dt.lineNumber.appendChild(document.createTextNode(Ti(ie.options,Tt)))),qe=Dt.node.nextSibling}Tt+=Dt.size}for(;qe;)qe=ht(qe)}function St(ie){var ae=ie.gutters.offsetWidth;ie.sizer.style.marginLeft=ae+"px"}function Et(ie,ae){ie.display.sizer.style.minHeight=ae.docHeight+"px",ie.display.heightForcer.style.top=ae.docHeight+"px",ie.display.gutters.style.height=ae.docHeight+ie.display.barHeight+Zo(ie)+"px"}function Rt(ie){var ae=ie.display,ve=ae.view;if(!(!ae.alignWidgets&&(!ae.gutters.firstChild||!ie.options.fixedGutter))){for(var me=Vc(ae)-ae.scroller.scrollLeft+ie.doc.scrollLeft,Ee=ae.gutters.offsetWidth,Be=me+"px",qe=0;qe<ve.length;qe++)if(!ve[qe].hidden){ie.options.fixedGutter&&(ve[qe].gutter&&(ve[qe].gutter.style.left=Be),ve[qe].gutterBackground&&(ve[qe].gutterBackground.style.left=Be));var ht=ve[qe].alignable;if(ht)for(var ct=0;ct<ht.length;ct++)ht[ct].style.left=Be}ie.options.fixedGutter&&(ae.gutters.style.left=me+Ee+"px")}}function Wt(ie){if(!ie.options.lineNumbers)return!1;var ae=ie.doc,ve=Ti(ie.options,ae.first+ae.size-1),me=ie.display;if(ve.length!=me.lineNumChars){var Ee=me.measure.appendChild(ft("div",[ft("div",ve)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Be=Ee.firstChild.offsetWidth,qe=Ee.offsetWidth-Be;return me.lineGutter.style.width="",me.lineNumInnerWidth=Math.max(Be,me.lineGutter.offsetWidth-qe)+1,me.lineNumWidth=me.lineNumInnerWidth+qe,me.lineNumChars=me.lineNumInnerWidth?ve.length:-1,me.lineGutter.style.width=me.lineNumWidth+"px",St(ie.display),!0}return!1}function _n(ie,ae){for(var ve=[],me=!1,Ee=0;Ee<ie.length;Ee++){var Be=ie[Ee],qe=null;if(typeof Be!="string"&&(qe=Be.style,Be=Be.className),Be=="CodeMirror-linenumbers")if(ae)me=!0;else continue;ve.push({className:Be,style:qe})}return ae&&!me&&ve.push({className:"CodeMirror-linenumbers",style:null}),ve}function Un(ie){var ae=ie.gutters,ve=ie.gutterSpecs;nt(ae),ie.lineGutter=null;for(var me=0;me<ve.length;++me){var Ee=ve[me],Be=Ee.className,qe=Ee.style,ht=ae.appendChild(ft("div",null,"CodeMirror-gutter "+Be));qe&&(ht.style.cssText=qe),Be=="CodeMirror-linenumbers"&&(ie.lineGutter=ht,ht.style.width=(ie.lineNumWidth||1)+"px")}ae.style.display=ve.length?"":"none",St(ie)}function Sn(ie){Un(ie.display),ko(ie),Rt(ie)}function ai(ie,ae,ve,me){var Ee=this;this.input=ve,Ee.scrollbarFiller=ft("div",null,"CodeMirror-scrollbar-filler"),Ee.scrollbarFiller.setAttribute("cm-not-content","true"),Ee.gutterFiller=ft("div",null,"CodeMirror-gutter-filler"),Ee.gutterFiller.setAttribute("cm-not-content","true"),Ee.lineDiv=xt("div",null,"CodeMirror-code"),Ee.selectionDiv=ft("div",null,null,"position: relative; z-index: 1"),Ee.cursorDiv=ft("div",null,"CodeMirror-cursors"),Ee.measure=ft("div",null,"CodeMirror-measure"),Ee.lineMeasure=ft("div",null,"CodeMirror-measure"),Ee.lineSpace=xt("div",[Ee.measure,Ee.lineMeasure,Ee.selectionDiv,Ee.cursorDiv,Ee.lineDiv],null,"position: relative; outline: none");var Be=xt("div",[Ee.lineSpace],"CodeMirror-lines");Ee.mover=ft("div",[Be],null,"position: relative"),Ee.sizer=ft("div",[Ee.mover],"CodeMirror-sizer"),Ee.sizerWidth=null,Ee.heightForcer=ft("div",null,null,"position: absolute; height: "+an+"px; width: 1px;"),Ee.gutters=ft("div",null,"CodeMirror-gutters"),Ee.lineGutter=null,Ee.scroller=ft("div",[Ee.sizer,Ee.heightForcer,Ee.gutters],"CodeMirror-scroll"),Ee.scroller.setAttribute("tabIndex","-1"),Ee.wrapper=ft("div",[Ee.scrollbarFiller,Ee.gutterFiller,Ee.scroller],"CodeMirror"),Ge&&Oe<8&&(Ee.gutters.style.zIndex=-1,Ee.scroller.style.paddingRight=0),!Ve&&!(le&&ne)&&(Ee.scroller.draggable=!0),ie&&(ie.appendChild?ie.appendChild(Ee.wrapper):ie(Ee.wrapper)),Ee.viewFrom=Ee.viewTo=ae.first,Ee.reportedViewFrom=Ee.reportedViewTo=ae.first,Ee.view=[],Ee.renderedView=null,Ee.externalMeasured=null,Ee.viewOffset=0,Ee.lastWrapHeight=Ee.lastWrapWidth=0,Ee.updateLineNumbers=null,Ee.nativeBarWidth=Ee.barHeight=Ee.barWidth=0,Ee.scrollbarsClipped=!1,Ee.lineNumWidth=Ee.lineNumInnerWidth=Ee.lineNumChars=null,Ee.alignWidgets=!1,Ee.cachedCharWidth=Ee.cachedTextHeight=Ee.cachedPaddingH=null,Ee.maxLine=null,Ee.maxLineLength=0,Ee.maxLineChanged=!1,Ee.wheelDX=Ee.wheelDY=Ee.wheelStartX=Ee.wheelStartY=null,Ee.shift=!1,Ee.selForContextMenu=null,Ee.activeTouch=null,Ee.gutterSpecs=_n(me.gutters,me.lineNumbers),Un(Ee),ve.init(Ee)}var ei=0,Ln=null;Ge?Ln=-.53:le?Ln=15:Je?Ln=-.7:vt&&(Ln=-1/3);function Rr(ie){var ae=ie.wheelDeltaX,ve=ie.wheelDeltaY;return ae==null&&ie.detail&&ie.axis==ie.HORIZONTAL_AXIS&&(ae=ie.detail),ve==null&&ie.detail&&ie.axis==ie.VERTICAL_AXIS?ve=ie.detail:ve==null&&(ve=ie.wheelDelta),{x:ae,y:ve}}function Jr(ie){var ae=Rr(ie);return ae.x*=Ln,ae.y*=Ln,ae}function uo(ie,ae){var ve=Rr(ae),me=ve.x,Ee=ve.y,Be=ie.display,qe=Be.scroller,ht=qe.scrollWidth>qe.clientWidth,ct=qe.scrollHeight>qe.clientHeight;if(me&&ht||Ee&&ct){if(Ee&&fe&&Ve){e:for(var Tt=ae.target,ln=Be.view;Tt!=qe;Tt=Tt.parentNode)for(var Dt=0;Dt<ln.length;Dt++)if(ln[Dt].node==Tt){ie.display.currentWheelTarget=Tt;break e}}if(me&&!le&&!Xe&&Ln!=null){Ee&&ct&&cu(ie,Math.max(0,qe.scrollTop+Ee*Ln)),Kl(ie,Math.max(0,qe.scrollLeft+me*Ln)),(!Ee||Ee&&ct)&&On(ae),Be.wheelStartX=null;return}if(Ee&&Ln!=null){var Hn=Ee*Ln,Dn=ie.doc.scrollTop,Ii=Dn+Be.wrapper.clientHeight;Hn<0?Dn=Math.max(0,Dn+Hn-50):Ii=Math.min(ie.doc.height,Ii+Hn+50),We(ie,{top:Dn,bottom:Ii})}ei<20&&(Be.wheelStartX==null?(Be.wheelStartX=qe.scrollLeft,Be.wheelStartY=qe.scrollTop,Be.wheelDX=me,Be.wheelDY=Ee,setTimeout(function(){if(Be.wheelStartX!=null){var _i=qe.scrollLeft-Be.wheelStartX,Wi=qe.scrollTop-Be.wheelStartY,sr=Wi&&Be.wheelDY&&Wi/Be.wheelDY||_i&&Be.wheelDX&&_i/Be.wheelDX;Be.wheelStartX=Be.wheelStartY=null,sr&&(Ln=(Ln*ei+sr)/(ei+1),++ei)}},200)):(Be.wheelDX+=me,Be.wheelDY+=Ee))}}var vr=function(ie,ae){this.ranges=ie,this.primIndex=ae};vr.prototype.primary=function(){return this.ranges[this.primIndex]},vr.prototype.equals=function(ie){if(ie==this)return!0;if(ie.primIndex!=this.primIndex||ie.ranges.length!=this.ranges.length)return!1;for(var ae=0;ae<this.ranges.length;ae++){var ve=this.ranges[ae],me=ie.ranges[ae];if(!vi(ve.anchor,me.anchor)||!vi(ve.head,me.head))return!1}return!0},vr.prototype.deepCopy=function(){for(var ie=[],ae=0;ae<this.ranges.length;ae++)ie[ae]=new _r(nn(this.ranges[ae].anchor),nn(this.ranges[ae].head));return new vr(ie,this.primIndex)},vr.prototype.somethingSelected=function(){for(var ie=0;ie<this.ranges.length;ie++)if(!this.ranges[ie].empty())return!0;return!1},vr.prototype.contains=function(ie,ae){ae||(ae=ie);for(var ve=0;ve<this.ranges.length;ve++){var me=this.ranges[ve];if(xn(ae,me.from())>=0&&xn(ie,me.to())<=0)return ve}return-1};var _r=function(ie,ae){this.anchor=ie,this.head=ae};_r.prototype.from=function(){return Ni(this.anchor,this.head)},_r.prototype.to=function(){return _e(this.anchor,this.head)},_r.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Hr(ie,ae,ve){var me=ie&&ie.options.selectionsMayTouch,Ee=ae[ve];ae.sort(function(Hn,Dn){return xn(Hn.from(),Dn.from())}),ve=it(ae,Ee);for(var Be=1;Be<ae.length;Be++){var qe=ae[Be],ht=ae[Be-1],ct=xn(ht.to(),qe.from());if(me&&!qe.empty()?ct>0:ct>=0){var Tt=Ni(ht.from(),qe.from()),ln=_e(ht.to(),qe.to()),Dt=ht.empty()?qe.from()==qe.head:ht.from()==ht.head;Be<=ve&&--ve,ae.splice(--Be,2,new _r(Dt?ln:Tt,Dt?Tt:ln))}}return new vr(ae,ve)}function sa(ie,ae){return new vr([new _r(ie,ae||ie)],0)}function la(ie){return ie.text?zt(ie.from.line+ie.text.length-1,Pt(ie.text).length+(ie.text.length==1?ie.from.ch:0)):ie.to}function tr(ie,ae){if(xn(ie,ae.from)<0)return ie;if(xn(ie,ae.to)<=0)return la(ae);var ve=ie.line+ae.text.length-(ae.to.line-ae.from.line)-1,me=ie.ch;return ie.line==ae.to.line&&(me+=la(ae).ch-ae.to.ch),zt(ve,me)}function da(ie,ae){for(var ve=[],me=0;me<ie.sel.ranges.length;me++){var Ee=ie.sel.ranges[me];ve.push(new _r(tr(Ee.anchor,ae),tr(Ee.head,ae)))}return Hr(ie.cm,ve,ie.sel.primIndex)}function Oa(ie,ae,ve){return ie.line==ae.line?zt(ve.line,ie.ch-ae.ch+ve.ch):zt(ve.line+(ie.line-ae.line),ie.ch)}function na(ie,ae,ve){for(var me=[],Ee=zt(ie.first,0),Be=Ee,qe=0;qe<ae.length;qe++){var ht=ae[qe],ct=Oa(ht.from,Ee,Be),Tt=Oa(la(ht),Ee,Be);if(Ee=ht.to,Be=Tt,ve=="around"){var ln=ie.sel.ranges[qe],Dt=xn(ln.head,ln.anchor)<0;me[qe]=new _r(Dt?Tt:ct,Dt?ct:Tt)}else me[qe]=new _r(ct,ct)}return new vr(me,ie.sel.primIndex)}function Or(ie){ie.doc.mode=Vt(ie.options,ie.doc.modeOption),Bs(ie)}function Bs(ie){ie.doc.iter(function(ae){ae.stateAfter&&(ae.stateAfter=null),ae.styles&&(ae.styles=null)}),ie.doc.modeFrontier=ie.doc.highlightFrontier=ie.doc.first,Wu(ie,100),ie.state.modeGen++,ie.curOp&&ko(ie)}function Ea(ie,ae){return ae.from.ch==0&&ae.to.ch==0&&Pt(ae.text)==""&&(!ie.cm||ie.cm.options.wholeLineUpdateBefore)}function lo(ie,ae,ve,me){function Ee(Mr){return ve?ve[Mr]:null}function Be(Mr,Er,Fr){Ho(Mr,Er,Fr,me),cr(Mr,"change",Mr,ae)}function qe(Mr,Er){for(var Fr=[],oo=Mr;oo<Er;++oo)Fr.push(new Ao(Tt[oo],Ee(oo),me));return Fr}var ht=ae.from,ct=ae.to,Tt=ae.text,ln=oi(ie,ht.line),Dt=oi(ie,ct.line),Hn=Pt(Tt),Dn=Ee(Tt.length-1),Ii=ct.line-ht.line;if(ae.full)ie.insert(0,qe(0,Tt.length)),ie.remove(Tt.length,ie.size-Tt.length);else if(Ea(ie,ae)){var _i=qe(0,Tt.length-1);Be(Dt,Dt.text,Dn),Ii&&ie.remove(ht.line,Ii),_i.length&&ie.insert(ht.line,_i)}else if(ln==Dt)if(Tt.length==1)Be(ln,ln.text.slice(0,ht.ch)+Hn+ln.text.slice(ct.ch),Dn);else{var Wi=qe(1,Tt.length-1);Wi.push(new Ao(Hn+ln.text.slice(ct.ch),Dn,me)),Be(ln,ln.text.slice(0,ht.ch)+Tt[0],Ee(0)),ie.insert(ht.line+1,Wi)}else if(Tt.length==1)Be(ln,ln.text.slice(0,ht.ch)+Tt[0]+Dt.text.slice(ct.ch),Ee(0)),ie.remove(ht.line+1,Ii);else{Be(ln,ln.text.slice(0,ht.ch)+Tt[0],Ee(0)),Be(Dt,Hn+Dt.text.slice(ct.ch),Dn);var sr=qe(1,Tt.length-1);Ii>1&&ie.remove(ht.line+1,Ii-1),ie.insert(ht.line+1,sr)}cr(ie,"change",ie,ae)}function io(ie,ae,ve){function me(Ee,Be,qe){if(Ee.linked)for(var ht=0;ht<Ee.linked.length;++ht){var ct=Ee.linked[ht];if(ct.doc!=Be){var Tt=qe&&ct.sharedHist;ve&&!Tt||(ae(ct.doc,Tt),me(ct.doc,Ee,Tt))}}}me(ie,null,!0)}function Bo(ie,ae){if(ae.cm)throw new Error("This document is already in use.");ie.doc=ae,ae.cm=ie,Br(ie),Or(ie),ka(ie),ie.options.lineWrapping||Do(ie),ie.options.mode=ae.modeOption,ko(ie)}function ka(ie){(ie.doc.direction=="rtl"?Xt:Ze)(ie.display.lineDiv,"CodeMirror-rtl")}function gs(ie){Ko(ie,function(){ka(ie),ko(ie)})}function Cs(ie){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=ie||1}function dl(ie,ae){var ve={from:nn(ae.from),to:la(ae),text:qt(ie,ae.from,ae.to)};return Ql(ie,ve,ae.from.line,ae.to.line+1),io(ie,function(me){return Ql(me,ve,ae.from.line,ae.to.line+1)},!0),ve}function Zn(ie){for(;ie.length;){var ae=Pt(ie);if(ae.ranges)ie.pop();else break}}function _s(ie,ae){if(ae)return Zn(ie.done),Pt(ie.done);if(ie.done.length&&!Pt(ie.done).ranges)return Pt(ie.done);if(ie.done.length>1&&!ie.done[ie.done.length-2].ranges)return ie.done.pop(),Pt(ie.done)}function bl(ie,ae,ve,me){var Ee=ie.history;Ee.undone.length=0;var Be=+new Date,qe,ht;if((Ee.lastOp==me||Ee.lastOrigin==ae.origin&&ae.origin&&(ae.origin.charAt(0)=="+"&&Ee.lastModTime>Be-(ie.cm?ie.cm.options.historyEventDelay:500)||ae.origin.charAt(0)=="*"))&&(qe=_s(Ee,Ee.lastOp==me)))ht=Pt(qe.changes),xn(ae.from,ae.to)==0&&xn(ae.from,ht.to)==0?ht.to=la(ae):qe.changes.push(dl(ie,ae));else{var ct=Pt(Ee.done);for((!ct||!ct.ranges)&&Fl(ie.sel,Ee.done),qe={changes:[dl(ie,ae)],generation:Ee.generation},Ee.done.push(qe);Ee.done.length>Ee.undoDepth;)Ee.done.shift(),Ee.done[0].ranges||Ee.done.shift()}Ee.done.push(ve),Ee.generation=++Ee.maxGeneration,Ee.lastModTime=Ee.lastSelTime=Be,Ee.lastOp=Ee.lastSelOp=me,Ee.lastOrigin=Ee.lastSelOrigin=ae.origin,ht||En(ie,"historyAdded")}function Jn(ie,ae,ve,me){var Ee=ae.charAt(0);return Ee=="*"||Ee=="+"&&ve.ranges.length==me.ranges.length&&ve.somethingSelected()==me.somethingSelected()&&new Date-ie.history.lastSelTime<=(ie.cm?ie.cm.options.historyEventDelay:500)}function Ns(ie,ae,ve,me){var Ee=ie.history,Be=me&&me.origin;ve==Ee.lastSelOp||Be&&Ee.lastSelOrigin==Be&&(Ee.lastModTime==Ee.lastSelTime&&Ee.lastOrigin==Be||Jn(ie,Be,Pt(Ee.done),ae))?Ee.done[Ee.done.length-1]=ae:Fl(ae,Ee.done),Ee.lastSelTime=+new Date,Ee.lastSelOrigin=Be,Ee.lastSelOp=ve,me&&me.clearRedo!==!1&&Zn(Ee.undone)}function Fl(ie,ae){var ve=Pt(ae);ve&&ve.ranges&&ve.equals(ie)||ae.push(ie)}function Ql(ie,ae,ve,me){var Ee=ae["spans_"+ie.id],Be=0;ie.iter(Math.max(ie.first,ve),Math.min(ie.first+ie.size,me),function(qe){qe.markedSpans&&((Ee||(Ee=ae["spans_"+ie.id]={}))[Be]=qe.markedSpans),++Be})}function ss(ie){if(!ie)return null;for(var ae,ve=0;ve<ie.length;++ve)ie[ve].marker.explicitlyCleared?ae||(ae=ie.slice(0,ve)):ae&&ae.push(ie[ve]);return ae?ae.length?ae:null:ie}function Da(ie,ae){var ve=ae["spans_"+ie.id];if(!ve)return null;for(var me=[],Ee=0;Ee<ae.text.length;++Ee)me.push(ss(ve[Ee]));return me}function wl(ie,ae){var ve=Da(ie,ae),me=Xr(ie,ae);if(!ve)return me;if(!me)return ve;for(var Ee=0;Ee<ve.length;++Ee){var Be=ve[Ee],qe=me[Ee];if(Be&&qe)e:for(var ht=0;ht<qe.length;++ht){for(var ct=qe[ht],Tt=0;Tt<Be.length;++Tt)if(Be[Tt].marker==ct.marker)continue e;Be.push(ct)}else qe&&(ve[Ee]=qe)}return ve}function Ss(ie,ae,ve){for(var me=[],Ee=0;Ee<ie.length;++Ee){var Be=ie[Ee];if(Be.ranges){me.push(ve?vr.prototype.deepCopy.call(Be):Be);continue}var qe=Be.changes,ht=[];me.push({changes:ht});for(var ct=0;ct<qe.length;++ct){var Tt=qe[ct],ln=void 0;if(ht.push({from:Tt.from,to:Tt.to,text:Tt.text}),ae)for(var Dt in Tt)(ln=Dt.match(/^spans_(\d+)$/))&&it(ae,Number(ln[1]))>-1&&(Pt(ht)[Dt]=Tt[Dt],delete Tt[Dt])}}return me}function fu(ie,ae,ve,me){if(me){var Ee=ie.anchor;if(ve){var Be=xn(ae,Ee)<0;Be!=xn(ve,Ee)<0?(Ee=ae,ae=ve):Be!=xn(ae,ve)<0&&(ae=ve)}return new _r(Ee,ae)}else return new _r(ve||ae,ae)}function Lu(ie,ae,ve,me,Ee){Ee==null&&(Ee=ie.cm&&(ie.cm.display.shift||ie.extend)),ge(ie,new vr([fu(ie.sel.primary(),ae,ve,Ee)],0),me)}function dd(ie,ae,ve){for(var me=[],Ee=ie.cm&&(ie.cm.display.shift||ie.extend),Be=0;Be<ie.sel.ranges.length;Be++)me[Be]=fu(ie.sel.ranges[Be],ae[Be],null,Ee);var qe=Hr(ie.cm,me,ie.sel.primIndex);ge(ie,qe,ve)}function Bl(ie,ae,ve,me){var Ee=ie.sel.ranges.slice(0);Ee[ae]=ve,ge(ie,Hr(ie.cm,Ee,ie.sel.primIndex),me)}function Zu(ie,ae,ve,me){ge(ie,sa(ae,ve),me)}function _d(ie,ae,ve){var me={ranges:ae.ranges,update:function(Ee){this.ranges=[];for(var Be=0;Be<Ee.length;Be++)this.ranges[Be]=new _r(Pn(ie,Ee[Be].anchor),Pn(ie,Ee[Be].head))},origin:ve&&ve.origin};return En(ie,"beforeSelectionChange",ie,me),ie.cm&&En(ie.cm,"beforeSelectionChange",ie.cm,me),me.ranges!=ae.ranges?Hr(ie.cm,me.ranges,me.ranges.length-1):ae}function ue(ie,ae,ve){var me=ie.history.done,Ee=Pt(me);Ee&&Ee.ranges?(me[me.length-1]=ae,Ye(ie,ae,ve)):ge(ie,ae,ve)}function ge(ie,ae,ve){Ye(ie,ae,ve),Ns(ie,ie.sel,ie.cm?ie.cm.curOp.id:NaN,ve)}function Ye(ie,ae,ve){(Gn(ie,"beforeSelectionChange")||ie.cm&&Gn(ie.cm,"beforeSelectionChange"))&&(ae=_d(ie,ae,ve));var me=ve&&ve.bias||(xn(ae.primary().head,ie.sel.primary().head)<0?-1:1);Ot(ie,bi(ie,ae,me,!0)),!(ve&&ve.scroll===!1)&&ie.cm&&Zl(ie.cm)}function Ot(ie,ae){ae.equals(ie.sel)||(ie.sel=ae,ie.cm&&(ie.cm.curOp.updateInput=1,ie.cm.curOp.selectionChanged=!0,ui(ie.cm)),cr(ie,"cursorActivity",ie))}function zn(ie){Ot(ie,bi(ie,ie.sel,null,!1))}function bi(ie,ae,ve,me){for(var Ee,Be=0;Be<ae.ranges.length;Be++){var qe=ae.ranges[Be],ht=ae.ranges.length==ie.sel.ranges.length&&ie.sel.ranges[Be],ct=jr(ie,qe.anchor,ht&&ht.anchor,ve,me),Tt=jr(ie,qe.head,ht&&ht.head,ve,me);(Ee||ct!=qe.anchor||Tt!=qe.head)&&(Ee||(Ee=ae.ranges.slice(0,Be)),Ee[Be]=new _r(ct,Tt))}return Ee?Hr(ie.cm,Ee,ae.primIndex):ae}function Vi(ie,ae,ve,me,Ee){var Be=oi(ie,ae.line);if(Be.markedSpans)for(var qe=0;qe<Be.markedSpans.length;++qe){var ht=Be.markedSpans[qe],ct=ht.marker,Tt="selectLeft"in ct?!ct.selectLeft:ct.inclusiveLeft,ln="selectRight"in ct?!ct.selectRight:ct.inclusiveRight;if((ht.from==null||(Tt?ht.from<=ae.ch:ht.from<ae.ch))&&(ht.to==null||(ln?ht.to>=ae.ch:ht.to>ae.ch))){if(Ee&&(En(ct,"beforeCursorEnter"),ct.explicitlyCleared))if(Be.markedSpans){--qe;continue}else break;if(!ct.atomic)continue;if(ve){var Dt=ct.find(me<0?1:-1),Hn=void 0;if((me<0?ln:Tt)&&(Dt=ro(ie,Dt,-me,Dt&&Dt.line==ae.line?Be:null)),Dt&&Dt.line==ae.line&&(Hn=xn(Dt,ve))&&(me<0?Hn<0:Hn>0))return Vi(ie,Dt,ae,me,Ee)}var Dn=ct.find(me<0?-1:1);return(me<0?Tt:ln)&&(Dn=ro(ie,Dn,me,Dn.line==ae.line?Be:null)),Dn?Vi(ie,Dn,ae,me,Ee):null}}return ae}function jr(ie,ae,ve,me,Ee){var Be=me||1,qe=Vi(ie,ae,ve,Be,Ee)||!Ee&&Vi(ie,ae,ve,Be,!0)||Vi(ie,ae,ve,-Be,Ee)||!Ee&&Vi(ie,ae,ve,-Be,!0);return qe||(ie.cantEdit=!0,zt(ie.first,0))}function ro(ie,ae,ve,me){return ve<0&&ae.ch==0?ae.line>ie.first?Pn(ie,zt(ae.line-1)):null:ve>0&&ae.ch==(me||oi(ie,ae.line)).text.length?ae.line<ie.first+ie.size-1?zt(ae.line+1,0):null:new zt(ae.line,ae.ch+ve)}function Si(ie){ie.setSelection(zt(ie.firstLine(),0),zt(ie.lastLine()),Ct)}function fr(ie,ae,ve){var me={canceled:!1,from:ae.from,to:ae.to,text:ae.text,origin:ae.origin,cancel:function(){return me.canceled=!0}};return ve&&(me.update=function(Ee,Be,qe,ht){Ee&&(me.from=Pn(ie,Ee)),Be&&(me.to=Pn(ie,Be)),qe&&(me.text=qe),ht!==void 0&&(me.origin=ht)}),En(ie,"beforeChange",ie,me),ie.cm&&En(ie.cm,"beforeChange",ie.cm,me),me.canceled?(ie.cm&&(ie.cm.curOp.updateInput=2),null):{from:me.from,to:me.to,text:me.text,origin:me.origin}}function co(ie,ae,ve){if(ie.cm){if(!ie.cm.curOp)return Xa(ie.cm,co)(ie,ae,ve);if(ie.cm.state.suppressEdits)return}if(!((Gn(ie,"beforeChange")||ie.cm&&Gn(ie.cm,"beforeChange"))&&(ae=fr(ie,ae,!0),!ae))){var me=br&&!ve&&no(ie,ae.from,ae.to);if(me)for(var Ee=me.length-1;Ee>=0;--Ee)Vo(ie,{from:me[Ee].from,to:me[Ee].to,text:Ee?[""]:ae.text,origin:ae.origin});else Vo(ie,ae)}}function Vo(ie,ae){if(!(ae.text.length==1&&ae.text[0]==""&&xn(ae.from,ae.to)==0)){var ve=da(ie,ae);bl(ie,ae,ve,ie.cm?ie.cm.curOp.id:NaN),gu(ie,ae,ve,Xr(ie,ae));var me=[];io(ie,function(Ee,Be){!Be&&it(me,Ee.history)==-1&&(Cc(Ee.history,ae),me.push(Ee.history)),gu(Ee,ae,null,Xr(Ee,ae))})}}function ya(ie,ae,ve){var me=ie.cm&&ie.cm.state.suppressEdits;if(!(me&&!ve)){for(var Ee=ie.history,Be,qe=ie.sel,ht=ae=="undo"?Ee.done:Ee.undone,ct=ae=="undo"?Ee.undone:Ee.done,Tt=0;Tt<ht.length&&(Be=ht[Tt],!(ve?Be.ranges&&!Be.equals(ie.sel):!Be.ranges));Tt++);if(Tt!=ht.length){for(Ee.lastOrigin=Ee.lastSelOrigin=null;;)if(Be=ht.pop(),Be.ranges){if(Fl(Be,ct),ve&&!Be.equals(ie.sel)){ge(ie,Be,{clearRedo:!1});return}qe=Be}else if(me){ht.push(Be);return}else break;var ln=[];Fl(qe,ct),ct.push({changes:ln,generation:Ee.generation}),Ee.generation=Be.generation||++Ee.maxGeneration;for(var Dt=Gn(ie,"beforeChange")||ie.cm&&Gn(ie.cm,"beforeChange"),Hn=function(_i){var Wi=Be.changes[_i];if(Wi.origin=ae,Dt&&!fr(ie,Wi,!1))return ht.length=0,{};ln.push(dl(ie,Wi));var sr=_i?da(ie,Wi):Pt(ht);gu(ie,Wi,sr,wl(ie,Wi)),!_i&&ie.cm&&ie.cm.scrollIntoView({from:Wi.from,to:la(Wi)});var Mr=[];io(ie,function(Er,Fr){!Fr&&it(Mr,Er.history)==-1&&(Cc(Er.history,Wi),Mr.push(Er.history)),gu(Er,Wi,null,wl(Er,Wi))})},Dn=Be.changes.length-1;Dn>=0;--Dn){var Ii=Hn(Dn);if(Ii)return Ii.v}}}}function Xl(ie,ae){if(ae!=0&&(ie.first+=ae,ie.sel=new vr(qn(ie.sel.ranges,function(Ee){return new _r(zt(Ee.anchor.line+ae,Ee.anchor.ch),zt(Ee.head.line+ae,Ee.head.ch))}),ie.sel.primIndex),ie.cm)){ko(ie.cm,ie.first,ie.first-ae,ae);for(var ve=ie.cm.display,me=ve.viewFrom;me<ve.viewTo;me++)po(ie.cm,me,"gutter")}}function gu(ie,ae,ve,me){if(ie.cm&&!ie.cm.curOp)return Xa(ie.cm,gu)(ie,ae,ve,me);if(ae.to.line<ie.first){Xl(ie,ae.text.length-1-(ae.to.line-ae.from.line));return}if(!(ae.from.line>ie.lastLine())){if(ae.from.line<ie.first){var Ee=ae.text.length-1-(ie.first-ae.from.line);Xl(ie,Ee),ae={from:zt(ie.first,0),to:zt(ae.to.line+Ee,ae.to.ch),text:[Pt(ae.text)],origin:ae.origin}}var Be=ie.lastLine();ae.to.line>Be&&(ae={from:ae.from,to:zt(Be,oi(ie,Be).text.length),text:[ae.text[0]],origin:ae.origin}),ae.removed=qt(ie,ae.from,ae.to),ve||(ve=da(ie,ae)),ie.cm?Ku(ie.cm,ae,me):lo(ie,ae,me),Ye(ie,ve,Ct),ie.cantEdit&&jr(ie,zt(ie.firstLine(),0))&&(ie.cantEdit=!1)}}function Ku(ie,ae,ve){var me=ie.doc,Ee=ie.display,Be=ae.from,qe=ae.to,ht=!1,ct=Be.line;ie.options.lineWrapping||(ct=pt(Ar(oi(me,Be.line))),me.iter(ct,qe.line+1,function(Dn){if(Dn==Ee.maxLine)return ht=!0,!0})),me.sel.contains(ae.from,ae.to)>-1&&ui(ie),lo(me,ae,ve,ma(ie)),ie.options.lineWrapping||(me.iter(ct,Be.line+ae.text.length,function(Dn){var Ii=jo(Dn);Ii>Ee.maxLineLength&&(Ee.maxLine=Dn,Ee.maxLineLength=Ii,Ee.maxLineChanged=!0,ht=!1)}),ht&&(ie.curOp.updateMaxLine=!0)),mr(me,Be.line),Wu(ie,400);var Tt=ae.text.length-(qe.line-Be.line)-1;ae.full?ko(ie):Be.line==qe.line&&ae.text.length==1&&!Ea(ie.doc,ae)?po(ie,Be.line,"text"):ko(ie,Be.line,qe.line+1,Tt);var ln=Gn(ie,"changes"),Dt=Gn(ie,"change");if(Dt||ln){var Hn={from:Be,to:qe,text:ae.text,removed:ae.removed,origin:ae.origin};Dt&&cr(ie,"change",ie,Hn),ln&&(ie.curOp.changeObjs||(ie.curOp.changeObjs=[])).push(Hn)}ie.display.selForContextMenu=null}function Iu(ie,ae,ve,me,Ee){var Be;me||(me=ve),xn(me,ve)<0&&(Be=[me,ve],ve=Be[0],me=Be[1]),typeof ae=="string"&&(ae=ie.splitLines(ae)),co(ie,{from:ve,to:me,text:ae,origin:Ee})}function $s(ie,ae,ve,me){ve<ie.line?ie.line+=me:ae<ie.line&&(ie.line=ae,ie.ch=0)}function _l(ie,ae,ve,me){for(var Ee=0;Ee<ie.length;++Ee){var Be=ie[Ee],qe=!0;if(Be.ranges){Be.copied||(Be=ie[Ee]=Be.deepCopy(),Be.copied=!0);for(var ht=0;ht<Be.ranges.length;ht++)$s(Be.ranges[ht].anchor,ae,ve,me),$s(Be.ranges[ht].head,ae,ve,me);continue}for(var ct=0;ct<Be.changes.length;++ct){var Tt=Be.changes[ct];if(ve<Tt.from.line)Tt.from=zt(Tt.from.line+me,Tt.from.ch),Tt.to=zt(Tt.to.line+me,Tt.to.ch);else if(ae<=Tt.to.line){qe=!1;break}}qe||(ie.splice(0,Ee+1),Ee=0)}}function Cc(ie,ae){var ve=ae.from.line,me=ae.to.line,Ee=ae.text.length-(me-ve)-1;_l(ie.done,ve,me,Ee),_l(ie.undone,ve,me,Ee)}function Tl(ie,ae,ve,me){var Ee=ae,Be=ae;return typeof ae=="number"?Be=oi(ie,hi(ie,ae)):Ee=pt(ae),Ee==null?null:(me(Be,Ee)&&ie.cm&&po(ie.cm,Ee,ve),Be)}function Sh(ie){this.lines=ie,this.parent=null;for(var ae=0,ve=0;ve<ie.length;++ve)ie[ve].parent=this,ae+=ie[ve].height;this.height=ae}Sh.prototype={chunkSize:function(){return this.lines.length},removeInner:function(ie,ae){for(var ve=ie,me=ie+ae;ve<me;++ve){var Ee=this.lines[ve];this.height-=Ee.height,Po(Ee),cr(Ee,"delete")}this.lines.splice(ie,ae)},collapse:function(ie){ie.push.apply(ie,this.lines)},insertInner:function(ie,ae,ve){this.height+=ve,this.lines=this.lines.slice(0,ie).concat(ae).concat(this.lines.slice(ie));for(var me=0;me<ae.length;++me)ae[me].parent=this},iterN:function(ie,ae,ve){for(var me=ie+ae;ie<me;++ie)if(ve(this.lines[ie]))return!0}};function Va(ie){this.children=ie;for(var ae=0,ve=0,me=0;me<ie.length;++me){var Ee=ie[me];ae+=Ee.chunkSize(),ve+=Ee.height,Ee.parent=this}this.size=ae,this.height=ve,this.parent=null}Va.prototype={chunkSize:function(){return this.size},removeInner:function(ie,ae){this.size-=ae;for(var ve=0;ve<this.children.length;++ve){var me=this.children[ve],Ee=me.chunkSize();if(ie<Ee){var Be=Math.min(ae,Ee-ie),qe=me.height;if(me.removeInner(ie,Be),this.height-=qe-me.height,Ee==Be&&(this.children.splice(ve--,1),me.parent=null),(ae-=Be)==0)break;ie=0}else ie-=Ee}if(this.size-ae<25&&(this.children.length>1||!(this.children[0]instanceof Sh))){var ht=[];this.collapse(ht),this.children=[new Sh(ht)],this.children[0].parent=this}},collapse:function(ie){for(var ae=0;ae<this.children.length;++ae)this.children[ae].collapse(ie)},insertInner:function(ie,ae,ve){this.size+=ae.length,this.height+=ve;for(var me=0;me<this.children.length;++me){var Ee=this.children[me],Be=Ee.chunkSize();if(ie<=Be){if(Ee.insertInner(ie,ae,ve),Ee.lines&&Ee.lines.length>50){for(var qe=Ee.lines.length%25+25,ht=qe;ht<Ee.lines.length;){var ct=new Sh(Ee.lines.slice(ht,ht+=25));Ee.height-=ct.height,this.children.splice(++me,0,ct),ct.parent=this}Ee.lines=Ee.lines.slice(0,qe),this.maybeSpill()}break}ie-=Be}},maybeSpill:function(){if(!(this.children.length<=10)){var ie=this;do{var ae=ie.children.splice(ie.children.length-5,5),ve=new Va(ae);if(ie.parent){ie.size-=ve.size,ie.height-=ve.height;var Ee=it(ie.parent.children,ie);ie.parent.children.splice(Ee+1,0,ve)}else{var me=new Va(ie.children);me.parent=ie,ie.children=[me,ve],ie=me}ve.parent=ie.parent}while(ie.children.length>10);ie.parent.maybeSpill()}},iterN:function(ie,ae,ve){for(var me=0;me<this.children.length;++me){var Ee=this.children[me],Be=Ee.chunkSize();if(ie<Be){var qe=Math.min(ae,Be-ie);if(Ee.iterN(ie,qe,ve))return!0;if((ae-=qe)==0)break;ie=0}else ie-=Be}}};var Wc=function(ie,ae,ve){if(ve)for(var me in ve)ve.hasOwnProperty(me)&&(this[me]=ve[me]);this.doc=ie,this.node=ae};Wc.prototype.clear=function(){var ie=this.doc.cm,ae=this.line.widgets,ve=this.line,me=pt(ve);if(!(me==null||!ae)){for(var Ee=0;Ee<ae.length;++Ee)ae[Ee]==this&&ae.splice(Ee--,1);ae.length||(ve.widgets=null);var Be=Jo(this);li(ve,Math.max(0,ve.height-Be)),ie&&(Ko(ie,function(){Xp(ie,ve,-Be),po(ie,me,"widget")}),cr(ie,"lineWidgetCleared",ie,this,me))}},Wc.prototype.changed=function(){var ie=this,ae=this.height,ve=this.doc.cm,me=this.line;this.height=null;var Ee=Jo(this)-ae;Ee&&(ri(this.doc,me)||li(me,me.height+Ee),ve&&Ko(ve,function(){ve.curOp.forceUpdate=!0,Xp(ve,me,Ee),cr(ve,"lineWidgetChanged",ve,ie,pt(me))}))},mt(Wc);function Xp(ie,ae,ve){Zr(ae)<(ie.curOp&&ie.curOp.scrollTop||ie.doc.scrollTop)&&sd(ie,ve)}function Mf(ie,ae,ve,me){var Ee=new Wc(ie,ve,me),Be=ie.cm;return Be&&Ee.noHScroll&&(Be.display.alignWidgets=!0),Tl(ie,ae,"widget",function(qe){var ht=qe.widgets||(qe.widgets=[]);if(Ee.insertAt==null?ht.push(Ee):ht.splice(Math.min(ht.length-1,Math.max(0,Ee.insertAt)),0,Ee),Ee.line=qe,Be&&!ri(ie,qe)){var ct=Zr(qe)<ie.scrollTop;li(qe,qe.height+Jo(Ee)),ct&&sd(Be,Ee.height),Be.curOp.forceUpdate=!0}return!0}),Be&&cr(Be,"lineWidgetAdded",Be,Ee,typeof ae=="number"?ae:pt(ae)),Ee}var Jp=0,Qt=function(ie,ae){this.lines=[],this.type=ae,this.doc=ie,this.id=++Jp};Qt.prototype.clear=function(){if(!this.explicitlyCleared){var ie=this.doc.cm,ae=ie&&!ie.curOp;if(ae&&hu(ie),Gn(this,"clear")){var ve=this.find();ve&&cr(this,"clear",ve.from,ve.to)}for(var me=null,Ee=null,Be=0;Be<this.lines.length;++Be){var qe=this.lines[Be],ht=Cr(qe.markedSpans,this);ie&&!this.collapsed?po(ie,pt(qe),"text"):ie&&(ht.to!=null&&(Ee=pt(qe)),ht.from!=null&&(me=pt(qe))),qe.markedSpans=Tr(qe.markedSpans,ht),ht.from==null&&this.collapsed&&!ri(this.doc,qe)&&ie&&li(qe,Wl(ie.display))}if(ie&&this.collapsed&&!ie.options.lineWrapping)for(var ct=0;ct<this.lines.length;++ct){var Tt=Ar(this.lines[ct]),ln=jo(Tt);ln>ie.display.maxLineLength&&(ie.display.maxLine=Tt,ie.display.maxLineLength=ln,ie.display.maxLineChanged=!0)}me!=null&&ie&&this.collapsed&&ko(ie,me,Ee+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,ie&&zn(ie.doc)),ie&&cr(ie,"markerCleared",ie,this,me,Ee),ae&&Nu(ie),this.parent&&this.parent.clear()}},Qt.prototype.find=function(ie,ae){ie==null&&this.type=="bookmark"&&(ie=1);for(var ve,me,Ee=0;Ee<this.lines.length;++Ee){var Be=this.lines[Ee],qe=Cr(Be.markedSpans,this);if(qe.from!=null&&(ve=zt(ae?Be:pt(Be),qe.from),ie==-1))return ve;if(qe.to!=null&&(me=zt(ae?Be:pt(Be),qe.to),ie==1))return me}return ve&&{from:ve,to:me}},Qt.prototype.changed=function(){var ie=this,ae=this.find(-1,!0),ve=this,me=this.doc.cm;!ae||!me||Ko(me,function(){var Ee=ae.line,Be=pt(ae.line),qe=cs(me,Be);if(qe&&(wc(qe),me.curOp.selectionChanged=me.curOp.forceUpdate=!0),me.curOp.updateMaxLine=!0,!ri(ve.doc,Ee)&&ve.height!=null){var ht=ve.height;ve.height=null;var ct=Jo(ve)-ht;ct&&li(Ee,Ee.height+ct)}cr(me,"markerChanged",me,ie)})},Qt.prototype.attachLine=function(ie){if(!this.lines.length&&this.doc.cm){var ae=this.doc.cm.curOp;(!ae.maybeHiddenMarkers||it(ae.maybeHiddenMarkers,this)==-1)&&(ae.maybeUnhiddenMarkers||(ae.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(ie)},Qt.prototype.detachLine=function(ie){if(this.lines.splice(it(this.lines,ie),1),!this.lines.length&&this.doc.cm){var ae=this.doc.cm.curOp;(ae.maybeHiddenMarkers||(ae.maybeHiddenMarkers=[])).push(this)}},mt(Qt);function jd(ie,ae,ve,me,Ee){if(me&&me.shared)return qp(ie,ae,ve,me,Ee);if(ie.cm&&!ie.cm.curOp)return Xa(ie.cm,jd)(ie,ae,ve,me,Ee);var Be=new Qt(ie,Ee),qe=xn(ae,ve);if(me&&gn(me,Be,!1),qe>0||qe==0&&Be.clearWhenEmpty!==!1)return Be;if(Be.replacedWith&&(Be.collapsed=!0,Be.widgetNode=xt("span",[Be.replacedWith],"CodeMirror-widget"),me.handleMouseEvents||Be.widgetNode.setAttribute("cm-ignore-events","true"),me.insertLeft&&(Be.widgetNode.insertLeft=!0)),Be.collapsed){if(Ir(ie,ae.line,ae,ve,Be)||ae.line!=ve.line&&Ir(ie,ve.line,ae,ve,Be))throw new Error("Inserting collapsed marker partially overlapping an existing one");In()}Be.addToHistory&&bl(ie,{from:ae,to:ve,origin:"markText"},ie.sel,NaN);var ht=ae.line,ct=ie.cm,Tt;if(ie.iter(ht,ve.line+1,function(Dt){ct&&Be.collapsed&&!ct.options.lineWrapping&&Ar(Dt)==ct.display.maxLine&&(Tt=!0),Be.collapsed&&ht!=ae.line&&li(Dt,0),mo(Dt,new wr(Be,ht==ae.line?ae.ch:null,ht==ve.line?ve.ch:null)),++ht}),Be.collapsed&&ie.iter(ae.line,ve.line+1,function(Dt){ri(ie,Dt)&&li(Dt,0)}),Be.clearOnEnter&&Ft(Be,"beforeCursorEnter",function(){return Be.clear()}),Be.readOnly&&(dr(),(ie.history.done.length||ie.history.undone.length)&&ie.clearHistory()),Be.collapsed&&(Be.id=++Jp,Be.atomic=!0),ct){if(Tt&&(ct.curOp.updateMaxLine=!0),Be.collapsed)ko(ct,ae.line,ve.line+1);else if(Be.className||Be.startStyle||Be.endStyle||Be.css||Be.attributes||Be.title)for(var ln=ae.line;ln<=ve.line;ln++)po(ct,ln,"text");Be.atomic&&zn(ct.doc),cr(ct,"markerAdded",ct,Be)}return Be}var Nc=function(ie,ae){this.markers=ie,this.primary=ae;for(var ve=0;ve<ie.length;++ve)ie[ve].parent=this};Nc.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var ie=0;ie<this.markers.length;++ie)this.markers[ie].clear();cr(this,"clear")}},Nc.prototype.find=function(ie,ae){return this.primary.find(ie,ae)},mt(Nc);function qp(ie,ae,ve,me,Ee){me=gn(me),me.shared=!1;var Be=[jd(ie,ae,ve,me,Ee)],qe=Be[0],ht=me.widgetNode;return io(ie,function(ct){ht&&(me.widgetNode=ht.cloneNode(!0)),Be.push(jd(ct,Pn(ct,ae),Pn(ct,ve),me,Ee));for(var Tt=0;Tt<ct.linked.length;++Tt)if(ct.linked[Tt].isParent)return;qe=Pt(Be)}),new Nc(Be,qe)}function Ng(ie){return ie.findMarks(zt(ie.first,0),ie.clipPos(zt(ie.lastLine())),function(ae){return ae.parent})}function $p(ie,ae){for(var ve=0;ve<ae.length;ve++){var me=ae[ve],Ee=me.find(),Be=ie.clipPos(Ee.from),qe=ie.clipPos(Ee.to);if(xn(Be,qe)){var ht=jd(ie,Be,qe,me.primary,me.primary.type);me.markers.push(ht),ht.parent=me}}}function Mg(ie){for(var ae=function(me){var Ee=ie[me],Be=[Ee.primary.doc];io(Ee.primary.doc,function(ct){return Be.push(ct)});for(var qe=0;qe<Ee.markers.length;qe++){var ht=Ee.markers[qe];it(Be,ht.doc)==-1&&(ht.parent=null,Ee.markers.splice(qe--,1))}},ve=0;ve<ie.length;ve++)ae(ve)}var iv=0,el=function(ie,ae,ve,me,Ee){if(!(this instanceof el))return new el(ie,ae,ve,me,Ee);ve==null&&(ve=0),Va.call(this,[new Sh([new Ao("",null)])]),this.first=ve,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ve;var Be=zt(ve,0);this.sel=sa(Be),this.history=new Cs(null),this.id=++iv,this.modeOption=ae,this.lineSep=me,this.direction=Ee=="rtl"?"rtl":"ltr",this.extend=!1,typeof ie=="string"&&(ie=this.splitLines(ie)),lo(this,{from:Be,to:Be,text:ie}),ge(this,sa(Be),Ct)};el.prototype=Fe(Va.prototype,{constructor:el,iter:function(ie,ae,ve){ve?this.iterN(ie-this.first,ae-ie,ve):this.iterN(this.first,this.first+this.size,ie)},insert:function(ie,ae){for(var ve=0,me=0;me<ae.length;++me)ve+=ae[me].height;this.insertInner(ie-this.first,ae,ve)},remove:function(ie,ae){this.removeInner(ie-this.first,ae)},getValue:function(ie){var ae=Gt(this,this.first,this.first+this.size);return ie===!1?ae:ae.join(ie||this.lineSeparator())},setValue:ts(function(ie){var ae=zt(this.first,0),ve=this.first+this.size-1;co(this,{from:ae,to:zt(ve,oi(this,ve).text.length),text:this.splitLines(ie),origin:"setValue",full:!0},!0),this.cm&&Rl(this.cm,0,0),ge(this,sa(ae),Ct)}),replaceRange:function(ie,ae,ve,me){ae=Pn(this,ae),ve=ve?Pn(this,ve):ae,Iu(this,ie,ae,ve,me)},getRange:function(ie,ae,ve){var me=qt(this,Pn(this,ie),Pn(this,ae));return ve===!1?me:me.join(ve||this.lineSeparator())},getLine:function(ie){var ae=this.getLineHandle(ie);return ae&&ae.text},getLineHandle:function(ie){if(ii(this,ie))return oi(this,ie)},getLineNumber:function(ie){return pt(ie)},getLineHandleVisualStart:function(ie){return typeof ie=="number"&&(ie=oi(this,ie)),Ar(ie)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(ie){return Pn(this,ie)},getCursor:function(ie){var ae=this.sel.primary(),ve;return ie==null||ie=="head"?ve=ae.head:ie=="anchor"?ve=ae.anchor:ie=="end"||ie=="to"||ie===!1?ve=ae.to():ve=ae.from(),ve},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:ts(function(ie,ae,ve){Zu(this,Pn(this,typeof ie=="number"?zt(ie,ae||0):ie),null,ve)}),setSelection:ts(function(ie,ae,ve){Zu(this,Pn(this,ie),Pn(this,ae||ie),ve)}),extendSelection:ts(function(ie,ae,ve){Lu(this,Pn(this,ie),ae&&Pn(this,ae),ve)}),extendSelections:ts(function(ie,ae){dd(this,Qi(this,ie),ae)}),extendSelectionsBy:ts(function(ie,ae){var ve=qn(this.sel.ranges,ie);dd(this,Qi(this,ve),ae)}),setSelections:ts(function(ie,ae,ve){if(ie.length){for(var me=[],Ee=0;Ee<ie.length;Ee++)me[Ee]=new _r(Pn(this,ie[Ee].anchor),Pn(this,ie[Ee].head));ae==null&&(ae=Math.min(ie.length-1,this.sel.primIndex)),ge(this,Hr(this.cm,me,ae),ve)}}),addSelection:ts(function(ie,ae,ve){var me=this.sel.ranges.slice(0);me.push(new _r(Pn(this,ie),Pn(this,ae||ie))),ge(this,Hr(this.cm,me,me.length-1),ve)}),getSelection:function(ie){for(var ae=this.sel.ranges,ve,me=0;me<ae.length;me++){var Ee=qt(this,ae[me].from(),ae[me].to());ve=ve?ve.concat(Ee):Ee}return ie===!1?ve:ve.join(ie||this.lineSeparator())},getSelections:function(ie){for(var ae=[],ve=this.sel.ranges,me=0;me<ve.length;me++){var Ee=qt(this,ve[me].from(),ve[me].to());ie!==!1&&(Ee=Ee.join(ie||this.lineSeparator())),ae[me]=Ee}return ae},replaceSelection:function(ie,ae,ve){for(var me=[],Ee=0;Ee<this.sel.ranges.length;Ee++)me[Ee]=ie;this.replaceSelections(me,ae,ve||"+input")},replaceSelections:ts(function(ie,ae,ve){for(var me=[],Ee=this.sel,Be=0;Be<Ee.ranges.length;Be++){var qe=Ee.ranges[Be];me[Be]={from:qe.from(),to:qe.to(),text:this.splitLines(ie[Be]),origin:ve}}for(var ht=ae&&ae!="end"&&na(this,me,ae),ct=me.length-1;ct>=0;ct--)co(this,me[ct]);ht?ue(this,ht):this.cm&&Zl(this.cm)}),undo:ts(function(){ya(this,"undo")}),redo:ts(function(){ya(this,"redo")}),undoSelection:ts(function(){ya(this,"undo",!0)}),redoSelection:ts(function(){ya(this,"redo",!0)}),setExtending:function(ie){this.extend=ie},getExtending:function(){return this.extend},historySize:function(){for(var ie=this.history,ae=0,ve=0,me=0;me<ie.done.length;me++)ie.done[me].ranges||++ae;for(var Ee=0;Ee<ie.undone.length;Ee++)ie.undone[Ee].ranges||++ve;return{undo:ae,redo:ve}},clearHistory:function(){var ie=this;this.history=new Cs(this.history.maxGeneration),io(this,function(ae){return ae.history=ie.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(ie){return ie&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(ie){return this.history.generation==(ie||this.cleanGeneration)},getHistory:function(){return{done:Ss(this.history.done),undone:Ss(this.history.undone)}},setHistory:function(ie){var ae=this.history=new Cs(this.history.maxGeneration);ae.done=Ss(ie.done.slice(0),null,!0),ae.undone=Ss(ie.undone.slice(0),null,!0)},setGutterMarker:ts(function(ie,ae,ve){return Tl(this,ie,"gutter",function(me){var Ee=me.gutterMarkers||(me.gutterMarkers={});return Ee[ae]=ve,!ve&&Le(Ee)&&(me.gutterMarkers=null),!0})}),clearGutter:ts(function(ie){var ae=this;this.iter(function(ve){ve.gutterMarkers&&ve.gutterMarkers[ie]&&Tl(ae,ve,"gutter",function(){return ve.gutterMarkers[ie]=null,Le(ve.gutterMarkers)&&(ve.gutterMarkers=null),!0})})}),lineInfo:function(ie){var ae;if(typeof ie=="number"){if(!ii(this,ie)||(ae=ie,ie=oi(this,ie),!ie))return null}else if(ae=pt(ie),ae==null)return null;return{line:ae,handle:ie,text:ie.text,gutterMarkers:ie.gutterMarkers,textClass:ie.textClass,bgClass:ie.bgClass,wrapClass:ie.wrapClass,widgets:ie.widgets}},addLineClass:ts(function(ie,ae,ve){return Tl(this,ie,ae=="gutter"?"gutter":"class",function(me){var Ee=ae=="text"?"textClass":ae=="background"?"bgClass":ae=="gutter"?"gutterClass":"wrapClass";if(!me[Ee])me[Ee]=ve;else{if(Re(ve).test(me[Ee]))return!1;me[Ee]+=" "+ve}return!0})}),removeLineClass:ts(function(ie,ae,ve){return Tl(this,ie,ae=="gutter"?"gutter":"class",function(me){var Ee=ae=="text"?"textClass":ae=="background"?"bgClass":ae=="gutter"?"gutterClass":"wrapClass",Be=me[Ee];if(Be)if(ve==null)me[Ee]=null;else{var qe=Be.match(Re(ve));if(!qe)return!1;var ht=qe.index+qe[0].length;me[Ee]=Be.slice(0,qe.index)+(!qe.index||ht==Be.length?"":" ")+Be.slice(ht)||null}else return!1;return!0})}),addLineWidget:ts(function(ie,ae,ve){return Mf(this,ie,ae,ve)}),removeLineWidget:function(ie){ie.clear()},markText:function(ie,ae,ve){return jd(this,Pn(this,ie),Pn(this,ae),ve,ve&&ve.type||"range")},setBookmark:function(ie,ae){var ve={replacedWith:ae&&(ae.nodeType==null?ae.widget:ae),insertLeft:ae&&ae.insertLeft,clearWhenEmpty:!1,shared:ae&&ae.shared,handleMouseEvents:ae&&ae.handleMouseEvents};return ie=Pn(this,ie),jd(this,ie,ie,ve,"bookmark")},findMarksAt:function(ie){ie=Pn(this,ie);var ae=[],ve=oi(this,ie.line).markedSpans;if(ve)for(var me=0;me<ve.length;++me){var Ee=ve[me];(Ee.from==null||Ee.from<=ie.ch)&&(Ee.to==null||Ee.to>=ie.ch)&&ae.push(Ee.marker.parent||Ee.marker)}return ae},findMarks:function(ie,ae,ve){ie=Pn(this,ie),ae=Pn(this,ae);var me=[],Ee=ie.line;return this.iter(ie.line,ae.line+1,function(Be){var qe=Be.markedSpans;if(qe)for(var ht=0;ht<qe.length;ht++){var ct=qe[ht];!(ct.to!=null&&Ee==ie.line&&ie.ch>=ct.to||ct.from==null&&Ee!=ie.line||ct.from!=null&&Ee==ae.line&&ct.from>=ae.ch)&&(!ve||ve(ct.marker))&&me.push(ct.marker.parent||ct.marker)}++Ee}),me},getAllMarks:function(){var ie=[];return this.iter(function(ae){var ve=ae.markedSpans;if(ve)for(var me=0;me<ve.length;++me)ve[me].from!=null&&ie.push(ve[me].marker)}),ie},posFromIndex:function(ie){var ae,ve=this.first,me=this.lineSeparator().length;return this.iter(function(Ee){var Be=Ee.text.length+me;if(Be>ie)return ae=ie,!0;ie-=Be,++ve}),Pn(this,zt(ve,ae))},indexFromPos:function(ie){ie=Pn(this,ie);var ae=ie.ch;if(ie.line<this.first||ie.ch<0)return 0;var ve=this.lineSeparator().length;return this.iter(this.first,ie.line,function(me){ae+=me.text.length+ve}),ae},copy:function(ie){var ae=new el(Gt(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return ae.scrollTop=this.scrollTop,ae.scrollLeft=this.scrollLeft,ae.sel=this.sel,ae.extend=!1,ie&&(ae.history.undoDepth=this.history.undoDepth,ae.setHistory(this.getHistory())),ae},linkedDoc:function(ie){ie||(ie={});var ae=this.first,ve=this.first+this.size;ie.from!=null&&ie.from>ae&&(ae=ie.from),ie.to!=null&&ie.to<ve&&(ve=ie.to);var me=new el(Gt(this,ae,ve),ie.mode||this.modeOption,ae,this.lineSep,this.direction);return ie.sharedHist&&(me.history=this.history),(this.linked||(this.linked=[])).push({doc:me,sharedHist:ie.sharedHist}),me.linked=[{doc:this,isParent:!0,sharedHist:ie.sharedHist}],$p(me,Ng(this)),me},unlinkDoc:function(ie){if(ie instanceof qo&&(ie=ie.doc),this.linked)for(var ae=0;ae<this.linked.length;++ae){var ve=this.linked[ae];if(ve.doc==ie){this.linked.splice(ae,1),ie.unlinkDoc(this),Mg(Ng(this));break}}if(ie.history==this.history){var me=[ie.id];io(ie,function(Ee){return me.push(Ee.id)},!0),ie.history=new Cs(null),ie.history.done=Ss(this.history.done,me),ie.history.undone=Ss(this.history.undone,me)}},iterLinkedDocs:function(ie){io(this,ie)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(ie){return this.lineSep?ie.split(this.lineSep):Li(ie)},lineSeparator:function(){return this.lineSep||`
`},setDirection:ts(function(ie){ie!="rtl"&&(ie="ltr"),ie!=this.direction&&(this.direction=ie,this.iter(function(ae){return ae.order=null}),this.cm&&gs(this.cm))})}),el.prototype.eachLine=el.prototype.iter;var Kh=0;function Pg(ie){var ae=this;if(nm(ae),!(Jt(ae,ie)||Io(ae.display,ie))){On(ie),Ge&&(Kh=+new Date);var ve=os(ae,ie,!0),me=ie.dataTransfer.files;if(!(!ve||ae.isReadOnly()))if(me&&me.length&&window.FileReader&&window.File)for(var Ee=me.length,Be=Array(Ee),qe=0,ht=function(){++qe==Ee&&Xa(ae,function(){ve=Pn(ae.doc,ve);var Dn={from:ve,to:ve,text:ae.doc.splitLines(Be.filter(function(Ii){return Ii!=null}).join(ae.doc.lineSeparator())),origin:"paste"};co(ae.doc,Dn),ue(ae.doc,sa(Pn(ae.doc,ve),Pn(ae.doc,la(Dn))))})()},ct=function(Dn,Ii){if(ae.options.allowDropFileTypes&&it(ae.options.allowDropFileTypes,Dn.type)==-1){ht();return}var _i=new FileReader;_i.onerror=function(){return ht()},_i.onload=function(){var Wi=_i.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Wi)){ht();return}Be[Ii]=Wi,ht()},_i.readAsText(Dn)},Tt=0;Tt<me.length;Tt++)ct(me[Tt],Tt);else{if(ae.state.draggingText&&ae.doc.sel.contains(ve)>-1){ae.state.draggingText(ie),setTimeout(function(){return ae.display.input.focus()},20);return}try{var ln=ie.dataTransfer.getData("Text");if(ln){var Dt;if(ae.state.draggingText&&!ae.state.draggingText.copy&&(Dt=ae.listSelections()),Ye(ae.doc,sa(ve,ve)),Dt)for(var Hn=0;Hn<Dt.length;++Hn)Iu(ae.doc,"",Dt[Hn].anchor,Dt[Hn].head,"drag");ae.replaceSelection(ln,"around","paste"),ae.display.input.focus()}}catch(Dn){}}}}function em(ie,ae){if(Ge&&(!ie.state.draggingText||+new Date-Kh<100)){mi(ae);return}if(!(Jt(ie,ae)||Io(ie.display,ae))&&(ae.dataTransfer.setData("Text",ie.getSelection()),ae.dataTransfer.effectAllowed="copyMove",ae.dataTransfer.setDragImage&&!vt)){var ve=ft("img",null,null,"position: fixed; left: 0; top: 0;");ve.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Xe&&(ve.width=ve.height=1,ie.display.wrapper.appendChild(ve),ve._top=ve.offsetTop),ae.dataTransfer.setDragImage(ve,0,0),Xe&&ve.parentNode.removeChild(ve)}}function tm(ie,ae){var ve=os(ie,ae);if(ve){var me=document.createDocumentFragment();Oo(ie,ve,me),ie.display.dragCursor||(ie.display.dragCursor=ft("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),ie.display.lineSpace.insertBefore(ie.display.dragCursor,ie.display.cursorDiv)),rt(ie.display.dragCursor,me)}}function nm(ie){ie.display.dragCursor&&(ie.display.lineSpace.removeChild(ie.display.dragCursor),ie.display.dragCursor=null)}function im(ie){if(document.getElementsByClassName){for(var ae=document.getElementsByClassName("CodeMirror"),ve=[],me=0;me<ae.length;me++){var Ee=ae[me].CodeMirror;Ee&&ve.push(Ee)}ve.length&&ve[0].operation(function(){for(var Be=0;Be<ve.length;Be++)ie(ve[Be])})}}var Lg=!1;function pu(){Lg||(Eh(),Lg=!0)}function Eh(){var ie;Ft(window,"resize",function(){ie==null&&(ie=setTimeout(function(){ie=null,im(Ig)},100))}),Ft(window,"blur",function(){return im(lc)})}function Ig(ie){var ae=ie.display;ae.cachedCharWidth=ae.cachedTextHeight=ae.cachedPaddingH=null,ae.scrollbarsClipped=!1,ie.setSize()}for(var Mc={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Qh=0;Qh<10;Qh++)Mc[Qh+48]=Mc[Qh+96]=String(Qh);for(var Pf=65;Pf<=90;Pf++)Mc[Pf]=String.fromCharCode(Pf);for(var Xh=1;Xh<=12;Xh++)Mc[Xh+111]=Mc[Xh+63235]="F"+Xh;var Jl={};Jl.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Jl.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Jl.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Jl.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Jl.default=fe?Jl.macDefault:Jl.pcDefault;function kg(ie){var ae=ie.split(/-(?!$)/);ie=ae[ae.length-1];for(var ve,me,Ee,Be,qe=0;qe<ae.length-1;qe++){var ht=ae[qe];if(/^(cmd|meta|m)$/i.test(ht))Be=!0;else if(/^a(lt)?$/i.test(ht))ve=!0;else if(/^(c|ctrl|control)$/i.test(ht))me=!0;else if(/^s(hift)?$/i.test(ht))Ee=!0;else throw new Error("Unrecognized modifier name: "+ht)}return ve&&(ie="Alt-"+ie),me&&(ie="Ctrl-"+ie),Be&&(ie="Cmd-"+ie),Ee&&(ie="Shift-"+ie),ie}function Dg(ie){var ae={};for(var ve in ie)if(ie.hasOwnProperty(ve)){var me=ie[ve];if(/^(name|fallthrough|(de|at)tach)$/.test(ve))continue;if(me=="..."){delete ie[ve];continue}for(var Ee=qn(ve.split(" "),kg),Be=0;Be<Ee.length;Be++){var qe=void 0,ht=void 0;Be==Ee.length-1?(ht=Ee.join(" "),qe=me):(ht=Ee.slice(0,Be+1).join(" "),qe="...");var ct=ae[ht];if(!ct)ae[ht]=qe;else if(ct!=qe)throw new Error("Inconsistent bindings for "+ht)}delete ie[ve]}for(var Tt in ae)ie[Tt]=ae[Tt];return ie}function ku(ie,ae,ve,me){ae=zd(ae);var Ee=ae.call?ae.call(ie,me):ae[ie];if(Ee===!1)return"nothing";if(Ee==="...")return"multi";if(Ee!=null&&ve(Ee))return"handled";if(ae.fallthrough){if(Object.prototype.toString.call(ae.fallthrough)!="[object Array]")return ku(ie,ae.fallthrough,ve,me);for(var Be=0;Be<ae.fallthrough.length;Be++){var qe=ku(ie,ae.fallthrough[Be],ve,me);if(qe)return qe}}}function xh(ie){var ae=typeof ie=="string"?ie:Mc[ie.keyCode];return ae=="Ctrl"||ae=="Alt"||ae=="Shift"||ae=="Mod"}function Og(ie,ae,ve){var me=ie;return ae.altKey&&me!="Alt"&&(ie="Alt-"+ie),(we?ae.metaKey:ae.ctrlKey)&&me!="Ctrl"&&(ie="Ctrl-"+ie),(we?ae.ctrlKey:ae.metaKey)&&me!="Mod"&&(ie="Cmd-"+ie),!ve&&ae.shiftKey&&me!="Shift"&&(ie="Shift-"+ie),ie}function rm(ie,ae){if(Xe&&ie.keyCode==34&&ie.char)return!1;var ve=Mc[ie.keyCode];return ve==null||ie.altGraphKey?!1:(ie.keyCode==3&&ie.code&&(ve=ie.code),Og(ve,ie,ae))}function zd(ie){return typeof ie=="string"?Jl[ie]:ie}function ql(ie,ae){for(var ve=ie.doc.sel.ranges,me=[],Ee=0;Ee<ve.length;Ee++){for(var Be=ae(ve[Ee]);me.length&&xn(Be.from,Pt(me).to)<=0;){var qe=me.pop();if(xn(qe.from,Be.from)<0){Be.from=qe.from;break}}me.push(Be)}Ko(ie,function(){for(var ht=me.length-1;ht>=0;ht--)Iu(ie.doc,"",me[ht].from,me[ht].to,"+delete");Zl(ie)})}function Rg(ie,ae,ve){var me=tn(ie.text,ae+ve,ve);return me<0||me>ie.text.length?null:me}function ls(ie,ae,ve){var me=Rg(ie,ae.ch,ve);return me==null?null:new zt(ae.line,me,ve<0?"after":"before")}function Jh(ie,ae,ve,me,Ee){if(ie){ae.doc.direction=="rtl"&&(Ee=-Ee);var Be=wn(ve,ae.doc.direction);if(Be){var qe=Ee<0?Pt(Be):Be[0],ht=Ee<0==(qe.level==1),ct=ht?"after":"before",Tt;if(qe.level>0||ae.doc.direction=="rtl"){var ln=Ts(ae,ve);Tt=Ee<0?ve.text.length-1:0;var Dt=Ds(ae,ln,Tt).top;Tt=$t(function(Hn){return Ds(ae,ln,Hn).top==Dt},Ee<0==(qe.level==1)?qe.from:qe.to-1,Tt),ct=="before"&&(Tt=Rg(ve,Tt,1))}else Tt=Ee<0?qe.to:qe.from;return new zt(me,Tt,ct)}}return new zt(me,Ee<0?ve.text.length:0,Ee<0?"before":"after")}function Lf(ie,ae,ve,me){var Ee=wn(ae,ie.doc.direction);if(!Ee)return ls(ae,ve,me);ve.ch>=ae.text.length?(ve.ch=ae.text.length,ve.sticky="before"):ve.ch<=0&&(ve.ch=0,ve.sticky="after");var Be=vn(Ee,ve.ch,ve.sticky),qe=Ee[Be];if(ie.doc.direction=="ltr"&&qe.level%2==0&&(me>0?qe.to>ve.ch:qe.from<ve.ch))return ls(ae,ve,me);var ht=function(sr,Mr){return Rg(ae,sr instanceof zt?sr.ch:sr,Mr)},ct,Tt=function(sr){return ie.options.lineWrapping?(ct=ct||Ts(ie,ae),cl(ie,ae,ct,sr)):{begin:0,end:ae.text.length}},ln=Tt(ve.sticky=="before"?ht(ve,-1):ve.ch);if(ie.doc.direction=="rtl"||qe.level==1){var Dt=qe.level==1==me<0,Hn=ht(ve,Dt?1:-1);if(Hn!=null&&(Dt?Hn<=qe.to&&Hn<=ln.end:Hn>=qe.from&&Hn>=ln.begin)){var Dn=Dt?"before":"after";return new zt(ve.line,Hn,Dn)}}var Ii=function(sr,Mr,Er){for(var Fr=function(Ra,Ps){return Ps?new zt(ve.line,ht(Ra,1),"before"):new zt(ve.line,Ra,"after")};sr>=0&&sr<Ee.length;sr+=Mr){var oo=Ee[sr],yr=Mr>0==(oo.level!=1),No=yr?Er.begin:ht(Er.end,-1);if(oo.from<=No&&No<oo.to||(No=yr?oo.from:ht(oo.to,-1),Er.begin<=No&&No<Er.end))return Fr(No,yr)}},_i=Ii(Be+me,me,ln);if(_i)return _i;var Wi=me>0?ln.end:ht(ln.begin,-1);return Wi!=null&&!(me>0&&Wi==ae.text.length)&&(_i=Ii(me>0?0:Ee.length-1,me,Tt(Wi)),_i)?_i:null}var hd={selectAll:Si,singleSelection:function(ie){return ie.setSelection(ie.getCursor("anchor"),ie.getCursor("head"),Ct)},killLine:function(ie){return ql(ie,function(ae){if(ae.empty()){var ve=oi(ie.doc,ae.head.line).text.length;return ae.head.ch==ve&&ae.head.line<ie.lastLine()?{from:ae.head,to:zt(ae.head.line+1,0)}:{from:ae.head,to:zt(ae.head.line,ve)}}else return{from:ae.from(),to:ae.to()}})},deleteLine:function(ie){return ql(ie,function(ae){return{from:zt(ae.from().line,0),to:Pn(ie.doc,zt(ae.to().line+1,0))}})},delLineLeft:function(ie){return ql(ie,function(ae){return{from:zt(ae.from().line,0),to:ae.from()}})},delWrappedLineLeft:function(ie){return ql(ie,function(ae){var ve=ie.charCoords(ae.head,"div").top+5,me=ie.coordsChar({left:0,top:ve},"div");return{from:me,to:ae.from()}})},delWrappedLineRight:function(ie){return ql(ie,function(ae){var ve=ie.charCoords(ae.head,"div").top+5,me=ie.coordsChar({left:ie.display.lineDiv.offsetWidth+100,top:ve},"div");return{from:ae.from(),to:me}})},undo:function(ie){return ie.undo()},redo:function(ie){return ie.redo()},undoSelection:function(ie){return ie.undoSelection()},redoSelection:function(ie){return ie.redoSelection()},goDocStart:function(ie){return ie.extendSelection(zt(ie.firstLine(),0))},goDocEnd:function(ie){return ie.extendSelection(zt(ie.lastLine()))},goLineStart:function(ie){return ie.extendSelectionsBy(function(ae){return bh(ie,ae.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(ie){return ie.extendSelectionsBy(function(ae){return Fg(ie,ae.head)},{origin:"+move",bias:1})},goLineEnd:function(ie){return ie.extendSelectionsBy(function(ae){return wh(ie,ae.head.line)},{origin:"+move",bias:-1})},goLineRight:function(ie){return ie.extendSelectionsBy(function(ae){var ve=ie.cursorCoords(ae.head,"div").top+5;return ie.coordsChar({left:ie.display.lineDiv.offsetWidth+100,top:ve},"div")},on)},goLineLeft:function(ie){return ie.extendSelectionsBy(function(ae){var ve=ie.cursorCoords(ae.head,"div").top+5;return ie.coordsChar({left:0,top:ve},"div")},on)},goLineLeftSmart:function(ie){return ie.extendSelectionsBy(function(ae){var ve=ie.cursorCoords(ae.head,"div").top+5,me=ie.coordsChar({left:0,top:ve},"div");return me.ch<ie.getLine(me.line).search(/\S/)?Fg(ie,ae.head):me},on)},goLineUp:function(ie){return ie.moveV(-1,"line")},goLineDown:function(ie){return ie.moveV(1,"line")},goPageUp:function(ie){return ie.moveV(-1,"page")},goPageDown:function(ie){return ie.moveV(1,"page")},goCharLeft:function(ie){return ie.moveH(-1,"char")},goCharRight:function(ie){return ie.moveH(1,"char")},goColumnLeft:function(ie){return ie.moveH(-1,"column")},goColumnRight:function(ie){return ie.moveH(1,"column")},goWordLeft:function(ie){return ie.moveH(-1,"word")},goGroupRight:function(ie){return ie.moveH(1,"group")},goGroupLeft:function(ie){return ie.moveH(-1,"group")},goWordRight:function(ie){return ie.moveH(1,"word")},delCharBefore:function(ie){return ie.deleteH(-1,"codepoint")},delCharAfter:function(ie){return ie.deleteH(1,"char")},delWordBefore:function(ie){return ie.deleteH(-1,"word")},delWordAfter:function(ie){return ie.deleteH(1,"word")},delGroupBefore:function(ie){return ie.deleteH(-1,"group")},delGroupAfter:function(ie){return ie.deleteH(1,"group")},indentAuto:function(ie){return ie.indentSelection("smart")},indentMore:function(ie){return ie.indentSelection("add")},indentLess:function(ie){return ie.indentSelection("subtract")},insertTab:function(ie){return ie.replaceSelection(" ")},insertSoftTab:function(ie){for(var ae=[],ve=ie.listSelections(),me=ie.options.tabSize,Ee=0;Ee<ve.length;Ee++){var Be=ve[Ee].from(),qe=Nt(ie.getLine(Be.line),Be.ch,me);ae.push(si(me-qe%me))}ie.replaceSelections(ae)},defaultTab:function(ie){ie.somethingSelected()?ie.indentSelection("add"):ie.execCommand("insertTab")},transposeChars:function(ie){return Ko(ie,function(){for(var ae=ie.listSelections(),ve=[],me=0;me<ae.length;me++)if(ae[me].empty()){var Ee=ae[me].head,Be=oi(ie.doc,Ee.line).text;if(Be){if(Ee.ch==Be.length&&(Ee=new zt(Ee.line,Ee.ch-1)),Ee.ch>0)Ee=new zt(Ee.line,Ee.ch+1),ie.replaceRange(Be.charAt(Ee.ch-1)+Be.charAt(Ee.ch-2),zt(Ee.line,Ee.ch-2),Ee,"+transpose");else if(Ee.line>ie.doc.first){var qe=oi(ie.doc,Ee.line-1).text;qe&&(Ee=new zt(Ee.line,1),ie.replaceRange(Be.charAt(0)+ie.doc.lineSeparator()+qe.charAt(qe.length-1),zt(Ee.line-1,qe.length-1),Ee,"+transpose"))}}ve.push(new _r(Ee,Ee))}ie.setSelections(ve)})},newlineAndIndent:function(ie){return Ko(ie,function(){for(var ae=ie.listSelections(),ve=ae.length-1;ve>=0;ve--)ie.replaceRange(ie.doc.lineSeparator(),ae[ve].anchor,ae[ve].head,"+input");ae=ie.listSelections();for(var me=0;me<ae.length;me++)ie.indentLine(ae[me].from().line,null,!0);Zl(ie)})},openLine:function(ie){return ie.replaceSelection(`
`,"start")},toggleOverwrite:function(ie){return ie.toggleOverwrite()}};function bh(ie,ae){var ve=oi(ie.doc,ae),me=Ar(ve);return me!=ve&&(ae=pt(me)),Jh(!0,ie,me,ae,1)}function wh(ie,ae){var ve=oi(ie.doc,ae),me=kr(ve);return me!=ve&&(ae=pt(me)),Jh(!0,ie,ve,ae,-1)}function Fg(ie,ae){var ve=bh(ie,ae.line),me=oi(ie.doc,ve.line),Ee=wn(me,ie.doc.direction);if(!Ee||Ee[0].level==0){var Be=Math.max(ve.ch,me.text.search(/\S/)),qe=ae.line==ve.line&&ae.ch<=Be&&ae.ch;return zt(ve.line,qe?0:Be,ve.sticky)}return ve}function Th(ie,ae,ve){if(typeof ae=="string"&&(ae=hd[ae],!ae))return!1;ie.display.input.ensurePolled();var me=ie.display.shift,Ee=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),ve&&(ie.display.shift=!1),Ee=ae(ie)!=mn}finally{ie.display.shift=me,ie.state.suppressEdits=!1}return Ee}function Bg(ie,ae,ve){for(var me=0;me<ie.state.keyMaps.length;me++){var Ee=ku(ae,ie.state.keyMaps[me],ve,ie);if(Ee)return Ee}return ie.options.extraKeys&&ku(ae,ie.options.extraKeys,ve,ie)||ku(ae,ie.options.keyMap,ve,ie)}var Pc=new ut;function Ud(ie,ae,ve,me){var Ee=ie.state.keySeq;if(Ee){if(xh(ae))return"handled";if(/\'$/.test(ae)?ie.state.keySeq=null:Pc.set(50,function(){ie.state.keySeq==Ee&&(ie.state.keySeq=null,ie.display.input.reset())}),If(ie,Ee+" "+ae,ve,me))return!0}return If(ie,ae,ve,me)}function If(ie,ae,ve,me){var Ee=Bg(ie,ae,me);return Ee=="multi"&&(ie.state.keySeq=ae),Ee=="handled"&&cr(ie,"keyHandled",ie,ae,ve),(Ee=="handled"||Ee=="multi")&&(On(ve),Xo(ie)),!!Ee}function kf(ie,ae){var ve=rm(ae,!0);return ve?ae.shiftKey&&!ie.state.keySeq?Ud(ie,"Shift-"+ve,ae,function(me){return Th(ie,me,!0)})||Ud(ie,ve,ae,function(me){if(typeof me=="string"?/^go[A-Z]/.test(me):me.motion)return Th(ie,me)}):Ud(ie,ve,ae,function(me){return Th(ie,me)}):!1}function Df(ie,ae,ve){return Ud(ie,"'"+ve+"'",ae,function(me){return Th(ie,me,!0)})}var Hd=null;function _g(ie){var ae=this;if(!(ie.target&&ie.target!=ae.display.input.getField())&&(ae.curOp.focus=Mt(),!Jt(ae,ie))){Ge&&Oe<11&&ie.keyCode==27&&(ie.returnValue=!1);var ve=ie.keyCode;ae.display.shift=ve==16||ie.shiftKey;var me=kf(ae,ie);Xe&&(Hd=me?ve:null,!me&&ve==88&&!Ci&&(fe?ie.metaKey:ie.ctrlKey)&&ae.replaceSelection("",null,"cut")),le&&!fe&&!me&&ve==46&&ie.shiftKey&&!ie.ctrlKey&&document.execCommand&&document.execCommand("cut"),ve==18&&!/\bCodeMirror-crosshair\b/.test(ae.display.lineDiv.className)&&jg(ae)}}function jg(ie){var ae=ie.display.lineDiv;Xt(ae,"CodeMirror-crosshair");function ve(me){(me.keyCode==18||!me.altKey)&&(Ze(ae,"CodeMirror-crosshair"),dn(document,"keyup",ve),dn(document,"mouseover",ve))}Ft(document,"keyup",ve),Ft(document,"mouseover",ve)}function zg(ie){ie.keyCode==16&&(this.doc.sel.shift=!1),Jt(this,ie)}function hc(ie){var ae=this;if(!(ie.target&&ie.target!=ae.display.input.getField())&&!(Io(ae.display,ie)||Jt(ae,ie)||ie.ctrlKey&&!ie.altKey||fe&&ie.metaKey)){var ve=ie.keyCode,me=ie.charCode;if(Xe&&ve==Hd){Hd=null,On(ie);return}if(!(Xe&&(!ie.which||ie.which<10)&&kf(ae,ie))){var Ee=String.fromCharCode(me==null?ve:me);Ee!="\b"&&(Df(ae,ie,Ee)||ae.display.input.onKeyPress(ie))}}}var om=400,Ug=function(ie,ae,ve){this.time=ie,this.pos=ae,this.button=ve};Ug.prototype.compare=function(ie,ae,ve){return this.time+om>ie&&xn(ae,this.pos)==0&&ve==this.button};var Ah,Gd;function Hg(ie,ae){var ve=+new Date;return Gd&&Gd.compare(ve,ie,ae)?(Ah=Gd=null,"triple"):Ah&&Ah.compare(ve,ie,ae)?(Gd=new Ug(ve,ie,ae),Ah=null,"double"):(Ah=new Ug(ve,ie,ae),Gd=null,"single")}function fc(ie){var ae=this,ve=ae.display;if(!(Jt(ae,ie)||ve.activeTouch&&ve.input.supportsTouch())){if(ve.input.ensurePolled(),ve.shift=ie.shiftKey,Io(ve,ie)){Ve||(ve.scroller.draggable=!1,setTimeout(function(){return ve.scroller.draggable=!0},100));return}if(!Ff(ae,ie)){var me=os(ae,ie),Ee=Oi(ie),Be=me?Hg(me,Ee):"single";window.focus(),Ee==1&&ae.state.selectingText&&ae.state.selectingText(ie),!(me&&Gg(ae,Ee,me,Be,ie))&&(Ee==1?me?am(ae,me,Be,ie):Hi(ie)==ve.scroller&&On(ie):Ee==2?(me&&Lu(ae.doc,me),setTimeout(function(){return ve.input.focus()},20)):Ee==3&&(De?ae.display.input.onContextMenu(ie):va(ae)))}}}function Gg(ie,ae,ve,me,Ee){var Be="Click";return me=="double"?Be="Double"+Be:me=="triple"&&(Be="Triple"+Be),Be=(ae==1?"Left":ae==2?"Middle":"Right")+Be,Ud(ie,Og(Be,Ee),Ee,function(qe){if(typeof qe=="string"&&(qe=hd[qe]),!qe)return!1;var ht=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),ht=qe(ie,ve)!=mn}finally{ie.state.suppressEdits=!1}return ht})}function Of(ie,ae,ve){var me=ie.getOption("configureMouse"),Ee=me?me(ie,ae,ve):{};if(Ee.unit==null){var Be=se?ve.shiftKey&&ve.metaKey:ve.altKey;Ee.unit=Be?"rectangle":ae=="single"?"char":ae=="double"?"word":"line"}return(Ee.extend==null||ie.doc.extend)&&(Ee.extend=ie.doc.extend||ve.shiftKey),Ee.addNew==null&&(Ee.addNew=fe?ve.metaKey:ve.ctrlKey),Ee.moveOnDrag==null&&(Ee.moveOnDrag=!(fe?ve.altKey:ve.ctrlKey)),Ee}function am(ie,ae,ve,me){Ge?setTimeout(fn($o,ie),0):ie.curOp.focus=Mt();var Ee=Of(ie,ve,me),Be=ie.doc.sel,qe;ie.options.dragDrop&&Mn&&!ie.isReadOnly()&&ve=="single"&&(qe=Be.contains(ae))>-1&&(xn((qe=Be.ranges[qe]).from(),ae)<0||ae.xRel>0)&&(xn(qe.to(),ae)>0||ae.xRel<0)?Yg(ie,me,ae,Ee):rv(ie,me,ae,Ee)}function Yg(ie,ae,ve,me){var Ee=ie.display,Be=!1,qe=Xa(ie,function(Tt){Ve&&(Ee.scroller.draggable=!1),ie.state.draggingText=!1,dn(Ee.wrapper.ownerDocument,"mouseup",qe),dn(Ee.wrapper.ownerDocument,"mousemove",ht),dn(Ee.scroller,"dragstart",ct),dn(Ee.scroller,"drop",qe),Be||(On(Tt),me.addNew||Lu(ie.doc,ve,null,null,me.extend),Ve&&!vt||Ge&&Oe==9?setTimeout(function(){Ee.wrapper.ownerDocument.body.focus({preventScroll:!0}),Ee.input.focus()},20):Ee.input.focus())}),ht=function(Tt){Be=Be||Math.abs(ae.clientX-Tt.clientX)+Math.abs(ae.clientY-Tt.clientY)>=10},ct=function(){return Be=!0};Ve&&(Ee.scroller.draggable=!0),ie.state.draggingText=qe,qe.copy=!me.moveOnDrag,Ee.scroller.dragDrop&&Ee.scroller.dragDrop(),Ft(Ee.wrapper.ownerDocument,"mouseup",qe),Ft(Ee.wrapper.ownerDocument,"mousemove",ht),Ft(Ee.scroller,"dragstart",ct),Ft(Ee.scroller,"drop",qe),va(ie),setTimeout(function(){return Ee.input.focus()},20)}function Vg(ie,ae,ve){if(ve=="char")return new _r(ae,ae);if(ve=="word")return ie.findWordAt(ae);if(ve=="line")return new _r(zt(ae.line,0),Pn(ie.doc,zt(ae.line+1,0)));var me=ve(ie,ae);return new _r(me.from,me.to)}function rv(ie,ae,ve,me){var Ee=ie.display,Be=ie.doc;On(ae);var qe,ht,ct=Be.sel,Tt=ct.ranges;if(me.addNew&&!me.extend?(ht=Be.sel.contains(ve),ht>-1?qe=Tt[ht]:qe=new _r(ve,ve)):(qe=Be.sel.primary(),ht=Be.sel.primIndex),me.unit=="rectangle")me.addNew||(qe=new _r(ve,ve)),ve=os(ie,ae,!0,!0),ht=-1;else{var ln=Vg(ie,ve,me.unit);me.extend?qe=fu(qe,ln.anchor,ln.head,me.extend):qe=ln}me.addNew?ht==-1?(ht=Tt.length,ge(Be,Hr(ie,Tt.concat([qe]),ht),{scroll:!1,origin:"*mouse"})):Tt.length>1&&Tt[ht].empty()&&me.unit=="char"&&!me.extend?(ge(Be,Hr(ie,Tt.slice(0,ht).concat(Tt.slice(ht+1)),0),{scroll:!1,origin:"*mouse"}),ct=Be.sel):Bl(Be,ht,qe,un):(ht=0,ge(Be,new vr([qe],0),un),ct=Be.sel);var Dt=ve;function Hn(Er){if(xn(Dt,Er)!=0)if(Dt=Er,me.unit=="rectangle"){for(var Fr=[],oo=ie.options.tabSize,yr=Nt(oi(Be,ve.line).text,ve.ch,oo),No=Nt(oi(Be,Er.line).text,Er.ch,oo),Ra=Math.min(yr,No),Ps=Math.max(yr,No),Wa=Math.min(ve.line,Er.line),zl=Math.min(ie.lastLine(),Math.max(ve.line,Er.line));Wa<=zl;Wa++){var hl=oi(Be,Wa).text,xs=Bn(hl,Ra,oo);Ra==Ps?Fr.push(new _r(zt(Wa,xs),zt(Wa,xs))):hl.length>xs&&Fr.push(new _r(zt(Wa,xs),zt(Wa,Bn(hl,Ps,oo))))}Fr.length||Fr.push(new _r(ve,ve)),ge(Be,Hr(ie,ct.ranges.slice(0,ht).concat(Fr),ht),{origin:"*mouse",scroll:!1}),ie.scrollIntoView(Er)}else{var $l=qe,tl=Vg(ie,Er,me.unit),bs=$l.anchor,ea;xn(tl.anchor,bs)>0?(ea=tl.head,bs=Ni($l.from(),tl.anchor)):(ea=tl.anchor,bs=_e($l.to(),tl.head));var Ja=ct.ranges.slice(0);Ja[ht]=sm(ie,new _r(Pn(Be,bs),ea)),ge(Be,Hr(ie,Ja,ht),un)}}var Dn=Ee.wrapper.getBoundingClientRect(),Ii=0;function _i(Er){var Fr=++Ii,oo=os(ie,Er,!0,me.unit=="rectangle");if(oo)if(xn(oo,Dt)!=0){ie.curOp.focus=Mt(),Hn(oo);var yr=Co(Ee,Be);(oo.line>=yr.to||oo.line<yr.from)&&setTimeout(Xa(ie,function(){Ii==Fr&&_i(Er)}),150)}else{var No=Er.clientY<Dn.top?-20:Er.clientY>Dn.bottom?20:0;No&&setTimeout(Xa(ie,function(){Ii==Fr&&(Ee.scroller.scrollTop+=No,_i(Er))}),50)}}function Wi(Er){ie.state.selectingText=!1,Ii=1/0,Er&&(On(Er),Ee.input.focus()),dn(Ee.wrapper.ownerDocument,"mousemove",sr),dn(Ee.wrapper.ownerDocument,"mouseup",Mr),Be.history.lastSelOrigin=null}var sr=Xa(ie,function(Er){Er.buttons===0||!Oi(Er)?Wi(Er):_i(Er)}),Mr=Xa(ie,Wi);ie.state.selectingText=Mr,Ft(Ee.wrapper.ownerDocument,"mousemove",sr),Ft(Ee.wrapper.ownerDocument,"mouseup",Mr)}function sm(ie,ae){var ve=ae.anchor,me=ae.head,Ee=oi(ie.doc,ve.line);if(xn(ve,me)==0&&ve.sticky==me.sticky)return ae;var Be=wn(Ee);if(!Be)return ae;var qe=vn(Be,ve.ch,ve.sticky),ht=Be[qe];if(ht.from!=ve.ch&&ht.to!=ve.ch)return ae;var ct=qe+(ht.from==ve.ch==(ht.level!=1)?0:1);if(ct==0||ct==Be.length)return ae;var Tt;if(me.line!=ve.line)Tt=(me.line-ve.line)*(ie.doc.direction=="ltr"?1:-1)>0;else{var ln=vn(Be,me.ch,me.sticky),Dt=ln-qe||(me.ch-ve.ch)*(ht.level==1?-1:1);ln==ct-1||ln==ct?Tt=Dt<0:Tt=Dt>0}var Hn=Be[ct+(Tt?-1:0)],Dn=Tt==(Hn.level==1),Ii=Dn?Hn.from:Hn.to,_i=Dn?"after":"before";return ve.ch==Ii&&ve.sticky==_i?ae:new _r(new zt(ve.line,Ii,_i),me)}function Rf(ie,ae,ve,me){var Ee,Be;if(ae.touches)Ee=ae.touches[0].clientX,Be=ae.touches[0].clientY;else try{Ee=ae.clientX,Be=ae.clientY}catch(Hn){return!1}if(Ee>=Math.floor(ie.display.gutters.getBoundingClientRect().right))return!1;me&&On(ae);var qe=ie.display,ht=qe.lineDiv.getBoundingClientRect();if(Be>ht.bottom||!Gn(ie,ve))return jt(ae);Be-=ht.top-qe.viewOffset;for(var ct=0;ct<ie.display.gutterSpecs.length;++ct){var Tt=qe.gutters.childNodes[ct];if(Tt&&Tt.getBoundingClientRect().right>=Ee){var ln=yn(ie.doc,Be),Dt=ie.display.gutterSpecs[ct];return En(ie,ve,ie,ln,Dt.className,ae),jt(ae)}}}function Ff(ie,ae){return Rf(ie,ae,"gutterClick",!0)}function Bf(ie,ae){Io(ie.display,ae)||lm(ie,ae)||Jt(ie,ae,"contextmenu")||De||ie.display.input.onContextMenu(ae)}function lm(ie,ae){return Gn(ie,"gutterContextMenu")?Rf(ie,ae,"gutterContextMenu",!1):!1}function _f(ie){ie.display.wrapper.className=ie.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+ie.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Gu(ie)}var fd={toString:function(){return"CodeMirror.Init"}},Wg={},qh={};function um(ie){var ae=ie.optionHandlers;function ve(me,Ee,Be,qe){ie.defaults[me]=Ee,Be&&(ae[me]=qe?function(ht,ct,Tt){Tt!=fd&&Be(ht,ct,Tt)}:Be)}ie.defineOption=ve,ie.Init=fd,ve("value","",function(me,Ee){return me.setValue(Ee)},!0),ve("mode",null,function(me,Ee){me.doc.modeOption=Ee,Or(me)},!0),ve("indentUnit",2,Or,!0),ve("indentWithTabs",!1),ve("smartIndent",!0),ve("tabSize",4,function(me){Bs(me),Gu(me),ko(me)},!0),ve("lineSeparator",null,function(me,Ee){if(me.doc.lineSep=Ee,!!Ee){var Be=[],qe=me.doc.first;me.doc.iter(function(ct){for(var Tt=0;;){var ln=ct.text.indexOf(Ee,Tt);if(ln==-1)break;Tt=ln+Ee.length,Be.push(zt(qe,ln))}qe++});for(var ht=Be.length-1;ht>=0;ht--)Iu(me.doc,Ee,Be[ht],zt(Be[ht].line,Be[ht].ch+Ee.length))}}),ve("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(me,Ee,Be){me.state.specialChars=new RegExp(Ee.source+(Ee.test(" ")?"":"| "),"g"),Be!=fd&&me.refresh()}),ve("specialCharPlaceholder",ra,function(me){return me.refresh()},!0),ve("electricChars",!0),ve("inputStyle",ne?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ve("spellcheck",!1,function(me,Ee){return me.getInputField().spellcheck=Ee},!0),ve("autocorrect",!1,function(me,Ee){return me.getInputField().autocorrect=Ee},!0),ve("autocapitalize",!1,function(me,Ee){return me.getInputField().autocapitalize=Ee},!0),ve("rtlMoveVisually",!pe),ve("wholeLineUpdateBefore",!0),ve("theme","default",function(me){_f(me),Sn(me)},!0),ve("keyMap","default",function(me,Ee,Be){var qe=zd(Ee),ht=Be!=fd&&zd(Be);ht&&ht.detach&&ht.detach(me,qe),qe.attach&&qe.attach(me,ht||null)}),ve("extraKeys",null),ve("configureMouse",null),ve("lineWrapping",!1,cm,!0),ve("gutters",[],function(me,Ee){me.display.gutterSpecs=_n(Ee,me.options.lineNumbers),Sn(me)},!0),ve("fixedGutter",!0,function(me,Ee){me.display.gutters.style.left=Ee?Vc(me.display)+"px":"0",me.refresh()},!0),ve("coverGutterNextToScrollbar",!1,function(me){return du(me)},!0),ve("scrollbarStyle","native",function(me){cc(me),du(me),me.display.scrollbars.setScrollTop(me.doc.scrollTop),me.display.scrollbars.setScrollLeft(me.doc.scrollLeft)},!0),ve("lineNumbers",!1,function(me,Ee){me.display.gutterSpecs=_n(me.options.gutters,Ee),Sn(me)},!0),ve("firstLineNumber",1,Sn,!0),ve("lineNumberFormatter",function(me){return me},Sn,!0),ve("showCursorWhenSelecting",!1,Qa,!0),ve("resetSelectionOnContextMenu",!0),ve("lineWiseCopyCut",!0),ve("pasteLinesPerSelection",!0),ve("selectionsMayTouch",!1),ve("readOnly",!1,function(me,Ee){Ee=="nocursor"&&(lc(me),me.display.input.blur()),me.display.input.readOnlyChanged(Ee)}),ve("screenReaderLabel",null,function(me,Ee){Ee=Ee===""?null:Ee,me.display.input.screenReaderLabelChanged(Ee)}),ve("disableInput",!1,function(me,Ee){Ee||me.display.input.reset()},!0),ve("dragDrop",!0,jf),ve("allowDropFileTypes",null),ve("cursorBlinkRate",530),ve("cursorScrollMargin",0),ve("cursorHeight",1,Qa,!0),ve("singleCursorHeightPerLine",!0,Qa,!0),ve("workTime",100),ve("workDelay",100),ve("flattenSpans",!0,Bs,!0),ve("addModeClass",!1,Bs,!0),ve("pollInterval",100),ve("undoDepth",200,function(me,Ee){return me.doc.history.undoDepth=Ee}),ve("historyEventDelay",1250),ve("viewportMargin",10,function(me){return me.refresh()},!0),ve("maxHighlightLength",1e4,Bs,!0),ve("moveInputWithCursor",!0,function(me,Ee){Ee||me.display.input.resetPosition()}),ve("tabindex",null,function(me,Ee){return me.display.input.getField().tabIndex=Ee||""}),ve("autofocus",null),ve("direction","ltr",function(me,Ee){return me.doc.setDirection(Ee)},!0),ve("phrases",null)}function jf(ie,ae,ve){var me=ve&&ve!=fd;if(!ae!=!me){var Ee=ie.display.dragFunctions,Be=ae?Ft:dn;Be(ie.display.scroller,"dragstart",Ee.start),Be(ie.display.scroller,"dragenter",Ee.enter),Be(ie.display.scroller,"dragover",Ee.over),Be(ie.display.scroller,"dragleave",Ee.leave),Be(ie.display.scroller,"drop",Ee.drop)}}function cm(ie){ie.options.lineWrapping?(Xt(ie.display.wrapper,"CodeMirror-wrap"),ie.display.sizer.style.minWidth="",ie.display.sizerWidth=null):(Ze(ie.display.wrapper,"CodeMirror-wrap"),Do(ie)),Br(ie),ko(ie),Gu(ie),setTimeout(function(){return du(ie)},100)}function qo(ie,ae){var ve=this;if(!(this instanceof qo))return new qo(ie,ae);this.options=ae=ae?gn(ae):{},gn(Wg,ae,!1);var me=ae.value;typeof me=="string"?me=new el(me,ae.mode,null,ae.lineSeparator,ae.direction):ae.mode&&(me.modeOption=ae.mode),this.doc=me;var Ee=new qo.inputStyles[ae.inputStyle](this),Be=this.display=new ai(ie,me,Ee,ae);Be.wrapper.CodeMirror=this,_f(this),ae.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),cc(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new ut,keySeq:null,specialChars:null},ae.autofocus&&!ne&&Be.input.focus(),Ge&&Oe<11&&setTimeout(function(){return ve.display.input.reset(!0)},20),Ch(this),pu(),hu(this),this.curOp.forceUpdate=!0,Bo(this,me),ae.autofocus&&!ne||this.hasFocus()?setTimeout(function(){ve.hasFocus()&&!ve.state.focused&&ho(ve)},20):lc(this);for(var qe in qh)qh.hasOwnProperty(qe)&&qh[qe](this,ae[qe],fd);Wt(this),ae.finishInit&&ae.finishInit(this);for(var ht=0;ht<Yd.length;++ht)Yd[ht](this);Nu(this),Ve&&ae.lineWrapping&&getComputedStyle(Be.lineDiv).textRendering=="optimizelegibility"&&(Be.lineDiv.style.textRendering="auto")}qo.defaults=Wg,qo.optionHandlers=qh;function Ch(ie){var ae=ie.display;Ft(ae.scroller,"mousedown",Xa(ie,fc)),Ge&&Oe<11?Ft(ae.scroller,"dblclick",Xa(ie,function(ct){if(!Jt(ie,ct)){var Tt=os(ie,ct);if(!(!Tt||Ff(ie,ct)||Io(ie.display,ct))){On(ct);var ln=ie.findWordAt(Tt);Lu(ie.doc,ln.anchor,ln.head)}}})):Ft(ae.scroller,"dblclick",function(ct){return Jt(ie,ct)||On(ct)}),Ft(ae.scroller,"contextmenu",function(ct){return Bf(ie,ct)}),Ft(ae.input.getField(),"contextmenu",function(ct){ae.scroller.contains(ct.target)||Bf(ie,ct)});var ve,me={end:0};function Ee(){ae.activeTouch&&(ve=setTimeout(function(){return ae.activeTouch=null},1e3),me=ae.activeTouch,me.end=+new Date)}function Be(ct){if(ct.touches.length!=1)return!1;var Tt=ct.touches[0];return Tt.radiusX<=1&&Tt.radiusY<=1}function qe(ct,Tt){if(Tt.left==null)return!0;var ln=Tt.left-ct.left,Dt=Tt.top-ct.top;return ln*ln+Dt*Dt>20*20}Ft(ae.scroller,"touchstart",function(ct){if(!Jt(ie,ct)&&!Be(ct)&&!Ff(ie,ct)){ae.input.ensurePolled(),clearTimeout(ve);var Tt=+new Date;ae.activeTouch={start:Tt,moved:!1,prev:Tt-me.end<=300?me:null},ct.touches.length==1&&(ae.activeTouch.left=ct.touches[0].pageX,ae.activeTouch.top=ct.touches[0].pageY)}}),Ft(ae.scroller,"touchmove",function(){ae.activeTouch&&(ae.activeTouch.moved=!0)}),Ft(ae.scroller,"touchend",function(ct){var Tt=ae.activeTouch;if(Tt&&!Io(ae,ct)&&Tt.left!=null&&!Tt.moved&&new Date-Tt.start<300){var ln=ie.coordsChar(ae.activeTouch,"page"),Dt;!Tt.prev||qe(Tt,Tt.prev)?Dt=new _r(ln,ln):!Tt.prev.prev||qe(Tt,Tt.prev.prev)?Dt=ie.findWordAt(ln):Dt=new _r(zt(ln.line,0),Pn(ie.doc,zt(ln.line+1,0))),ie.setSelection(Dt.anchor,Dt.head),ie.focus(),On(ct)}Ee()}),Ft(ae.scroller,"touchcancel",Ee),Ft(ae.scroller,"scroll",function(){ae.scroller.clientHeight&&(cu(ie,ae.scroller.scrollTop),Kl(ie,ae.scroller.scrollLeft,!0),En(ie,"scroll",ie))}),Ft(ae.scroller,"mousewheel",function(ct){return uo(ie,ct)}),Ft(ae.scroller,"DOMMouseScroll",function(ct){return uo(ie,ct)}),Ft(ae.wrapper,"scroll",function(){return ae.wrapper.scrollTop=ae.wrapper.scrollLeft=0}),ae.dragFunctions={enter:function(ct){Jt(ie,ct)||mi(ct)},over:function(ct){Jt(ie,ct)||(tm(ie,ct),mi(ct))},start:function(ct){return em(ie,ct)},drop:Xa(ie,Pg),leave:function(ct){Jt(ie,ct)||nm(ie)}};var ht=ae.input.getField();Ft(ht,"keyup",function(ct){return zg.call(ie,ct)}),Ft(ht,"keydown",Xa(ie,_g)),Ft(ht,"keypress",Xa(ie,hc)),Ft(ht,"focus",function(ct){return ho(ie,ct)}),Ft(ht,"blur",function(ct){return lc(ie,ct)})}var Yd=[];qo.defineInitHook=function(ie){return Yd.push(ie)};function Ms(ie,ae,ve,me){var Ee=ie.doc,Be;ve==null&&(ve="add"),ve=="smart"&&(Ee.mode.indent?Be=Vr(ie,ae).state:ve="prev");var qe=ie.options.tabSize,ht=oi(Ee,ae),ct=Nt(ht.text,null,qe);ht.stateAfter&&(ht.stateAfter=null);var Tt=ht.text.match(/^\s*/)[0],ln;if(!me&&!/\S/.test(ht.text))ln=0,ve="not";else if(ve=="smart"&&(ln=Ee.mode.indent(Be,ht.text.slice(Tt.length),ht.text),ln==mn||ln>150)){if(!me)return;ve="prev"}ve=="prev"?ae>Ee.first?ln=Nt(oi(Ee,ae-1).text,null,qe):ln=0:ve=="add"?ln=ct+ie.options.indentUnit:ve=="subtract"?ln=ct-ie.options.indentUnit:typeof ve=="number"&&(ln=ct+ve),ln=Math.max(0,ln);var Dt="",Hn=0;if(ie.options.indentWithTabs)for(var Dn=Math.floor(ln/qe);Dn;--Dn)Hn+=qe,Dt+=" ";if(Hn<ln&&(Dt+=si(ln-Hn)),Dt!=Tt)return Iu(Ee,Dt,zt(ae,0),zt(ae,Tt.length),"+input"),ht.stateAfter=null,!0;for(var Ii=0;Ii<Ee.sel.ranges.length;Ii++){var _i=Ee.sel.ranges[Ii];if(_i.head.line==ae&&_i.head.ch<Tt.length){var Wi=zt(ae,Tt.length);Bl(Ee,Ii,new _r(Wi,Wi));break}}}var jl=null;function Vd(ie){jl=ie}function $h(ie,ae,ve,me,Ee){var Be=ie.doc;ie.display.shift=!1,me||(me=Be.sel);var qe=+new Date-200,ht=Ee=="paste"||ie.state.pasteIncoming>qe,ct=Li(ae),Tt=null;if(ht&&me.ranges.length>1)if(jl&&jl.text.join(`
`)==ae){if(me.ranges.length%jl.text.length==0){Tt=[];for(var ln=0;ln<jl.text.length;ln++)Tt.push(Be.splitLines(jl.text[ln]))}}else ct.length==me.ranges.length&&ie.options.pasteLinesPerSelection&&(Tt=qn(ct,function(sr){return[sr]}));for(var Dt=ie.curOp.updateInput,Hn=me.ranges.length-1;Hn>=0;Hn--){var Dn=me.ranges[Hn],Ii=Dn.from(),_i=Dn.to();Dn.empty()&&(ve&&ve>0?Ii=zt(Ii.line,Ii.ch-ve):ie.state.overwrite&&!ht?_i=zt(_i.line,Math.min(oi(Be,_i.line).text.length,_i.ch+Pt(ct).length)):ht&&jl&&jl.lineWise&&jl.text.join(`
`)==ct.join(`
`)&&(Ii=_i=zt(Ii.line,0)));var Wi={from:Ii,to:_i,text:Tt?Tt[Hn%Tt.length]:ct,origin:Ee||(ht?"paste":ie.state.cutIncoming>qe?"cut":"+input")};co(ie.doc,Wi),cr(ie,"inputRead",ie,Wi)}ae&&!ht&&Kg(ie,ae),Zl(ie),ie.curOp.updateInput<2&&(ie.curOp.updateInput=Dt),ie.curOp.typing=!0,ie.state.pasteIncoming=ie.state.cutIncoming=-1}function Zg(ie,ae){var ve=ie.clipboardData&&ie.clipboardData.getData("Text");if(ve)return ie.preventDefault(),!ae.isReadOnly()&&!ae.options.disableInput&&Ko(ae,function(){return $h(ae,ve,0,null,"paste")}),!0}function Kg(ie,ae){if(!(!ie.options.electricChars||!ie.options.smartIndent))for(var ve=ie.doc.sel,me=ve.ranges.length-1;me>=0;me--){var Ee=ve.ranges[me];if(!(Ee.head.ch>100||me&&ve.ranges[me-1].head.line==Ee.head.line)){var Be=ie.getModeAt(Ee.head),qe=!1;if(Be.electricChars){for(var ht=0;ht<Be.electricChars.length;ht++)if(ae.indexOf(Be.electricChars.charAt(ht))>-1){qe=Ms(ie,Ee.head.line,"smart");break}}else Be.electricInput&&Be.electricInput.test(oi(ie.doc,Ee.head.line).text.slice(0,Ee.head.ch))&&(qe=Ms(ie,Ee.head.line,"smart"));qe&&cr(ie,"electricInput",ie,Ee.head.line)}}}function Qg(ie){for(var ae=[],ve=[],me=0;me<ie.doc.sel.ranges.length;me++){var Ee=ie.doc.sel.ranges[me].head.line,Be={anchor:zt(Ee,0),head:zt(Ee+1,0)};ve.push(Be),ae.push(ie.getRange(Be.anchor,Be.head))}return{text:ae,ranges:ve}}function Xg(ie,ae,ve,me){ie.setAttribute("autocorrect",ve?"":"off"),ie.setAttribute("autocapitalize",me?"":"off"),ie.setAttribute("spellcheck",!!ae)}function Jg(){var ie=ft("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),ae=ft("div",[ie],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Ve?ie.style.width="1000px":ie.setAttribute("wrap","off"),Ue&&(ie.style.border="1px solid black"),Xg(ie),ae}function gd(ie){var ae=ie.optionHandlers,ve=ie.helpers={};ie.prototype={constructor:ie,focus:function(){window.focus(),this.display.input.focus()},setOption:function(me,Ee){var Be=this.options,qe=Be[me];Be[me]==Ee&&me!="mode"||(Be[me]=Ee,ae.hasOwnProperty(me)&&Xa(this,ae[me])(this,Ee,qe),En(this,"optionChange",this,me))},getOption:function(me){return this.options[me]},getDoc:function(){return this.doc},addKeyMap:function(me,Ee){this.state.keyMaps[Ee?"push":"unshift"](zd(me))},removeKeyMap:function(me){for(var Ee=this.state.keyMaps,Be=0;Be<Ee.length;++Be)if(Ee[Be]==me||Ee[Be].name==me)return Ee.splice(Be,1),!0},addOverlay:as(function(me,Ee){var Be=me.token?me:ie.getMode(this.options,me);if(Be.startState)throw new Error("Overlays may not be stateful.");Ei(this.state.overlays,{mode:Be,modeSpec:me,opaque:Ee&&Ee.opaque,priority:Ee&&Ee.priority||0},function(qe){return qe.priority}),this.state.modeGen++,ko(this)}),removeOverlay:as(function(me){for(var Ee=this.state.overlays,Be=0;Be<Ee.length;++Be){var qe=Ee[Be].modeSpec;if(qe==me||typeof me=="string"&&qe.name==me){Ee.splice(Be,1),this.state.modeGen++,ko(this);return}}}),indentLine:as(function(me,Ee,Be){typeof Ee!="string"&&typeof Ee!="number"&&(Ee==null?Ee=this.options.smartIndent?"smart":"prev":Ee=Ee?"add":"subtract"),ii(this.doc,me)&&Ms(this,me,Ee,Be)}),indentSelection:as(function(me){for(var Ee=this.doc.sel.ranges,Be=-1,qe=0;qe<Ee.length;qe++){var ht=Ee[qe];if(ht.empty())ht.head.line>Be&&(Ms(this,ht.head.line,me,!0),Be=ht.head.line,qe==this.doc.sel.primIndex&&Zl(this));else{var ct=ht.from(),Tt=ht.to(),ln=Math.max(Be,ct.line);Be=Math.min(this.lastLine(),Tt.line-(Tt.ch?0:1))+1;for(var Dt=ln;Dt<Be;++Dt)Ms(this,Dt,me);var Hn=this.doc.sel.ranges;ct.ch==0&&Ee.length==Hn.length&&Hn[qe].from().ch>0&&Bl(this.doc,qe,new _r(ct,Hn[qe].to()),Ct)}}}),getTokenAt:function(me,Ee){return Fi(this,me,Ee)},getLineTokens:function(me,Ee){return Fi(this,zt(me),Ee,!0)},getTokenTypeAt:function(me){me=Pn(this.doc,me);var Ee=$i(this,oi(this.doc,me.line)),Be=0,qe=(Ee.length-1)/2,ht=me.ch,ct;if(ht==0)ct=Ee[2];else for(;;){var Tt=Be+qe>>1;if((Tt?Ee[Tt*2-1]:0)>=ht)qe=Tt;else if(Ee[Tt*2+1]<ht)Be=Tt+1;else{ct=Ee[Tt*2+2];break}}var ln=ct?ct.indexOf("overlay "):-1;return ln<0?ct:ln==0?null:ct.slice(0,ln-1)},getModeAt:function(me){var Ee=this.doc.mode;return Ee.innerMode?ie.innerMode(Ee,this.getTokenAt(me).state).mode:Ee},getHelper:function(me,Ee){return this.getHelpers(me,Ee)[0]},getHelpers:function(me,Ee){var Be=[];if(!ve.hasOwnProperty(Ee))return Be;var qe=ve[Ee],ht=this.getModeAt(me);if(typeof ht[Ee]=="string")qe[ht[Ee]]&&Be.push(qe[ht[Ee]]);else if(ht[Ee])for(var ct=0;ct<ht[Ee].length;ct++){var Tt=qe[ht[Ee][ct]];Tt&&Be.push(Tt)}else ht.helperType&&qe[ht.helperType]?Be.push(qe[ht.helperType]):qe[ht.name]&&Be.push(qe[ht.name]);for(var ln=0;ln<qe._global.length;ln++){var Dt=qe._global[ln];Dt.pred(ht,this)&&it(Be,Dt.val)==-1&&Be.push(Dt.val)}return Be},getStateAfter:function(me,Ee){var Be=this.doc;return me=hi(Be,me==null?Be.first+Be.size-1:me),Vr(this,me+1,Ee).state},cursorCoords:function(me,Ee){var Be,qe=this.doc.sel.primary();return me==null?Be=qe.head:typeof me=="object"?Be=Pn(this.doc,me):Be=me?qe.from():qe.to(),Fo(this,Be,Ee||"page")},charCoords:function(me,Ee){return xo(this,Pn(this.doc,me),Ee||"page")},coordsChar:function(me,Ee){return me=Yo(this,me,Ee||"page"),Ka(this,me.left,me.top)},lineAtHeight:function(me,Ee){return me=Yo(this,{top:me,left:0},Ee||"page").top,yn(this.doc,me+this.display.viewOffset)},heightAtLine:function(me,Ee,Be){var qe=!1,ht;if(typeof me=="number"){var ct=this.doc.first+this.doc.size-1;me<this.doc.first?me=this.doc.first:me>ct&&(me=ct,qe=!0),ht=oi(this.doc,me)}else ht=me;return Ya(this,ht,{top:0,left:0},Ee||"page",Be||qe).top+(qe?this.doc.height-Zr(ht):0)},defaultTextHeight:function(){return Wl(this.display)},defaultCharWidth:function(){return sc(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(me,Ee,Be,qe,ht){var ct=this.display;me=Fo(this,Pn(this.doc,me));var Tt=me.bottom,ln=me.left;if(Ee.style.position="absolute",Ee.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(Ee),ct.sizer.appendChild(Ee),qe=="over")Tt=me.top;else if(qe=="above"||qe=="near"){var Dt=Math.max(ct.wrapper.clientHeight,this.doc.height),Hn=Math.max(ct.sizer.clientWidth,ct.lineSpace.clientWidth);(qe=="above"||me.bottom+Ee.offsetHeight>Dt)&&me.top>Ee.offsetHeight?Tt=me.top-Ee.offsetHeight:me.bottom+Ee.offsetHeight<=Dt&&(Tt=me.bottom),ln+Ee.offsetWidth>Hn&&(ln=Hn-Ee.offsetWidth)}Ee.style.top=Tt+"px",Ee.style.left=Ee.style.right="",ht=="right"?(ln=ct.sizer.clientWidth-Ee.offsetWidth,Ee.style.right="0px"):(ht=="left"?ln=0:ht=="middle"&&(ln=(ct.sizer.clientWidth-Ee.offsetWidth)/2),Ee.style.left=ln+"px"),Be&&Au(this,{left:ln,top:Tt,right:ln+Ee.offsetWidth,bottom:Tt+Ee.offsetHeight})},triggerOnKeyDown:as(_g),triggerOnKeyPress:as(hc),triggerOnKeyUp:zg,triggerOnMouseDown:as(fc),execCommand:function(me){if(hd.hasOwnProperty(me))return hd[me].call(null,this)},triggerElectric:as(function(me){Kg(this,me)}),findPosH:function(me,Ee,Be,qe){var ht=1;Ee<0&&(ht=-1,Ee=-Ee);for(var ct=Pn(this.doc,me),Tt=0;Tt<Ee&&(ct=ef(this.doc,ct,ht,Be,qe),!ct.hitSide);++Tt);return ct},moveH:as(function(me,Ee){var Be=this;this.extendSelectionsBy(function(qe){return Be.display.shift||Be.doc.extend||qe.empty()?ef(Be.doc,qe.head,me,Ee,Be.options.rtlMoveVisually):me<0?qe.from():qe.to()},on)}),deleteH:as(function(me,Ee){var Be=this.doc.sel,qe=this.doc;Be.somethingSelected()?qe.replaceSelection("",null,"+delete"):ql(this,function(ht){var ct=ef(qe,ht.head,me,Ee,!1);return me<0?{from:ct,to:ht.head}:{from:ht.head,to:ct}})}),findPosV:function(me,Ee,Be,qe){var ht=1,ct=qe;Ee<0&&(ht=-1,Ee=-Ee);for(var Tt=Pn(this.doc,me),ln=0;ln<Ee;++ln){var Dt=Fo(this,Tt,"div");if(ct==null?ct=Dt.left:Dt.left=ct,Tt=pd(this,Dt,ht,Be),Tt.hitSide)break}return Tt},moveV:as(function(me,Ee){var Be=this,qe=this.doc,ht=[],ct=!this.display.shift&&!qe.extend&&qe.sel.somethingSelected();if(qe.extendSelectionsBy(function(ln){if(ct)return me<0?ln.from():ln.to();var Dt=Fo(Be,ln.head,"div");ln.goalColumn!=null&&(Dt.left=ln.goalColumn),ht.push(Dt.left);var Hn=pd(Be,Dt,me,Ee);return Ee=="page"&&ln==qe.sel.primary()&&sd(Be,xo(Be,Hn,"div").top-Dt.top),Hn},on),ht.length)for(var Tt=0;Tt<qe.sel.ranges.length;Tt++)qe.sel.ranges[Tt].goalColumn=ht[Tt]}),findWordAt:function(me){var Ee=this.doc,Be=oi(Ee,me.line).text,qe=me.ch,ht=me.ch;if(Be){var ct=this.getHelper(me,"wordChars");(me.sticky=="before"||ht==Be.length)&&qe?--qe:++ht;for(var Tt=Be.charAt(qe),ln=Ke(Tt,ct)?function(Dt){return Ke(Dt,ct)}:/\s/.test(Tt)?function(Dt){return/\s/.test(Dt)}:function(Dt){return!/\s/.test(Dt)&&!Ke(Dt)};qe>0&&ln(Be.charAt(qe-1));)--qe;for(;ht<Be.length&&ln(Be.charAt(ht));)++ht}return new _r(zt(me.line,qe),zt(me.line,ht))},toggleOverwrite:function(me){me!=null&&me==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Xt(this.display.cursorDiv,"CodeMirror-overwrite"):Ze(this.display.cursorDiv,"CodeMirror-overwrite"),En(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Mt()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:as(function(me,Ee){Rl(this,me,Ee)}),getScrollInfo:function(){var me=this.display.scroller;return{left:me.scrollLeft,top:me.scrollTop,height:me.scrollHeight-Zo(this)-this.display.barHeight,width:me.scrollWidth-Zo(this)-this.display.barWidth,clientHeight:Sl(this),clientWidth:Aa(this)}},scrollIntoView:as(function(me,Ee){me==null?(me={from:this.doc.sel.primary().head,to:null},Ee==null&&(Ee=this.options.cursorScrollMargin)):typeof me=="number"?me={from:zt(me,0),to:null}:me.from==null&&(me={from:me,to:null}),me.to||(me.to=me.from),me.margin=Ee||0,me.from.line!=null?To(this,me):Ac(this,me.from,me.to,me.margin)}),setSize:as(function(me,Ee){var Be=this,qe=function(ct){return typeof ct=="number"||/^\d+$/.test(String(ct))?ct+"px":ct};me!=null&&(this.display.wrapper.style.width=qe(me)),Ee!=null&&(this.display.wrapper.style.height=qe(Ee)),this.options.lineWrapping&&oc(this);var ht=this.display.viewFrom;this.doc.iter(ht,this.display.viewTo,function(ct){if(ct.widgets){for(var Tt=0;Tt<ct.widgets.length;Tt++)if(ct.widgets[Tt].noHScroll){po(Be,ht,"widget");break}}++ht}),this.curOp.forceUpdate=!0,En(this,"refresh",this)}),operation:function(me){return Ko(this,me)},startOperation:function(){return hu(this)},endOperation:function(){return Nu(this)},refresh:as(function(){var me=this.display.cachedTextHeight;ko(this),this.curOp.forceUpdate=!0,Gu(this),Rl(this,this.doc.scrollLeft,this.doc.scrollTop),St(this.display),(me==null||Math.abs(me-Wl(this.display))>.5||this.options.lineWrapping)&&Br(this),En(this,"refresh",this)}),swapDoc:as(function(me){var Ee=this.doc;return Ee.cm=null,this.state.selectingText&&this.state.selectingText(),Bo(this,me),Gu(this),this.display.input.reset(),Rl(this,me.scrollLeft,me.scrollTop),this.curOp.forceScroll=!0,cr(this,"swapDoc",this,Ee),Ee}),phrase:function(me){var Ee=this.options.phrases;return Ee&&Object.prototype.hasOwnProperty.call(Ee,me)?Ee[me]:me},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},mt(ie),ie.registerHelper=function(me,Ee,Be){ve.hasOwnProperty(me)||(ve[me]=ie[me]={_global:[]}),ve[me][Ee]=Be},ie.registerGlobalHelper=function(me,Ee,Be,qe){ie.registerHelper(me,Ee,qe),ve[me]._global.push({pred:Be,val:qe})}}function ef(ie,ae,ve,me,Ee){var Be=ae,qe=ve,ht=oi(ie,ae.line),ct=Ee&&ie.direction=="rtl"?-ve:ve;function Tt(){var Mr=ae.line+ct;return Mr<ie.first||Mr>=ie.first+ie.size?!1:(ae=new zt(Mr,ae.ch,ae.sticky),ht=oi(ie,Mr))}function ln(Mr){var Er;if(me=="codepoint"){var Fr=ht.text.charCodeAt(ae.ch+(me>0?0:-1));isNaN(Fr)?Er=null:Er=new zt(ae.line,Math.max(0,Math.min(ht.text.length,ae.ch+ve*(Fr>=55296&&Fr<56320?2:1))),-ve)}else Ee?Er=Lf(ie.cm,ht,ae,ve):Er=ls(ht,ae,ve);if(Er==null)if(!Mr&&Tt())ae=Jh(Ee,ie.cm,ht,ae.line,ct);else return!1;else ae=Er;return!0}if(me=="char"||me=="codepoint")ln();else if(me=="column")ln(!0);else if(me=="word"||me=="group")for(var Dt=null,Hn=me=="group",Dn=ie.cm&&ie.cm.getHelper(ae,"wordChars"),Ii=!0;!(ve<0&&!ln(!Ii));Ii=!1){var _i=ht.text.charAt(ae.ch)||`
`,Wi=Ke(_i,Dn)?"w":Hn&&_i==`
`?"n":!Hn||/\s/.test(_i)?null:"p";if(Hn&&!Ii&&!Wi&&(Wi="s"),Dt&&Dt!=Wi){ve<0&&(ve=1,ln(),ae.sticky="after");break}if(Wi&&(Dt=Wi),ve>0&&!ln(!Ii))break}var sr=jr(ie,ae,Be,qe,!0);return vi(Be,sr)&&(sr.hitSide=!0),sr}function pd(ie,ae,ve,me){var Ee=ie.doc,Be=ae.left,qe;if(me=="page"){var ht=Math.min(ie.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),ct=Math.max(ht-.5*Wl(ie.display),3);qe=(ve>0?ae.bottom:ae.top)+ve*ct}else me=="line"&&(qe=ve>0?ae.bottom+3:ae.top-3);for(var Tt;Tt=Ka(ie,Be,qe),!!Tt.outside;){if(ve<0?qe<=0:qe>=Ee.height){Tt.hitSide=!0;break}qe+=ve*5}return Tt}var xa=function(ie){this.cm=ie,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ut,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};xa.prototype.init=function(ie){var ae=this,ve=this,me=ve.cm,Ee=ve.div=ie.lineDiv;Xg(Ee,me.options.spellcheck,me.options.autocorrect,me.options.autocapitalize);function Be(ht){for(var ct=ht.target;ct;ct=ct.parentNode){if(ct==Ee)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(ct.className))break}return!1}Ft(Ee,"paste",function(ht){!Be(ht)||Jt(me,ht)||Zg(ht,me)||Oe<=11&&setTimeout(Xa(me,function(){return ae.updateFromDOM()}),20)}),Ft(Ee,"compositionstart",function(ht){ae.composing={data:ht.data,done:!1}}),Ft(Ee,"compositionupdate",function(ht){ae.composing||(ae.composing={data:ht.data,done:!1})}),Ft(Ee,"compositionend",function(ht){ae.composing&&(ht.data!=ae.composing.data&&ae.readFromDOMSoon(),ae.composing.done=!0)}),Ft(Ee,"touchstart",function(){return ve.forceCompositionEnd()}),Ft(Ee,"input",function(){ae.composing||ae.readFromDOMSoon()});function qe(ht){if(!(!Be(ht)||Jt(me,ht))){if(me.somethingSelected())Vd({lineWise:!1,text:me.getSelections()}),ht.type=="cut"&&me.replaceSelection("",null,"cut");else if(me.options.lineWiseCopyCut){var ct=Qg(me);Vd({lineWise:!0,text:ct.text}),ht.type=="cut"&&me.operation(function(){me.setSelections(ct.ranges,0,Ct),me.replaceSelection("",null,"cut")})}else return;if(ht.clipboardData){ht.clipboardData.clearData();var Tt=jl.text.join(`
`);if(ht.clipboardData.setData("Text",Tt),ht.clipboardData.getData("Text")==Tt){ht.preventDefault();return}}var ln=Jg(),Dt=ln.firstChild;me.display.lineSpace.insertBefore(ln,me.display.lineSpace.firstChild),Dt.value=jl.text.join(`
`);var Hn=document.activeElement;pn(Dt),setTimeout(function(){me.display.lineSpace.removeChild(ln),Hn.focus(),Hn==Ee&&ve.showPrimarySelection()},50)}}Ft(Ee,"copy",qe),Ft(Ee,"cut",qe)},xa.prototype.screenReaderLabelChanged=function(ie){ie?this.div.setAttribute("aria-label",ie):this.div.removeAttribute("aria-label")},xa.prototype.prepareSelection=function(){var ie=Tu(this.cm,!1);return ie.focus=document.activeElement==this.div,ie},xa.prototype.showSelection=function(ie,ae){!ie||!this.cm.display.view.length||((ie.focus||ae)&&this.showPrimarySelection(),this.showMultipleSelections(ie))},xa.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},xa.prototype.showPrimarySelection=function(){var ie=this.getSelection(),ae=this.cm,ve=ae.doc.sel.primary(),me=ve.from(),Ee=ve.to();if(ae.display.viewTo==ae.display.viewFrom||me.line>=ae.display.viewTo||Ee.line<ae.display.viewFrom){ie.removeAllRanges();return}var Be=tf(ae,ie.anchorNode,ie.anchorOffset),qe=tf(ae,ie.focusNode,ie.focusOffset);if(!(Be&&!Be.bad&&qe&&!qe.bad&&xn(Ni(Be,qe),me)==0&&xn(_e(Be,qe),Ee)==0)){var ht=ae.display.view,ct=me.line>=ae.display.viewFrom&&zf(ae,me)||{node:ht[0].measure.map[2],offset:0},Tt=Ee.line<ae.display.viewTo&&zf(ae,Ee);if(!Tt){var ln=ht[ht.length-1].measure,Dt=ln.maps?ln.maps[ln.maps.length-1]:ln.map;Tt={node:Dt[Dt.length-1],offset:Dt[Dt.length-2]-Dt[Dt.length-3]}}if(!ct||!Tt){ie.removeAllRanges();return}var Hn=ie.rangeCount&&ie.getRangeAt(0),Dn;try{Dn=at(ct.node,ct.offset,Tt.offset,Tt.node)}catch(Ii){}Dn&&(!le&&ae.state.focused?(ie.collapse(ct.node,ct.offset),Dn.collapsed||(ie.removeAllRanges(),ie.addRange(Dn))):(ie.removeAllRanges(),ie.addRange(Dn)),Hn&&ie.anchorNode==null?ie.addRange(Hn):le&&this.startGracePeriod()),this.rememberSelection()}},xa.prototype.startGracePeriod=function(){var ie=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){ie.gracePeriod=!1,ie.selectionChanged()&&ie.cm.operation(function(){return ie.cm.curOp.selectionChanged=!0})},20)},xa.prototype.showMultipleSelections=function(ie){rt(this.cm.display.cursorDiv,ie.cursors),rt(this.cm.display.selectionDiv,ie.selection)},xa.prototype.rememberSelection=function(){var ie=this.getSelection();this.lastAnchorNode=ie.anchorNode,this.lastAnchorOffset=ie.anchorOffset,this.lastFocusNode=ie.focusNode,this.lastFocusOffset=ie.focusOffset},xa.prototype.selectionInEditor=function(){var ie=this.getSelection();if(!ie.rangeCount)return!1;var ae=ie.getRangeAt(0).commonAncestorContainer;return wt(this.div,ae)},xa.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},xa.prototype.blur=function(){this.div.blur()},xa.prototype.getField=function(){return this.div},xa.prototype.supportsTouch=function(){return!0},xa.prototype.receivedFocus=function(){var ie=this;this.selectionInEditor()?this.pollSelection():Ko(this.cm,function(){return ie.cm.curOp.selectionChanged=!0});function ae(){ie.cm.state.focused&&(ie.pollSelection(),ie.polling.set(ie.cm.options.pollInterval,ae))}this.polling.set(this.cm.options.pollInterval,ae)},xa.prototype.selectionChanged=function(){var ie=this.getSelection();return ie.anchorNode!=this.lastAnchorNode||ie.anchorOffset!=this.lastAnchorOffset||ie.focusNode!=this.lastFocusNode||ie.focusOffset!=this.lastFocusOffset},xa.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var ie=this.getSelection(),ae=this.cm;if(te&&Je&&this.cm.display.gutterSpecs.length&&qg(ie.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var ve=tf(ae,ie.anchorNode,ie.anchorOffset),me=tf(ae,ie.focusNode,ie.focusOffset);ve&&me&&Ko(ae,function(){ge(ae.doc,sa(ve,me),Ct),(ve.bad||me.bad)&&(ae.curOp.selectionChanged=!0)})}}},xa.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var ie=this.cm,ae=ie.display,ve=ie.doc.sel.primary(),me=ve.from(),Ee=ve.to();if(me.ch==0&&me.line>ie.firstLine()&&(me=zt(me.line-1,oi(ie.doc,me.line-1).length)),Ee.ch==oi(ie.doc,Ee.line).text.length&&Ee.line<ie.lastLine()&&(Ee=zt(Ee.line+1,0)),me.line<ae.viewFrom||Ee.line>ae.viewTo-1)return!1;var Be,qe,ht;me.line==ae.viewFrom||(Be=As(ie,me.line))==0?(qe=pt(ae.view[0].line),ht=ae.view[0].node):(qe=pt(ae.view[Be].line),ht=ae.view[Be-1].node.nextSibling);var ct=As(ie,Ee.line),Tt,ln;if(ct==ae.view.length-1?(Tt=ae.viewTo-1,ln=ae.lineDiv.lastChild):(Tt=pt(ae.view[ct+1].line)-1,ln=ae.view[ct+1].node.previousSibling),!ht)return!1;for(var Dt=ie.doc.splitLines(Mh(ie,ht,ln,qe,Tt)),Hn=qt(ie.doc,zt(qe,0),zt(Tt,oi(ie.doc,Tt).text.length));Dt.length>1&&Hn.length>1;)if(Pt(Dt)==Pt(Hn))Dt.pop(),Hn.pop(),Tt--;else if(Dt[0]==Hn[0])Dt.shift(),Hn.shift(),qe++;else break;for(var Dn=0,Ii=0,_i=Dt[0],Wi=Hn[0],sr=Math.min(_i.length,Wi.length);Dn<sr&&_i.charCodeAt(Dn)==Wi.charCodeAt(Dn);)++Dn;for(var Mr=Pt(Dt),Er=Pt(Hn),Fr=Math.min(Mr.length-(Dt.length==1?Dn:0),Er.length-(Hn.length==1?Dn:0));Ii<Fr&&Mr.charCodeAt(Mr.length-Ii-1)==Er.charCodeAt(Er.length-Ii-1);)++Ii;if(Dt.length==1&&Hn.length==1&&qe==me.line)for(;Dn&&Dn>me.ch&&Mr.charCodeAt(Mr.length-Ii-1)==Er.charCodeAt(Er.length-Ii-1);)Dn--,Ii++;Dt[Dt.length-1]=Mr.slice(0,Mr.length-Ii).replace(/^\u200b+/,""),Dt[0]=Dt[0].slice(Dn).replace(/\u200b+$/,"");var oo=zt(qe,Dn),yr=zt(Tt,Hn.length?Pt(Hn).length-Ii:0);if(Dt.length>1||Dt[0]||xn(oo,yr))return Iu(ie.doc,Dt,oo,yr,"+input"),!0},xa.prototype.ensurePolled=function(){this.forceCompositionEnd()},xa.prototype.reset=function(){this.forceCompositionEnd()},xa.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},xa.prototype.readFromDOMSoon=function(){var ie=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(ie.readDOMTimeout=null,ie.composing)if(ie.composing.done)ie.composing=null;else return;ie.updateFromDOM()},80))},xa.prototype.updateFromDOM=function(){var ie=this;(this.cm.isReadOnly()||!this.pollContent())&&Ko(this.cm,function(){return ko(ie.cm)})},xa.prototype.setUneditable=function(ie){ie.contentEditable="false"},xa.prototype.onKeyPress=function(ie){ie.charCode==0||this.composing||(ie.preventDefault(),this.cm.isReadOnly()||Xa(this.cm,$h)(this.cm,String.fromCharCode(ie.charCode==null?ie.keyCode:ie.charCode),0))},xa.prototype.readOnlyChanged=function(ie){this.div.contentEditable=String(ie!="nocursor")},xa.prototype.onContextMenu=function(){},xa.prototype.resetPosition=function(){},xa.prototype.needsContentAttribute=!0;function zf(ie,ae){var ve=cs(ie,ae.line);if(!ve||ve.hidden)return null;var me=oi(ie.doc,ae.line),Ee=vs(ve,me,ae.line),Be=wn(me,ie.doc.direction),qe="left";if(Be){var ht=vn(Be,ae.ch);qe=ht%2?"right":"left"}var ct=xc(Ee.map,ae.ch,qe);return ct.offset=ct.collapse=="right"?ct.end:ct.start,ct}function qg(ie){for(var ae=ie;ae;ae=ae.parentNode)if(/CodeMirror-gutter-wrapper/.test(ae.className))return!0;return!1}function Nh(ie,ae){return ae&&(ie.bad=!0),ie}function Mh(ie,ae,ve,me,Ee){var Be="",qe=!1,ht=ie.doc.lineSeparator(),ct=!1;function Tt(Dn){return function(Ii){return Ii.id==Dn}}function ln(){qe&&(Be+=ht,ct&&(Be+=ht),qe=ct=!1)}function Dt(Dn){Dn&&(ln(),Be+=Dn)}function Hn(Dn){if(Dn.nodeType==1){var Ii=Dn.getAttribute("cm-text");if(Ii){Dt(Ii);return}var _i=Dn.getAttribute("cm-marker"),Wi;if(_i){var sr=ie.findMarks(zt(me,0),zt(Ee+1,0),Tt(+_i));sr.length&&(Wi=sr[0].find(0))&&Dt(qt(ie.doc,Wi.from,Wi.to).join(ht));return}if(Dn.getAttribute("contenteditable")=="false")return;var Mr=/^(pre|div|p|li|table|br)$/i.test(Dn.nodeName);if(!/^br$/i.test(Dn.nodeName)&&Dn.textContent.length==0)return;Mr&&ln();for(var Er=0;Er<Dn.childNodes.length;Er++)Hn(Dn.childNodes[Er]);/^(pre|p)$/i.test(Dn.nodeName)&&(ct=!0),Mr&&(qe=!0)}else Dn.nodeType==3&&Dt(Dn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Hn(ae),ae!=ve;)ae=ae.nextSibling,ct=!1;return Be}function tf(ie,ae,ve){var me;if(ae==ie.display.lineDiv){if(me=ie.display.lineDiv.childNodes[ve],!me)return Nh(ie.clipPos(zt(ie.display.viewTo-1)),!0);ae=null,ve=0}else for(me=ae;;me=me.parentNode){if(!me||me==ie.display.lineDiv)return null;if(me.parentNode&&me.parentNode==ie.display.lineDiv)break}for(var Ee=0;Ee<ie.display.view.length;Ee++){var Be=ie.display.view[Ee];if(Be.node==me)return dm(Be,ae,ve)}}function dm(ie,ae,ve){var me=ie.text.firstChild,Ee=!1;if(!ae||!wt(me,ae))return Nh(zt(pt(ie.line),0),!0);if(ae==me&&(Ee=!0,ae=me.childNodes[ve],ve=0,!ae)){var Be=ie.rest?Pt(ie.rest):ie.line;return Nh(zt(pt(Be),Be.text.length),Ee)}var qe=ae.nodeType==3?ae:null,ht=ae;for(!qe&&ae.childNodes.length==1&&ae.firstChild.nodeType==3&&(qe=ae.firstChild,ve&&(ve=qe.nodeValue.length));ht.parentNode!=me;)ht=ht.parentNode;var ct=ie.measure,Tt=ct.maps;function ln(Wi,sr,Mr){for(var Er=-1;Er<(Tt?Tt.length:0);Er++)for(var Fr=Er<0?ct.map:Tt[Er],oo=0;oo<Fr.length;oo+=3){var yr=Fr[oo+2];if(yr==Wi||yr==sr){var No=pt(Er<0?ie.line:ie.rest[Er]),Ra=Fr[oo]+Mr;return(Mr<0||yr!=Wi)&&(Ra=Fr[oo+(Mr?1:0)]),zt(No,Ra)}}}var Dt=ln(qe,ht,ve);if(Dt)return Nh(Dt,Ee);for(var Hn=ht.nextSibling,Dn=qe?qe.nodeValue.length-ve:0;Hn;Hn=Hn.nextSibling){if(Dt=ln(Hn,Hn.firstChild,0),Dt)return Nh(zt(Dt.line,Dt.ch-Dn),Ee);Dn+=Hn.textContent.length}for(var Ii=ht.previousSibling,_i=ve;Ii;Ii=Ii.previousSibling){if(Dt=ln(Ii,Ii.firstChild,-1),Dt)return Nh(zt(Dt.line,Dt.ch+_i),Ee);_i+=Ii.textContent.length}}var Es=function(ie){this.cm=ie,this.prevInput="",this.pollingFast=!1,this.polling=new ut,this.hasSelection=!1,this.composing=null};Es.prototype.init=function(ie){var ae=this,ve=this,me=this.cm;this.createField(ie);var Ee=this.textarea;ie.wrapper.insertBefore(this.wrapper,ie.wrapper.firstChild),Ue&&(Ee.style.width="0px"),Ft(Ee,"input",function(){Ge&&Oe>=9&&ae.hasSelection&&(ae.hasSelection=null),ve.poll()}),Ft(Ee,"paste",function(qe){Jt(me,qe)||Zg(qe,me)||(me.state.pasteIncoming=+new Date,ve.fastPoll())});function Be(qe){if(!Jt(me,qe)){if(me.somethingSelected())Vd({lineWise:!1,text:me.getSelections()});else if(me.options.lineWiseCopyCut){var ht=Qg(me);Vd({lineWise:!0,text:ht.text}),qe.type=="cut"?me.setSelections(ht.ranges,null,Ct):(ve.prevInput="",Ee.value=ht.text.join(`
`),pn(Ee))}else return;qe.type=="cut"&&(me.state.cutIncoming=+new Date)}}Ft(Ee,"cut",Be),Ft(Ee,"copy",Be),Ft(ie.scroller,"paste",function(qe){if(!(Io(ie,qe)||Jt(me,qe))){if(!Ee.dispatchEvent){me.state.pasteIncoming=+new Date,ve.focus();return}var ht=new Event("paste");ht.clipboardData=qe.clipboardData,Ee.dispatchEvent(ht)}}),Ft(ie.lineSpace,"selectstart",function(qe){Io(ie,qe)||On(qe)}),Ft(Ee,"compositionstart",function(){var qe=me.getCursor("from");ve.composing&&ve.composing.range.clear(),ve.composing={start:qe,range:me.markText(qe,me.getCursor("to"),{className:"CodeMirror-composing"})}}),Ft(Ee,"compositionend",function(){ve.composing&&(ve.poll(),ve.composing.range.clear(),ve.composing=null)})},Es.prototype.createField=function(ie){this.wrapper=Jg(),this.textarea=this.wrapper.firstChild},Es.prototype.screenReaderLabelChanged=function(ie){ie?this.textarea.setAttribute("aria-label",ie):this.textarea.removeAttribute("aria-label")},Es.prototype.prepareSelection=function(){var ie=this.cm,ae=ie.display,ve=ie.doc,me=Tu(ie);if(ie.options.moveInputWithCursor){var Ee=Fo(ie,ve.sel.primary().head,"div"),Be=ae.wrapper.getBoundingClientRect(),qe=ae.lineDiv.getBoundingClientRect();me.teTop=Math.max(0,Math.min(ae.wrapper.clientHeight-10,Ee.top+qe.top-Be.top)),me.teLeft=Math.max(0,Math.min(ae.wrapper.clientWidth-10,Ee.left+qe.left-Be.left))}return me},Es.prototype.showSelection=function(ie){var ae=this.cm,ve=ae.display;rt(ve.cursorDiv,ie.cursors),rt(ve.selectionDiv,ie.selection),ie.teTop!=null&&(this.wrapper.style.top=ie.teTop+"px",this.wrapper.style.left=ie.teLeft+"px")},Es.prototype.reset=function(ie){if(!(this.contextMenuPending||this.composing)){var ae=this.cm;if(ae.somethingSelected()){this.prevInput="";var ve=ae.getSelection();this.textarea.value=ve,ae.state.focused&&pn(this.textarea),Ge&&Oe>=9&&(this.hasSelection=ve)}else ie||(this.prevInput=this.textarea.value="",Ge&&Oe>=9&&(this.hasSelection=null))}},Es.prototype.getField=function(){return this.textarea},Es.prototype.supportsTouch=function(){return!1},Es.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!ne||Mt()!=this.textarea))try{this.textarea.focus()}catch(ie){}},Es.prototype.blur=function(){this.textarea.blur()},Es.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Es.prototype.receivedFocus=function(){this.slowPoll()},Es.prototype.slowPoll=function(){var ie=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){ie.poll(),ie.cm.state.focused&&ie.slowPoll()})},Es.prototype.fastPoll=function(){var ie=!1,ae=this;ae.pollingFast=!0;function ve(){var me=ae.poll();!me&&!ie?(ie=!0,ae.polling.set(60,ve)):(ae.pollingFast=!1,ae.slowPoll())}ae.polling.set(20,ve)},Es.prototype.poll=function(){var ie=this,ae=this.cm,ve=this.textarea,me=this.prevInput;if(this.contextMenuPending||!ae.state.focused||Ce(ve)&&!me&&!this.composing||ae.isReadOnly()||ae.options.disableInput||ae.state.keySeq)return!1;var Ee=ve.value;if(Ee==me&&!ae.somethingSelected())return!1;if(Ge&&Oe>=9&&this.hasSelection===Ee||fe&&/[\uf700-\uf7ff]/.test(Ee))return ae.display.input.reset(),!1;if(ae.doc.sel==ae.display.selForContextMenu){var Be=Ee.charCodeAt(0);if(Be==8203&&!me&&(me="\u200B"),Be==8666)return this.reset(),this.cm.execCommand("undo")}for(var qe=0,ht=Math.min(me.length,Ee.length);qe<ht&&me.charCodeAt(qe)==Ee.charCodeAt(qe);)++qe;return Ko(ae,function(){$h(ae,Ee.slice(qe),me.length-qe,null,ie.composing?"*compose":null),Ee.length>1e3||Ee.indexOf(`
`)>-1?ve.value=ie.prevInput="":ie.prevInput=Ee,ie.composing&&(ie.composing.range.clear(),ie.composing.range=ae.markText(ie.composing.start,ae.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Es.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Es.prototype.onKeyPress=function(){Ge&&Oe>=9&&(this.hasSelection=null),this.fastPoll()},Es.prototype.onContextMenu=function(ie){var ae=this,ve=ae.cm,me=ve.display,Ee=ae.textarea;ae.contextMenuPending&&ae.contextMenuPending();var Be=os(ve,ie),qe=me.scroller.scrollTop;if(!Be||Xe)return;var ht=ve.options.resetSelectionOnContextMenu;ht&&ve.doc.sel.contains(Be)==-1&&Xa(ve,ge)(ve.doc,sa(Be),Ct);var ct=Ee.style.cssText,Tt=ae.wrapper.style.cssText,ln=ae.wrapper.offsetParent.getBoundingClientRect();ae.wrapper.style.cssText="position: static",Ee.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(ie.clientY-ln.top-5)+"px; left: "+(ie.clientX-ln.left-5)+`px;
z-index: 1000; background: `+(Ge?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Dt;Ve&&(Dt=window.scrollY),me.input.focus(),Ve&&window.scrollTo(null,Dt),me.input.reset(),ve.somethingSelected()||(Ee.value=ae.prevInput=" "),ae.contextMenuPending=Dn,me.selForContextMenu=ve.doc.sel,clearTimeout(me.detectingSelectAll);function Hn(){if(Ee.selectionStart!=null){var _i=ve.somethingSelected(),Wi="\u200B"+(_i?Ee.value:"");Ee.value="\u21DA",Ee.value=Wi,ae.prevInput=_i?"":"\u200B",Ee.selectionStart=1,Ee.selectionEnd=Wi.length,me.selForContextMenu=ve.doc.sel}}function Dn(){if(ae.contextMenuPending==Dn&&(ae.contextMenuPending=!1,ae.wrapper.style.cssText=Tt,Ee.style.cssText=ct,Ge&&Oe<9&&me.scrollbars.setScrollTop(me.scroller.scrollTop=qe),Ee.selectionStart!=null)){(!Ge||Ge&&Oe<9)&&Hn();var _i=0,Wi=function(){me.selForContextMenu==ve.doc.sel&&Ee.selectionStart==0&&Ee.selectionEnd>0&&ae.prevInput=="\u200B"?Xa(ve,Si)(ve):_i++<10?me.detectingSelectAll=setTimeout(Wi,500):(me.selForContextMenu=null,me.input.reset())};me.detectingSelectAll=setTimeout(Wi,200)}}if(Ge&&Oe>=9&&Hn(),De){mi(ie);var Ii=function(){dn(window,"mouseup",Ii),setTimeout(Dn,20)};Ft(window,"mouseup",Ii)}else setTimeout(Dn,50)},Es.prototype.readOnlyChanged=function(ie){ie||this.reset(),this.textarea.disabled=ie=="nocursor",this.textarea.readOnly=!!ie},Es.prototype.setUneditable=function(){},Es.prototype.needsContentAttribute=!1;function hm(ie,ae){if(ae=ae?gn(ae):{},ae.value=ie.value,!ae.tabindex&&ie.tabIndex&&(ae.tabindex=ie.tabIndex),!ae.placeholder&&ie.placeholder&&(ae.placeholder=ie.placeholder),ae.autofocus==null){var ve=Mt();ae.autofocus=ve==ie||ie.getAttribute("autofocus")!=null&&ve==document.body}function me(){ie.value=ht.getValue()}var Ee;if(ie.form&&(Ft(ie.form,"submit",me),!ae.leaveSubmitMethodAlone)){var Be=ie.form;Ee=Be.submit;try{var qe=Be.submit=function(){me(),Be.submit=Ee,Be.submit(),Be.submit=qe}}catch(ct){}}ae.finishInit=function(ct){ct.save=me,ct.getTextArea=function(){return ie},ct.toTextArea=function(){ct.toTextArea=isNaN,me(),ie.parentNode.removeChild(ct.getWrapperElement()),ie.style.display="",ie.form&&(dn(ie.form,"submit",me),!ae.leaveSubmitMethodAlone&&typeof ie.form.submit=="function"&&(ie.form.submit=Ee))}},ie.style.display="none";var ht=qo(function(ct){return ie.parentNode.insertBefore(ct,ie.nextSibling)},ae);return ht}function Ph(ie){ie.off=dn,ie.on=Ft,ie.wheelEventPixels=Jr,ie.Doc=el,ie.splitLines=Li,ie.countColumn=Nt,ie.findColumn=Bn,ie.isWordChar=Qe,ie.Pass=mn,ie.signal=En,ie.Line=Ao,ie.changeEnd=la,ie.scrollbarModel=Vu,ie.Pos=zt,ie.cmpPos=xn,ie.modes=Wn,ie.mimeModes=ci,ie.resolveMode=ni,ie.getMode=Vt,ie.modeExtensions=Ut,ie.extendMode=It,ie.copyState=$n,ie.startState=yi,ie.innerMode=Yn,ie.commands=hd,ie.keyMap=Jl,ie.keyName=rm,ie.isModifierKey=xh,ie.lookupKey=ku,ie.normalizeKeyMap=Dg,ie.StringStream=Rn,ie.SharedTextMarker=Nc,ie.TextMarker=Qt,ie.LineWidget=Wc,ie.e_preventDefault=On,ie.e_stopPropagation=Cn,ie.e_stop=mi,ie.addClass=Xt,ie.contains=wt,ie.rmClass=Ze,ie.keyNames=Mc}um(qo),gd(qo);var Zc="iter insert remove copy getEditor constructor".split(" ");for(var nf in el.prototype)el.prototype.hasOwnProperty(nf)&&it(Zc,nf)<0&&(qo.prototype[nf]=function(ie){return function(){return ie.apply(this.doc,arguments)}}(el.prototype[nf]));return mt(el),qo.inputStyles={textarea:Es,contenteditable:xa},qo.defineMode=function(ie){!qo.defaults.mode&&ie!="null"&&(qo.defaults.mode=ie),ti.apply(this,arguments)},qo.defineMIME=ki,qo.defineMode("null",function(){return{token:function(ie){return ie.skipToEnd()}}}),qo.defineMIME("text/plain","null"),qo.defineExtension=function(ie,ae){qo.prototype[ie]=ae},qo.defineDocExtension=function(ie,ae){el.prototype[ie]=ae},qo.fromTextArea=hm,Ph(qo),qo.version="5.58.2",qo})},25419:function(ze,be,de){(function(le){le(de(89780),de(15525),de(98101))})(function(le){"use strict";le.defineMode("markdown",function(Me,Ie){var Pe=le.getMode(Me,"text/html"),Ge=Pe.name=="null";function Oe(Nt){if(le.findModeByName){var ut=le.findModeByName(Nt);ut&&(Nt=ut.mime||ut.mimes[0])}var it=le.getMode(Me,Nt);return it.name=="null"?null:it}Ie.highlightFormatting===void 0&&(Ie.highlightFormatting=!1),Ie.maxBlockquoteDepth===void 0&&(Ie.maxBlockquoteDepth=0),Ie.taskLists===void 0&&(Ie.taskLists=!1),Ie.strikethrough===void 0&&(Ie.strikethrough=!1),Ie.emoji===void 0&&(Ie.emoji=!1),Ie.fencedCodeBlockHighlighting===void 0&&(Ie.fencedCodeBlockHighlighting=!0),Ie.fencedCodeBlockDefaultMode===void 0&&(Ie.fencedCodeBlockDefaultMode="text/plain"),Ie.xml===void 0&&(Ie.xml=!0),Ie.tokenTypeOverrides===void 0&&(Ie.tokenTypeOverrides={});var Ve={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var ot in Ve)Ve.hasOwnProperty(ot)&&Ie.tokenTypeOverrides[ot]&&(Ve[ot]=Ie.tokenTypeOverrides[ot]);var Je=/^([*\-_])(?:\s*\1){2,}\s*$/,Xe=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,vt=/^\[(x| )\](?=\s)/i,st=Ie.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,_t=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Ue=/^[^#!\[\]*_\\<>` "'(~:]+/,te=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,ne=/^\s*\[[^\]]+?\]:.*$/,fe=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,se=" ";function pe(Nt,ut,it){return ut.f=ut.inline=it,it(Nt,ut)}function Se(Nt,ut,it){return ut.f=ut.block=it,it(Nt,ut)}function we(Nt){return!Nt||!/\S/.test(Nt.string)}function De(Nt){if(Nt.linkTitle=!1,Nt.linkHref=!1,Nt.linkText=!1,Nt.em=!1,Nt.strong=!1,Nt.strikethrough=!1,Nt.quote=0,Nt.indentedCode=!1,Nt.f==Ze){var ut=Ge;if(!ut){var it=le.innerMode(Pe,Nt.htmlState);ut=it.mode.name=="xml"&&it.state.tagStart===null&&!it.state.context&&it.state.tokenize.isInText}ut&&(Nt.f=xt,Nt.block=Re,Nt.htmlState=null)}return Nt.trailingSpace=0,Nt.trailingSpaceNewLine=!1,Nt.prevLine=Nt.thisLine,Nt.thisLine={stream:null},null}function Re(Nt,ut){var it=Nt.column()===ut.indentation,an=we(ut.prevLine.stream),mn=ut.indentedCode,Ct=ut.prevLine.hr,un=ut.list!==!1,on=(ut.listStack[ut.listStack.length-1]||0)+3;ut.indentedCode=!1;var Bn=ut.indentation;if(ut.indentationDiff===null&&(ut.indentationDiff=ut.indentation,un)){for(ut.list=null;Bn<ut.listStack[ut.listStack.length-1];)ut.listStack.pop(),ut.listStack.length?ut.indentation=ut.listStack[ut.listStack.length-1]:ut.list=!1;ut.list!==!1&&(ut.indentationDiff=Bn-ut.listStack[ut.listStack.length-1])}var Nn=!an&&!Ct&&!ut.prevLine.header&&(!un||!mn)&&!ut.prevLine.fencedCodeEnd,si=(ut.list===!1||Ct||an)&&ut.indentation<=on&&Nt.match(Je),Pt=null;if(ut.indentationDiff>=4&&(mn||ut.prevLine.fencedCodeEnd||ut.prevLine.header||an))return Nt.skipToEnd(),ut.indentedCode=!0,Ve.code;if(Nt.eatSpace())return null;if(it&&ut.indentation<=on&&(Pt=Nt.match(st))&&Pt[1].length<=6)return ut.quote=0,ut.header=Pt[1].length,ut.thisLine.header=!0,Ie.highlightFormatting&&(ut.formatting="header"),ut.f=ut.inline,rt(ut);if(ut.indentation<=on&&Nt.eat(">"))return ut.quote=it?1:ut.quote+1,Ie.highlightFormatting&&(ut.formatting="quote"),Nt.eatSpace(),rt(ut);if(!si&&!ut.setext&&it&&ut.indentation<=on&&(Pt=Nt.match(Xe))){var qn=Pt[1]?"ol":"ul";return ut.indentation=Bn+Nt.current().length,ut.list=!0,ut.quote=0,ut.listStack.push(ut.indentation),ut.em=!1,ut.strong=!1,ut.code=!1,ut.strikethrough=!1,Ie.taskLists&&Nt.match(vt,!1)&&(ut.taskList=!0),ut.f=ut.inline,Ie.highlightFormatting&&(ut.formatting=["list","list-"+qn]),rt(ut)}else{if(it&&ut.indentation<=on&&(Pt=Nt.match(te,!0)))return ut.quote=0,ut.fencedEndRE=new RegExp(Pt[1]+"+ *$"),ut.localMode=Ie.fencedCodeBlockHighlighting&&Oe(Pt[2]||Ie.fencedCodeBlockDefaultMode),ut.localMode&&(ut.localState=le.startState(ut.localMode)),ut.f=ut.block=nt,Ie.highlightFormatting&&(ut.formatting="code-block"),ut.code=-1,rt(ut);if(ut.setext||(!Nn||!un)&&!ut.quote&&ut.list===!1&&!ut.code&&!si&&!ne.test(Nt.string)&&(Pt=Nt.lookAhead(1))&&(Pt=Pt.match(_t)))return ut.setext?(ut.header=ut.setext,ut.setext=0,Nt.skipToEnd(),Ie.highlightFormatting&&(ut.formatting="header")):(ut.header=Pt[0].charAt(0)=="="?1:2,ut.setext=ut.header),ut.thisLine.header=!0,ut.f=ut.inline,rt(ut);if(si)return Nt.skipToEnd(),ut.hr=!0,ut.thisLine.hr=!0,Ve.hr;if(Nt.peek()==="[")return pe(Nt,ut,bn)}return pe(Nt,ut,ut.inline)}function Ze(Nt,ut){var it=Pe.token(Nt,ut.htmlState);if(!Ge){var an=le.innerMode(Pe,ut.htmlState);(an.mode.name=="xml"&&an.state.tagStart===null&&!an.state.context&&an.state.tokenize.isInText||ut.md_inside&&Nt.current().indexOf(">")>-1)&&(ut.f=xt,ut.block=Re,ut.htmlState=null)}return it}function nt(Nt,ut){var it=ut.listStack[ut.listStack.length-1]||0,an=ut.indentation<it,mn=it+3;if(ut.fencedEndRE&&ut.indentation<=mn&&(an||Nt.match(ut.fencedEndRE))){Ie.highlightFormatting&&(ut.formatting="code-block");var Ct;return an||(Ct=rt(ut)),ut.localMode=ut.localState=null,ut.block=Re,ut.f=xt,ut.fencedEndRE=null,ut.code=0,ut.thisLine.fencedCodeEnd=!0,an?Se(Nt,ut,ut.block):Ct}else return ut.localMode?ut.localMode.token(Nt,ut.localState):(Nt.skipToEnd(),Ve.code)}function rt(Nt){var ut=[];if(Nt.formatting){ut.push(Ve.formatting),typeof Nt.formatting=="string"&&(Nt.formatting=[Nt.formatting]);for(var it=0;it<Nt.formatting.length;it++)ut.push(Ve.formatting+"-"+Nt.formatting[it]),Nt.formatting[it]==="header"&&ut.push(Ve.formatting+"-"+Nt.formatting[it]+"-"+Nt.header),Nt.formatting[it]==="quote"&&(!Ie.maxBlockquoteDepth||Ie.maxBlockquoteDepth>=Nt.quote?ut.push(Ve.formatting+"-"+Nt.formatting[it]+"-"+Nt.quote):ut.push("error"))}if(Nt.taskOpen)return ut.push("meta"),ut.length?ut.join(" "):null;if(Nt.taskClosed)return ut.push("property"),ut.length?ut.join(" "):null;if(Nt.linkHref?ut.push(Ve.linkHref,"url"):(Nt.strong&&ut.push(Ve.strong),Nt.em&&ut.push(Ve.em),Nt.strikethrough&&ut.push(Ve.strikethrough),Nt.emoji&&ut.push(Ve.emoji),Nt.linkText&&ut.push(Ve.linkText),Nt.code&&ut.push(Ve.code),Nt.image&&ut.push(Ve.image),Nt.imageAltText&&ut.push(Ve.imageAltText,"link"),Nt.imageMarker&&ut.push(Ve.imageMarker)),Nt.header&&ut.push(Ve.header,Ve.header+"-"+Nt.header),Nt.quote&&(ut.push(Ve.quote),!Ie.maxBlockquoteDepth||Ie.maxBlockquoteDepth>=Nt.quote?ut.push(Ve.quote+"-"+Nt.quote):ut.push(Ve.quote+"-"+Ie.maxBlockquoteDepth)),Nt.list!==!1){var an=(Nt.listStack.length-1)%3;an?an===1?ut.push(Ve.list2):ut.push(Ve.list3):ut.push(Ve.list1)}return Nt.trailingSpaceNewLine?ut.push("trailing-space-new-line"):Nt.trailingSpace&&ut.push("trailing-space-"+(Nt.trailingSpace%2?"a":"b")),ut.length?ut.join(" "):null}function ft(Nt,ut){if(Nt.match(Ue,!0))return rt(ut)}function xt(Nt,ut){var it=ut.text(Nt,ut);if(typeof it!="undefined")return it;if(ut.list)return ut.list=null,rt(ut);if(ut.taskList){var an=Nt.match(vt,!0)[1]===" ";return an?ut.taskOpen=!0:ut.taskClosed=!0,Ie.highlightFormatting&&(ut.formatting="task"),ut.taskList=!1,rt(ut)}if(ut.taskOpen=!1,ut.taskClosed=!1,ut.header&&Nt.match(/^#+$/,!0))return Ie.highlightFormatting&&(ut.formatting="header"),rt(ut);var mn=Nt.next();if(ut.linkTitle){ut.linkTitle=!1;var Ct=mn;mn==="("&&(Ct=")"),Ct=(Ct+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var un="^\\s*(?:[^"+Ct+"\\\\]+|\\\\\\\\|\\\\.)"+Ct;if(Nt.match(new RegExp(un),!0))return Ve.linkHref}if(mn==="`"){var on=ut.formatting;Ie.highlightFormatting&&(ut.formatting="code"),Nt.eatWhile("`");var Bn=Nt.current().length;if(ut.code==0&&(!ut.quote||Bn==1))return ut.code=Bn,rt(ut);if(Bn==ut.code){var Nn=rt(ut);return ut.code=0,Nn}else return ut.formatting=on,rt(ut)}else if(ut.code)return rt(ut);if(mn==="\\"&&(Nt.next(),Ie.highlightFormatting)){var si=rt(ut),Pt=Ve.formatting+"-escape";return si?si+" "+Pt:Pt}if(mn==="!"&&Nt.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return ut.imageMarker=!0,ut.image=!0,Ie.highlightFormatting&&(ut.formatting="image"),rt(ut);if(mn==="["&&ut.imageMarker&&Nt.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return ut.imageMarker=!1,ut.imageAltText=!0,Ie.highlightFormatting&&(ut.formatting="image"),rt(ut);if(mn==="]"&&ut.imageAltText){Ie.highlightFormatting&&(ut.formatting="image");var si=rt(ut);return ut.imageAltText=!1,ut.image=!1,ut.inline=ut.f=wt,si}if(mn==="["&&!ut.image)return ut.linkText&&Nt.match(/^.*?\]/)||(ut.linkText=!0,Ie.highlightFormatting&&(ut.formatting="link")),rt(ut);if(mn==="]"&&ut.linkText){Ie.highlightFormatting&&(ut.formatting="link");var si=rt(ut);return ut.linkText=!1,ut.inline=ut.f=Nt.match(/\(.*?\)| ?\[.*?\]/,!1)?wt:xt,si}if(mn==="<"&&Nt.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){ut.f=ut.inline=at,Ie.highlightFormatting&&(ut.formatting="link");var si=rt(ut);return si?si+=" ":si="",si+Ve.linkInline}if(mn==="<"&&Nt.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){ut.f=ut.inline=at,Ie.highlightFormatting&&(ut.formatting="link");var si=rt(ut);return si?si+=" ":si="",si+Ve.linkEmail}if(Ie.xml&&mn==="<"&&Nt.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var qn=Nt.string.indexOf(">",Nt.pos);if(qn!=-1){var Ei=Nt.string.substring(Nt.start,qn);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Ei)&&(ut.md_inside=!0)}return Nt.backUp(1),ut.htmlState=le.startState(Pe),Se(Nt,ut,Ze)}if(Ie.xml&&mn==="<"&&Nt.match(/^\/\w*?>/))return ut.md_inside=!1,"tag";if(mn==="*"||mn==="_"){for(var $e=1,Fe=Nt.pos==1?" ":Nt.string.charAt(Nt.pos-2);$e<3&&Nt.eat(mn);)$e++;var Ne=Nt.peek()||" ",Qe=!/\s/.test(Ne)&&(!fe.test(Ne)||/\s/.test(Fe)||fe.test(Fe)),Ke=!/\s/.test(Fe)&&(!fe.test(Fe)||/\s/.test(Ne)||fe.test(Ne)),Le=null,At=null;if($e%2&&(!ut.em&&Qe&&(mn==="*"||!Ke||fe.test(Fe))?Le=!0:ut.em==mn&&Ke&&(mn==="*"||!Qe||fe.test(Ne))&&(Le=!1)),$e>1&&(!ut.strong&&Qe&&(mn==="*"||!Ke||fe.test(Fe))?At=!0:ut.strong==mn&&Ke&&(mn==="*"||!Qe||fe.test(Ne))&&(At=!1)),At!=null||Le!=null){Ie.highlightFormatting&&(ut.formatting=Le==null?"strong":At==null?"em":"strong em"),Le===!0&&(ut.em=mn),At===!0&&(ut.strong=mn);var Nn=rt(ut);return Le===!1&&(ut.em=!1),At===!1&&(ut.strong=!1),Nn}}else if(mn===" "&&(Nt.eat("*")||Nt.eat("_"))){if(Nt.peek()===" ")return rt(ut);Nt.backUp(1)}if(Ie.strikethrough){if(mn==="~"&&Nt.eatWhile(mn)){if(ut.strikethrough){Ie.highlightFormatting&&(ut.formatting="strikethrough");var Nn=rt(ut);return ut.strikethrough=!1,Nn}else if(Nt.match(/^[^\s]/,!1))return ut.strikethrough=!0,Ie.highlightFormatting&&(ut.formatting="strikethrough"),rt(ut)}else if(mn===" "&&Nt.match(/^~~/,!0)){if(Nt.peek()===" ")return rt(ut);Nt.backUp(2)}}if(Ie.emoji&&mn===":"&&Nt.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){ut.emoji=!0,Ie.highlightFormatting&&(ut.formatting="emoji");var Lt=rt(ut);return ut.emoji=!1,Lt}return mn===" "&&(Nt.match(/^ +$/,!1)?ut.trailingSpace++:ut.trailingSpace&&(ut.trailingSpaceNewLine=!0)),rt(ut)}function at(Nt,ut){var it=Nt.next();if(it===">"){ut.f=ut.inline=xt,Ie.highlightFormatting&&(ut.formatting="link");var an=rt(ut);return an?an+=" ":an="",an+Ve.linkInline}return Nt.match(/^[^>]+/,!0),Ve.linkInline}function wt(Nt,ut){if(Nt.eatSpace())return null;var it=Nt.next();return it==="("||it==="["?(ut.f=ut.inline=Xt(it==="("?")":"]"),Ie.highlightFormatting&&(ut.formatting="link-string"),ut.linkHref=!0,rt(ut)):"error"}var Mt={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Xt(Nt){return function(ut,it){var an=ut.next();if(an===Nt){it.f=it.inline=xt,Ie.highlightFormatting&&(it.formatting="link-string");var mn=rt(it);return it.linkHref=!1,mn}return ut.match(Mt[Nt]),it.linkHref=!0,rt(it)}}function bn(Nt,ut){return Nt.match(/^([^\]\\]|\\.)*\]:/,!1)?(ut.f=pn,Nt.next(),Ie.highlightFormatting&&(ut.formatting="link"),ut.linkText=!0,rt(ut)):pe(Nt,ut,xt)}function pn(Nt,ut){if(Nt.match(/^\]:/,!0)){ut.f=ut.inline=fn,Ie.highlightFormatting&&(ut.formatting="link");var it=rt(ut);return ut.linkText=!1,it}return Nt.match(/^([^\]\\]|\\.)+/,!0),Ve.linkText}function fn(Nt,ut){return Nt.eatSpace()?null:(Nt.match(/^[^\s]+/,!0),Nt.peek()===void 0?ut.linkTitle=!0:Nt.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),ut.f=ut.inline=xt,Ve.linkHref+" url")}var gn={startState:function(){return{f:Re,prevLine:{stream:null},thisLine:{stream:null},block:Re,htmlState:null,indentation:0,inline:xt,text:ft,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(Nt){return{f:Nt.f,prevLine:Nt.prevLine,thisLine:Nt.thisLine,block:Nt.block,htmlState:Nt.htmlState&&le.copyState(Pe,Nt.htmlState),indentation:Nt.indentation,localMode:Nt.localMode,localState:Nt.localMode?le.copyState(Nt.localMode,Nt.localState):null,inline:Nt.inline,text:Nt.text,formatting:!1,linkText:Nt.linkText,linkTitle:Nt.linkTitle,linkHref:Nt.linkHref,code:Nt.code,em:Nt.em,strong:Nt.strong,strikethrough:Nt.strikethrough,emoji:Nt.emoji,header:Nt.header,setext:Nt.setext,hr:Nt.hr,taskList:Nt.taskList,list:Nt.list,listStack:Nt.listStack.slice(0),quote:Nt.quote,indentedCode:Nt.indentedCode,trailingSpace:Nt.trailingSpace,trailingSpaceNewLine:Nt.trailingSpaceNewLine,md_inside:Nt.md_inside,fencedEndRE:Nt.fencedEndRE}},token:function(Nt,ut){if(ut.formatting=!1,Nt!=ut.thisLine.stream){if(ut.header=0,ut.hr=!1,Nt.match(/^\s*$/,!0))return De(ut),null;if(ut.prevLine=ut.thisLine,ut.thisLine={stream:Nt},ut.taskList=!1,ut.trailingSpace=0,ut.trailingSpaceNewLine=!1,!ut.localState&&(ut.f=ut.block,ut.f!=Ze)){var it=Nt.match(/^\s*/,!0)[0].replace(/\t/g,se).length;if(ut.indentation=it,ut.indentationDiff=null,it>0)return null}}return ut.f(Nt,ut)},innerMode:function(Nt){return Nt.block==Ze?{state:Nt.htmlState,mode:Pe}:Nt.localState?{state:Nt.localState,mode:Nt.localMode}:{state:Nt,mode:gn}},indent:function(Nt,ut,it){return Nt.block==Ze&&Pe.indent?Pe.indent(Nt.htmlState,ut,it):Nt.localState&&Nt.localMode.indent?Nt.localMode.indent(Nt.localState,ut,it):le.Pass},blankLine:De,getType:rt,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return gn},"xml"),le.defineMIME("text/markdown","markdown"),le.defineMIME("text/x-markdown","markdown")})},98101:function(ze,be,de){(function(le){le(de(89780))})(function(le){"use strict";le.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var Me=0;Me<le.modeInfo.length;Me++){var Ie=le.modeInfo[Me];Ie.mimes&&(Ie.mime=Ie.mimes[0])}le.findModeByMIME=function(Pe){Pe=Pe.toLowerCase();for(var Ge=0;Ge<le.modeInfo.length;Ge++){var Oe=le.modeInfo[Ge];if(Oe.mime==Pe)return Oe;if(Oe.mimes){for(var Ve=0;Ve<Oe.mimes.length;Ve++)if(Oe.mimes[Ve]==Pe)return Oe}}if(/\+xml$/.test(Pe))return le.findModeByMIME("application/xml");if(/\+json$/.test(Pe))return le.findModeByMIME("application/json")},le.findModeByExtension=function(Pe){Pe=Pe.toLowerCase();for(var Ge=0;Ge<le.modeInfo.length;Ge++){var Oe=le.modeInfo[Ge];if(Oe.ext){for(var Ve=0;Ve<Oe.ext.length;Ve++)if(Oe.ext[Ve]==Pe)return Oe}}},le.findModeByFileName=function(Pe){for(var Ge=0;Ge<le.modeInfo.length;Ge++){var Oe=le.modeInfo[Ge];if(Oe.file&&Oe.file.test(Pe))return Oe}var Ve=Pe.lastIndexOf("."),ot=Ve>-1&&Pe.substring(Ve+1,Pe.length);if(ot)return le.findModeByExtension(ot)},le.findModeByName=function(Pe){Pe=Pe.toLowerCase();for(var Ge=0;Ge<le.modeInfo.length;Ge++){var Oe=le.modeInfo[Ge];if(Oe.name.toLowerCase()==Pe)return Oe;if(Oe.alias){for(var Ve=0;Ve<Oe.alias.length;Ve++)if(Oe.alias[Ve].toLowerCase()==Pe)return Oe}}}})},67549:function(ze,be,de){(function(le){le(de(89780))})(function(le){"use strict";le.defineMode("stex",function(Me,Ie){"use strict";function Pe(Ue,te){Ue.cmdState.push(te)}function Ge(Ue){return Ue.cmdState.length>0?Ue.cmdState[Ue.cmdState.length-1]:null}function Oe(Ue){var te=Ue.cmdState.pop();te&&te.closeBracket()}function Ve(Ue){for(var te=Ue.cmdState,ne=te.length-1;ne>=0;ne--){var fe=te[ne];if(fe.name!="DEFAULT")return fe}return{styleIdentifier:function(){return null}}}function ot(Ue,te,ne){return function(){this.name=Ue,this.bracketNo=0,this.style=te,this.styles=ne,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Je={};Je.importmodule=ot("importmodule","tag",["string","builtin"]),Je.documentclass=ot("documentclass","tag",["","atom"]),Je.usepackage=ot("usepackage","tag",["atom"]),Je.begin=ot("begin","tag",["atom"]),Je.end=ot("end","tag",["atom"]),Je.label=ot("label","tag",["atom"]),Je.ref=ot("ref","tag",["atom"]),Je.eqref=ot("eqref","tag",["atom"]),Je.cite=ot("cite","tag",["atom"]),Je.bibitem=ot("bibitem","tag",["atom"]),Je.Bibitem=ot("Bibitem","tag",["atom"]),Je.RBibitem=ot("RBibitem","tag",["atom"]),Je.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function Xe(Ue,te){Ue.f=te}function vt(Ue,te){var ne;if(Ue.match(/^\\[a-zA-Z@]+/)){var fe=Ue.current().slice(1);return ne=Je.hasOwnProperty(fe)?Je[fe]:Je.DEFAULT,ne=new ne,Pe(te,ne),Xe(te,_t),ne.style}if(Ue.match(/^\\[$&%#{}_]/)||Ue.match(/^\\[,;!\/\\]/))return"tag";if(Ue.match("\\["))return Xe(te,function(pe,Se){return st(pe,Se,"\\]")}),"keyword";if(Ue.match("\\("))return Xe(te,function(pe,Se){return st(pe,Se,"\\)")}),"keyword";if(Ue.match("$$"))return Xe(te,function(pe,Se){return st(pe,Se,"$$")}),"keyword";if(Ue.match("$"))return Xe(te,function(pe,Se){return st(pe,Se,"$")}),"keyword";var se=Ue.next();if(se=="%")return Ue.skipToEnd(),"comment";if(se=="}"||se=="]"){if(ne=Ge(te),ne)ne.closeBracket(se),Xe(te,_t);else return"error";return"bracket"}else return se=="{"||se=="["?(ne=Je.DEFAULT,ne=new ne,Pe(te,ne),"bracket"):/\d/.test(se)?(Ue.eatWhile(/[\w.%]/),"atom"):(Ue.eatWhile(/[\w\-_]/),ne=Ve(te),ne.name=="begin"&&(ne.argument=Ue.current()),ne.styleIdentifier())}function st(Ue,te,ne){if(Ue.eatSpace())return null;if(ne&&Ue.match(ne))return Xe(te,vt),"keyword";if(Ue.match(/^\\[a-zA-Z@]+/))return"tag";if(Ue.match(/^[a-zA-Z]+/))return"variable-2";if(Ue.match(/^\\[$&%#{}_]/)||Ue.match(/^\\[,;!\/]/)||Ue.match(/^[\^_&]/))return"tag";if(Ue.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Ue.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var fe=Ue.next();return fe=="{"||fe=="}"||fe=="["||fe=="]"||fe=="("||fe==")"?"bracket":fe=="%"?(Ue.skipToEnd(),"comment"):"error"}function _t(Ue,te){var ne=Ue.peek(),fe;return ne=="{"||ne=="["?(fe=Ge(te),fe.openBracket(ne),Ue.eat(ne),Xe(te,vt),"bracket"):/[ \t\r]/.test(ne)?(Ue.eat(ne),null):(Xe(te,vt),Oe(te),vt(Ue,te))}return{startState:function(){var Ue=Ie.inMathMode?function(te,ne){return st(te,ne)}:vt;return{cmdState:[],f:Ue}},copyState:function(Ue){return{cmdState:Ue.cmdState.slice(),f:Ue.f}},token:function(Ue,te){return te.f(Ue,te)},blankLine:function(Ue){Ue.f=vt,Ue.cmdState.length=0},lineComment:"%"}}),le.defineMIME("text/x-stex","stex"),le.defineMIME("text/x-latex","stex")})},15525:function(ze,be,de){(function(le){le(de(89780))})(function(le){"use strict";var Me={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},Ie={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};le.defineMode("xml",function(Pe,Ge){var Oe=Pe.indentUnit,Ve={},ot=Ge.htmlMode?Me:Ie;for(var Je in ot)Ve[Je]=ot[Je];for(var Je in Ge)Ve[Je]=Ge[Je];var Xe,vt;function st(at,wt){function Mt(pn){return wt.tokenize=pn,pn(at,wt)}var Xt=at.next();if(Xt=="<")return at.eat("!")?at.eat("[")?at.match("CDATA[")?Mt(te("atom","]]>")):null:at.match("--")?Mt(te("comment","-->")):at.match("DOCTYPE",!0,!0)?(at.eatWhile(/[\w\._\-]/),Mt(ne(1))):null:at.eat("?")?(at.eatWhile(/[\w\._\-]/),wt.tokenize=te("meta","?>"),"meta"):(Xe=at.eat("/")?"closeTag":"openTag",wt.tokenize=_t,"tag bracket");if(Xt=="&"){var bn;return at.eat("#")?at.eat("x")?bn=at.eatWhile(/[a-fA-F\d]/)&&at.eat(";"):bn=at.eatWhile(/[\d]/)&&at.eat(";"):bn=at.eatWhile(/[\w\.\-:]/)&&at.eat(";"),bn?"atom":"error"}else return at.eatWhile(/[^&<]/),null}st.isInText=!0;function _t(at,wt){var Mt=at.next();if(Mt==">"||Mt=="/"&&at.eat(">"))return wt.tokenize=st,Xe=Mt==">"?"endTag":"selfcloseTag","tag bracket";if(Mt=="=")return Xe="equals",null;if(Mt=="<"){wt.tokenize=st,wt.state=Se,wt.tagName=wt.tagStart=null;var Xt=wt.tokenize(at,wt);return Xt?Xt+" tag error":"tag error"}else return/[\'\"]/.test(Mt)?(wt.tokenize=Ue(Mt),wt.stringStartCol=at.column(),wt.tokenize(at,wt)):(at.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Ue(at){var wt=function(Mt,Xt){for(;!Mt.eol();)if(Mt.next()==at){Xt.tokenize=_t;break}return"string"};return wt.isInAttribute=!0,wt}function te(at,wt){return function(Mt,Xt){for(;!Mt.eol();){if(Mt.match(wt)){Xt.tokenize=st;break}Mt.next()}return at}}function ne(at){return function(wt,Mt){for(var Xt;(Xt=wt.next())!=null;){if(Xt=="<")return Mt.tokenize=ne(at+1),Mt.tokenize(wt,Mt);if(Xt==">")if(at==1){Mt.tokenize=st;break}else return Mt.tokenize=ne(at-1),Mt.tokenize(wt,Mt)}return"meta"}}function fe(at,wt,Mt){this.prev=at.context,this.tagName=wt,this.indent=at.indented,this.startOfLine=Mt,(Ve.doNotIndent.hasOwnProperty(wt)||at.context&&at.context.noIndent)&&(this.noIndent=!0)}function se(at){at.context&&(at.context=at.context.prev)}function pe(at,wt){for(var Mt;;){if(!at.context||(Mt=at.context.tagName,!Ve.contextGrabbers.hasOwnProperty(Mt)||!Ve.contextGrabbers[Mt].hasOwnProperty(wt)))return;se(at)}}function Se(at,wt,Mt){return at=="openTag"?(Mt.tagStart=wt.column(),we):at=="closeTag"?De:Se}function we(at,wt,Mt){return at=="word"?(Mt.tagName=wt.current(),vt="tag",nt):Ve.allowMissingTagName&&at=="endTag"?(vt="tag bracket",nt(at,wt,Mt)):(vt="error",we)}function De(at,wt,Mt){if(at=="word"){var Xt=wt.current();return Mt.context&&Mt.context.tagName!=Xt&&Ve.implicitlyClosed.hasOwnProperty(Mt.context.tagName)&&se(Mt),Mt.context&&Mt.context.tagName==Xt||Ve.matchClosing===!1?(vt="tag",Re):(vt="tag error",Ze)}else return Ve.allowMissingTagName&&at=="endTag"?(vt="tag bracket",Re(at,wt,Mt)):(vt="error",Ze)}function Re(at,wt,Mt){return at!="endTag"?(vt="error",Re):(se(Mt),Se)}function Ze(at,wt,Mt){return vt="error",Re(at,wt,Mt)}function nt(at,wt,Mt){if(at=="word")return vt="attribute",rt;if(at=="endTag"||at=="selfcloseTag"){var Xt=Mt.tagName,bn=Mt.tagStart;return Mt.tagName=Mt.tagStart=null,at=="selfcloseTag"||Ve.autoSelfClosers.hasOwnProperty(Xt)?pe(Mt,Xt):(pe(Mt,Xt),Mt.context=new fe(Mt,Xt,bn==Mt.indented)),Se}return vt="error",nt}function rt(at,wt,Mt){return at=="equals"?ft:(Ve.allowMissing||(vt="error"),nt(at,wt,Mt))}function ft(at,wt,Mt){return at=="string"?xt:at=="word"&&Ve.allowUnquoted?(vt="string",nt):(vt="error",nt(at,wt,Mt))}function xt(at,wt,Mt){return at=="string"?xt:nt(at,wt,Mt)}return{startState:function(at){var wt={tokenize:st,state:Se,indented:at||0,tagName:null,tagStart:null,context:null};return at!=null&&(wt.baseIndent=at),wt},token:function(at,wt){if(!wt.tagName&&at.sol()&&(wt.indented=at.indentation()),at.eatSpace())return null;Xe=null;var Mt=wt.tokenize(at,wt);return(Mt||Xe)&&Mt!="comment"&&(vt=null,wt.state=wt.state(Xe||Mt,at,wt),vt&&(Mt=vt=="error"?Mt+" error":vt)),Mt},indent:function(at,wt,Mt){var Xt=at.context;if(at.tokenize.isInAttribute)return at.tagStart==at.indented?at.stringStartCol+1:at.indented+Oe;if(Xt&&Xt.noIndent)return le.Pass;if(at.tokenize!=_t&&at.tokenize!=st)return Mt?Mt.match(/^(\s*)/)[0].length:0;if(at.tagName)return Ve.multilineTagIndentPastTag!==!1?at.tagStart+at.tagName.length+2:at.tagStart+Oe*(Ve.multilineTagIndentFactor||1);if(Ve.alignCDATA&&/<!\[CDATA\[/.test(wt))return 0;var bn=wt&&/^<(\/)?([\w_:\.-]*)/.exec(wt);if(bn&&bn[1])for(;Xt;)if(Xt.tagName==bn[2]){Xt=Xt.prev;break}else if(Ve.implicitlyClosed.hasOwnProperty(Xt.tagName))Xt=Xt.prev;else break;else if(bn)for(;Xt;){var pn=Ve.contextGrabbers[Xt.tagName];if(pn&&pn.hasOwnProperty(bn[2]))Xt=Xt.prev;else break}for(;Xt&&Xt.prev&&!Xt.startOfLine;)Xt=Xt.prev;return Xt?Xt.indent+Oe:at.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Ve.htmlMode?"html":"xml",helperType:Ve.htmlMode?"html":"xml",skipAttribute:function(at){at.state==ft&&(at.state=nt)},xmlCurrentTag:function(at){return at.tagName?{name:at.tagName,close:at.type=="closeTag"}:null},xmlCurrentContext:function(at){for(var wt=[],Mt=at.context;Mt;Mt=Mt.prev)Mt.tagName&&wt.push(Mt.tagName);return wt.reverse()}}}),le.defineMIME("text/xml","xml"),le.defineMIME("application/xml","xml"),le.mimeModes.hasOwnProperty("text/html")||le.defineMIME("text/html",{name:"xml",htmlMode:!0})})},58951:function(ze,be){"use strict";var de;be.Q=Pe,de=Ge;var le=",",Me=" ",Ie="";function Pe(Oe){for(var Ve=[],ot=String(Oe||Ie),Je=ot.indexOf(le),Xe=0,vt=!1,st;!vt;)Je===-1&&(Je=ot.length,vt=!0),st=ot.slice(Xe,Je).trim(),(st||!vt)&&Ve.push(st),Xe=Je+1,Je=ot.indexOf(le,Xe);return Ve}function Ge(Oe,Ve){var ot=Ve||{},Je=ot.padLeft===!1?Ie:Me,Xe=ot.padRight?Me:Ie;return Oe[Oe.length-1]===Ie&&(Oe=Oe.concat(Ie)),Oe.join(Xe+le+Je).trim()}},86204:function(ze){"use strict";var be=typeof Reflect=="object"?Reflect:null,de=be&&typeof be.apply=="function"?be.apply:function(Se,we,De){return Function.prototype.apply.call(Se,we,De)},le;be&&typeof be.ownKeys=="function"?le=be.ownKeys:Object.getOwnPropertySymbols?le=function(Se){return Object.getOwnPropertyNames(Se).concat(Object.getOwnPropertySymbols(Se))}:le=function(Se){return Object.getOwnPropertyNames(Se)};function Me(pe){console&&console.warn&&console.warn(pe)}var Ie=Number.isNaN||function(Se){return Se!==Se};function Pe(){Pe.init.call(this)}ze.exports=Pe,ze.exports.once=ne,Pe.EventEmitter=Pe,Pe.prototype._events=void 0,Pe.prototype._eventsCount=0,Pe.prototype._maxListeners=void 0;var Ge=10;function Oe(pe){if(typeof pe!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof pe)}Object.defineProperty(Pe,"defaultMaxListeners",{enumerable:!0,get:function(){return Ge},set:function(pe){if(typeof pe!="number"||pe<0||Ie(pe))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+pe+".");Ge=pe}}),Pe.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Pe.prototype.setMaxListeners=function(Se){if(typeof Se!="number"||Se<0||Ie(Se))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+Se+".");return this._maxListeners=Se,this};function Ve(pe){return pe._maxListeners===void 0?Pe.defaultMaxListeners:pe._maxListeners}Pe.prototype.getMaxListeners=function(){return Ve(this)},Pe.prototype.emit=function(Se){for(var we=[],De=1;De<arguments.length;De++)we.push(arguments[De]);var Re=Se==="error",Ze=this._events;if(Ze!==void 0)Re=Re&&Ze.error===void 0;else if(!Re)return!1;if(Re){var nt;if(we.length>0&&(nt=we[0]),nt instanceof Error)throw nt;var rt=new Error("Unhandled error."+(nt?" ("+nt.message+")":""));throw rt.context=nt,rt}var ft=Ze[Se];if(ft===void 0)return!1;if(typeof ft=="function")de(ft,this,we);else for(var xt=ft.length,at=_t(ft,xt),De=0;De<xt;++De)de(at[De],this,we);return!0};function ot(pe,Se,we,De){var Re,Ze,nt;if(Oe(we),Ze=pe._events,Ze===void 0?(Ze=pe._events=Object.create(null),pe._eventsCount=0):(Ze.newListener!==void 0&&(pe.emit("newListener",Se,we.listener?we.listener:we),Ze=pe._events),nt=Ze[Se]),nt===void 0)nt=Ze[Se]=we,++pe._eventsCount;else if(typeof nt=="function"?nt=Ze[Se]=De?[we,nt]:[nt,we]:De?nt.unshift(we):nt.push(we),Re=Ve(pe),Re>0&&nt.length>Re&&!nt.warned){nt.warned=!0;var rt=new Error("Possible EventEmitter memory leak detected. "+nt.length+" "+String(Se)+" listeners added. Use emitter.setMaxListeners() to increase limit");rt.name="MaxListenersExceededWarning",rt.emitter=pe,rt.type=Se,rt.count=nt.length,Me(rt)}return pe}Pe.prototype.addListener=function(Se,we){return ot(this,Se,we,!1)},Pe.prototype.on=Pe.prototype.addListener,Pe.prototype.prependListener=function(Se,we){return ot(this,Se,we,!0)};function Je(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Xe(pe,Se,we){var De={fired:!1,wrapFn:void 0,target:pe,type:Se,listener:we},Re=Je.bind(De);return Re.listener=we,De.wrapFn=Re,Re}Pe.prototype.once=function(Se,we){return Oe(we),this.on(Se,Xe(this,Se,we)),this},Pe.prototype.prependOnceListener=function(Se,we){return Oe(we),this.prependListener(Se,Xe(this,Se,we)),this},Pe.prototype.removeListener=function(Se,we){var De,Re,Ze,nt,rt;if(Oe(we),Re=this._events,Re===void 0)return this;if(De=Re[Se],De===void 0)return this;if(De===we||De.listener===we)--this._eventsCount===0?this._events=Object.create(null):(delete Re[Se],Re.removeListener&&this.emit("removeListener",Se,De.listener||we));else if(typeof De!="function"){for(Ze=-1,nt=De.length-1;nt>=0;nt--)if(De[nt]===we||De[nt].listener===we){rt=De[nt].listener,Ze=nt;break}if(Ze<0)return this;Ze===0?De.shift():Ue(De,Ze),De.length===1&&(Re[Se]=De[0]),Re.removeListener!==void 0&&this.emit("removeListener",Se,rt||we)}return this},Pe.prototype.off=Pe.prototype.removeListener,Pe.prototype.removeAllListeners=function(Se){var we,De,Re;if(De=this._events,De===void 0)return this;if(De.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):De[Se]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete De[Se]),this;if(arguments.length===0){var Ze=Object.keys(De),nt;for(Re=0;Re<Ze.length;++Re)nt=Ze[Re],nt!=="removeListener"&&this.removeAllListeners(nt);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(we=De[Se],typeof we=="function")this.removeListener(Se,we);else if(we!==void 0)for(Re=we.length-1;Re>=0;Re--)this.removeListener(Se,we[Re]);return this};function vt(pe,Se,we){var De=pe._events;if(De===void 0)return[];var Re=De[Se];return Re===void 0?[]:typeof Re=="function"?we?[Re.listener||Re]:[Re]:we?te(Re):_t(Re,Re.length)}Pe.prototype.listeners=function(Se){return vt(this,Se,!0)},Pe.prototype.rawListeners=function(Se){return vt(this,Se,!1)},Pe.listenerCount=function(pe,Se){return typeof pe.listenerCount=="function"?pe.listenerCount(Se):st.call(pe,Se)},Pe.prototype.listenerCount=st;function st(pe){var Se=this._events;if(Se!==void 0){var we=Se[pe];if(typeof we=="function")return 1;if(we!==void 0)return we.length}return 0}Pe.prototype.eventNames=function(){return this._eventsCount>0?le(this._events):[]};function _t(pe,Se){for(var we=new Array(Se),De=0;De<Se;++De)we[De]=pe[De];return we}function Ue(pe,Se){for(;Se+1<pe.length;Se++)pe[Se]=pe[Se+1];pe.pop()}function te(pe){for(var Se=new Array(pe.length),we=0;we<Se.length;++we)Se[we]=pe[we].listener||pe[we];return Se}function ne(pe,Se){return new Promise(function(we,De){function Re(nt){pe.removeListener(Se,Ze),De(nt)}function Ze(){typeof pe.removeListener=="function"&&pe.removeListener("error",Re),we([].slice.call(arguments))}se(pe,Se,Ze,{once:!0}),Se!=="error"&&fe(pe,Re,{once:!0})})}function fe(pe,Se,we){typeof pe.on=="function"&&se(pe,"error",Se,we)}function se(pe,Se,we,De){if(typeof pe.on=="function")De.once?pe.once(Se,we):pe.on(Se,we);else if(typeof pe.addEventListener=="function")pe.addEventListener(Se,function Re(Ze){De.once&&pe.removeEventListener(Se,Re),we(Ze)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof pe)}},58847:function(ze){"use strict";var be=Object.prototype.hasOwnProperty,de=Object.prototype.toString,le=Object.defineProperty,Me=Object.getOwnPropertyDescriptor,Ie=function(ot){return typeof Array.isArray=="function"?Array.isArray(ot):de.call(ot)==="[object Array]"},Pe=function(ot){if(!ot||de.call(ot)!=="[object Object]")return!1;var Je=be.call(ot,"constructor"),Xe=ot.constructor&&ot.constructor.prototype&&be.call(ot.constructor.prototype,"isPrototypeOf");if(ot.constructor&&!Je&&!Xe)return!1;var vt;for(vt in ot);return typeof vt=="undefined"||be.call(ot,vt)},Ge=function(ot,Je){le&&Je.name==="__proto__"?le(ot,Je.name,{enumerable:!0,configurable:!0,value:Je.newValue,writable:!0}):ot[Je.name]=Je.newValue},Oe=function(ot,Je){if(Je==="__proto__")if(be.call(ot,Je)){if(Me)return Me(ot,Je).value}else return;return ot[Je]};ze.exports=function Ve(){var ot,Je,Xe,vt,st,_t,Ue=arguments[0],te=1,ne=arguments.length,fe=!1;for(typeof Ue=="boolean"&&(fe=Ue,Ue=arguments[1]||{},te=2),(Ue==null||typeof Ue!="object"&&typeof Ue!="function")&&(Ue={});te<ne;++te)if(ot=arguments[te],ot!=null)for(Je in ot)Xe=Oe(Ue,Je),vt=Oe(ot,Je),Ue!==vt&&(fe&&vt&&(Pe(vt)||(st=Ie(vt)))?(st?(st=!1,_t=Xe&&Ie(Xe)?Xe:[]):_t=Xe&&Pe(Xe)?Xe:{},Ge(Ue,{name:Je,newValue:Ve(fe,_t,vt)})):typeof vt!="undefined"&&Ge(Ue,{name:Je,newValue:vt}));return Ue}},12378:function(ze,be,de){"use strict";de.d(be,{$u:function(){return Je},BD:function(){return $e},E9:function(){return ot},FF:function(){return lr},FJ:function(){return Se},Hn:function(){return pe},KX:function(){return De},NB:function(){return Ht},S0:function(){return Pt},UL:function(){return Xe},Vk:function(){return se},Vm:function(){return vn},YI:function(){return qn},ZA:function(){return Ie},Zt:function(){return vt},al:function(){return Le},bn:function(){return Ke},bx:function(){return Fe},g2:function(){return Ei},h1:function(){return ft},hD:function(){return mt},l4:function(){return Oe},rU:function(){return rn},s_:function(){return Ne},uz:function(){return $t},z6:function(){return st}}),ze=de.hmd(ze),function(){var Ce;function Ci(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function Bi(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:Ci(a)}}function Ri(a){for(var y,E=[];!(y=a.next()).done;)E.push(y.value);return E}var Wn=typeof Object.create=="function"?Object.create:function(a){function y(){}return y.prototype=a,new y},ci;if(typeof Object.setPrototypeOf=="function")ci=Object.setPrototypeOf;else{var ti;e:{var ki={a:!0},ni={};try{ni.__proto__=ki,ti=ni.a;break e}catch(a){}ti=!1}ci=ti?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var Vt=ci;function Ut(a,y){if(a.prototype=Wn(y.prototype),a.prototype.constructor=a,Vt)Vt(a,y);else for(var E in y)if(E!="prototype")if(Object.defineProperties){var x=Object.getOwnPropertyDescriptor(y,E);x&&Object.defineProperty(a,E,x)}else a[E]=y[E];a.QA=y.prototype}var It=typeof de.g!="undefined"&&de.g!=null?de.g:self,$n=typeof Object.assign=="function"?Object.assign:function(a,y){for(var E=1;E<arguments.length;E++){var x=arguments[E];if(x)for(var b in x)Object.prototype.hasOwnProperty.call(x,b)&&(a[b]=x[b])}return a},Yn=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,y,E){a!=Array.prototype&&a!=Object.prototype&&(a[y]=E.value)};function yi(a,y){if(y){var E=It;a=a.split(".");for(var x=0;x<a.length-1;x++){var b=a[x];b in E||(E[b]={}),E=E[b]}a=a[a.length-1],x=E[a],y=y(x),y!=x&&y!=null&&Yn(E,a,{writable:!0,value:y})}}yi("Object.assign",function(a){return a||$n}),yi("Array.prototype.fill",function(a){return a||function(y,E,x){var b=this.length||0;for(0>E&&(E=Math.max(0,b+E)),(x==null||x>b)&&(x=b),x=Number(x),0>x&&(x=Math.max(0,b+x)),E=Number(E||0);E<x;E++)this[E]=y;return this}});var Rn=typeof globalThis=="object"&&globalThis||typeof de.g=="object"&&de.g.global===de.g&&de.g||typeof self=="object"&&self.self===self&&self||{};Rn.requestAnimationFrame===void 0&&(Rn.setImmediate===void 0?Rn.requestAnimationFrame=function(a){Rn.setTimeout(a,0)}:Rn.requestAnimationFrame=Rn.setImmediate);function oi(){}function qt(a,y){var E=-1;return function(){var x=this,b=arguments;E!==-1&&Rn.clearTimeout(E),E=Gt(function(){E=-1,a.apply(x,b)},y)}}function Gt(a,y){return Rn.setTimeout(a,y)}function li(a){return Rn.document.createElement(a)}function pt(a){throw Error(a)}function yn(a,y){a="The object is frozen, so its properties cannot be set: "+a.toString(),y!==void 0&&(a+=" to value: "+y),pt(a)}function ii(a,y,E,x){E=E===null?"*":typeof E=="string"?E:typeof E=="function"&&typeof E.className=="string"?E.className:"",x!==void 0&&(E+="."+x),pt(E+" is not in the range "+y+": "+a)}function Ti(a){Rn.console&&Rn.console.log(a)}function zt(a){return typeof a=="object"&&a!==null}function xn(a){return Array.isArray(a)||Rn.NodeList&&a instanceof Rn.NodeList||Rn.HTMLCollection&&a instanceof Rn.HTMLCollection}function vi(a){return Array.prototype.slice.call(a)}function nn(a,y,E){Array.isArray(a)?y>=a.length?a.push(E):a.splice(y,0,E):pt("Cannot insert an object into an HTMLCollection or NodeList: "+E+" at "+y)}function _e(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):pt("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function Ni(){var a=Vr.pop();return a===void 0?[]:a}function hi(a){a.length=0,Vr.push(a)}function Pn(a){if(typeof a=="function"){if(a.className)return a.className;if(a.name)return a.name;var y=a.toString();if(y=y.substring(9,y.indexOf("(")).trim(),y!=="")return a._className=y}else if(zt(a)&&a.constructor)return Pn(a.constructor);return typeof a}function Yi(a){var y=a;return zt(a)&&(a.text?y=a.text:a.name?y=a.name:a.key!==void 0?y=a.key:a.id!==void 0?y=a.id:a.constructor===Object&&(a.Text?y=a.Text:a.Name?y=a.Name:a.Key!==void 0?y=a.Key:a.Id!==void 0?y=a.Id:a.ID!==void 0&&(y=a.ID))),y===void 0?"undefined":y===null?"null":y.toString()}function Qi(a,y){if(a.hasOwnProperty(y))return!0;for(a=Object.getPrototypeOf(a);a&&a!==Function;){if(a.hasOwnProperty(y))return!0;var E=a.CA;if(E&&E[y])return!0;a=Object.getPrototypeOf(a)}return!1}function er(a,y,E){Object.defineProperty(Co.prototype,a,{get:y,set:E})}function Tn(a){for(var y=[],E=0;256>E;E++)y["0123456789abcdef".charAt(E>>4)+"0123456789abcdef".charAt(E&15)]=String.fromCharCode(E);a.length%2&&(a="0"+a),E=[];for(var x=0,b=0;b<a.length;b+=2)E[x++]=y[a.substr(b,2)];for(a=E.join(""),a=a===""?"0":a,y=[],E=0;256>E;E++)y[E]=E;for(E=x=0;256>E;E++)x=(x+y[E]+119)%256,b=y[E],y[E]=y[x],y[x]=b;x=E=0;for(var z="",ee=0;ee<a.length;ee++)E=(E+1)%256,x=(x+y[E])%256,b=y[E],y[E]=y[x],y[x]=b,z+=String.fromCharCode(a.charCodeAt(ee)^y[(y[E]+y[x])%256]);return z.indexOf("GoJS 2.1 evaluation")>-1||z.indexOf("\xA9 1998-2021 Northwoods Software")>-1||z.indexOf("Not for distribution or production use")>-1||z.indexOf("gojs.net")>-1?"":z}var Zt=Rn.navigator!==void 0&&0<Rn.navigator.userAgent.indexOf("Trident/7"),$i=Rn.navigator!==void 0&&Rn.navigator.platform!==void 0&&Rn.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,Vr=[];Object.freeze([]),oi.className="Util",oi.Dx="32ab5ff3b26f42dc0ed90f21472913b5",oi.adym="gojs.net",oi.vfo="28e645fdb266",oi.className="Util";function en(a,y,E){wr(this),this.j=a,this.xa=y,this.o=E}en.prototype.toString=function(){return"EnumValue."+this.xa};function gi(a,y){return y==null||y===""?null:a[y]}It.Object.defineProperties(en.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),en.className="EnumValue";function Mi(){this.ew=[]}Mi.prototype.toString=function(){return this.ew.join("")},Mi.prototype.add=function(a){a!==""&&this.ew.push(a)},Mi.className="StringBuilder";function ji(){}ji.className="PropertyCollection";var Fi={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(a){Rn.console&&Rn.console.log(a)},HA:function(a,y,E,x){a.strokeStyle="red",a.fillStyle="red",a.font="8px sans-serif",a.beginPath(),a.moveTo(-10,0),a.lineTo(10,0),a.moveTo(0,-10),a.lineTo(0,10),a.stroke(),a.setTransform(1,0,0,1,0,0),a.scale(E,E),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.lineWidth=2,a.beginPath(),a.moveTo(x.left,x.top+20),a.lineTo(x.left,x.top),a.lineTo(x.left+20,x.top),a.moveTo(x.right,x.bottom-20),a.lineTo(x.right,x.bottom),a.lineTo(x.right-20,x.bottom),a.stroke(),a.fillText("DB: "+Math.round(x.x)+", "+Math.round(x.y)+", "+Math.round(x.width)+", "+Math.round(x.height),x.left,x.top-5)},DA:function(a){var y={},E;for(E in a){if(y.x=E,y.x!=="licenseKey"){var x=a[y.x];if(x.prototype!==void 0){y.Zl=Object.getOwnPropertyNames(x.prototype);for(var b={Tj:0};b.Tj<y.Zl.length;b={Tj:b.Tj},b.Tj++){var z=Object.getOwnPropertyDescriptor(x.prototype,y.Zl[b.Tj]);z.get!==void 0&&z.set===void 0&&Object.defineProperty(x.prototype,y.Zl[b.Tj],{set:function(ee,re){return function(){throw Error("Property "+ee.Zl[re.Tj]+" of "+ee.x+" is read-only.")}}(y,b)})}}}y={Zl:y.Zl,x:y.x}}}};function Zi(){}Zi.prototype.reset=function(){},Zi.prototype.next=function(){return!1},Zi.prototype.Ad=function(){return!1},Zi.prototype.first=function(){return null},Zi.prototype.any=function(){return!1},Zi.prototype.all=function(){return!0},Zi.prototype.each=function(){return this},Zi.prototype.map=function(){return this},Zi.prototype.filter=function(){return this},Zi.prototype.de=function(){},Zi.prototype.toString=function(){return"EmptyIterator"},It.Object.defineProperties(Zi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),Zi.prototype.first=Zi.prototype.first,Zi.prototype.hasNext=Zi.prototype.Ad,Zi.prototype.next=Zi.prototype.next,Zi.prototype.reset=Zi.prototype.reset;var Sr=null;Zi.className="EmptyIterator",Sr=new Zi;function gr(a){this.key=-1,this.value=a}gr.prototype.reset=function(){this.key=-1},gr.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},gr.prototype.Ad=function(){return this.next()},gr.prototype.first=function(){return this.key=0,this.value},gr.prototype.any=function(a){return this.key=-1,a(this.value)},gr.prototype.all=function(a){return this.key=-1,a(this.value)},gr.prototype.each=function(a){return this.key=-1,a(this.value),this},gr.prototype.map=function(a){return new gr(a(this.value))},gr.prototype.filter=function(a){return a(this.value)?new gr(this.value):Sr},gr.prototype.de=function(){this.value=null},gr.prototype.toString=function(){return"SingletonIterator("+this.value+")"},It.Object.defineProperties(gr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),gr.prototype.first=gr.prototype.first,gr.prototype.hasNext=gr.prototype.Ad,gr.prototype.next=gr.prototype.next,gr.prototype.reset=gr.prototype.reset,gr.className="SingletonIterator";function mr(a){this.Bb=a,this.qf=null,a.Sa=null,this.qa=a.Ja,this.Za=-1}mr.prototype.reset=function(){var a=this.Bb;a.Sa=null,this.qa=a.Ja,this.Za=-1},mr.prototype.next=function(){var a=this.Bb;if(a.Ja!==this.qa&&0>this.key)return!1;a=a.s;var y=a.length,E=++this.Za,x=this.qf;if(x!==null)for(;E<y;){var b=a[E];if(x(b))return this.key=this.Za=E,this.value=b,!0;E++}else{if(E<y)return this.key=E,this.value=a[E],!0;this.de()}return!1},mr.prototype.Ad=function(){return this.next()},mr.prototype.first=function(){var a=this.Bb;this.qa=a.Ja,this.Za=0,a=a.s;var y=a.length,E=this.qf;if(E!==null){for(var x=0;x<y;){var b=a[x];if(E(b))return this.key=this.Za=x,this.value=b;x++}return null}return 0<y?(a=a[0],this.key=0,this.value=a):null},mr.prototype.any=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var E=y.length,x=this.qf,b=0;b<E;b++){var z=y[b];if((x===null||x(z))&&a(z))return!0}return!1},mr.prototype.all=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var E=y.length,x=this.qf,b=0;b<E;b++){var z=y[b];if((x===null||x(z))&&!a(z))return!1}return!0},mr.prototype.each=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var E=y.length,x=this.qf,b=0;b<E;b++){var z=y[b];(x===null||x(z))&&a(z)}return this},mr.prototype.map=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var E=[];y=y.s;for(var x=y.length,b=this.qf,z=0;z<x;z++){var ee=y[z];(b===null||b(ee))&&E.push(a(ee))}return a=new Fn,a.s=E,a.xb(),a.iterator},mr.prototype.filter=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var E=[];y=y.s;for(var x=y.length,b=this.qf,z=0;z<x;z++){var ee=y[z];(b===null||b(ee))&&a(ee)&&E.push(ee)}return a=new Fn,a.s=E,a.xb(),a.iterator},mr.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},mr.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},It.Object.defineProperties(mr.prototype,{iterator:{get:function(){return this}},predicate:{get:function(){return this.qf},set:function(a){this.qf=a}},count:{get:function(){var a=this.qf;if(a!==null){for(var y=0,E=this.Bb.s,x=E.length,b=0;b<x;b++)a(E[b])&&y++;return y}return this.Bb.s.length}}}),mr.prototype.first=mr.prototype.first,mr.prototype.hasNext=mr.prototype.Ad,mr.prototype.next=mr.prototype.next,mr.prototype.reset=mr.prototype.reset,mr.className="ListIterator";function br(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}br.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},br.prototype.next=function(){var a=this.Bb;if(a.Ja!==this.qa&&0>this.key)return!1;var y=--this.Za;return 0<=y?(this.key=y,this.value=a.s[y],!0):(this.de(),!1)},br.prototype.Ad=function(){return this.next()},br.prototype.first=function(){var a=this.Bb;this.qa=a.Ja;var y=a.s;return this.Za=a=y.length-1,0<=a?(y=y[a],this.key=a,this.value=y):null},br.prototype.any=function(a){var y=this.Bb;y.Hg=null,y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--)if(a(y[E]))return!0;return!1},br.prototype.all=function(a){var y=this.Bb;y.Hg=null,y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--)if(!a(y[E]))return!1;return!0},br.prototype.each=function(a){var y=this.Bb;y.Hg=null,y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--)a(y[E]);return this},br.prototype.map=function(a){var y=this.Bb;y.Hg=null;var E=[];y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)E.push(a(y[x]));return a=new Fn,a.s=E,a.xb(),a.iterator},br.prototype.filter=function(a){var y=this.Bb;y.Hg=null;var E=[];y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--){var b=y[x];a(b)&&E.push(b)}return a=new Fn,a.s=E,a.xb(),a.iterator},br.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},br.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},It.Object.defineProperties(br.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),br.prototype.first=br.prototype.first,br.prototype.hasNext=br.prototype.Ad,br.prototype.next=br.prototype.next,br.prototype.reset=br.prototype.reset,br.className="ListIteratorBackwards";function Fn(a){wr(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&pt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ce=Fn.prototype,Ce.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Ce.freeze=function(){return this._isFrozen=!0,this},Ce.ka=function(){return this._isFrozen=!1,this},Ce.toString=function(){return"List()#"+Tr(this)},Ce.add=function(a){return a===null?this:(this._isFrozen&&yn(this,a),this.s.push(a),this.xb(),this)},Ce.push=function(a){this.add(a)},Ce.addAll=function(a){if(a===null)return this;this._isFrozen&&yn(this);var y=this.s;if(xn(a))for(var E=a.length,x=0;x<E;x++)y.push(a[x]);else for(a=a.iterator;a.next();)y.push(a.value);return this.xb(),this},Ce.clear=function(){this._isFrozen&&yn(this),this.s.length=0,this.xb()},Ce.contains=function(a){return a===null?!1:this.s.indexOf(a)!==-1},Ce.has=function(a){return this.contains(a)},Ce.indexOf=function(a){return a===null?-1:this.s.indexOf(a)},Ce.M=function(a){var y=this.s;return(0>a||a>=y.length)&&ii(a,"0 <= i < length",Fn,"elt:i"),y[a]},Ce.get=function(a){return this.M(a)},Ce.cd=function(a,y){var E=this.s;(0>a||a>=E.length)&&ii(a,"0 <= i < length",Fn,"setElt:i"),this._isFrozen&&yn(this,a),E[a]=y},Ce.set=function(a,y){this.cd(a,y)},Ce.first=function(){var a=this.s;return a.length===0?null:a[0]},Ce.jc=function(){var a=this.s,y=a.length;return 0<y?a[y-1]:null},Ce.pop=function(){this._isFrozen&&yn(this);var a=this.s;return 0<a.length?a.pop():null},Fn.prototype.any=function(a){for(var y=this.s,E=y.length,x=0;x<E;x++)if(a(y[x]))return!0;return!1},Fn.prototype.all=function(a){for(var y=this.s,E=y.length,x=0;x<E;x++)if(!a(y[x]))return!1;return!0},Fn.prototype.each=function(a){for(var y=this.s,E=y.length,x=0;x<E;x++)a(y[x]);return this},Fn.prototype.map=function(a){for(var y=new Fn,E=[],x=this.s,b=x.length,z=0;z<b;z++)E.push(a(x[z]));return y.s=E,y.xb(),y},Fn.prototype.filter=function(a){for(var y=new Fn,E=[],x=this.s,b=x.length,z=0;z<b;z++){var ee=x[z];a(ee)&&E.push(ee)}return y.s=E,y.xb(),y},Ce=Fn.prototype,Ce.Gb=function(a,y){0>a&&ii(a,">= 0",Fn,"insertAt:i"),this._isFrozen&&yn(this,a);var E=this.s;a>=E.length?E.push(y):E.splice(a,0,y),this.xb()},Ce.remove=function(a){if(a===null)return!1;this._isFrozen&&yn(this,a);var y=this.s;return a=y.indexOf(a),a===-1?!1:(a===y.length-1?y.pop():y.splice(a,1),this.xb(),!0)},Ce.delete=function(a){return this.remove(a)},Ce.mb=function(a){var y=this.s;(0>a||a>=y.length)&&ii(a,"0 <= i < length",Fn,"removeAt:i"),this._isFrozen&&yn(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},Ce.removeRange=function(a,y){var E=this.s,x=E.length;if(0>a)a=0;else if(a>=x)return this;if(0>y)return this;if(y>=x&&(y=x-1),a>y)return this;this._isFrozen&&yn(this);for(var b=a,z=y+1;z<x;)E[b++]=E[z++];return E.length=x-(y-a+1),this.xb(),this},Fn.prototype.copy=function(){var a=new Fn,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},Ce=Fn.prototype,Ce.Fa=function(){for(var a=this.s,y=this.count,E=Array(y),x=0;x<y;x++)E[x]=a[x];return E},Ce.Iv=function(){for(var a=new In,y=this.s,E=this.count,x=0;x<E;x++)a.add(y[x]);return a},Ce.sort=function(a){return this._isFrozen&&yn(this),this.s.sort(a),this.xb(),this},Ce.zi=function(a,y,E){var x=this.s,b=x.length;y===void 0&&(y=0),E===void 0&&(E=b),this._isFrozen&&yn(this);var z=E-y;if(1>=z)return this;if((0>y||y>=b-1)&&ii(y,"0 <= from < length",Fn,"sortRange:from"),z===2)return E=x[y],b=x[y+1],0<a(E,b)&&(x[y]=b,x[y+1]=E,this.xb()),this;if(y===0)if(E>=b)x.sort(a);else for(y=x.slice(0,E),y.sort(a),a=0;a<E;a++)x[a]=y[a];else if(E>=b)for(E=x.slice(y),E.sort(a),a=y;a<b;a++)x[a]=E[a-y];else for(b=x.slice(y,E),b.sort(a),a=y;a<E;a++)x[a]=b[a-y];return this.xb(),this},Ce.reverse=function(){return this._isFrozen&&yn(this),this.s.reverse(),this.xb(),this},It.Object.defineProperties(Fn.prototype,{_dataArray:{get:function(){return this.s}},count:{get:function(){return this.s.length}},size:{get:function(){return this.s.length}},length:{get:function(){return this.s.length}},iterator:{get:function(){if(0>=this.s.length)return Sr;var a=this.Sa;return a!==null?(a.reset(),a):new mr(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return Sr;var a=this.Hg;return a!==null?(a.reset(),a):new br(this)}}}),Fn.prototype.reverse=Fn.prototype.reverse,Fn.prototype.sortRange=Fn.prototype.zi,Fn.prototype.sort=Fn.prototype.sort,Fn.prototype.toSet=Fn.prototype.Iv,Fn.prototype.toArray=Fn.prototype.Fa,Fn.prototype.removeRange=Fn.prototype.removeRange,Fn.prototype.removeAt=Fn.prototype.mb,Fn.prototype.delete=Fn.prototype.delete,Fn.prototype.remove=Fn.prototype.remove,Fn.prototype.insertAt=Fn.prototype.Gb,Fn.prototype.pop=Fn.prototype.pop,Fn.prototype.last=Fn.prototype.jc,Fn.prototype.first=Fn.prototype.first,Fn.prototype.set=Fn.prototype.set,Fn.prototype.setElt=Fn.prototype.cd,Fn.prototype.get=Fn.prototype.get,Fn.prototype.elt=Fn.prototype.M,Fn.prototype.indexOf=Fn.prototype.indexOf,Fn.prototype.has=Fn.prototype.has,Fn.prototype.contains=Fn.prototype.contains,Fn.prototype.clear=Fn.prototype.clear,Fn.prototype.addAll=Fn.prototype.addAll,Fn.prototype.push=Fn.prototype.push,Fn.prototype.add=Fn.prototype.add,Fn.prototype.thaw=Fn.prototype.ka,Fn.prototype.freeze=Fn.prototype.freeze,Fn.className="List";function dr(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}dr.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},dr.prototype.next=function(){var a=this.eg;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=y.value,this.key=y.key,!0):(this.de(),!1)},dr.prototype.Ad=function(){return this.next()},dr.prototype.first=function(){var a=this.eg;if(this.qa=a.Ja,a=a.ea,a!==null){this.sa=a;var y=a.value;return this.key=a.key,this.value=y}return null},dr.prototype.any=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},dr.prototype.all=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},dr.prototype.each=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;)a(y.value),y=y.va;return this},dr.prototype.map=function(a){var y=this.eg;y.Sa=null;var E=new Fn;for(y=y.ea;y!==null;)E.add(a(y.value)),y=y.va;return E.iterator},dr.prototype.filter=function(a){var y=this.eg;y.Sa=null;var E=new Fn;for(y=y.ea;y!==null;){var x=y.value;a(x)&&E.add(x),y=y.va}return E.iterator},dr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},dr.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},It.Object.defineProperties(dr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),dr.prototype.first=dr.prototype.first,dr.prototype.hasNext=dr.prototype.Ad,dr.prototype.next=dr.prototype.next,dr.prototype.reset=dr.prototype.reset,dr.className="SetIterator";function In(a){wr(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&pt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ce=In.prototype,Ce.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Ce.freeze=function(){return this._isFrozen=!0,this},Ce.ka=function(){return this._isFrozen=!1,this},Ce.toString=function(){return"Set()#"+Tr(this)},Ce.add=function(a){if(a===null)return this;this._isFrozen&&yn(this,a);var y=a;return zt(a)&&(y=Cr(a)),this.Tb[y]===void 0&&(this.Sb++,a=new pa(a,a),this.Tb[y]=a,y=this.kf,y===null?this.ea=a:(a.ll=y,y.va=a),this.kf=a,this.xb()),this},Ce.addAll=function(a){if(a===null)return this;if(this._isFrozen&&yn(this),xn(a))for(var y=a.length,E=0;E<y;E++)this.add(a[E]);else for(a=a.iterator;a.next();)this.add(a.value);return this},Ce.contains=function(a){if(a===null)return!1;var y=a;return zt(a)&&(y=Tr(a),y===void 0)?!1:this.Tb[y]!==void 0},Ce.has=function(a){return this.contains(a)},Ce.Sy=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0},Ce.Ty=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1},Ce.first=function(){var a=this.ea;return a===null?null:a.value},In.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},In.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},In.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y.value),y=y.va;return this},In.prototype.map=function(a){for(var y=new In,E=this.ea;E!==null;)y.add(a(E.value)),E=E.va;return y},In.prototype.filter=function(a){for(var y=new In,E=this.ea;E!==null;){var x=E.value;a(x)&&y.add(x),E=E.va}return y},Ce=In.prototype,Ce.remove=function(a){if(a===null)return!1;this._isFrozen&&yn(this,a);var y=a;if(zt(a)&&(y=Tr(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var E=a.va,x=a.ll;return E!==null&&(E.ll=x),x!==null&&(x.va=E),this.ea===a&&(this.ea=E),this.kf===a&&(this.kf=x),delete this.Tb[y],this.Sb--,this.xb(),!0},Ce.delete=function(a){return this.remove(a)},Ce.hp=function(a){if(a===null)return this;if(this._isFrozen&&yn(this),xn(a))for(var y=a.length,E=0;E<y;E++)this.remove(a[E]);else for(a=a.iterator;a.next();)this.remove(a.value);return this},Ce.pA=function(a){if(a===null||this.count===0)return this;this._isFrozen&&yn(this);var y=new In;y.addAll(a),a=[];for(var E=this.iterator;E.next();){var x=E.value;y.contains(x)||a.push(x)}return this.hp(a),this},Ce.clear=function(){this._isFrozen&&yn(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},In.prototype.copy=function(){var a=new In,y=this.Tb,E;for(E in y)a.add(y[E].value);return a},In.prototype.Fa=function(){var a=Array(this.Sb),y=this.Tb,E=0,x;for(x in y)a[E]=y[x].value,E++;return a},In.prototype.Hv=function(){var a=new Fn,y=this.Tb,E;for(E in y)a.add(y[E].value);return a};function wr(a){a.__gohashid=mo++}function Cr(a){var y=a.__gohashid;return y===void 0&&(y=mo++,a.__gohashid=y),y}function Tr(a){return a.__gohashid}It.Object.defineProperties(In.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return Sr;var a=this.Sa;return a!==null?(a.reset(),a):new dr(this)}}}),In.prototype.toList=In.prototype.Hv,In.prototype.toArray=In.prototype.Fa,In.prototype.clear=In.prototype.clear,In.prototype.retainAll=In.prototype.pA,In.prototype.removeAll=In.prototype.hp,In.prototype.delete=In.prototype.delete,In.prototype.remove=In.prototype.remove,In.prototype.first=In.prototype.first,In.prototype.containsAny=In.prototype.Ty,In.prototype.containsAll=In.prototype.Sy,In.prototype.has=In.prototype.has,In.prototype.contains=In.prototype.contains,In.prototype.addAll=In.prototype.addAll,In.prototype.add=In.prototype.add,In.prototype.thaw=In.prototype.ka,In.prototype.freeze=In.prototype.freeze;var mo=1;In.className="Set",In.uniqueHash=wr,In.hashIdUnique=Cr,In.hashId=Tr;function ao(a){this.ma=a,this.qa=a.Ja,this.sa=null}ao.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},ao.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=this.key=a=y.key,!0):(this.de(),!1)},ao.prototype.Ad=function(){return this.next()},ao.prototype.first=function(){var a=this.ma;return this.qa=a.Ja,a=a.ea,a!==null?(this.sa=a,this.value=this.key=a=a.key):null},ao.prototype.any=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},ao.prototype.all=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},ao.prototype.each=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;)a(y.key),y=y.va;return this},ao.prototype.map=function(a){var y=this.ma;this.sa=null;var E=new Fn;for(y=y.ea;y!==null;)E.add(a(y.key)),y=y.va;return E.iterator},ao.prototype.filter=function(a){var y=this.ma;this.sa=null;var E=new Fn;for(y=y.ea;y!==null;){var x=y.key;a(x)&&E.add(x),y=y.va}return E.iterator},ao.prototype.de=function(){this.value=this.key=null,this.qa=-1},ao.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},It.Object.defineProperties(ao.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),ao.prototype.first=ao.prototype.first,ao.prototype.hasNext=ao.prototype.Ad,ao.prototype.next=ao.prototype.next,ao.prototype.reset=ao.prototype.reset,ao.className="MapKeySetIterator";function Wr(a){In.call(this),wr(this),this._isFrozen=!0,this.ma=a}Ut(Wr,In),Ce=Wr.prototype,Ce.freeze=function(){return this},Ce.ka=function(){return this},Ce.toString=function(){return"MapKeySet("+this.ma.toString()+")"},Ce.add=function(){pt("This Set is read-only: "+this.toString())},Ce.contains=function(a){return this.ma.contains(a)},Ce.has=function(a){return this.contains(a)},Ce.remove=function(){pt("This Set is read-only: "+this.toString())},Ce.delete=function(a){return this.remove(a)},Ce.clear=function(){pt("This Set is read-only: "+this.toString())},Ce.first=function(){var a=this.ma.ea;return a!==null?a.key:null},Wr.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Wr.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Wr.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},Wr.prototype.map=function(a){for(var y=new In,E=this.ma.ea;E!==null;)y.add(a(E.key)),E=E.va;return y},Wr.prototype.filter=function(a){for(var y=new In,E=this.ma.ea;E!==null;){var x=E.key;a(x)&&y.add(x),E=E.va}return y},Wr.prototype.copy=function(){return new Wr(this.ma)},Wr.prototype.Iv=function(){var a=new In,y=this.ma.Tb,E;for(E in y)a.add(y[E].key);return a},Wr.prototype.Fa=function(){var a=this.ma.Tb,y=Array(this.ma.Sb),E=0,x;for(x in a)y[E]=a[x].key,E++;return y},Wr.prototype.Hv=function(){var a=new Fn,y=this.ma.Tb,E;for(E in y)a.add(y[E].key);return a},It.Object.defineProperties(Wr.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?Sr:new ao(this.ma)}}}),Wr.prototype.toList=Wr.prototype.Hv,Wr.prototype.toArray=Wr.prototype.Fa,Wr.prototype.toSet=Wr.prototype.Iv,Wr.prototype.first=Wr.prototype.first,Wr.prototype.clear=Wr.prototype.clear,Wr.prototype.delete=Wr.prototype.delete,Wr.prototype.remove=Wr.prototype.remove,Wr.prototype.has=Wr.prototype.has,Wr.prototype.contains=Wr.prototype.contains,Wr.prototype.add=Wr.prototype.add,Wr.prototype.thaw=Wr.prototype.ka,Wr.prototype.freeze=Wr.prototype.freeze,Wr.className="MapKeySet";function Xr(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}Xr.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},Xr.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=y.value,this.key=y.key,!0):(this.de(),!1)},Xr.prototype.Ad=function(){return this.next()},Xr.prototype.first=function(){var a=this.ma;if(this.qa=a.Ja,a=a.ea,a!==null){this.sa=a;var y=a.value;return this.key=a.key,this.value=y}return null},Xr.prototype.any=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},Xr.prototype.all=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},Xr.prototype.each=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;)a(y.value),y=y.va;return this},Xr.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var E=new Fn;for(y=y.ea;y!==null;)E.add(a(y.value)),y=y.va;return E.iterator},Xr.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var E=new Fn;for(y=y.ea;y!==null;){var x=y.value;a(x)&&E.add(x),y=y.va}return E.iterator},Xr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},Xr.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},It.Object.defineProperties(Xr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Xr.prototype.first=Xr.prototype.first,Xr.prototype.hasNext=Xr.prototype.Ad,Xr.prototype.next=Xr.prototype.next,Xr.prototype.reset=Xr.prototype.reset,Xr.className="MapValueSetIterator";function pa(a,y){this.key=a,this.value=y,this.ll=this.va=null}pa.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},pa.className="KeyValuePair";function no(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}no.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},no.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.key=y.key,this.value=y.value,!0):(this.de(),!1)},no.prototype.Ad=function(){return this.next()},no.prototype.first=function(){var a=this.ma;return this.qa=a.Ja,a=a.ea,a!==null?(this.sa=a,this.key=a.key,this.value=a.value,a):null},no.prototype.any=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},no.prototype.all=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},no.prototype.each=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;)a(y),y=y.va;return this},no.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var E=new Fn;for(y=y.ea;y!==null;)E.add(a(y)),y=y.va;return E.iterator},no.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var E=new Fn;for(y=y.ea;y!==null;)a(y)&&E.add(y),y=y.va;return E.iterator},no.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},no.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},It.Object.defineProperties(no.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),no.prototype.first=no.prototype.first,no.prototype.hasNext=no.prototype.Ad,no.prototype.next=no.prototype.next,no.prototype.reset=no.prototype.reset,no.className="MapIterator";function zi(a){wr(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.jf=this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&pt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ce=zi.prototype,Ce.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Ce.freeze=function(){return this._isFrozen=!0,this},Ce.ka=function(){return this._isFrozen=!1,this},Ce.toString=function(){return"Map()#"+Tr(this)},Ce.add=function(a,y){this._isFrozen&&yn(this,a);var E=a;zt(a)&&(E=Cr(a));var x=this.Tb[E];return x===void 0?(this.Sb++,a=new pa(a,y),this.Tb[E]=a,E=this.kf,E===null?this.ea=a:(a.ll=E,E.va=a),this.kf=a,this.xb()):x.value=y,this},Ce.set=function(a,y){return this.add(a,y)},Ce.addAll=function(a){if(a===null)return this;if(xn(a))for(var y=a.length,E=0;E<y;E++){var x=a[E];this.add(x.key,x.value)}else if(a instanceof zi)for(a=a.iterator;a.next();)this.add(a.key,a.value);else for(a=a.iterator;a.next();)y=a.value,this.add(y.key,y.value);return this},Ce.first=function(){return this.ea},zi.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},zi.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},zi.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},zi.prototype.map=function(a){for(var y=new zi,E=this.ea;E!==null;)y.add(E.key,a(E)),E=E.va;return y},zi.prototype.filter=function(a){for(var y=new zi,E=this.ea;E!==null;)a(E)&&y.add(E.key,E.value),E=E.va;return y},Ce=zi.prototype,Ce.contains=function(a){var y=a;return zt(a)&&(y=Tr(a),y===void 0)?!1:this.Tb[y]!==void 0},Ce.has=function(a){return this.contains(a)},Ce.I=function(a){var y=a;return zt(a)&&(y=Tr(a),y===void 0)?null:(a=this.Tb[y],a===void 0?null:a.value)},Ce.get=function(a){return this.I(a)},Ce.remove=function(a){if(a===null)return!1;this._isFrozen&&yn(this,a);var y=a;if(zt(a)&&(y=Tr(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var E=a.va,x=a.ll;return E!==null&&(E.ll=x),x!==null&&(x.va=E),this.ea===a&&(this.ea=E),this.kf===a&&(this.kf=x),delete this.Tb[y],this.Sb--,this.xb(),!0},Ce.delete=function(a){return this.remove(a)},Ce.clear=function(){this._isFrozen&&yn(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.jf!==null&&this.jf.reset(),this.kf=this.ea=null,this.xb()},zi.prototype.copy=function(){var a=new zi,y=this.Tb,E;for(E in y){var x=y[E];a.add(x.key,x.value)}return a},zi.prototype.Fa=function(){var a=this.Tb,y=Array(this.Sb),E=0,x;for(x in a){var b=a[x];y[E]=new pa(b.key,b.value),E++}return y},zi.prototype.Lf=function(){return new Wr(this)},It.Object.defineProperties(zi.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return Sr;var a=this.Sa;return a!==null?(a.reset(),a):new no(this)}},iteratorKeys:{get:function(){return 0>=this.count?Sr:new ao(this)}},iteratorValues:{get:function(){if(0>=this.count)return Sr;var a=this.jf;return a!==null?(a.reset(),a):new Xr(this)}}}),zi.prototype.toKeySet=zi.prototype.Lf,zi.prototype.toArray=zi.prototype.Fa,zi.prototype.clear=zi.prototype.clear,zi.prototype.delete=zi.prototype.delete,zi.prototype.remove=zi.prototype.remove,zi.prototype.get=zi.prototype.get,zi.prototype.getValue=zi.prototype.I,zi.prototype.has=zi.prototype.has,zi.prototype.contains=zi.prototype.contains,zi.prototype.first=zi.prototype.first,zi.prototype.addAll=zi.prototype.addAll,zi.prototype.set=zi.prototype.set,zi.prototype.add=zi.prototype.add,zi.prototype.thaw=zi.prototype.ka,zi.prototype.freeze=zi.prototype.freeze,zi.className="Map";function lt(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):pt("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var Go,Lr,zr,$r,fo;lt.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},lt.prototype.h=function(a,y){return this.x=a,this.y=y,this},lt.prototype.sg=function(a,y){return this.x=a,this.y=y,this},lt.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},lt.prototype.copy=function(){var a=new lt;return a.x=this.x,a.y=this.y,a},Ce=lt.prototype,Ce.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ce.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ce.freeze=function(){return this._isFrozen=!0,this},Ce.ka=function(){return Object.isFrozen(this)&&pt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Xi(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,E=0;a[y]==="";)y++;var x=a[y++];x&&(E=parseFloat(x));for(var b=0;a[y]==="";)y++;return(x=a[y++])&&(b=parseFloat(x)),new lt(E,b)}return new lt}function nr(a){return a.x.toString()+" "+a.y.toString()}Ce.toString=function(){return"Point("+this.x+","+this.y+")"},Ce.D=function(a){return a instanceof lt?this.x===a.x&&this.y===a.y:!1},Ce.hi=function(a,y){return this.x===a&&this.y===y},Ce.Xa=function(a){return Bt.B(this.x,a.x)&&Bt.B(this.y,a.y)},Ce.add=function(a){return this.x+=a.x,this.y+=a.y,this},Ce.re=function(a){return this.x-=a.x,this.y-=a.y,this},Ce.offset=function(a,y){return this.x+=a,this.y+=y,this},lt.prototype.rotate=function(a){if(a===0)return this;var y=this.x,E=this.y;if(y===0&&E===0)return this;if(360<=a?a-=360:0>a&&(a+=360),a===90){a=0;var x=1}else a===180?(a=-1,x=0):a===270?(a=0,x=-1):(x=a*Math.PI/180,a=Math.cos(x),x=Math.sin(x));return this.x=a*y-x*E,this.y=x*y+a*E,this},Ce=lt.prototype,Ce.scale=function(a,y){return this.x*=a,this.y*=y,this},Ce.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},Ce.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},Ce.normalize=function(){var a=this.x,y=this.y,E=Math.sqrt(a*a+y*y);return 0<E&&(this.x=a/E,this.y=y/E),this},Ce.ab=function(a){return Ir(a.x-this.x,a.y-this.y)},Ce.direction=function(a,y){return Ir(a-this.x,y-this.y)};function Ir(a,y){if(a===0)return 0<y?90:0>y?270:0;if(y===0)return 0<a?0:180;if(isNaN(a)||isNaN(y))return 0;var E=180*Math.atan(Math.abs(y/a))/Math.PI;return 0>a?E=0>y?E+180:180-E:0>y&&(E=360-E),E}Ce.Ry=function(a,y){return Bt.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},Ce.fA=function(a,y,E,x){return Bt.qh(a,y,E,x,this.x,this.y,this),this},Ce.gA=function(a,y){return Bt.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},Ce.uA=function(a,y,E,x){return Bt.No(this.x,this.y,a,y,E,x,this),this},Ce.vA=function(a,y){return Bt.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},Ce.xi=function(a,y){return this.x=a.x+y.x*a.width+y.offsetX,this.y=a.y+y.y*a.height+y.offsetY,this},Ce.yi=function(a,y,E,x,b){return this.x=a+b.x*E+b.offsetX,this.y=y+b.y*x+b.offsetY,this},Ce.transform=function(a){return a.Ga(this),this};function Ar(a,y){return y.Cd(a),a}function kr(a,y,E,x,b,z){var ee=b-E,re=z-x,oe=ee*ee+re*re;E-=a,x-=y;var ce=-E*ee-x*re;return 0>=ce||ce>=oe?(ee=b-a,re=z-y,Math.min(E*E+x*x,ee*ee+re*re)):(a=ee*x-re*E,a*a/oe)}function Uo(a,y,E,x){return a=E-a,y=x-y,a*a+y*y}function hr(a,y,E,x){return a=E-a,y=x-y,a===0?0<y?90:0>y?270:0:y===0?0<a?0:180:isNaN(a)||isNaN(y)?0:(x=180*Math.atan(Math.abs(y/a))/Math.PI,0>a?x=0>y?x+180:180-x:0>y&&(x=360-x),x)}Ce.w=function(){return isFinite(this.x)&&isFinite(this.y)},lt.alloc=function(){var a=ar.pop();return a===void 0?new lt:a},lt.allocAt=function(a,y){var E=ar.pop();return E===void 0?new lt(a,y):(E.x=a,E.y=y,E)},lt.free=function(a){ar.push(a)},lt.prototype.isReal=lt.prototype.w,lt.prototype.setSpot=lt.prototype.yi,lt.prototype.setRectSpot=lt.prototype.xi,lt.prototype.snapToGridPoint=lt.prototype.vA,lt.prototype.snapToGrid=lt.prototype.uA,lt.prototype.projectOntoLineSegmentPoint=lt.prototype.gA,lt.prototype.projectOntoLineSegment=lt.prototype.fA,lt.intersectingLineSegments=function(a,y,E,x,b,z,ee,re){return Bt.Rl(a,y,E,x,b,z,ee,re)},lt.prototype.compareWithLineSegmentPoint=lt.prototype.Ry,lt.compareWithLineSegment=function(a,y,E,x,b,z){return Bt.Fl(a,y,E,x,b,z)},lt.prototype.direction=lt.prototype.direction,lt.prototype.directionPoint=lt.prototype.ab,lt.prototype.normalize=lt.prototype.normalize,lt.prototype.distanceSquared=lt.prototype.zd,lt.prototype.distanceSquaredPoint=lt.prototype.Bf,lt.prototype.scale=lt.prototype.scale,lt.prototype.rotate=lt.prototype.rotate,lt.prototype.offset=lt.prototype.offset,lt.prototype.subtract=lt.prototype.re,lt.prototype.add=lt.prototype.add,lt.prototype.equalsApprox=lt.prototype.Xa,lt.prototype.equalTo=lt.prototype.hi,lt.prototype.equals=lt.prototype.D,lt.prototype.set=lt.prototype.set,lt.prototype.setTo=lt.prototype.sg;var ar=[];lt.className="Point",lt.parse=Xi,lt.stringify=nr,lt.distanceLineSegmentSquared=kr,lt.distanceSquared=Uo,lt.direction=hr,lt.Origin=Go=new lt(0,0).ja(),lt.InfiniteTopLeft=Lr=new lt(-1/0,-1/0).ja(),lt.InfiniteBottomRight=zr=new lt(1/0,1/0).ja(),lt.SixPoint=$r=new lt(6,6).ja(),lt.NoPoint=fo=new lt(NaN,NaN).ja(),lt.parse=Xi,lt.stringify=nr,lt.distanceLineSegmentSquared=kr,lt.distanceSquared=Uo,lt.direction=hr;function ri(a,y){a===void 0?this.height=this.width=0:typeof a=="number"&&(0<=a||isNaN(a))&&typeof y=="number"&&(0<=y||isNaN(y))?(this.width=a,this.height=y):pt("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var Ji,Zr,jo,Do,Ao,Ho,Po;ri.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},ri.prototype.h=function(a,y){return this.width=a,this.height=y,this},ri.prototype.sg=function(a,y){return this.width=a,this.height=y,this},ri.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},ri.prototype.copy=function(){var a=new ri;return a.width=this.width,a.height=this.height,a},Ce=ri.prototype,Ce.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ce.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ce.freeze=function(){return this._isFrozen=!0,this},Ce.ka=function(){return Object.isFrozen(this)&&pt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Sa(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,E=0;a[y]==="";)y++;var x=a[y++];x&&(E=parseFloat(x));for(var b=0;a[y]==="";)y++;return(x=a[y++])&&(b=parseFloat(x)),new ri(E,b)}return new ri}function aa(a){return a.width.toString()+" "+a.height.toString()}Ce.toString=function(){return"Size("+this.width+","+this.height+")"},Ce.D=function(a){return a instanceof ri?this.width===a.width&&this.height===a.height:!1},Ce.hi=function(a,y){return this.width===a&&this.height===y},Ce.Xa=function(a){return Bt.B(this.width,a.width)&&Bt.B(this.height,a.height)},Ce.Bc=function(a,y){return a=this.width+a,this.width=0<=a?a:0,y=this.height+y,this.height=0<=y?y:0,this},Ce.w=function(){return isFinite(this.width)&&isFinite(this.height)},ri.alloc=function(){var a=es.pop();return a===void 0?new ri:a},ri.free=function(a){es.push(a)},ri.prototype.isReal=ri.prototype.w,ri.prototype.inflate=ri.prototype.Bc,ri.prototype.equalsApprox=ri.prototype.Xa,ri.prototype.equalTo=ri.prototype.hi,ri.prototype.equals=ri.prototype.D,ri.prototype.set=ri.prototype.set,ri.prototype.setTo=ri.prototype.sg;var es=[];ri.className="Size",ri.parse=Sa,ri.stringify=aa,ri.ZeroSize=Ji=new ri(0,0).ja(),ri.OneSize=Zr=new ri(1,1).ja(),ri.SixSize=jo=new ri(6,6).ja(),ri.EightSize=Do=new ri(8,8).ja(),ri.TenSize=Ao=new ri(10,10).ja(),ri.InfiniteSize=Ho=new ri(1/0,1/0).ja(),ri.NoSize=Po=new ri(NaN,NaN).ja(),ri.parse=Sa,ri.stringify=aa;function hn(a,y,E,x){a===void 0?this.height=this.width=this.y=this.x=0:typeof a=="number"&&typeof y=="number"&&typeof E=="number"&&(0<=E||isNaN(E))&&typeof x=="number"&&(0<=x||isNaN(x))?(this.x=a,this.y=y,this.width=E,this.height=x):a instanceof lt?(E=a.x,a=a.y,y instanceof lt?(x=y.x,y=y.y,this.x=Math.min(E,x),this.y=Math.min(a,y),this.width=Math.abs(E-x),this.height=Math.abs(a-y)):y instanceof ri?(this.x=E,this.y=a,this.width=y.width,this.height=y.height):pt("Incorrect second argument supplied to Rect constructor "+y)):pt("Invalid arguments to Rect constructor: "+a+", "+y+", "+E+", "+x),this._isFrozen=!1}Ce=hn.prototype,Ce.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Ce.h=function(a,y,E,x){return this.x=a,this.y=y,this.width=E,this.height=x,this};function ra(a,y,E){a.width=y,a.height=E}Ce.sg=function(a,y,E,x){return this.x=a,this.y=y,this.width=E,this.height=x,this},Ce.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Ce.dd=function(a){return this.x=a.x,this.y=a.y,this},Ce.tA=function(a){return this.width=a.width,this.height=a.height,this},hn.prototype.copy=function(){var a=new hn;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},Ce=hn.prototype,Ce.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ce.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ce.freeze=function(){return this._isFrozen=!0,this},Ce.ka=function(){return Object.isFrozen(this)&&pt("cannot thaw constant: "+this),this._isFrozen=!1,this};function kl(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,E=0;a[y]==="";)y++;var x=a[y++];x&&(E=parseFloat(x));for(var b=0;a[y]==="";)y++;(x=a[y++])&&(b=parseFloat(x));for(var z=0;a[y]==="";)y++;(x=a[y++])&&(z=parseFloat(x));for(var ee=0;a[y]==="";)y++;return(x=a[y++])&&(ee=parseFloat(x)),new hn(E,b,z,ee)}return new hn}function Ha(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}Ce.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},Ce.D=function(a){return a instanceof hn?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},Ce.hi=function(a,y,E,x){return this.x===a&&this.y===y&&this.width===E&&this.height===x},Ce.Xa=function(a){return Bt.B(this.x,a.x)&&Bt.B(this.y,a.y)&&Bt.B(this.width,a.width)&&Bt.B(this.height,a.height)};function yl(a,y){return Bt.$(a.x,y.x)&&Bt.$(a.y,y.y)&&Bt.$(a.width,y.width)&&Bt.$(a.height,y.height)}Ce.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},Ce.Re=function(a){return this.x<=a.x&&a.x+a.width<=this.x+this.width&&this.y<=a.y&&a.y+a.height<=this.y+this.height},Ce.contains=function(a,y,E,x){return E===void 0&&(E=0),x===void 0&&(x=0),this.x<=a&&a+E<=this.x+this.width&&this.y<=y&&y+x<=this.y+this.height},Ce.offset=function(a,y){return this.x+=a,this.y+=y,this},Ce.Bc=function(a,y){return Lo(this,y,a,y,a)},Ce.Co=function(a){return Lo(this,a.top,a.right,a.bottom,a.left)},Ce.Fv=function(a){return Lo(this,-a.top,-a.right,-a.bottom,-a.left)},Ce.Hz=function(a,y,E,x){return Lo(this,a,y,E,x)};function Lo(a,y,E,x,b){var z=a.width;return E+b<=-z?(a.x+=z/2,a.width=0):(a.x-=b,a.width+=E+b),E=a.height,y+x<=-E?(a.y+=E/2,a.height=0):(a.y-=y,a.height+=y+x),a}Ce.Ex=function(a){return lu(this,a.x,a.y,a.width,a.height)},Ce.Uu=function(a,y,E,x){return lu(this,a,y,E,x)};function lu(a,y,E,x,b){var z=Math.max(a.x,y),ee=Math.max(a.y,E);return y=Math.min(a.x+a.width,y+x),E=Math.min(a.y+a.height,E+b),a.x=z,a.y=ee,a.width=Math.max(0,y-z),a.height=Math.max(0,E-ee),a}Ce.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},Ce.Vu=function(a,y,E,x){var b=this.width,z=this.x;return b!==1/0&&E!==1/0&&(b+=z,E+=a,isNaN(E)||isNaN(b)||z>E||a>b)?!1:(a=this.height,E=this.y,!(a!==1/0&&x!==1/0&&(a+=E,x+=y,isNaN(x)||isNaN(a)||E>x||y>a)))};function An(a,y){var E=a.width,x=a.x,b=y.x-10;return x>y.width+10+10+b||b>E+x?!1:(E=a.height,a=a.y,x=y.y-10,!(a>y.height+10+10+x||x>E+a))}Ce.Ye=function(a){return zo(this,a.x,a.y,0,0)},Ce.ed=function(a){return zo(this,a.x,a.y,a.width,a.height)},Ce.Kv=function(a,y,E,x){return E===void 0&&(E=0),x===void 0&&(x=0),zo(this,a,y,E,x)};function zo(a,y,E,x,b){var z=Math.min(a.x,y),ee=Math.min(a.y,E);return y=Math.max(a.x+a.width,y+x),E=Math.max(a.y+a.height,E+b),a.x=z,a.y=ee,a.width=y-z,a.height=E-ee,a}Ce.yi=function(a,y,E){return this.x=a-E.offsetX-E.x*this.width,this.y=y-E.offsetY-E.y*this.height,this};function ca(a,y,E,x,b,z,ee,re){return ee===void 0&&(ee=0),re===void 0&&(re=0),a<=b&&b+ee<=a+E&&y<=z&&z+re<=y+x}function sl(a,y,E,x,b,z,ee,re){return a>ee+b||b>E+a?!1:!(y>re+z||z>x+y)}Ce.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Ce.Mz=function(){return this.width===0&&this.height===0},hn.alloc=function(){var a=ps.pop();return a===void 0?new hn:a},hn.allocAt=function(a,y,E,x){var b=ps.pop();return b===void 0?new hn(a,y,E,x):b.h(a,y,E,x)},hn.free=function(a){ps.push(a)},It.Object.defineProperties(hn.prototype,{left:{get:function(){return this.x},set:function(a){this.x=a}},top:{get:function(){return this.y},set:function(a){this.y=a}},right:{get:function(){return this.x+this.width},set:function(a){this.x+=a-(this.x+this.width)}},bottom:{get:function(){return this.y+this.height},set:function(a){this.y+=a-(this.y+this.height)}},position:{get:function(){return new lt(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new ri(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new lt(this.x+this.width/2,this.y+this.height/2)},set:function(a){this.x=a.x-this.width/2,this.y=a.y-this.height/2}},centerX:{get:function(){return this.x+this.width/2},set:function(a){this.x=a-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(a){this.y=a-this.height/2}}}),hn.prototype.isEmpty=hn.prototype.Mz,hn.prototype.isReal=hn.prototype.w,hn.intersectsLineSegment=function(a,y,E,x,b,z,ee,re){return Bt.Fx(a,y,E,x,b,z,ee,re)},hn.prototype.setSpot=hn.prototype.yi,hn.prototype.union=hn.prototype.Kv,hn.prototype.unionRect=hn.prototype.ed,hn.prototype.unionPoint=hn.prototype.Ye,hn.prototype.intersects=hn.prototype.Vu,hn.prototype.intersectsRect=hn.prototype.Yc,hn.prototype.intersect=hn.prototype.Uu,hn.prototype.intersectRect=hn.prototype.Ex,hn.prototype.grow=hn.prototype.Hz,hn.prototype.subtractMargin=hn.prototype.Fv,hn.prototype.addMargin=hn.prototype.Co,hn.prototype.inflate=hn.prototype.Bc,hn.prototype.offset=hn.prototype.offset,hn.prototype.contains=hn.prototype.contains,hn.prototype.containsRect=hn.prototype.Re,hn.prototype.containsPoint=hn.prototype.ca,hn.prototype.equalsApprox=hn.prototype.Xa,hn.prototype.equalTo=hn.prototype.hi,hn.prototype.equals=hn.prototype.D,hn.prototype.setSize=hn.prototype.tA,hn.prototype.setPoint=hn.prototype.dd,hn.prototype.set=hn.prototype.set,hn.prototype.setTo=hn.prototype.sg;var Ga=null,Xs=null,ps=[];hn.className="Rect",hn.parse=kl,hn.stringify=Ha,hn.contains=ca,hn.intersects=sl,hn.ZeroRect=Ga=new hn(0,0,0,0).ja(),hn.NoRect=Xs=new hn(NaN,NaN,NaN,NaN).ja(),hn.parse=kl,hn.stringify=Ha,hn.contains=ca,hn.intersects=sl;function cr(a,y,E,x){a===void 0?this.left=this.bottom=this.right=this.top=0:y===void 0?this.left=this.bottom=this.right=this.top=a:E===void 0?(this.top=a,this.right=y,this.bottom=a,this.left=y):x!==void 0?(this.top=a,this.right=y,this.bottom=E,this.left=x):pt("Invalid arguments to Margin constructor: "+a+", "+y+", "+E+", "+x),this._isFrozen=!1}cr.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},cr.prototype.sg=function(a,y,E,x){return this.top=a,this.right=y,this.bottom=E,this.left=x,this},cr.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},cr.prototype.copy=function(){var a=new cr;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},Ce=cr.prototype,Ce.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ce.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ce.freeze=function(){return this._isFrozen=!0,this},Ce.ka=function(){return Object.isFrozen(this)&&pt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Pa(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,E=NaN;a[y]==="";)y++;var x=a[y++];if(x&&(E=parseFloat(x)),isNaN(E))return new cr;for(var b=NaN;a[y]==="";)y++;if((x=a[y++])&&(b=parseFloat(x)),isNaN(b))return new cr(E);for(var z=NaN;a[y]==="";)y++;if((x=a[y++])&&(z=parseFloat(x)),isNaN(z))return new cr(E,b);for(var ee=NaN;a[y]==="";)y++;return(x=a[y++])&&(ee=parseFloat(x)),isNaN(ee)?new cr(E,b):new cr(E,b,z,ee)}return new cr}function Dl(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}Ce.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},Ce.D=function(a){return a instanceof cr?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},Ce.hi=function(a,y,E,x){return this.top===a&&this.right===y&&this.bottom===E&&this.left===x},Ce.Xa=function(a){return Bt.B(this.top,a.top)&&Bt.B(this.right,a.right)&&Bt.B(this.bottom,a.bottom)&&Bt.B(this.left,a.left)},Ce.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},cr.alloc=function(){var a=so.pop();return a===void 0?new cr:a},cr.free=function(a){so.push(a)},cr.prototype.isReal=cr.prototype.w,cr.prototype.equalsApprox=cr.prototype.Xa,cr.prototype.equalTo=cr.prototype.hi,cr.prototype.equals=cr.prototype.D,cr.prototype.set=cr.prototype.set,cr.prototype.setTo=cr.prototype.sg;var is=null,Kr=null,so=[];cr.className="Margin",cr.parse=Pa,cr.stringify=Dl,cr.ZeroMargin=is=new cr(0,0,0,0).ja(),cr.TwoMargin=Kr=new cr(2,2,2,2).ja(),cr.parse=Pa,cr.stringify=Dl;function Yt(a,y,E,x){a===void 0?this.offsetY=this.offsetX=this.y=this.x=0:(y===void 0&&(y=0),E===void 0&&(E=0),x===void 0&&(x=0),this.x=a,this.y=y,this.offsetX=E,this.offsetY=x),this._isFrozen=!1}var Pi,Ki,xr,Qr,Yr,ur,yo,Jo,Io,Wo,oa,ms,Zo,Aa,Sl,ll,vs,ul,Ol,cs,Ts,Ds,Hu,xc,bc,Ca,ad,wc,oc,Gu,rs,ds,_a,Ya,Yo,xo;Yt.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},Yt.prototype.sg=function(a,y,E,x){return this.x=a,this.y=y,this.offsetX=E,this.offsetY=x,this},Yt.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},Yt.prototype.copy=function(){var a=new Yt;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},Ce=Yt.prototype,Ce.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ce.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ce.freeze=function(){return this._isFrozen=!0,this},Ce.ka=function(){return Object.isFrozen(this)&&pt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Fo(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function hs(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return Pi;if(a==="TopLeft")return Ki;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return xr;if(a==="TopRight")return Qr;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return Yr;if(a==="Center")return ur;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return yo;if(a==="BottomLeft")return Jo;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return Io;if(a==="BottomRight")return Wo;if(a==="TopSide")return oa;if(a==="LeftSide")return ms;if(a==="RightSide")return Zo;if(a==="BottomSide")return Aa;if(a==="TopBottomSides")return Sl;if(a==="LeftRightSides")return ll;if(a==="TopLeftSides")return vs;if(a==="TopRightSides")return ul;if(a==="BottomLeftSides")return Ol;if(a==="BottomRightSides")return cs;if(a==="NotTopSide")return Ts;if(a==="NotLeftSide")return Ds;if(a==="NotRightSide")return Hu;if(a==="NotBottomSide")return xc;if(a==="AllSides")return bc;if(a==="Default")return Ca;a=a.split(" ");for(var y=0,E=0;a[y]==="";)y++;var x=a[y++];x!==void 0&&0<x.length&&(E=parseFloat(x));for(var b=0;a[y]==="";)y++;x=a[y++],x!==void 0&&0<x.length&&(b=parseFloat(x));for(var z=0;a[y]==="";)y++;x=a[y++],x!==void 0&&0<x.length&&(z=parseFloat(x));for(var ee=0;a[y]==="";)y++;return x=a[y++],x!==void 0&&0<x.length&&(ee=parseFloat(x)),new Yt(E,b,z,ee)}return new Yt}function La(a){return a.sb()?a.x.toString()+" "+a.y.toString()+" "+a.offsetX.toString()+" "+a.offsetY.toString():a.toString()}Ce.toString=function(){return this.sb()?this.offsetX===0&&this.offsetY===0?"Spot("+this.x+","+this.y+")":"Spot("+this.x+","+this.y+","+this.offsetX+","+this.offsetY+")":this.D(Pi)?"None":this.D(Ki)?"TopLeft":this.D(xr)?"Top":this.D(Qr)?"TopRight":this.D(Yr)?"Left":this.D(ur)?"Center":this.D(yo)?"Right":this.D(Jo)?"BottomLeft":this.D(Io)?"Bottom":this.D(Wo)?"BottomRight":this.D(oa)?"TopSide":this.D(ms)?"LeftSide":this.D(Zo)?"RightSide":this.D(Aa)?"BottomSide":this.D(Sl)?"TopBottomSides":this.D(ll)?"LeftRightSides":this.D(vs)?"TopLeftSides":this.D(ul)?"TopRightSides":this.D(Ol)?"BottomLeftSides":this.D(cs)?"BottomRightSides":this.D(Ts)?"NotTopSide":this.D(Ds)?"NotLeftSide":this.D(Hu)?"NotRightSide":this.D(xc)?"NotBottomSide":this.D(bc)?"AllSides":this.D(Ca)?"Default":"None"},Ce.D=function(a){return a instanceof Yt?(this.x===a.x||isNaN(this.x)&&isNaN(a.x))&&(this.y===a.y||isNaN(this.y)&&isNaN(a.y))&&this.offsetX===a.offsetX&&this.offsetY===a.offsetY:!1},Ce.gv=function(){return new Yt(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},Ce.Hf=function(a){if(!this.$c())return!1;if(!a.$c())if(a.D(ad))a=ms;else if(a.D(wc))a=Zo;else if(a.D(oc))a=oa;else if(a.D(Gu))a=Aa;else return!1;return a=a.offsetY,(this.offsetY&a)===a},Ce.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},Ce.Mc=function(){return isNaN(this.x)||isNaN(this.y)},Ce.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},Ce.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},Ce.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},Yt.alloc=function(){var a=Ka.pop();return a===void 0?new Yt:a},Yt.free=function(a){Ka.push(a)},Yt.prototype.isDefault=Yt.prototype.Xb,Yt.prototype.isNone=Yt.prototype.ys,Yt.prototype.isSide=Yt.prototype.$c,Yt.prototype.isNoSpot=Yt.prototype.Mc,Yt.prototype.isSpot=Yt.prototype.sb,Yt.prototype.includesSide=Yt.prototype.Hf,Yt.prototype.opposite=Yt.prototype.gv,Yt.prototype.equals=Yt.prototype.D,Yt.prototype.set=Yt.prototype.set,Yt.prototype.setTo=Yt.prototype.sg;var Ka=[];Yt.className="Spot",Yt.parse=hs,Yt.stringify=La,Yt.None=Pi=Fo(new Yt(0,0,0,0),0).ja(),Yt.Default=Ca=Fo(new Yt(0,0,-1,0),-1).ja(),Yt.TopLeft=Ki=new Yt(0,0,0,0).ja(),Yt.TopCenter=xr=new Yt(.5,0,0,0).ja(),Yt.TopRight=Qr=new Yt(1,0,0,0).ja(),Yt.LeftCenter=Yr=new Yt(0,.5,0,0).ja(),Yt.Center=ur=new Yt(.5,.5,0,0).ja(),Yt.RightCenter=yo=new Yt(1,.5,0,0).ja(),Yt.BottomLeft=Jo=new Yt(0,1,0,0).ja(),Yt.BottomCenter=Io=new Yt(.5,1,0,0).ja(),Yt.BottomRight=Wo=new Yt(1,1,0,0).ja(),Yt.MiddleTop=rs=xr,Yt.MiddleLeft=ds=Yr,Yt.MiddleRight=_a=yo,Yt.MiddleBottom=Ya=Io,Yt.Top=oc=xr,Yt.Left=ad=Yr,Yt.Right=wc=yo,Yt.Bottom=Gu=Io,Yt.TopSide=oa=Fo(new Yt(0,0,1,1),1).ja(),Yt.LeftSide=ms=Fo(new Yt(0,0,1,2),1).ja(),Yt.RightSide=Zo=Fo(new Yt(0,0,1,4),1).ja(),Yt.BottomSide=Aa=Fo(new Yt(0,0,1,8),1).ja(),Yt.TopBottomSides=Sl=Fo(new Yt(0,0,1,9),1).ja(),Yt.LeftRightSides=ll=Fo(new Yt(0,0,1,6),1).ja(),Yt.TopLeftSides=vs=Fo(new Yt(0,0,1,3),1).ja(),Yt.TopRightSides=ul=Fo(new Yt(0,0,1,5),1).ja(),Yt.BottomLeftSides=Ol=Fo(new Yt(0,0,1,10),1).ja(),Yt.BottomRightSides=cs=Fo(new Yt(0,0,1,12),1).ja(),Yt.NotTopSide=Ts=Fo(new Yt(0,0,1,14),1).ja(),Yt.NotLeftSide=Ds=Fo(new Yt(0,0,1,13),1).ja(),Yt.NotRightSide=Hu=Fo(new Yt(0,0,1,11),1).ja(),Yt.NotBottomSide=xc=Fo(new Yt(0,0,1,7),1).ja(),Yt.AllSides=bc=Fo(new Yt(0,0,1,15),1).ja(),Yo=new Yt(.156,.156).ja(),xo=new Yt(.844,.844).ja(),Yt.parse=hs,Yt.stringify=La;function ir(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}ir.prototype.set=function(a){return this.m11=a.m11,this.m12=a.m12,this.m21=a.m21,this.m22=a.m22,this.dx=a.dx,this.dy=a.dy,this},ir.prototype.setTransform=function(a,y,E,x,b,z){return this.m11=a,this.m12=y,this.m21=E,this.m22=x,this.dx=b,this.dy=z,this},ir.prototype.copy=function(){var a=new ir;return a.m11=this.m11,a.m12=this.m12,a.m21=this.m21,a.m22=this.m22,a.dx=this.dx,a.dy=this.dy,a},ir.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},ir.prototype.D=function(a){return this.m11===a.m11&&this.m12===a.m12&&this.m21===a.m21&&this.m22===a.m22&&this.dx===a.dx&&this.dy===a.dy},ir.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},ir.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},ir.prototype.multiply=function(a){var y=this.m11*a.m11+this.m21*a.m12,E=this.m12*a.m11+this.m22*a.m12,x=this.m11*a.m21+this.m21*a.m22,b=this.m12*a.m21+this.m22*a.m22;return this.dx=this.m11*a.dx+this.m21*a.dy+this.dx,this.dy=this.m12*a.dx+this.m22*a.dy+this.dy,this.m11=y,this.m12=E,this.m21=x,this.m22=b,this},ir.prototype.bv=function(a){var y=1/(a.m11*a.m22-a.m12*a.m21),E=a.m22*y,x=-a.m12*y,b=-a.m21*y,z=a.m11*y,ee=y*(a.m21*a.dy-a.m22*a.dx);return a=y*(a.m12*a.dx-a.m11*a.dy),y=this.m11*E+this.m21*x,E=this.m12*E+this.m22*x,x=this.m11*b+this.m21*z,b=this.m12*b+this.m22*z,this.dx=this.m11*ee+this.m21*a+this.dx,this.dy=this.m12*ee+this.m22*a+this.dy,this.m11=y,this.m12=E,this.m21=x,this.m22=b,this},ir.prototype.Vj=function(){var a=1/(this.m11*this.m22-this.m12*this.m21),y=-this.m12*a,E=-this.m21*a,x=this.m11*a,b=a*(this.m21*this.dy-this.m22*this.dx),z=a*(this.m12*this.dx-this.m11*this.dy);return this.m11=this.m22*a,this.m12=y,this.m21=E,this.m22=x,this.dx=b,this.dy=z,this},ir.prototype.rotate=function(a,y,E){if(360<=a?a-=360:0>a&&(a+=360),a===0)return this;if(this.translate(y,E),a===90){a=0;var x=1}else a===180?(a=-1,x=0):a===270?(a=0,x=-1):(x=a*Math.PI/180,a=Math.cos(x),x=Math.sin(x));var b=this.m12*a+this.m22*x,z=this.m11*-x+this.m21*a,ee=this.m12*-x+this.m22*a;return this.m11=this.m11*a+this.m21*x,this.m12=b,this.m21=z,this.m22=ee,this.translate(-y,-E),this},Ce=ir.prototype,Ce.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},Ce.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},Ce.Ga=function(a){var y=a.x,E=a.y;return a.h(y*this.m11+E*this.m21+this.dx,y*this.m12+E*this.m22+this.dy)},Ce.Cd=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),E=a.x,x=a.y;return a.h(E*this.m22*y+x*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),E*-this.m12*y+x*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},Ce.Eu=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),E=1.25*a.x,x=1.2*a.y;return a.h(E*this.m22*y+x*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),E*-this.m12*y+x*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},Ce.pp=function(a){var y=a.x,E=a.y,x=y+a.width,b=E+a.height,z=this.m11,ee=this.m12,re=this.m21,oe=this.m22,ce=this.dx,he=this.dy,ye=y*z+E*re+ce,Te=y*ee+E*oe+he,Ae=x*z+E*re+ce,ke=x*ee+E*oe+he;return E=y*z+b*re+ce,y=y*ee+b*oe+he,z=x*z+b*re+ce,x=x*ee+b*oe+he,b=Math.min(ye,Ae),ye=Math.max(ye,Ae),Ae=Math.min(Te,ke),Te=Math.max(Te,ke),b=Math.min(b,E),ye=Math.max(ye,E),Ae=Math.min(Ae,y),Te=Math.max(Te,y),b=Math.min(b,z),ye=Math.max(ye,z),Ae=Math.min(Ae,x),Te=Math.max(Te,x),a.h(b,Ae,ye-b,Te-Ae),a},ir.alloc=function(){var a=cl.pop();return a===void 0?new ir:a},ir.free=function(a){cl.push(a)},ir.prototype.transformRect=ir.prototype.pp,ir.prototype.transformPoint=ir.prototype.Ga,ir.prototype.scale=ir.prototype.scale,ir.prototype.translate=ir.prototype.translate,ir.prototype.rotate=ir.prototype.rotate,ir.prototype.invert=ir.prototype.Vj,ir.prototype.multiplyInverted=ir.prototype.bv,ir.prototype.multiply=ir.prototype.multiply,ir.prototype.reset=ir.prototype.reset,ir.prototype.isIdentity=ir.prototype.ws,ir.prototype.equals=ir.prototype.D,ir.prototype.setTransform=ir.prototype.setTransform,ir.prototype.set=ir.prototype.set;var cl=[];ir.className="Transform",ir.xF="54a702f3e53909c447824c6706603faf4c";var Bt={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=Bt.Uv;if(y===null){y=[];for(var E=0;2e3>=E;E++)y[E]=Math.sqrt(E);Bt.Uv=y}return 1>a?(E=1/a,2e3>=E?1/y[E|0]:Math.sqrt(a)):2e3>=a?y[a|0]:Math.sqrt(a)},B:function(a,y){return a-=y,.5>a&&-.5<a},$:function(a,y){return a-=y,5e-8>a&&-5e-8<a},Yb:function(a,y,E,x,b,z,ee){if(0>=b&&(b=1e-6),a<E)var re=a,oe=E;else re=E,oe=a;if(y<x)var ce=y,he=x;else ce=x,he=y;if(a===E)return ce<=ee&&ee<=he&&a-b<=z&&z<=a+b;if(y===x)return re<=z&&z<=oe&&y-b<=ee&&ee<=y+b;if(oe+=b,re-=b,re<=z&&z<=oe&&(he+=b,ce-=b,ce<=ee&&ee<=he))if(oe-re>he-ce)if(a-E>b||E-a>b){if(z=(x-y)/(E-a)*(z-a)+y,z-b<=ee&&ee<=z+b)return!0}else return!0;else if(y-x>b||x-y>b){if(ee=(E-a)/(x-y)*(ee-y)+a,ee-b<=z&&z<=ee+b)return!0}else return!0;return!1},cs:function(a,y,E,x,b,z,ee,re,oe,ce,he,ye){if(Bt.Yb(a,y,ee,re,ye,E,x)&&Bt.Yb(a,y,ee,re,ye,b,z))return Bt.Yb(a,y,ee,re,ye,ce,he);var Te=(a+E)/2,Ae=(y+x)/2,ke=(E+b)/2,He=(x+z)/2;b=(b+ee)/2,z=(z+re)/2,x=(Te+ke)/2,E=(Ae+He)/2,ke=(ke+b)/2,He=(He+z)/2;var dt=(x+ke)/2,tt=(E+He)/2;return Bt.cs(a,y,Te,Ae,x,E,dt,tt,oe,ce,he,ye)||Bt.cs(dt,tt,ke,He,b,z,ee,re,oe,ce,he,ye)},ax:function(a,y,E,x,b,z,ee,re,oe){var ce=(E+b)/2,he=(x+z)/2;return oe.h((((a+E)/2+ce)/2+(ce+(b+ee)/2)/2)/2,(((y+x)/2+he)/2+(he+(z+re)/2)/2)/2),oe},My:function(a,y,E,x,b,z,ee,re){var oe=(E+b)/2,ce=(x+z)/2;return hr(((a+E)/2+oe)/2,((y+x)/2+ce)/2,(oe+(b+ee)/2)/2,(ce+(z+re)/2)/2)},Dl:function(a,y,E,x,b,z,ee,re,oe,ce){if(Bt.Yb(a,y,ee,re,oe,E,x)&&Bt.Yb(a,y,ee,re,oe,b,z))zo(ce,a,y,0,0),zo(ce,ee,re,0,0);else{var he=(a+E)/2,ye=(y+x)/2,Te=(E+b)/2,Ae=(x+z)/2;b=(b+ee)/2,z=(z+re)/2,x=(he+Te)/2,E=(ye+Ae)/2,Te=(Te+b)/2,Ae=(Ae+z)/2;var ke=(x+Te)/2,He=(E+Ae)/2;Bt.Dl(a,y,he,ye,x,E,ke,He,oe,ce),Bt.Dl(ke,He,Te,Ae,b,z,ee,re,oe,ce)}return ce},Qe:function(a,y,E,x,b,z,ee,re,oe,ce){if(Bt.Yb(a,y,ee,re,oe,E,x)&&Bt.Yb(a,y,ee,re,oe,b,z))ce.length===0&&(ce.push(a),ce.push(y)),ce.push(ee),ce.push(re);else{var he=(a+E)/2,ye=(y+x)/2,Te=(E+b)/2,Ae=(x+z)/2;b=(b+ee)/2,z=(z+re)/2,x=(he+Te)/2,E=(ye+Ae)/2,Te=(Te+b)/2,Ae=(Ae+z)/2;var ke=(x+Te)/2,He=(E+Ae)/2;Bt.Qe(a,y,he,ye,x,E,ke,He,oe,ce),Bt.Qe(ke,He,Te,Ae,b,z,ee,re,oe,ce)}return ce},jv:function(a,y,E,x,b,z,ee,re,oe,ce){if(Bt.Yb(a,y,b,z,ce,E,x))return Bt.Yb(a,y,b,z,ce,re,oe);var he=(a+E)/2,ye=(y+x)/2;E=(E+b)/2,x=(x+z)/2;var Te=(he+E)/2,Ae=(ye+x)/2;return Bt.jv(a,y,he,ye,Te,Ae,ee,re,oe,ce)||Bt.jv(Te,Ae,E,x,b,z,ee,re,oe,ce)},OA:function(a,y,E,x,b,z,ee){return ee.h(((a+E)/2+(E+b)/2)/2,((y+x)/2+(x+z)/2)/2),ee},iv:function(a,y,E,x,b,z,ee,re){if(Bt.Yb(a,y,b,z,ee,E,x))zo(re,a,y,0,0),zo(re,b,z,0,0);else{var oe=(a+E)/2,ce=(y+x)/2;E=(E+b)/2,x=(x+z)/2;var he=(oe+E)/2,ye=(ce+x)/2;Bt.iv(a,y,oe,ce,he,ye,ee,re),Bt.iv(he,ye,E,x,b,z,ee,re)}return re},ep:function(a,y,E,x,b,z,ee,re){if(Bt.Yb(a,y,b,z,ee,E,x))re.length===0&&(re.push(a),re.push(y)),re.push(b),re.push(z);else{var oe=(a+E)/2,ce=(y+x)/2;E=(E+b)/2,x=(x+z)/2;var he=(oe+E)/2,ye=(ce+x)/2;Bt.ep(a,y,oe,ce,he,ye,ee,re),Bt.ep(he,ye,E,x,b,z,ee,re)}return re},Eo:function(a,y,E,x,b,z,ee,re,oe,ce,he,ye,Te,Ae){if(Bt.Yb(a,y,ee,re,Te,E,x)&&Bt.Yb(a,y,ee,re,Te,b,z))return!Bt.Rl(a,y,ee,re,oe,ce,he,ye)||(Te=(a-ee)*(ce-ye)-(y-re)*(oe-he),Te===0)?!1:(Ae.h(((a*re-y*ee)*(oe-he)-(a-ee)*(oe*ye-ce*he))/Te,((a*re-y*ee)*(ce-ye)-(y-re)*(oe*ye-ce*he))/Te),!0);var ke=(a+E)/2,He=(y+x)/2,dt=(E+b)/2,tt=(x+z)/2;b=(b+ee)/2,z=(z+re)/2,x=(ke+dt)/2,E=(He+tt)/2,dt=(dt+b)/2,tt=(tt+z)/2;var gt=(x+dt)/2,yt=(E+tt)/2,bt=1/0,kt=!1,Kt=0,di=0;return Bt.Eo(a,y,ke,He,x,E,gt,yt,oe,ce,he,ye,Te,Ae)&&(a=(Ae.x-oe)*(Ae.x-oe)+(Ae.y-ce)*(Ae.y-ce),a<bt&&(bt=a,kt=!0,Kt=Ae.x,di=Ae.y)),Bt.Eo(gt,yt,dt,tt,b,z,ee,re,oe,ce,he,ye,Te,Ae)&&(Ae.x-oe)*(Ae.x-oe)+(Ae.y-ce)*(Ae.y-ce)<bt&&(kt=!0,Kt=Ae.x,di=Ae.y),kt&&(Ae.x=Kt,Ae.y=di),kt},Fo:function(a,y,E,x,b,z,ee,re,oe,ce,he,ye,Te){var Ae=0;if(Bt.Yb(a,y,ee,re,Te,E,x)&&Bt.Yb(a,y,ee,re,Te,b,z)){if(Te=(a-ee)*(ce-ye)-(y-re)*(oe-he),Te===0)return Ae;var ke=((a*re-y*ee)*(oe-he)-(a-ee)*(oe*ye-ce*he))/Te,He=((a*re-y*ee)*(ce-ye)-(y-re)*(oe*ye-ce*he))/Te;if(ke>=he)return Ae;if((oe>he?oe-he:he-oe)<(ce>ye?ce-ye:ye-ce)){if(y<re?(oe=y,a=re):(oe=re,a=y),He<oe||He>a)return Ae}else if(a<ee?(oe=a,a=ee):oe=ee,ke<oe||ke>a)return Ae;0<Te?Ae++:0>Te&&Ae--}else{ke=(a+E)/2,He=(y+x)/2;var dt=(E+b)/2,tt=(x+z)/2;b=(b+ee)/2,z=(z+re)/2,x=(ke+dt)/2,E=(He+tt)/2,dt=(dt+b)/2,tt=(tt+z)/2;var gt=(x+dt)/2,yt=(E+tt)/2;Ae+=Bt.Fo(a,y,ke,He,x,E,gt,yt,oe,ce,he,ye,Te),Ae+=Bt.Fo(gt,yt,dt,tt,b,z,ee,re,oe,ce,he,ye,Te)}return Ae},qh:function(a,y,E,x,b,z,ee){return Bt.$(a,E)?(y<x?(E=y,y=x):E=x,z<E?(ee.h(a,E),!1):z>y?(ee.h(a,y),!1):(ee.h(a,z),!0)):Bt.$(y,x)?(a<E?(x=a,a=E):x=E,b<x?(ee.h(x,y),!1):b>a?(ee.h(a,y),!1):(ee.h(b,y),!0)):(b=((a-b)*(a-E)+(y-z)*(y-x))/((E-a)*(E-a)+(x-y)*(x-y)),-5e-6>b?(ee.h(a,y),!1):1.000005<b?(ee.h(E,x),!1):(ee.h(a+b*(E-a),y+b*(x-y)),!0))},Ve:function(a,y,E,x,b,z,ee,re,oe){return Bt.B(a,E)&&Bt.B(y,x)?(oe.h(a,y),!1):Bt.$(b,ee)?Bt.$(a,E)?(Bt.qh(a,y,E,x,b,z,oe),!1):Bt.qh(a,y,E,x,b,(x-y)/(E-a)*(b-a)+y,oe):(re=(re-z)/(ee-b),Bt.$(a,E)?(E=re*(a-b)+z,y<x?(b=y,y=x):b=x,E<b?(oe.h(a,b),!1):E>y?(oe.h(a,y),!1):(oe.h(a,E),!0)):(ee=(x-y)/(E-a),Bt.$(re,ee)?(Bt.qh(a,y,E,x,b,z,oe),!1):(b=(ee*a-re*b+z-y)/(ee-re),Bt.$(ee,0)?(a<E?(x=a,a=E):x=E,b<x?(oe.h(x,y),!1):b>a?(oe.h(a,y),!1):(oe.h(b,y),!0)):Bt.qh(a,y,E,x,b,ee*(b-a)+y,oe))))},MA:function(a,y,E,x,b){return Bt.Ve(E.x,E.y,x.x,x.y,a.x,a.y,y.x,y.y,b)},KA:function(a,y,E,x,b,z,ee,re,oe,ce){function he(dt,tt){var gt=(dt-a)*(dt-a)+(tt-y)*(tt-y);gt<ye&&(ye=gt,oe.h(dt,tt))}var ye=1/0;he(oe.x,oe.y);var Te=0,Ae=0,ke=0,He=0;if(b<ee?(Te=b,Ae=ee):(Te=ee,Ae=b),z<re?(ke=b,He=ee):(ke=ee,He=b),Te=(Ae-Te)/2+ce,ce=(He-ke)/2+ce,b=(b+ee)/2,z=(z+re)/2,Te===0||ce===0)return oe;if(.5>(E>a?E-a:a-E)){if(Te=1-(E-b)*(E-b)/(Te*Te),0>Te)return oe;Te=Math.sqrt(Te),x=-ce*Te+z,he(E,ce*Te+z),he(E,x)}else{if(E=(x-y)/(E-a),x=1/(Te*Te)+E*E/(ce*ce),re=2*E*(y-E*a)/(ce*ce)-2*E*z/(ce*ce)-2*b/(Te*Te),Te=re*re-4*x*(2*E*a*z/(ce*ce)-2*y*z/(ce*ce)+z*z/(ce*ce)+b*b/(Te*Te)-1+(y-E*a)*(y-E*a)/(ce*ce)),0>Te)return oe;Te=Math.sqrt(Te),ce=(-re+Te)/(2*x),he(ce,E*ce-E*a+y),Te=(-re-Te)/(2*x),he(Te,E*Te-E*a+y)}return oe},Ff:function(a,y,E,x,b,z,ee,re,oe){var ce=1e21,he=a,ye=y;if(Bt.Ve(a,y,a,x,b,z,ee,re,oe)){var Te=(oe.x-b)*(oe.x-b)+(oe.y-z)*(oe.y-z);Te<ce&&(ce=Te,he=oe.x,ye=oe.y)}return Bt.Ve(E,y,E,x,b,z,ee,re,oe)&&(Te=(oe.x-b)*(oe.x-b)+(oe.y-z)*(oe.y-z),Te<ce&&(ce=Te,he=oe.x,ye=oe.y)),Bt.Ve(a,y,E,y,b,z,ee,re,oe)&&(y=(oe.x-b)*(oe.x-b)+(oe.y-z)*(oe.y-z),y<ce&&(ce=y,he=oe.x,ye=oe.y)),Bt.Ve(a,x,E,x,b,z,ee,re,oe)&&(a=(oe.x-b)*(oe.x-b)+(oe.y-z)*(oe.y-z),a<ce&&(ce=a,he=oe.x,ye=oe.y)),oe.h(he,ye),1e21>ce},us:function(a,y,E){return Bt.Fx(a.x,a.y,a.width,a.height,y.x,y.y,E.x,E.y)},Fx:function(a,y,E,x,b,z,ee,re){var oe=a+E,ce=y+x;return b===ee?(z<re?(ee=z,z=re):ee=re,a<=b&&b<=oe&&ee<=ce&&z>=y):z===re?(b<ee?(re=b,b=ee):re=ee,y<=z&&z<=ce&&re<=oe&&b>=a):!!(ca(a,y,E,x,b,z)||ca(a,y,E,x,ee,re)||Bt.Rl(a,y,oe,y,b,z,ee,re)||Bt.Rl(oe,y,oe,ce,b,z,ee,re)||Bt.Rl(oe,ce,a,ce,b,z,ee,re)||Bt.Rl(a,ce,a,y,b,z,ee,re))},Rl:function(a,y,E,x,b,z,ee,re){return a===E&&y===x&&b===ee&&z===re?a===b&&y===z:0>=Bt.Fl(a,y,E,x,b,z)*Bt.Fl(a,y,E,x,ee,re)&&0>=Bt.Fl(b,z,ee,re,a,y)*Bt.Fl(b,z,ee,re,E,x)},Fl:function(a,y,E,x,b,z){return E-=a,x-=y,a=b-a,y=z-y,z=a*x-y*E,z===0&&(z=a*E+y*x,0<z&&(z=(a-E)*E+(y-x)*x,0>z&&(z=0))),z},bp:function(a){return 0>a&&(a+=360),360<=a&&(a-=360),a},jx:function(a,y,E,x,b,z){var ee=Math.PI;z||(x*=ee/180,b*=ee/180);var re=x>b?-1:1;z=[];var oe=ee/2,ce=x;if(x=Math.min(2*ee,Math.abs(b-x)),1e-5>x)return oe=ce+re*Math.min(x,oe),re=a+E*Math.cos(ce),ce=y+E*Math.sin(ce),a+=E*Math.cos(oe),y+=E*Math.sin(oe),E=(re+a)/2,oe=(ce+y)/2,z.push([re,ce,E,oe,E,oe,a,y]),z;for(;1e-5<x;)b=ce+re*Math.min(x,oe),z.push(Bt.Vy(E,ce,b,a,y)),x-=Math.abs(b-ce),ce=b;return z},Vy:function(a,y,E,x,b){var z=(E-y)/2,ee=a*Math.cos(z),re=a*Math.sin(z),oe=-re,ce=ee*ee+oe*oe,he=ce+ee*ee+oe*re;return ce=4/3*(Math.sqrt(2*ce*he)-he)/(ee*re-oe*ee),re=ee-ce*oe,ee=oe+ce*ee,oe=-ee,ce=z+y,z=Math.cos(ce),ce=Math.sin(ce),[x+a*Math.cos(y),b+a*Math.sin(y),x+re*z-ee*ce,b+re*ce+ee*z,x+re*z-oe*ce,b+re*ce+oe*z,x+a*Math.cos(E),b+a*Math.sin(E)]},No:function(a,y,E,x,b,z,ee){E=Math.floor((a-E)/b)*b+E,x=Math.floor((y-x)/z)*z+x;var re=E;return E+b-a<b/2&&(re=E+b),a=x,x+z-y<z/2&&(a=x+z),ee.h(re,a),ee},vx:function(a,y){var E=Math.max(a,y);a=Math.min(a,y);var x;do y=E%a,E=x=a,a=y;while(0<y);return x},$y:function(a,y,E,x){var b=0>E,z=0>x;if(a<y)var ee=1,re=0;else ee=0,re=1;var oe=ee===0?a:y,ce=ee===0?E:x;return(ee===0?b:z)&&(ce=-ce),ee=re,E=ee===0?E:x,(ee===0?b:z)&&(E=-E),Bt.az(oe,ee===0?a:y,ce,E,0,0)},az:function(a,y,E,x,b,z){if(0<x)if(0<E){b=a*a,z=y*y,a*=E;var ee=y*x,re=-z+ee,oe=-z+Math.sqrt(a*a+ee*ee);y=re;for(var ce=0;9999999999>ce&&(y=.5*(re+oe),!(y===re||y===oe));++ce){var he=a/(y+b),ye=ee/(y+z);if(he=he*he+ye*ye-1,0<he)re=y;else if(0>he)oe=y;else break}E=b*E/(y+b)-E,x=z*x/(y+z)-x,E=Math.sqrt(E*E+x*x)}else E=Math.abs(x-y);else x=a*a-y*y,z=a*E,z<x?(x=z/x,z=y*Math.sqrt(Math.abs(1-x*x)),E=a*x-E,E=Math.sqrt(E*E+z*z)):E=Math.abs(E-a);return E},Ze:new ji,um:new ji,Mf:new ji,Nf:0,vm:100};Bt.za=Bt.AA;function Kn(a){wr(this),this.l=2,a===void 0&&(a=Kn.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===Kn.o?this.ee=new Fn:(Kn.V===null&&(Kn.V=new Fn().freeze()),this.ee=Kn.V),this.aq=this.ee.Ja,this.Ip=new hn().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=Ki,this.gg=Wo,this.Rk=this.Sk=NaN,this.Uf=Hn}Kn.prototype.copy=function(){var a=new Kn;if(a.l=this.l&-2,a.na=this.na,a.od=this.od,a.pd=this.pd,a.Dc=this.Dc,a.Ec=this.Ec,this.na===Kn.o){for(var y=this.ee.s,E=a.ee,x=0;x<y.length;x++)E.add(y[x].copy());a.ee=E}else a.ee=this.ee;return a.aq=this.aq,a.Ip.assign(this.Ip),a.tk=this.tk,a.ym=this.ym,a.zm=this.zm,a.fg=this.fg.J(),a.gg=this.gg.J(),a.Sk=this.Sk,a.Rk=this.Rk,a.Uf=this.Uf,a},Kn.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},Kn.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==Kn.o)return this;var a=this.figures;a.freeze(),a=a.s;for(var y=a.length,E=0;E<y;E++)a[E].freeze();return this},Kn.prototype.ka=function(){if(Object.isFrozen(this)&&pt("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==Kn.o)return this;var a=this.figures;a.ka(),a=a.s;for(var y=a.length,E=0;E<y;E++)a[E].ka();return this},Kn.prototype.Xa=function(a){if(!(a instanceof Kn))return!1;if(this.type!==a.type)return this.type===Kn.j&&a.type===Kn.o?uu(this,a):a.type===Kn.j&&this.type===Kn.o?uu(a,this):!1;if(this.type===Kn.o){var y=this.figures.s;a=a.figures.s;var E=y.length;if(E!==a.length)return!1;for(var x=0;x<E;x++)if(!y[x].Xa(a[x]))return!1;return!0}return Bt.B(this.startX,a.startX)&&Bt.B(this.startY,a.startY)&&Bt.B(this.endX,a.endX)&&Bt.B(this.endY,a.endY)};function uu(a,y){return a.type!==Kn.j||y.type!==Kn.o?!1:!!(y.figures.count===1&&(y=y.figures.M(0),y.segments.count===1&&Bt.B(a.startX,y.startX)&&Bt.B(a.startY,y.startY)&&(y=y.segments.M(0),y.type===po&&Bt.B(a.endX,y.endX)&&Bt.B(a.endY,y.endY))))}Kn.ia=function(a){return a.toString()},Kn.prototype.qb=function(a){a.classType===Kn&&(this.type=a)},Kn.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case Kn.j:return 0>a?"M"+this.startX.toString()+" "+this.startY.toString()+"L"+this.endX.toString()+" "+this.endY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a)+"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);case Kn.u:var y=new hn(this.startX,this.startY,0,0);return y.Kv(this.endX,this.endY,0,0),0>a?"M"+y.x.toString()+" "+y.y.toString()+"H"+y.right.toString()+"V"+y.bottom.toString()+"H"+y.left.toString()+"z":"M"+y.x.toFixed(a)+" "+y.y.toFixed(a)+"H"+y.right.toFixed(a)+"V"+y.bottom.toFixed(a)+"H"+y.left.toFixed(a)+"z";case Kn.F:if(y=new hn(this.startX,this.startY,0,0),y.Kv(this.endX,this.endY,0,0),0>a)return a=y.left.toString()+" "+(y.y+y.height/2).toString(),"M"+a+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+(y.right.toString()+" "+(y.y+y.height/2).toString())+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+a;var E=y.left.toFixed(a)+" "+(y.y+y.height/2).toFixed(a);return"M"+E+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+(y.right.toFixed(a)+" "+(y.y+y.height/2).toFixed(a))+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+E;case Kn.o:y="",E=this.figures.s;for(var x=E.length,b=0;b<x;b++){var z=E[b];0<b&&(y+=" x "),z.isFilled&&(y+="F "),y+=z.toString(a)}return y;default:return this.type.toString()}},Kn.nb=function(a){a=a.split(/[Xx]/);for(var y=a.length,E="",x=0;x<y;x++){var b=a[x];E=b.match(/[Ff]/)!==null?x===0?E+b:E+("X"+(b[0]===" "?"":" ")+b):E+((x===0?"":"X ")+"F"+(b[0]===" "?"":" ")+b)}return E},Kn.parse=function(a,y){function E(){return He>=bt-1?!0:ce[He+1].match(kt)!==null}function x(){return He++,ce[He]}function b(rr){var qi=parseFloat(x()),Gr=parseFloat(x());dt===dt.toLowerCase()&&(qi=yt.x+qi,Gr=yt.y+Gr),rr.h(qi,Gr)}function z(){return b(yt),yt}function ee(){return b(gt),gt}function re(){var rr=tt.toLowerCase();return rr!=="c"&&rr!=="s"&&rr!=="q"&&rr!=="t"?yt:new lt(2*yt.x-gt.x,2*yt.y-gt.y)}y===void 0&&(y=!1);var oe=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(oe,"$1 $2"),a=a.replace(oe,"$1 $2"),a=a.replace(/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([^s])/gm,"$1 $2"),a=a.replace(/([^s])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm,"$1 $2"),a=a.replace(/([0-9])([+\-])/gm,"$1 $2"),a=a.replace(/[\s\r\t\n]+/gm," "),a=a.replace(/^\s+|\s+$/g,"");var ce=a.split(" ");for(a=0;a<ce.length;a++){var he=ce[a];if(he.match(/(\.[0-9]*)(\.)/gm)!==null){oe=Ni();for(var ye="",Te=!1,Ae=0;Ae<he.length;Ae++){var ke=he[Ae];ke!=="."||Te?ke==="."?(oe.push(ye),ye="."):ye+=ke:(Te=!0,ye+=ke)}for(oe.push(ye),ce.splice(a,1),he=0;he<oe.length;he++)ce.splice(a+he,0,oe[he]);a+=oe.length-1,hi(oe)}}var He=-1,dt="",tt="";oe=new lt(0,0);var gt=new lt(0,0),yt=new lt(0,0),bt=ce.length;a=R1(null),Te=ye=he=!1,Ae=!0,ke=null;for(var kt=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(He>=bt-1);)if(tt=dt,dt=x(),dt!=="")switch(dt.toUpperCase()){case"X":Ae=!0,ye=he=!1;break;case"M":for(ke=z(),a.mc===null||Ae===!0?(eg(a,ke.x,ke.y,he,!ye,Te),Ae=!1):a.moveTo(ke.x,ke.y),oe.assign(yt);!E();)ke=z(),a.lineTo(ke.x,ke.y);break;case"L":for(;!E();)ke=z(),a.lineTo(ke.x,ke.y);break;case"H":for(;!E();)yt=new lt((dt===dt.toLowerCase()?yt.x:0)+parseFloat(x()),yt.y),a.lineTo(yt.x,yt.y);break;case"V":for(;!E();)yt=new lt(yt.x,(dt===dt.toLowerCase()?yt.y:0)+parseFloat(x())),a.lineTo(yt.x,yt.y);break;case"C":for(;!E();){ke=new lt,b(ke);var Kt=ee(),di=z();Sd(a,ke.x,ke.y,Kt.x,Kt.y,di.x,di.y)}break;case"S":for(;!E();)ke=re(),Kt=ee(),di=z(),Sd(a,ke.x,ke.y,Kt.x,Kt.y,di.x,di.y);break;case"Q":for(;!E();)ke=ee(),Kt=z(),Hm(a,ke.x,ke.y,Kt.x,Kt.y);break;case"T":for(;!E();)gt=ke=re(),Kt=z(),Hm(a,ke.x,ke.y,Kt.x,Kt.y);break;case"B":for(;!E();){ke=parseFloat(x()),Kt=parseFloat(x()),di=parseFloat(x());var Ai=parseFloat(x()),xi=parseFloat(x()),Qn=xi,kn=!1;E()||(Qn=parseFloat(x()),E()||(kn=parseFloat(x())!==0)),dt===dt.toLowerCase()&&(di+=yt.x,Ai+=yt.y),a.arcTo(ke,Kt,di,Ai,xi,Qn,kn)}break;case"A":for(;!E();)ke=Math.abs(parseFloat(x())),Kt=Math.abs(parseFloat(x())),di=parseFloat(x()),xi=Ai=!1,kn=Qn=0,Qn=x(),Qn.length===1?(Ai=!!parseFloat(Qn),xi=!!parseFloat(x()),Qn=parseFloat(x())):Qn.length===2?(Ai=!!parseFloat(Qn[0]),xi=!!parseFloat(Qn[1]),Qn=parseFloat(x())):(Ai=!!parseFloat(Qn[0]),xi=!!parseFloat(Qn[1]),Qn=parseFloat(Qn.slice(2))),kn=parseFloat(x()),dt===dt.toLowerCase()&&(Qn=yt.x+Qn,kn=yt.y+kn),yt.h(Qn,kn),kE(a,ke,Kt,di,Ai,xi,Qn,kn);break;case"Z":IE(a),yt.assign(oe);break;case"F":for(ke="",Kt=1;ce[He+Kt];)if(ce[He+Kt]==="0")Te=!0,Kt++;else if(ce[He+Kt].match(/[Uu]/)!==null)Kt++;else if(ce[He+Kt].match(kt)===null)Kt++;else{ke=ce[He+Kt];break}ke.match(/[Mm]/)?he=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(ke="",Kt=1;ce[He+Kt];)if(ce[He+Kt].match(/[Ff]/)!==null)Kt++;else if(ce[He+Kt].match(kt)===null)Kt++;else{ke=ce[He+Kt];break}ke.match(/[Mm]/)?ye=!0:a.mc.isShadowed=!1}if(oe=a.os,Gm=a,y)for(y=oe.figures.iterator;y.next();)y.value.isFilled=!0;return oe},Kn.Ha=function(a,y){for(var E=a.length,x=lt.alloc(),b=0;b<E;b++){var z=a[b];x.x=z[0],x.y=z[1],y.Ga(x),z[0]=x.x,z[1]=x.y,x.x=z[2],x.y=z[3],y.Ga(x),z[2]=x.x,z[3]=x.y,x.x=z[4],x.y=z[5],y.Ga(x),z[4]=x.x,z[5]=x.y,x.x=z[6],x.y=z[7],y.Ga(x),z[6]=x.x,z[7]=x.y}lt.free(x)},Kn.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===Kn.o){if(this.aq!==this.figures.Ja)return!0;for(var a=this.figures.s,y=a.length,E=0;E<y;E++)if(a[E].Zu())return!0}return!1},Kn.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===Kn.o){this.aq=this.figures.Ja;for(var a=this.figures.s,y=a.length,E=0;E<y;E++){var x=a[E];x._isInvalidBounds=!1;var b=x.segments;x.sr=b.Ja,x=b.s,b=x.length;for(var z=0;z<b;z++){var ee=x[z];ee._isInvalidBounds=!1,ee.ae=null}}}a=this.Ip,a.ka(),isNaN(this.Sk)||isNaN(this.Rk)?a.h(0,0,0,0):a.h(0,0,this.Sk,this.Rk),ac(this,a,!1),zo(a,0,0,0,0),a.freeze()},Kn.prototype.ix=function(){var a=new hn;return ac(this,a,!0),a};function ac(a,y,E){switch(a.type){case Kn.j:case Kn.u:case Kn.F:E?y.h(a.od,a.pd,0,0):zo(y,a.od,a.pd,0,0),zo(y,a.Dc,a.Ec,0,0);break;case Kn.o:var x=a.figures;a=x.s,x=x.length;for(var b=0;b<x;b++){var z=a[b];E&&b===0?y.h(z.startX,z.startY,0,0):zo(y,z.startX,z.startY,0,0);for(var ee=z.segments.s,re=ee.length,oe=z.startX,ce=z.startY,he=0;he<re;he++){var ye=ee[he];switch(ye.type){case po:case ko:oe=ye.endX,ce=ye.endY,zo(y,oe,ce,0,0);break;case ja:Bt.Dl(oe,ce,ye.point1X,ye.point1Y,ye.point2X,ye.point2Y,ye.endX,ye.endY,.5,y),oe=ye.endX,ce=ye.endY;break;case Os:Bt.iv(oe,ce,ye.point1X,ye.point1Y,ye.endX,ye.endY,.5,y),oe=ye.endX,ce=ye.endY;break;case ta:case qs:var Te=ye.type===ta?os(ye,z):As(ye,z,oe,ce),Ae=Te.length;if(Ae===0){oe=ye.type===ta?ye.centerX:ye.endX,ce=ye.type===ta?ye.centerY:ye.endY,zo(y,oe,ce,0,0);break}ye=null;for(var ke=0;ke<Ae;ke++)ye=Te[ke],Bt.Dl(ye[0],ye[1],ye[2],ye[3],ye[4],ye[5],ye[6],ye[7],.5,y);ye!==null&&(oe=ye[6],ce=ye[7]);break;default:pt("Unknown Segment type: "+ye.type)}}}break;default:pt("Unknown Geometry type: "+a.type)}}Kn.prototype.normalize=function(){this._isFrozen&&yn(this);var a=this.ix();return this.offset(-a.x,-a.y),new lt(-a.x,-a.y)},Kn.prototype.offset=function(a,y){return this._isFrozen&&yn(this),this.transform(1,0,0,1,a,y),this},Kn.prototype.scale=function(a,y){return this._isFrozen&&yn(this),this.transform(a,0,0,y,0,0),this},Kn.prototype.rotate=function(a,y,E){this._isFrozen&&yn(this),y===void 0&&(y=0),E===void 0&&(E=0);var x=ir.alloc();return x.reset(),x.rotate(a,y,E),this.transform(x.m11,x.m12,x.m21,x.m22,x.dx,x.dy),ir.free(x),this},Ce=Kn.prototype,Ce.transform=function(a,y,E,x,b,z){switch(this.type){case Kn.j:case Kn.u:case Kn.F:var ee=this.od,re=this.pd;this.od=ee*a+re*E+b,this.pd=ee*y+re*x+z,ee=this.Dc,re=this.Ec,this.Dc=ee*a+re*E+b,this.Ec=ee*y+re*x+z;break;case Kn.o:for(var oe=this.figures.s,ce=oe.length,he=0;he<ce;he++){var ye=oe[he];ee=ye.startX,re=ye.startY,ye.startX=ee*a+re*E+b,ye.startY=ee*y+re*x+z,ye=ye.segments.s;for(var Te=ye.length,Ae=0;Ae<Te;Ae++){var ke=ye[Ae];switch(ke.type){case po:case ko:ee=ke.endX,re=ke.endY,ke.endX=ee*a+re*E+b,ke.endY=ee*y+re*x+z;break;case ja:ee=ke.point1X,re=ke.point1Y,ke.point1X=ee*a+re*E+b,ke.point1Y=ee*y+re*x+z,ee=ke.point2X,re=ke.point2Y,ke.point2X=ee*a+re*E+b,ke.point2Y=ee*y+re*x+z,ee=ke.endX,re=ke.endY,ke.endX=ee*a+re*E+b,ke.endY=ee*y+re*x+z;break;case Os:ee=ke.point1X,re=ke.point1Y,ke.point1X=ee*a+re*E+b,ke.point1Y=ee*y+re*x+z,ee=ke.endX,re=ke.endY,ke.endX=ee*a+re*E+b,ke.endY=ee*y+re*x+z;break;case ta:ee=ke.centerX,re=ke.centerY,ke.centerX=ee*a+re*E+b,ke.centerY=ee*y+re*x+z,y!==0&&(ee=180*Math.atan2(y,a)/Math.PI,0>ee&&(ee+=360),ke.startAngle+=ee),0>a&&(ke.startAngle=180-ke.startAngle,ke.sweepAngle=-ke.sweepAngle),0>x&&(ke.startAngle=-ke.startAngle,ke.sweepAngle=-ke.sweepAngle),ke.radiusX*=Math.sqrt(a*a+E*E),ke.radiusY!==void 0&&(ke.radiusY*=Math.sqrt(y*y+x*x));break;case qs:if(ee=ke.endX,re=ke.endY,ke.endX=ee*a+re*E+b,ke.endY=ee*y+re*x+z,ke.radiusX===0||ke.radiusY===0)break;y!==0&&(ee=180*Math.atan2(y,a)/Math.PI,0>ee&&(ee+=360),ke.xAxisRotation+=ee),0>a&&(ke.xAxisRotation=180-ke.xAxisRotation,ke.isClockwiseArc=!ke.isClockwiseArc),0>x&&(ke.xAxisRotation=-ke.xAxisRotation,ke.isClockwiseArc=!ke.isClockwiseArc),ke.radiusX*=Math.sqrt(a*a+E*E),ke.radiusY*=Math.sqrt(y*y+x*x);break;default:pt("Unknown Segment type: "+ke.type)}}}}return this._isInvalidBounds=!0,this},Ce.ca=function(a,y){y===void 0&&(y=0);var E=this.od,x=this.pd,b=this.Dc,z=this.Ec;switch(this.type){case Kn.j:return Bt.Yb(E,x,b,z,y,a.x,a.y);case Kn.u:var ee=hn.allocAt(Math.min(E,b)-y,Math.min(x,z)-y,Math.abs(b-E)+2*y,Math.abs(z-x)+2*y);return a=ee.ca(a),hn.free(ee),a;case Kn.F:ee=Math.min(E,b)-y;var re=Math.min(x,z)-y;return E=(Math.abs(b-E)+2*y)/2,y=(Math.abs(z-x)+2*y)/2,0>=E||0>=y?!1:(ee=a.x-(ee+E),re=a.y-(re+y),1>=ee*ee/(E*E)+re*re/(y*y));case Kn.o:return Js(this,a,y,!0,!1);default:return!1}};function Js(a,y,E,x,b){var z=y.x;y=y.y;for(var ee=a.bounds.x-20,re=0,oe,ce,he,ye,Te=a.figures.s,Ae=Te.length,ke=0;ke<Ae;ke++){var He=Te[ke],dt=!He.isEvenOdd;if(He.isFilled){if(x&&He.ca(z,y,E))return!0;var tt=He.segments;oe=He.startX,ce=He.startY;for(var gt=oe,yt=ce,bt=tt.s,kt=0;kt<=tt.length;kt++){var Kt=void 0;if(kt!==tt.length){Kt=bt[kt];var di=Kt.type;a=Kt.endX,ye=Kt.endY}else di=po,a=gt,ye=yt;switch(di){case ko:if(gt=Wl(z,y,ee,y,oe,ce,gt,yt),isNaN(gt))return!0;re+=gt,gt=a,yt=ye;break;case po:if(oe=Wl(z,y,ee,y,oe,ce,a,ye),isNaN(oe))return!0;re+=oe;break;case ja:he=Bt.Fo(oe,ce,Kt.point1X,Kt.point1Y,Kt.point2X,Kt.point2Y,a,ye,ee,y,z,y,.5),re+=he;break;case Os:he=Bt.Fo(oe,ce,(oe+2*Kt.point1X)/3,(ce+2*Kt.point1Y)/3,(2*Kt.point1X+a)/3,(2*Kt.point1Y+ye)/3,a,ye,ee,y,z,y,.5),re+=he;break;case ta:case qs:di=Kt.type===ta?os(Kt,He):As(Kt,He,oe,ce);var Ai=di.length;if(Ai===0){if(oe=Wl(z,y,ee,y,oe,ce,Kt.type===ta?Kt.centerX:Kt.endX,Kt.type===ta?Kt.centerY:Kt.endY),isNaN(oe))return!0;re+=oe;break}Kt=null;for(var xi=0;xi<Ai;xi++){if(Kt=di[xi],xi===0){if(he=Wl(z,y,ee,y,oe,ce,Kt[0],Kt[1]),isNaN(he))return!0;re+=he}he=Bt.Fo(Kt[0],Kt[1],Kt[2],Kt[3],Kt[4],Kt[5],Kt[6],Kt[7],ee,y,z,y,.5),re+=he}Kt!==null&&(a=Kt[6],ye=Kt[7]);break;default:pt("Unknown Segment type: "+Kt.type)}oe=a,ce=ye}if(dt){if(re!==0)return!0}else if(re%2!==0)return!0;re=0}else if(He.ca(z,y,b?E:E+2))return!0}return!1}function Wl(a,y,E,x,b,z,ee,re){if(Bt.Yb(b,z,ee,re,.05,a,y))return NaN;var oe=(a-E)*(z-re);if(oe===0)return 0;var ce=((a*x-y*E)*(b-ee)-(a-E)*(b*re-z*ee))/oe;if(y=(a*x-y*E)*(z-re)/oe,ce>=a)return 0;if((b>ee?b-ee:ee-b)<(z>re?z-re:re-z)){if(z<re){if(y<z||y>re)return 0}else if(y<re||y>z)return 0}else if(b<ee){if(ce<b||ce>ee)return 0}else if(ce<ee||ce>b)return 0;return 0<oe?1:-1}function sc(a,y,E,x){a=a.figures.s;for(var b=a.length,z=0;z<b;z++)if(a[z].ca(y,E,x))return!0;return!1}Ce.Pu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=new lt),this.type===Kn.j)return y.h(this.startX+a*(this.endX-this.startX),this.startY+a*(this.endY-this.startY)),y;for(var E=this.flattenedSegments,x=this.flattenedLengths,b=E.length,z=this.flattenedTotalLength*a,ee=0,re=0;re<b;re++){var oe=x[re],ce=oe.length;for(a=0;a<ce;a++){var he=oe[a];if(ee+he>=z)return x=z-ee,x=he===0?0:x/he,E=E[re],re=E[2*a],b=E[2*a+1],y.h(re+(E[2*a+2]-re)*x,b+(E[2*a+3]-b)*x),y;ee+=he}}return y},Ce.wx=function(a){if(0>a?a=0:1<a&&(a=1),this.type===Kn.j)return 180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI;for(var y=this.flattenedSegments,E=this.flattenedLengths,x=y.length,b=this.flattenedTotalLength*a,z=0,ee=0;ee<x;ee++){var re=E[ee],oe=re.length;for(a=0;a<oe;a++){var ce=re[a];if(z+ce>=b)return b=y[ee],y=b[2*a],E=b[2*a+1],x=b[2*a+2],a=b[2*a+3],1>Math.abs(x-y)&&1>Math.abs(a-E)?0:1>Math.abs(x-y)?0<=a-E?90:270:1>Math.abs(a-E)?0<=x-y?0:180:180*Math.atan2(a-E,x-y)/Math.PI;z+=ce}}return NaN},Ce.Qu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=[]),y.length=3,this.type===Kn.j)return y[0]=this.startX+a*(this.endX-this.startX),y[1]=this.startY+a*(this.endY-this.startY),y[2]=180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI,y;for(var E=this.flattenedSegments,x=this.flattenedLengths,b=E.length,z=this.flattenedTotalLength*a,ee=0,re=0;re<b;re++){var oe=x[re],ce=oe.length;for(a=0;a<ce;a++){var he=oe[a];if(ee+he>=z)return x=z-ee,x=he===0?0:x/he,he=E[re],E=he[2*a],re=he[2*a+1],b=he[2*a+2],a=he[2*a+3],y[0]=E+(b-E)*x,y[1]=re+(a-re)*x,y[2]=1>Math.abs(b-E)&&1>Math.abs(a-re)?0:1>Math.abs(b-E)?0<=a-re?90:270:1>Math.abs(a-re)?0<=b-E?0:180:180*Math.atan2(a-re,b-E)/Math.PI,y;ee+=he}}return y},Ce.xx=function(a){if(this.type===Kn.j){var y=this.startX,E=this.startY,x=this.endX,b=this.endY;if(y!==x||E!==b){var z=a.x;if(a=a.y,y===x){if(E<b){var ee=E;x=b}else ee=b,x=E;return a<=ee?ee===E?0:1:a>=x?x===E?0:1:Math.abs(a-E)/(x-ee)}if(E===b)return y<x?ee=y:(ee=x,x=y),z<=ee?ee===y?0:1:z>=x?x===y?0:1:Math.abs(z-y)/(x-ee);ee=(x-y)*(x-y)+(b-E)*(b-E);var re=lt.alloc();return Bt.qh(y,E,x,b,z,a,re),a=re.x,z=re.y,lt.free(re),Math.sqrt(((a-y)*(a-y)+(z-E)*(z-E))/ee)}}else if(this.type===Kn.u){ee=this.startX,re=this.startY;var oe=this.endX;if(b=this.endY,ee!==oe||re!==b){y=oe-ee,E=b-re,z=2*y+2*E,x=a.x,a=a.y,x=Math.min(Math.max(x,ee),oe),a=Math.min(Math.max(a,re),b),ee=Math.abs(x-ee),oe=Math.abs(x-oe),re=Math.abs(a-re),b=Math.abs(a-b);var ce=Math.min(ee,oe,re,b);if(ce===re)return x/z;if(ce===oe)return(y+a)/z;if(ce===b)return(2*y+E-x)/z;if(ce===ee)return(2*y+2*E-a)/z}}else{y=this.flattenedSegments,E=this.flattenedLengths,z=this.flattenedTotalLength,x=lt.alloc(),b=1/0,re=ee=0,oe=y.length;for(var he=ce=0,ye=0;ye<oe;ye++)for(var Te=y[ye],Ae=E[ye],ke=Te.length,He=0;He<ke;He+=2){var dt=Te[He],tt=Te[He+1];if(He!==0){Bt.qh(ce,he,dt,tt,a.x,a.y,x);var gt=(x.x-a.x)*(x.x-a.x)+(x.y-a.y)*(x.y-a.y);gt<b&&(b=gt,ee=re,ee+=Math.sqrt((x.x-ce)*(x.x-ce)+(x.y-he)*(x.y-he))),re+=Ae[(He-2)/2]}ce=dt,he=tt}return lt.free(x),a=ee/z,0>a?0:1<a?1:a}return 0};function Yc(a){if(a.tk===null){var y=a.tk=[],E=a.ym=[],x=[],b=[];if(a.type===Kn.j)x.push(a.startX),x.push(a.startY),x.push(a.endX),x.push(a.endY),y.push(x),b.push(Math.sqrt((a.startX-a.endX)*(a.startX-a.endX)+(a.startY-a.endY)*(a.startY-a.endY))),E.push(b);else if(a.type===Kn.u)x.push(a.startX),x.push(a.startY),x.push(a.endX),x.push(a.startY),x.push(a.endX),x.push(a.endY),x.push(a.startX),x.push(a.endY),x.push(a.startX),x.push(a.startY),y.push(x),b.push(Math.abs(a.startX-a.endX)),b.push(Math.abs(a.startY-a.endY)),b.push(Math.abs(a.startX-a.endX)),b.push(Math.abs(a.startY-a.endY)),E.push(b);else if(a.type===Kn.F){var z=new ma;z.startX=a.endX,z.startY=(a.startY+a.endY)/2;var ee=new Br(ta);if(ee.startAngle=0,ee.sweepAngle=360,ee.centerX=(a.startX+a.endX)/2,ee.centerY=(a.startY+a.endY)/2,ee.radiusX=Math.abs(a.startX-a.endX)/2,ee.radiusY=Math.abs(a.startY-a.endY)/2,z.add(ee),a=os(ee,z),b=a.length,b===0)x.push(ee.centerX),x.push(ee.centerY);else{ee=z.startX,z=z.startY;for(var re=0;re<b;re++){var oe=a[re];Bt.Qe(ee,z,oe[2],oe[3],oe[4],oe[5],oe[6],oe[7],.5,x),ee=oe[6],z=oe[7]}}y.push(x),E.push(Vc(x))}else for(a=a.figures.iterator;a.next();){b=a.value,x=[],x.push(b.startX),x.push(b.startY),ee=b.startX,z=b.startY,re=ee,oe=z;for(var ce=b.segments.s,he=ce.length,ye=0;ye<he;ye++){var Te=ce[ye];switch(Te.type){case ko:4<=x.length&&(y.push(x),E.push(Vc(x))),x=[],x.push(Te.endX),x.push(Te.endY),ee=Te.endX,z=Te.endY,re=ee,oe=z;break;case po:x.push(Te.endX),x.push(Te.endY),ee=Te.endX,z=Te.endY;break;case ja:Bt.Qe(ee,z,Te.point1X,Te.point1Y,Te.point2X,Te.point2Y,Te.endX,Te.endY,.5,x),ee=Te.endX,z=Te.endY;break;case Os:Bt.ep(ee,z,Te.point1X,Te.point1Y,Te.endX,Te.endY,.5,x),ee=Te.endX,z=Te.endY;break;case ta:var Ae=os(Te,b),ke=Ae.length;if(ke===0){x.push(Te.centerX),x.push(Te.centerY),ee=Te.centerX,z=Te.centerY;break}for(var He=0;He<ke;He++){var dt=Ae[He];Bt.Qe(ee,z,dt[2],dt[3],dt[4],dt[5],dt[6],dt[7],.5,x),ee=dt[6],z=dt[7]}break;case qs:if(Ae=As(Te,b,ee,z),ke=Ae.length,He=Te.endX,dt=Te.endY,ke===0){x.push(He),x.push(dt),ee=He,z=dt;break}for(He=0;He<ke;He++)dt=Ae[He],Bt.Qe(ee,z,dt[2],dt[3],dt[4],dt[5],dt[6],dt[7],.5,x),ee=dt[6],z=dt[7];break;default:pt("Segment not of valid type: "+Te.type)}Te.isClosed&&(x.push(re),x.push(oe))}4<=x.length&&(y.push(x),E.push(Vc(x)))}}}function Vc(a){for(var y=[],E=0,x=0,b=a.length,z=0;z<b;z+=2){var ee=a[z],re=a[z+1];z!==0&&y.push(Math.sqrt(Uo(E,x,ee,re))),E=ee,x=re}return y}Ce.add=function(a){return this.ee.add(a),this},Ce.pm=function(a,y,E,x,b,z,ee,re){return this._isFrozen&&yn(this),this.fg=new Yt(a,y,b,z).freeze(),this.gg=new Yt(E,x,ee,re).freeze(),this},It.Object.defineProperties(Kn.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(a){this.l=a?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(a){this.l=a?this.l|2:this.l&-3}},flattenedSegments:{get:function(){return Yc(this),this.tk}},flattenedLengths:{get:function(){return Yc(this),this.ym}},flattenedTotalLength:{get:function(){var a=this.zm;if(isNaN(a)){if(this.type===Kn.j){a=Math.abs(this.endX-this.startX);var y=Math.abs(this.endY-this.startY);a=Math.sqrt(a*a+y*y)}else if(this.type===Kn.u)a=2*Math.abs(this.endX-this.startX)+2*Math.abs(this.endY-this.startY);else{y=this.flattenedLengths;for(var E=y.length,x=a=0;x<E;x++)for(var b=y[x],z=b.length,ee=0;ee<z;ee++)a+=b[ee]}this.zm=a}return a}},type:{get:function(){return this.na},set:function(a){this.na!==a&&(this._isFrozen&&yn(this,a),this.na=a,a===Kn.o?this.ee=new Fn:(Kn.V===null&&(Kn.V=new Fn().freeze()),this.ee=Kn.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&yn(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&yn(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&yn(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&yn(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&yn(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&yn(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&yn(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&yn(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),Kn.prototype.setSpots=Kn.prototype.pm,Kn.prototype.add=Kn.prototype.add,Kn.prototype.getFractionForPoint=Kn.prototype.xx,Kn.prototype.getPointAndAngleAlongPath=Kn.prototype.Qu,Kn.prototype.getAngleAlongPath=Kn.prototype.wx,Kn.prototype.getPointAlongPath=Kn.prototype.Pu,Kn.prototype.containsPoint=Kn.prototype.ca,Kn.prototype.transform=Kn.prototype.transform,Kn.prototype.rotate=Kn.prototype.rotate,Kn.prototype.scale=Kn.prototype.scale,Kn.prototype.offset=Kn.prototype.offset,Kn.prototype.normalize=Kn.prototype.normalize,Kn.prototype.computeBoundsWithoutOrigin=Kn.prototype.ix,Kn.prototype.equalsApprox=Kn.prototype.Xa,Kn.className="Geometry",Kn.j=new en(Kn,"Line",0),Kn.u=new en(Kn,"Rectangle",1),Kn.F=new en(Kn,"Ellipse",2),Kn.o=new en(Kn,"Path",3),Kn.V=null,Kn.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",Kn.className="Geometry",Kn.stringify=Kn.ia,Kn.fillPath=Kn.nb,Kn.parse=Kn.parse,Kn.Line=Kn.j,Kn.Rectangle=Kn.u,Kn.Ellipse=Kn.F,Kn.Path=Kn.o;function ma(a,y,E,x,b){wr(this),E===void 0&&(E=!0),x===void 0&&(x=!0),b===void 0&&(b=!1),this.l=2|(E?4:0)|(x?8:0)|(b?16:0),a!==void 0?this.od=a:this.od=0,y!==void 0?this.pd=y:this.pd=0,this.pl=new Fn,this.sr=this.pl.Ja,this.fw=null}ma.prototype.copy=function(){var a=new ma;a.l=this.l&-2,a.od=this.od,a.pd=this.pd;for(var y=this.pl.s,E=y.length,x=a.pl,b=0;b<E;b++){var z=y[b].copy();x.add(z)}return a.sr=this.sr,a.fw=this.fw,a},Ce=ma.prototype,Ce.Xa=function(a){if(!(a instanceof ma&&Bt.B(this.startX,a.startX)&&Bt.B(this.startY,a.startY)))return!1;var y=this.segments.s;a=a.segments.s;var E=y.length;if(E!==a.length)return!1;for(var x=0;x<E;x++)if(!y[x].Xa(a[x]))return!1;return!0},Ce.toString=function(a){a===void 0&&(a=-1);for(var y=0>a?"M"+this.startX.toString()+" "+this.startY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a),E=this.segments.s,x=E.length,b=0;b<x;b++)y+=" "+E[b].toString(a);return y},Ce.freeze=function(){this._isFrozen=!0;var a=this.segments;a.freeze();var y=a.s;a=a.length;for(var E=0;E<a;E++)y[E].freeze();return this},Ce.ka=function(){this._isFrozen=!1;var a=this.segments;a.ka(),a=a.s;for(var y=a.length,E=0;E<y;E++)a[E].ka();return this},Ce.Zu=function(){if(this._isInvalidBounds)return!0;var a=this.segments;if(this.sr!==a.Ja)return!0;a=a.s;for(var y=a.length,E=0;E<y;E++)if(a[E]._isInvalidBounds)return!0;return!1},Ce.add=function(a){return this.pl.add(a),this},Ce.ca=function(a,y,E){for(var x=this.startX,b=this.startY,z=x,ee=b,re=this.segments.s,oe=re.length,ce=0;ce<oe;ce++){var he=re[ce];switch(he.type){case ko:z=he.endX,ee=he.endY,x=he.endX,b=he.endY;break;case po:if(Bt.Yb(x,b,he.endX,he.endY,E,a,y))return!0;x=he.endX,b=he.endY;break;case ja:if(Bt.cs(x,b,he.point1X,he.point1Y,he.point2X,he.point2Y,he.endX,he.endY,.5,a,y,E))return!0;x=he.endX,b=he.endY;break;case Os:if(Bt.jv(x,b,he.point1X,he.point1Y,he.endX,he.endY,.5,a,y,E))return!0;x=he.endX,b=he.endY;break;case ta:case qs:var ye=he.type===ta?os(he,this):As(he,this,x,b),Te=ye.length,Ae=he.type===ta?he.centerX:he.endX,ke=he.type===ta?he.centerY:he.endY;if(Te===0){if(Bt.Yb(x,b,Ae,ke,E,a,y))return!0;x=Ae,b=ke;break}for(Ae=null,ke=0;ke<Te;ke++)if(Ae=ye[ke],ke===0&&Bt.Yb(x,b,Ae[0],Ae[1],E,a,y)||Bt.cs(Ae[0],Ae[1],Ae[2],Ae[3],Ae[4],Ae[5],Ae[6],Ae[7],.5,a,y,E))return!0;Ae!==null&&(x=Ae[6],b=Ae[7]);break;default:pt("Unknown Segment type: "+he.type)}if(he.isClosed&&(x!==z||b!==ee)&&Bt.Yb(x,b,z,ee,E,a,y))return!0}return!1},It.Object.defineProperties(ma.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(a){this.l=a?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(a){this.l=a?this.l|2:this.l&-3}},isFilled:{get:function(){return(this.l&4)!==0},set:function(a){this._isFrozen&&yn(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&yn(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&yn(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&yn(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&yn(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&yn(this,a),this.pl=a,this._isInvalidBounds=!0}}}),ma.prototype.add=ma.prototype.add,ma.prototype.equalsApprox=ma.prototype.Xa,ma.className="PathFigure";function Br(a,y,E,x,b,z,ee,re){wr(this),a===void 0&&(a=po),this.na=a,this.l=2,y!==void 0?this.Dc=y:this.Dc=0,E!==void 0?this.Ec=E:this.Ec=0,x===void 0&&(x=0),b===void 0&&(b=0),z===void 0&&(z=0),ee===void 0&&(ee=0),a===qs?(a=z%360,0>a&&(a+=360),this.Ne=a,this.Vh=0,this.Wh=Math.max(x,0),this.Pg=Math.max(b,0),typeof ee=="boolean"?ee&&(this.isLargeArc=!0):typeof ee=="number"&&ee&&(this.isLargeArc=!0),re&&(this.isClockwiseArc=!0)):(this.Ne=x,this.Vh=b,a===ta&&(z=Math.max(z,0)),this.Wh=z,typeof ee=="number"?(a===ta&&(ee=Math.max(ee,0)),this.Pg=ee):this.Pg=0),this.ae=null}Br.prototype.copy=function(){var a=new Br;return a.na=this.na,a.l=this.l&-2,a.Dc=this.Dc,a.Ec=this.Ec,a.Ne=this.Ne,a.Vh=this.Vh,a.Wh=this.Wh,a.Pg=this.Pg,a},Ce=Br.prototype,Ce.Xa=function(a){if(!(a instanceof Br)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case ko:case po:return Bt.B(this.endX,a.endX)&&Bt.B(this.endY,a.endY);case ja:return Bt.B(this.endX,a.endX)&&Bt.B(this.endY,a.endY)&&Bt.B(this.point1X,a.point1X)&&Bt.B(this.point1Y,a.point1Y)&&Bt.B(this.point2X,a.point2X)&&Bt.B(this.point2Y,a.point2Y);case Os:return Bt.B(this.endX,a.endX)&&Bt.B(this.endY,a.endY)&&Bt.B(this.point1X,a.point1X)&&Bt.B(this.point1Y,a.point1Y);case ta:return Bt.B(this.startAngle,a.startAngle)&&Bt.B(this.sweepAngle,a.sweepAngle)&&Bt.B(this.centerX,a.centerX)&&Bt.B(this.centerY,a.centerY)&&Bt.B(this.radiusX,a.radiusX)&&Bt.B(this.radiusY,a.radiusY);case qs:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&Bt.B(this.xAxisRotation,a.xAxisRotation)&&Bt.B(this.endX,a.endX)&&Bt.B(this.endY,a.endY)&&Bt.B(this.radiusX,a.radiusX)&&Bt.B(this.radiusY,a.radiusY);default:return!1}},Ce.qb=function(a){a.classType===Br&&(this.type=a)},Ce.toString=function(a){switch(a===void 0&&(a=-1),this.type){case ko:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case po:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case ja:a=0>a?"C"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.point2X.toString()+" "+this.point2Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"C"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.point2X.toFixed(a)+" "+this.point2Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Os:a=0>a?"Q"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"Q"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case ta:a=0>a?"B"+this.startAngle.toString()+" "+this.sweepAngle.toString()+" "+this.centerX.toString()+" "+this.centerY.toString()+" "+this.radiusX.toString()+" "+this.radiusY.toString():"B"+this.startAngle.toFixed(a)+" "+this.sweepAngle.toFixed(a)+" "+this.centerX.toFixed(a)+" "+this.centerY.toFixed(a)+" "+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a);break;case qs:a=0>a?"A"+this.radiusX.toString()+" "+this.radiusY.toString()+" "+this.xAxisRotation.toString()+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toString()+" "+this.endY.toString():"A"+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a)+" "+this.xAxisRotation.toFixed(a)+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;default:a=this.type.toString()}return a+(this.isClosed?"z":"")},Ce.freeze=function(){return this._isFrozen=!0,this},Ce.ka=function(){return this._isFrozen=!1,this},Ce.close=function(){return this.isClosed=!0,this};function os(a,y){if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;var E=a.radiusX,x=a.radiusY;if(x===void 0&&(x=E),E===0||x===0)return a.ae=[],a.ae;y=a.Ne;var b=a.Vh,z=Bt.jx(0,0,E<x?E:x,a.startAngle,a.startAngle+a.sweepAngle,!1);if(E!==x){var ee=ir.alloc();ee.reset(),E<x?ee.scale(1,x/E):ee.scale(E/x,1),Kn.Ha(z,ee),ir.free(ee)}for(E=z.length,x=0;x<E;x++)ee=z[x],ee[0]+=y,ee[1]+=b,ee[2]+=y,ee[3]+=b,ee[4]+=y,ee[5]+=b,ee[6]+=y,ee[7]+=b;return a.ae=z,a.ae}function As(a,y,E,x){function b(He,dt,tt,gt){return(He*gt<dt*tt?-1:1)*Math.acos((He*tt+dt*gt)/(Math.sqrt(He*He+dt*dt)*Math.sqrt(tt*tt+gt*gt)))}if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;if(a.radiusX===0||a.radiusY===0)return a.ae=[],a.ae;y=a.Wh;var z=a.Pg;y===0&&(y=1e-4),z===0&&(z=1e-4);var ee=Math.PI/180*a.Ne,re=a.isLargeArc,oe=a.isClockwiseArc,ce=a.Dc,he=a.Ec,ye=Math.cos(ee),Te=Math.sin(ee),Ae=ye*(E-ce)/2+Te*(x-he)/2;ee=-Te*(E-ce)/2+ye*(x-he)/2;var ke=Ae*Ae/(y*y)+ee*ee/(z*z);return 1<ke&&(y*=Math.sqrt(ke),z*=Math.sqrt(ke)),ke=(re===oe?-1:1)*Math.sqrt((y*y*z*z-y*y*ee*ee-z*z*Ae*Ae)/(y*y*ee*ee+z*z*Ae*Ae)),isNaN(ke)&&(ke=0),re=ke*y*ee/z,ke=ke*-z*Ae/y,isNaN(re)&&(re=0),isNaN(ke)&&(ke=0),E=(E+ce)/2+ye*re-Te*ke,x=(x+he)/2+Te*re+ye*ke,he=b(1,0,(Ae-re)/y,(ee-ke)/z),ye=(Ae-re)/y,ce=(ee-ke)/z,Ae=(-Ae-re)/y,re=(-ee-ke)/z,ee=b(ye,ce,Ae,re),Ae=(ye*Ae+ce*re)/(Math.sqrt(ye*ye+ce*ce)*Math.sqrt(Ae*Ae+re*re)),-1>=Ae?ee=Math.PI:1<=Ae&&(ee=0),!oe&&0<ee&&(ee-=2*Math.PI),oe&&0>ee&&(ee+=2*Math.PI),oe=y>z?1:y/z,Ae=y>z?z/y:1,y=Bt.jx(0,0,y>z?y:z,he,he+ee,!0),z=ir.alloc(),z.reset(),z.translate(E,x),z.rotate(a.Ne,0,0),z.scale(oe,Ae),Kn.Ha(y,z),ir.free(z),a.ae=y,a.ae}It.Object.defineProperties(Br.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(a){this.l=a?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(a){this.l=a?this.l|2:this.l&-3}},isClosed:{get:function(){return(this.l&8)!==0},set:function(a){this.isClosed!==a&&(this.l=a?this.l|8:this.l&-9,this._isInvalidBounds=!0)}},type:{get:function(){return this.na},set:function(a){this._isFrozen&&yn(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&yn(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&yn(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&yn(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&yn(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&yn(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&yn(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&yn(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&yn(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&ii(a,">= zero",Br,"radiusX"),this._isFrozen&&yn(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&ii(a,">= zero",Br,"radiusY"),this._isFrozen&&yn(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&yn(this,a),a%=360,0>a&&(a+=360),this.Dc=a,this._isInvalidBounds=!0}},sweepAngle:{get:function(){return this.Ec},set:function(a){this._isFrozen&&yn(this,a),360<a&&(a=360),-360>a&&(a=-360),this.Ec=a,this._isInvalidBounds=!0}},isClockwiseArc:{get:function(){return(this.l&4)!==0},set:function(a){this._isFrozen&&yn(this,a),this.l=a?this.l|4:this.l&-5,this._isInvalidBounds=!0}},isLargeArc:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&yn(this,a),this.l=a?this.l|16:this.l&-17,this._isInvalidBounds=!0}},xAxisRotation:{get:function(){return this.Ne},set:function(a){this._isFrozen&&yn(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),Br.prototype.equalsApprox=Br.prototype.Xa;var ko=new en(Br,"Move",0),po=new en(Br,"Line",1),ja=new en(Br,"Bezier",2),Os=new en(Br,"QuadraticBezier",3),ta=new en(Br,"Arc",4),qs=new en(Br,"SvgArc",4);Br.className="PathSegment",Br.Move=ko,Br.Line=po,Br.Bezier=ja,Br.QuadraticBezier=Os,Br.Arc=ta,Br.SvgArc=qs;function Qa(){this.H=null,this.xu=new lt(0,0).freeze(),this.mt=new lt(0,0).freeze(),this.Bp=this.Rq=0,this.Cp=1,this.xq="",this.Wr=this.Tp=!1,this.Rp=this.Ep=0,this.xg=this.nq=this.tq=!1,this.Zp=null,this.Rr=0,this.xd=this.Nr=null}Qa.prototype.copy=function(){var a=new Qa;return this.clone(a)},Qa.prototype.clone=function(a){return a.H=this.H,a.xu.assign(this.viewPoint),a.mt.assign(this.documentPoint),a.Rq=this.Rq,a.Bp=this.Bp,a.Cp=this.Cp,a.xq=this.xq,a.Tp=this.Tp,a.Wr=this.Wr,a.Ep=this.Ep,a.Rp=this.Rp,a.tq=this.tq,a.nq=this.nq,a.xg=this.xg,a.Zp=this.Zp,a.Rr=this.Rr,a.Nr=this.Nr,a.xd=this.xd,a},Qa.prototype.toString=function(){var a="^";return this.modifiers!==0&&(a+="M:"+this.modifiers),this.button!==0&&(a+="B:"+this.button),this.key!==""&&(a+="K:"+this.key),this.clickCount!==0&&(a+="C:"+this.clickCount),this.delta!==0&&(a+="D:"+this.delta),this.handled&&(a+="h"),this.bubbles&&(a+="b"),this.documentPoint!==null&&(a+="@"+this.documentPoint.toString()),a},Qa.prototype.So=function(a,y){var E=this.diagram;return E===null||Og(E,a,y),y},Qa.prototype.Bz=function(a,y){var E=this.diagram;return E===null||(Og(E,a,y),y.assign(E.Ps(y))),y},It.Object.defineProperties(Qa.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},viewPoint:{get:function(){return this.xu},set:function(a){this.xu.assign(a)}},documentPoint:{get:function(){return this.mt},set:function(a){this.mt.assign(a)}},modifiers:{get:function(){return this.Rq},set:function(a){this.Rq=a}},button:{get:function(){return this.Bp},set:function(a){if(this.Bp=a,this.event===null)switch(a){case 0:this.buttons=1;break;case 1:this.buttons=4;break;case 2:this.buttons=2}}},buttons:{get:function(){return this.Cp},set:function(a){this.Cp=a}},key:{get:function(){return this.xq},set:function(a){this.xq=a}},down:{get:function(){return this.Tp},set:function(a){this.Tp=a}},up:{get:function(){return this.Wr},set:function(a){this.Wr=a}},clickCount:{get:function(){return this.Ep},set:function(a){this.Ep=a}},delta:{get:function(){return this.Rp},set:function(a){this.Rp=a}},isMultiTouch:{get:function(){return this.tq},set:function(a){this.tq=a}},handled:{get:function(){return this.nq},set:function(a){this.nq=a}},bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},event:{get:function(){return this.Zp},set:function(a){this.Zp=a}},isTouchEvent:{get:function(){var a=this.event;return a===null?!1:a.pointerType==="touch"||a.pointerType==="pen"}},timestamp:{get:function(){return this.Rr},set:function(a){this.Rr=a}},targetDiagram:{get:function(){return this.Nr},set:function(a){this.Nr=a}},targetObject:{get:function(){return this.xd},set:function(a){this.xd=a}},control:{get:function(){return(this.modifiers&1)!==0},set:function(a){this.modifiers=a?this.modifiers|1:this.modifiers&-2}},shift:{get:function(){return(this.modifiers&4)!==0},set:function(a){this.modifiers=a?this.modifiers|4:this.modifiers&-5}},alt:{get:function(){return(this.modifiers&2)!==0},set:function(a){this.modifiers=a?this.modifiers|2:this.modifiers&-3}},meta:{get:function(){return(this.modifiers&8)!==0},set:function(a){this.modifiers=a?this.modifiers|8:this.modifiers&-9}},left:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&1)!==0:this.button===0},set:function(a){this.buttons=a?this.buttons|1:this.buttons&-2}},right:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&2)!==0:this.button===2},set:function(a){this.buttons=a?this.buttons|2:this.buttons&-3}},middle:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&4)!==0:this.button===1},set:function(a){this.buttons=a?this.buttons|4:this.buttons&-5}}}),Qa.prototype.getMultiTouchDocumentPoint=Qa.prototype.Bz,Qa.prototype.getMultiTouchViewPoint=Qa.prototype.So,Qa.className="InputEvent";function Tu(){this.H=null,this.xa="",this.ar=this.Lr=null}Tu.prototype.copy=function(){var a=new Tu;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},Tu.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},It.Object.defineProperties(Tu.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},subject:{get:function(){return this.Lr},set:function(a){this.Lr=a}},parameter:{get:function(){return this.ar},set:function(a){this.ar=a}}}),Tu.className="DiagramEvent";function Oo(){this.Fm=wo,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}Oo.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},Oo.prototype.copy=function(){var a=new Oo;a.Fm=this.Fm,a.Qq=this.Qq,a.rf=this.rf,a.cc=this.cc,a.H=this.H,a.Qn=this.Qn;var y=this.Sn;return a.Sn=zt(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=zt(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=zt(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=zt(y)&&typeof y.J=="function"?y.J():y,a},Oo.prototype.qb=function(a){a.classType===Oo&&(this.change=a)},Oo.prototype.toString=function(){var a="";return a=this.change===ys?a+"* ":this.change===wo?a+(this.model!==null?"!m":"!d"):a+((this.model!==null?"!m":"!d")+this.change),this.propertyName&&typeof this.propertyName=="string"&&(a+=" "+this.propertyName),this.modelChange&&this.modelChange!==this.propertyName&&(a+=" "+this.modelChange),a+=": ",this.change===ys?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=Yi(this.object)),this.oldValue!==null&&(a+=" old: "+Yi(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+Yi(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},Oo.prototype.I=function(a){return a?this.oldValue:this.newValue},Oo.prototype.Dz=function(a){return a?this.oldParam:this.newParam},Oo.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},Oo.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},Oo.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},Oo.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},It.Object.defineProperties(Oo.prototype,{model:{get:function(){return this.cc},set:function(a){this.cc=a}},diagram:{get:function(){return this.H},set:function(a){this.H=a}},change:{get:function(){return this.Fm},set:function(a){this.Fm=a}},modelChange:{get:function(){return this.Qq},set:function(a){this.Qq=a}},propertyName:{get:function(){return this.rf},set:function(a){this.rf=a}},isTransactionFinished:{get:function(){return this.Fm===ys&&(this.rf==="CommittedTransaction"||this.rf==="FinishedUndo"||this.rf==="FinishedRedo")}},object:{get:function(){return this.Qn},set:function(a){this.Qn=a}},oldValue:{get:function(){return this.Sn},set:function(a){this.Sn=a}},oldParam:{get:function(){return this.Rn},set:function(a){this.Rn=a}},newValue:{get:function(){return this.Mn},set:function(a){this.Mn=a}},newParam:{get:function(){return this.Ln},set:function(a){this.Ln=a}}}),Oo.prototype.redo=Oo.prototype.redo,Oo.prototype.canRedo=Oo.prototype.canRedo,Oo.prototype.undo=Oo.prototype.undo,Oo.prototype.canUndo=Oo.prototype.canUndo,Oo.prototype.getParam=Oo.prototype.Dz,Oo.prototype.getValue=Oo.prototype.I,Oo.prototype.clear=Oo.prototype.clear;var ys=new en(Oo,"Transaction",-1),wo=new en(Oo,"Property",0),Xo=new en(Oo,"Insert",1),$o=new en(Oo,"Remove",2);Oo.className="ChangedEvent",Oo.Transaction=ys,Oo.Property=wo,Oo.Insert=Xo,Oo.Remove=$o;function va(){this.o=new Fn().freeze(),this.xa="",this.j=!1}va.prototype.toString=function(a){var y="Transaction: "+this.name+" "+this.changes.count.toString()+(this.isComplete?"":", incomplete");if(a!==void 0&&0<a){a=this.changes.count;for(var E=0;E<a;E++){var x=this.changes.M(E);x!==null&&(y+=`
`+x.toString())}}return y},va.prototype.clear=function(){var a=this.changes;a.ka();for(var y=a.count-1;0<=y;y--){var E=a.M(y);E!==null&&E.clear()}a.clear(),a.freeze()},va.prototype.canUndo=function(){return this.isComplete},va.prototype.undo=function(){if(this.canUndo())for(var a=this.changes.count-1;0<=a;a--){var y=this.changes.M(a);y!==null&&y.undo()}},va.prototype.canRedo=function(){return this.isComplete},va.prototype.redo=function(){if(this.canRedo())for(var a=this.changes.count,y=0;y<a;y++){var E=this.changes.M(y);E!==null&&E.redo()}},va.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new zi,E=0;E<a.count;E++){var x=a.M(E);if(x!==null&&x.change===wo&&x.object){var b=y.get(x.object);b||(b=new zi,y.set(x.object,b));var z=b.get(x.propertyName);z===null?b.set(x.propertyName,-1):(0<z&&a.cd(z,null),b.set(x.propertyName,E))}}for(E=y=0;E<a.count;E++)x=a.M(E),x!==null&&(E>y&&a.cd(y,x),y++);for(;a.length>y;)a.pop();a.freeze()}},It.Object.defineProperties(va.prototype,{changes:{get:function(){return this.o}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},isComplete:{get:function(){return this.j},set:function(a){this.j=a}}}),va.prototype.optimize=va.prototype.ak,va.prototype.redo=va.prototype.redo,va.prototype.canRedo=va.prototype.canRedo,va.prototype.undo=va.prototype.undo,va.prototype.canUndo=va.prototype.canUndo,va.prototype.clear=va.prototype.clear,va.className="Transaction";function ho(){this.Pt=new In,this.Jd=!1,this.u=new Fn().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new Fn().freeze(),this.hl=new Fn,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}ho.prototype.toString=function(a){var y="UndoManager "+this.historyIndex+"<"+this.history.count+"<="+this.maxHistoryLength;y+="[";for(var E=this.nestedTransactionNames.count,x=0;x<E;x++)0<x&&(y+=" "),y+=this.nestedTransactionNames.M(x);if(y+="]",a!==void 0&&0<a)for(E=this.history.count,x=0;x<E;x++)y+=`
`+this.history.M(x).toString(a-1);return y},ho.prototype.clear=function(){var a=this.history;a.ka();for(var y=a.count-1;0<=y;y--){var E=a.M(y);E!==null&&E.clear()}a.clear(),this.Ce=-1,a.freeze(),this.Fe=!1,this.Np=null,this.bi=0,this.Ie.ka(),this.Ie.clear(),this.Ie.freeze(),this.hl.clear(),this.Dt=this.rq=this.Gt=this.Ft=!1},ho.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},Ce=ho.prototype,Ce.Xw=function(a){this.Pt.add(a)},Ce.Rx=function(a){this.Pt.remove(a)},Ce.Ea=function(a){if(a===void 0&&(a=""),a===null&&(a=""),this.isUndoingRedoing)return!1;this.tt===!0&&(this.tt=!1,this.bi++,this.isInternalTransaction||this.Ob("StartingFirstTransaction",a,this.currentTransaction),0<this.bi&&this.bi--),this.isEnabled&&(this.Ie.ka(),this.Ie.add(a),this.Ie.freeze(),this.currentTransaction===null?this.hl.add(0):this.hl.add(this.currentTransaction.changes.count)),this.bi++;var y=this.transactionLevel===1;return y&&(this.isInternalTransaction||this.Ob("StartedTransaction",a,this.currentTransaction)),y},Ce.eb=function(a){return a===void 0&&(a=""),lc(this,!0,a)},Ce.Kf=function(){return lc(this,!1,"")};function lc(a,y,E){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&Ti("Ending transaction without having started a transaction: "+E);var x=a.transactionLevel===1,b=a.currentTransaction;x&&y&&(a.isInternalTransaction||a.Ob("CommittingTransaction",E,b));var z=0;if(0<a.transactionLevel&&(a.bi--,a.isEnabled)){var ee=a.Ie.count;0<ee&&(E===""&&(E=a.Ie.M(0)),a.Ie.ka(),a.Ie.mb(ee-1),a.Ie.freeze()),ee=a.hl.count,0<ee&&(z=a.hl.M(ee-1),a.hl.mb(ee-1))}if(x){if(y)a.rq=!1,b===null&&E!==""&&(b=a.currentTransaction),a.isEnabled&&b!==null&&(b.isComplete||(b.isComplete=!0,b.name=E),a.lx(),y=a.history,y.ka(),x=a.maxHistoryLength,0<=x&&(x===0?y.clear():y.count>=x&&(z=y.M(0),z!==null&&z.clear(),y.mb(0),a.Ce--)),x===0||y.count!==0&&y.get(y.count-1)===b||(y.add(b),a.Ce++),y.freeze()),a.isInternalTransaction||a.Ob("CommittedTransaction",E,b);else{a.Fe=!0;try{a.isEnabled&&b!==null&&(b.isComplete=!0,b.undo())}finally{a.isInternalTransaction||a.Ob("RolledBackTransaction",E,b),a.Fe=!1}b!==null&&b.clear()}return a.Np=null,a.isPendingClear&&a.clear(),a.isPendingClear=!1,a.isPendingUnmodified=!1,!0}if(a.isEnabled&&!y&&b!==null){for(a=z,E=b.changes,b=E.count-1;b>=a;b--)y=E.M(b),y!==null&&y.undo(),E.ka(),E.mb(b);E.freeze()}return!1}Ce.lx=function(){if(!this.isUndoingRedoing&&this.canRedo()){var a=this.history;a.ka();for(var y=a.count-1;y>this.historyIndex;y--){var E=a.M(y);E!==null&&E.clear(),a.mb(y),this.rq=!0}a.freeze()}},ho.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToUndo;return!!(a!==null&&a.canUndo())},ho.prototype.undo=function(){if(this.canUndo()){var a=this.transactionToUndo;try{this.Fe=!0,this.Ob("StartingUndo","Undo",a),this.Ce--,a.undo()}catch(y){Ti("undo error: "+y.toString())}finally{this.Ob("FinishedUndo","Undo",a),this.Fe=!1}}},ho.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToRedo;return!!(a!==null&&a.canRedo())},ho.prototype.redo=function(){if(this.canRedo()){var a=this.transactionToRedo;try{this.Fe=!0,this.Ob("StartingRedo","Redo",a),this.Ce++,a.redo()}catch(y){Ti("redo error: "+y.toString())}finally{this.Ob("FinishedRedo","Redo",a),this.Fe=!1}}},ho.prototype.Ob=function(a,y,E){E===void 0&&(E=null);var x=new Oo;for(x.change=ys,x.propertyName=a,x.object=E,x.oldValue=y,a=this.models;a.next();)y=a.value,x.model=y,y.ds(x)},ho.prototype.Tu=function(a){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(a)){var y=this.currentTransaction;y===null&&(this.Np=y=new va);var E=a.copy();y=y.changes,y.ka(),y.add(E),y.freeze(),this.checksTransactionLevel&&0>=this.transactionLevel&&!this.tt&&(a=a.diagram,a!==null&&a.pi===!1||Ti("Change not within a transaction: "+E.toString()))}},ho.prototype.skipsEvent=function(a){if(a===null||0>a.change.value)return!0;if(a=a.object,a===null)return!1;if(a.layer!==void 0){if(a=a.layer,a!==null&&a.isTemporary)return!0}else if(a.isTemporary)return!0;return!1},It.Object.defineProperties(ho.prototype,{models:{get:function(){return this.Pt.iterator}},isEnabled:{get:function(){return this.Jd},set:function(a){this.Jd=a}},transactionToUndo:{get:function(){return 0<=this.historyIndex&&this.historyIndex<=this.history.count-1?this.history.M(this.historyIndex):null}},transactionToRedo:{get:function(){return this.historyIndex<this.history.count-1?this.history.M(this.historyIndex+1):null}},isUndoingRedoing:{get:function(){return this.Fe}},history:{get:function(){return this.u}},maxHistoryLength:{get:function(){return this.o},set:function(a){this.o=a}},historyIndex:{get:function(){return this.Ce}},currentTransaction:{get:function(){return this.Np}},transactionLevel:{get:function(){return this.bi}},isInTransaction:{get:function(){return 0<this.bi}},checksTransactionLevel:{get:function(){return this.j},set:function(a){this.j=a}},nestedTransactionNames:{get:function(){return this.Ie}},isPendingClear:{get:function(){return this.Ft},set:function(a){this.Ft=a}},isPendingUnmodified:{get:function(){return this.Gt},set:function(a){this.Gt=a}},isInternalTransaction:{get:function(){return this.Dt},set:function(a){this.Dt=a}},isJustDiscarded:{get:function(){return this.rq}}}),ho.prototype.handleChanged=ho.prototype.Tu,ho.prototype.redo=ho.prototype.redo,ho.prototype.undo=ho.prototype.undo,ho.prototype.canUndo=ho.prototype.canUndo,ho.prototype.discardHistoryAfterIndex=ho.prototype.lx,ho.prototype.rollbackTransaction=ho.prototype.Kf,ho.prototype.commitTransaction=ho.prototype.eb,ho.prototype.startTransaction=ho.prototype.Ea,ho.prototype.removeModel=ho.prototype.Rx,ho.prototype.addModel=ho.prototype.Xw,ho.prototype.clear=ho.prototype.clear,ho.className="UndoManager";function Pr(){wr(this),this.H=Nc,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new Qa,this.Zr=-1}Pr.prototype.toString=function(){return this.name!==""?this.name+" Tool":Pn(this.constructor)},Pr.prototype.updateAdornments=function(){},Pr.prototype.canStart=function(){return this.isEnabled},Pr.prototype.doStart=function(){},Pr.prototype.doActivate=function(){this.isActive=!0},Pr.prototype.doDeactivate=function(){this.isActive=!1},Pr.prototype.doStop=function(){},Pr.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},Pr.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},Pr.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},Pr.prototype.doMouseMove=function(){},Pr.prototype.doMouseUp=function(){this.stopTool()},Pr.prototype.doMouseWheel=function(){},Pr.prototype.canStartMultiTouch=function(){return!0},Pr.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,E=y.So(0,lt.allocAt(NaN,NaN)),x=y.So(1,lt.allocAt(NaN,NaN));if(E.w()&&x.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){a.Bw=a.scale;var b=x.x-E.x,z=x.y-E.y;a.Jw=Math.sqrt(b*b+z*z),y.bubbles=!1}lt.free(E),lt.free(x)},Pr.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,E=y.So(0,lt.allocAt(NaN,NaN)),x=y.So(1,lt.allocAt(NaN,NaN));if(E.w()&&x.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){var b=x.x-E.x,z=x.y-E.y;z=Math.sqrt(b*b+z*z)/a.Jw,b=new lt((Math.min(x.x,E.x)+Math.max(x.x,E.x))/2,(Math.min(x.y,E.y)+Math.max(x.y,E.y))/2),z*=a.Bw;var ee=a.commandHandler;if(z!==a.scale&&ee.canResetZoom(z)){var re=a.zoomPoint;a.zoomPoint=b,ee.resetZoom(z),a.zoomPoint=re}y.bubbles=!1}lt.free(E),lt.free(x)},Pr.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},Pr.prototype.doKeyUp=function(){},Pr.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},Pr.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},Pr.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.lastInput,E=a.Ol(y.documentPoint,!1);if(E!==null){if($i?y.meta:y.control){for(a.R("ChangingSelection",a.selection),y=E;y!==null&&!y.canSelect();)y=y.containingGroup;y!==null&&(y.isSelected=!y.isSelected),a.R("ChangedSelection",a.selection)}else if(y.shift){if(!E.isSelected){for(a.R("ChangingSelection",a.selection),y=E;y!==null&&!y.canSelect();)y=y.containingGroup;y!==null&&(y.isSelected=!0),a.R("ChangedSelection",a.selection)}}else if(!E.isSelected){for(y=E;y!==null&&!y.canSelect();)y=y.containingGroup;y!==null&&a.select(y)}}else!y.left||($i?y.meta:y.control)||y.shift||a.clearSelection()}},Pr.prototype.standardMouseClick=function(a,y){a===void 0&&(a=null),y===void 0&&(y=function(b){return!b.layer.isTemporary});var E=this.diagram,x=E.lastInput;return a=E.ic(x.documentPoint,a,y),x.targetObject=a,gh(a,x,E),x.handled};function gh(a,y,E){if(y.handled=!1,a===null||a.If()){var x=0;y.left?x=y.clickCount===1?1:y.clickCount===2?2:1:y.right&&y.clickCount===1&&(x=3);var b="ObjectSingleClicked";if(a!==null){switch(x){case 1:b="ObjectSingleClicked";break;case 2:b="ObjectDoubleClicked";break;case 3:b="ObjectContextClicked"}x!==0&&E.R(b,a)}else{switch(x){case 1:b="BackgroundSingleClicked";break;case 2:b="BackgroundDoubleClicked";break;case 3:b="BackgroundContextClicked"}x!==0&&E.R(b)}if(a!==null)for(;a!==null;){switch(E=null,x){case 1:E=a.click;break;case 2:E=a.doubleClick?a.doubleClick:a.click;break;case 3:E=a.contextClick}if(E!==null&&(E(y,a),y.handled))break;a=a.panel}else{switch(a=null,x){case 1:a=E.click;break;case 2:a=E.doubleClick?E.doubleClick:E.click;break;case 3:a=E.contextClick}a!==null&&a(y)}}}Pr.prototype.standardMouseOver=function(){var a=this.diagram,y=a.lastInput;if(a.animationManager.zb!==!0){var E=a.skipsUndoManager;a.skipsUndoManager=!0;var x=a.viewportBounds.ca(y.documentPoint)?a.ic(y.documentPoint,null,null):null;!y.event||y.event.type!=="pointercancel"&&y.event.type!=="pointerout"||(x=null),y.targetObject=x;var b=!1;if(x!==a.Ck){var z=a.Ck,ee=z;for(a.Ck=x,this.doCurrentObjectChanged(z,x),y.handled=!1;z!==null;){var re=z.mouseLeave;if(re!==null&&(x===z||x!==null&&x.rg(z)||(re(y,z,x),b=!0,y.handled)))break;z=z.panel}for(z=ee,y.handled=!1;x!==null&&(ee=x.mouseEnter,!(ee!==null&&(z===x||z!==null&&z.rg(x)||(ee(y,x,z),b=!0,y.handled))));)x=x.panel;x=a.Ck}if(x!==null){for(z=x,ee="";z!==null&&(ee=z.cursor,ee==="");)z=z.panel;for(a.currentCursor=ee,y.handled=!1,z=x;z!==null&&(x=z.mouseOver,!(x!==null&&(x(y,z),b=!0,y.handled)));)z=z.panel}else this.doUpdateCursor(null),x=a.mouseOver,x!==null&&(x(y),b=!0);b&&a.$b(),a.skipsUndoManager=E}},Pr.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},Pr.prototype.doCurrentObjectChanged=function(){},Pr.prototype.standardMouseWheel=function(){var a=this.diagram,y=a.lastInput,E=y.delta;if(E!==0&&a.documentBounds.w()){var x=a.commandHandler,b=a.toolManager.mouseWheelBehavior;if(x!==null&&(b===Au&&!y.shift||b===Tc&&y.control))(0<E?x.canIncreaseZoom():x.canDecreaseZoom())&&(b=a.zoomPoint,a.zoomPoint=y.viewPoint,0<E?x.increaseZoom():x.decreaseZoom(),a.zoomPoint=b),y.bubbles=!1;else if(b===Au&&y.shift||b===Tc&&!y.control){x=a.position.copy();var z=y.event;b=z.deltaMode;var ee=z.deltaX;z=z.deltaY;var re="pixel";if(ee===0&&z===0||y.shift)!y.shift&&a.allowVerticalScroll?(E=3*E*a.scrollVerticalLineChange,a.scroll(re,0<E?"up":"down",Math.abs(E))):y.shift&&a.allowHorizontalScroll&&(E=3*E*a.scrollHorizontalLineChange,a.scroll(re,0<E?"left":"right",Math.abs(E)));else{switch(b){case 0:re="pixel";break;case 1:re="line";break;case 2:re="page"}ee!==0&&a.allowHorizontalScroll&&(ee*=a.scrollHorizontalLineChange/16,a.scroll(re,0<ee?"right":"left",Math.abs(ee))),z!==0&&a.allowVerticalScroll&&(z*=a.scrollVerticalLineChange/16,a.scroll(re,0<z?"down":"up",Math.abs(z)))}this.doWheelChange(a,x,y)}}},Pr.prototype.doWheelChange=function(a,y,E){a.position.D(y)&&E.event.wheelDeltaX===0||(E.bubbles=!1)},Pr.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var E=this,x=y.clone(this.yy);this.Zr=Gt(function(){E.doWaitAfter(x)},a)},Pr.prototype.cancelWaitAfter=function(){this.Zr!==-1&&Rn.clearTimeout(this.Zr),this.Zr=-1},Pr.prototype.doWaitAfter=function(){},Pr.prototype.findToolHandleAt=function(a,y){return a=this.diagram.ic(a,function(E){for(;E!==null&&!(E.panel instanceof Ur);)E=E.panel;return E}),a===null?null:a.part.category===y?a:null},Pr.prototype.isBeyondDragSize=function(a,y){var E=this.diagram;a===void 0&&(a=E.firstInput.viewPoint),y===void 0&&(y=E.lastInput.viewPoint);var x=E.toolManager.dragSize,b=x.width;return x=x.height,E.firstInput.isTouchEvent&&(b+=6,x+=6),Math.abs(y.x-a.x)>b||Math.abs(y.y-a.y)>x},It.Object.defineProperties(Pr.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof Qt&&(this.H=a)}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},isEnabled:{get:function(){return this.Jd},set:function(a){this.Jd=a}},isActive:{get:function(){return this.nb},set:function(a){this.nb=a}},transactionResult:{get:function(){return this.wm},set:function(a){this.wm=a}}}),Pr.prototype.startTransaction=Pr.prototype.Ea,Pr.className="Tool";function Co(){Pr.call(this),this.name="ToolManager",this.hb=new Fn,this.ob=new Fn,this.Hb=new Fn,this.F=this.V=850,this.o=new ri(2,2).ja(),this.Ha=5e3,this.ia=Tc,this.u=sd,this.Mp=this.j=null,this.zj=-1}Ut(Co,Pr),Co.prototype.initializeStandardTools=function(){},Co.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof Ur&&this.Mp===a){var E=y.adornedObject;(a!==null?E.part===a:E===null)?this.showToolTip(y,E):this.hideToolTip()}},Co.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===Zl&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===Rl){y.bubbles=!0;return}if(this.gestureBehavior===Zl)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomStart();return}}for(var E=this.mouseDownTools.length,x=0;x<E;x++){var b=this.mouseDownTools.M(x);if(b.diagram=this.diagram,b.canStart()){a.doFocus(),a.currentTool=b,a.currentTool===b&&(b.isActive||b.doActivate(),b.doMouseDown());return}}a.lastInput.button===1&&(this.mouseWheelBehavior===Tc?this.mouseWheelBehavior=Au:this.mouseWheelBehavior===Au&&(this.mouseWheelBehavior=Tc)),this.doActivate(),this.standardWaitAfter(this.holdDelay,y)},Co.prototype.doMouseMove=function(){var a=this.diagram,y=a.lastInput;if(y.isMultiTouch){if(this.gestureBehavior===Rl){y.bubbles=!0;return}if(this.gestureBehavior===Zl)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomMove();return}}if(this.isActive)for(var E=this.mouseMoveTools.length,x=0;x<E;x++){var b=this.mouseMoveTools.M(x);if(b.diagram=this.diagram,b.canStart()){a.doFocus(),a.currentTool=b,a.currentTool===b&&(b.isActive||b.doActivate(),b.doMouseMove());return}}ph(this,a),a=y.event,a===null||a.type!=="pointermove"&&a.cancelable||(y.bubbles=!0)};function ph(a,y){a.standardMouseOver(),a.isBeyondDragSize()&&a.standardWaitAfter(a.isActive?a.holdDelay:a.hoverDelay,y.lastInput)}Co.prototype.doCurrentObjectChanged=function(a,y){a=this.currentToolTip,a===null||y!==null&&a instanceof Ur&&(y===a||y.rg(a))||this.hideToolTip()},Co.prototype.doWaitAfter=function(a){var y=this.diagram;y.ta!==null&&(this.doMouseHover(),this.isActive||this.doToolTip(),a.isTouchEvent&&!y.lastInput.handled&&(a=a.copy(),a.button=2,a.buttons=2,y.lastInput=a,y.qu=!0,y.doMouseUp()))},Co.prototype.doMouseHover=function(){var a=this.diagram,y=a.lastInput;y.targetObject===null&&(y.targetObject=a.ic(y.documentPoint,null,null));var E=y.targetObject;if(E!==null)for(y.handled=!1;E!==null&&(a=this.isActive?E.mouseHold:E.mouseHover,!(a!==null&&(a(y,E),y.handled)));)E=E.panel;else E=this.isActive?a.mouseHold:a.mouseHover,E!==null&&E(y)},Co.prototype.doToolTip=function(){var a=this.diagram,y=a.lastInput;if(y.targetObject===null&&(y.targetObject=a.ic(y.documentPoint,null,null)),y=y.targetObject,y!==null){if(a=this.currentToolTip,!(a instanceof Ur)||y!==a&&!y.rg(a)){for(;y!==null;){if(a=y.toolTip,a!==null){this.showToolTip(a,y);return}y=y.panel}this.hideToolTip()}}else y=a.toolTip,y!==null?this.showToolTip(y,null):this.hideToolTip()},Co.prototype.showToolTip=function(a,y){var E=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof Ur){a.layerName="Tool",a.selectable=!1,a.scale=1/E.scale,a.category="ToolTip",a.placeholder!==null&&(a.placeholder.scale=E.scale);var x=a.diagram;x!==null&&x!==E&&x.remove(a),E.add(a),y!==null?a.adornedObject=y:a.data=E.model,a.Va(),this.positionToolTip(a,y)}else a instanceof Rr&&a!==this.currentToolTip&&a.show(y,E,this);if(this.currentToolTip=a,this.zj!==-1&&(Rn.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var b=this;this.zj=Gt(function(){b.hideToolTip()},a)}},Co.prototype.positionToolTip=function(a){if(a.placeholder===null){var y=this.diagram,E=y.lastInput.documentPoint.copy(),x=a.measuredBounds,b=y.viewportBounds;y.lastInput.isTouchEvent&&(E.x-=x.width),E.x+x.width>b.right&&(E.x-=x.width+5/y.scale),E.x<b.x&&(E.x=b.x),E.y=E.y+20/y.scale+x.height>b.bottom?E.y-(x.height+5/y.scale):E.y+20/y.scale,E.y<b.y&&(E.y=b.y),a.position=E}},Co.prototype.hideToolTip=function(){this.zj!==-1&&(Rn.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof Ur?(a.remove(y),this.Mp!==null&&this.Mp.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof Rr&&y.hide!==null&&y.hide(a,this),this.currentToolTip=null)},Co.prototype.doMouseUp=function(){this.cancelWaitAfter();var a=this.diagram;if(this.isActive)for(var y=this.mouseUpTools.length,E=0;E<y;E++){var x=this.mouseUpTools.M(E);if(x.diagram=this.diagram,x.canStart()){a.doFocus(),a.currentTool=x,a.currentTool===x&&(x.isActive||x.doActivate(),x.doMouseUp());return}}a.doFocus(),this.doDeactivate()},Co.prototype.doMouseWheel=function(){this.standardMouseWheel()},Co.prototype.doKeyDown=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyDown()},Co.prototype.doKeyUp=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyUp()},Co.prototype.findTool=function(a){for(var y=this.mouseDownTools.length,E=0;E<y;E++){var x=this.mouseDownTools.M(E);if(x.name===a)return x}for(y=this.mouseMoveTools.length,E=0;E<y;E++)if(x=this.mouseMoveTools.M(E),x.name===a)return x;for(y=this.mouseUpTools.length,E=0;E<y;E++)if(x=this.mouseUpTools.M(E),x.name===a)return x;return null},Co.prototype.replaceTool=function(a,y){y!==null&&(y.diagram=this.diagram);for(var E=this.mouseDownTools.length,x=0;x<E;x++){var b=this.mouseDownTools.M(x);if(b.name===a)return y!==null?this.mouseDownTools.cd(x,y):this.mouseDownTools.mb(x),b}for(E=this.mouseMoveTools.length,x=0;x<E;x++)if(b=this.mouseMoveTools.M(x),b.name===a)return y!==null?this.mouseMoveTools.cd(x,y):this.mouseMoveTools.mb(x),b;for(E=this.mouseUpTools.length,x=0;x<E;x++)if(b=this.mouseUpTools.M(x),b.name===a)return y!==null?this.mouseUpTools.cd(x,y):this.mouseUpTools.mb(x),b;return null},Co.prototype.gb=function(a,y,E){y!==null&&(y.name=a,y.diagram=this.diagram),this.findTool(a)?this.replaceTool(a,y):y!==null&&E.add(y)},It.Object.defineProperties(Co.prototype,{mouseWheelBehavior:{get:function(){return this.ia},set:function(a){this.ia=a}},gestureBehavior:{get:function(){return this.u},set:function(a){this.u=a}},currentToolTip:{get:function(){return this.j},set:function(a){this.j=a,this.Mp=a!==null&&a instanceof Ur?a.adornedPart:null}},mouseDownTools:{get:function(){return this.hb}},mouseMoveTools:{get:function(){return this.ob}},mouseUpTools:{get:function(){return this.Hb}},hoverDelay:{get:function(){return this.V},set:function(a){this.V=a}},holdDelay:{get:function(){return this.F},set:function(a){this.F=a}},dragSize:{get:function(){return this.o},set:function(a){this.o=a.J()}},toolTipDuration:{get:function(){return this.Ha},set:function(a){this.Ha=a}}}),Co.prototype.replaceStandardTool=Co.prototype.gb;var Tc=new en(Co,"WheelScroll",0),Au=new en(Co,"WheelZoom",1),Bd=new en(Co,"WheelNone",2),sd=new en(Co,"GestureZoom",3),Zl=new en(Co,"GestureCancel",4),Rl=new en(Co,"GestureNone",5);Co.className="ToolManager",Co.WheelScroll=Tc,Co.WheelZoom=Au,Co.WheelNone=Bd,Co.GestureZoom=sd,Co.GestureCancel=Zl,Co.GestureNone=Rl;function To(){Pr.call(this),this.name="Dragging",this.u=this.Sw=this.ob=!0,this.o=this.Ha=this.V=this.Oe=null,this.Ym=this.Hb=!1,this.tl=new lt(NaN,NaN),this.Fr=new lt,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new In().freeze(),this.ia=new ae,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var Rs;Ut(To,Pr),To.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a.isReadOnly&&!a.allowDragOut||!a.allowMove&&!a.allowCopy&&!a.allowDragOut||!a.allowSelect)return!1;var y=a.lastInput;return!y.left||a.currentTool!==this&&(!this.isBeyondDragSize()||y.isTouchEvent&&y.timestamp-a.firstInput.timestamp<this.Ik)?!1:this.findDraggablePart()!==null},To.prototype.findDraggablePart=function(){var a=this.diagram;if(a=a.Ol(a.firstInput.documentPoint,!1),a===null)return null;for(;a!==null&&!a.canSelect();)a=a.containingGroup;return a!==null&&(a.canMove()||a.canCopy())?a:null},To.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.Ol(a.firstInput.documentPoint,!1);if(y!==null){for(;y!==null&&!y.canSelect();)y=y.containingGroup;this.currentPart=y,this.currentPart===null||this.currentPart.isSelected||(a.R("ChangingSelection",a.selection),y=a.lastInput,($i?y.meta:y.control)||y.shift||a.clearSelection(!0),this.currentPart.isSelected=!0,a.R("ChangedSelection",a.selection))}}},To.prototype.doActivate=function(){var a=this.diagram;this.Bn=null,this.currentPart===null&&this.standardMouseSelect();var y=this.currentPart;y!==null&&(y.canMove()||y.canCopy())&&(a.Fu(!0),Ia=null,this.isActive=!0,this.tl.set(a.position),Ac(this,a.selection),this.Cg.length=0,a.animationManager.Cc(),this.draggedParts=this.computeEffectiveCollection(a.selection,this.dragOptions),this.Sw=this.diagram.layout.isRealtime,this.diagram.layout.isRealtime=!1,a.Ns=!0,a.Gf("temporaryPixelRatio")===!0&&30<a.$w&&el(a),Df(a,this.draggedParts),this.Ea("Drag"),this.startPoint=a.firstInput.documentPoint,a.isMouseCaptured=!0,a.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,Ia=this,Mu=this.diagram,this.doSimulatedDragOut()))};function Ac(a,y){if(a.dragsLink){var E=a.diagram;E.allowRelink&&(E.model.Wj()&&y.count===1&&y.first()instanceof Xn?(a.draggedLink=y.first(),a.draggedLink.canRelinkFrom()&&a.draggedLink.canRelinkTo()&&a.draggedLink.Ej(),a.Oe=E.toolManager.findTool("Relinking"),a.Oe===null&&(a.Oe=new Fs,a.Oe.diagram=E),a.Oe.originalLink=a.draggedLink):(a.draggedLink=null,a.Oe=null))}}To.prototype.computeEffectiveCollection=function(a,y){return this.diagram.commandHandler.computeEffectiveCollection(a,y)},To.prototype.Pd=function(a){return a===void 0?new Zc(Go):this.isGridSnapEnabled?new Zc(new lt(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new Zc(a.copy())},To.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,a.Fu(!1),a.ug(),cu(this),Hd(a,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<Rs.count){for(var y=Rs,E=y.length,x=0;x<E;x++){var b=y.M(x);Yu(b),El(b),cu(b),b.diagram.ug()}y.clear()}Yu(this),this.tl.h(NaN,NaN),Mu!==null&&(Mu.currentCursor=""),Ia=Mu=null,El(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),Kh(a,!0)},To.prototype.stopTransaction=function(){var a=this.diagram,y=Pr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y};function cu(a){var y=a.diagram,E=y.skipsUndoManager;y.skipsUndoManager=!0,Vu(a,y.lastInput,null),y.skipsUndoManager=E,a.Cg.length=0}function Cu(){var a=Ia;El(a),du(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}To.prototype.doCancel=function(){El(this),du(this);var a=this.diagram;this.tl.w()&&(a.position=this.tl),this.stopTool()},To.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput;this.isActive&&(y.key==="Esc"?this.doCancel():y.key!==a.previousInput.key&&this.doMouseMove())},To.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function Kl(a,y){if(a.copiedParts===null){var E=a.diagram;if((!y||!E.isReadOnly&&!E.isModelReadOnly)&&a.draggedParts!==null){var x=E.undoManager;for(x.isEnabled&&x.isInTransaction?x.currentTransaction!==null&&0<x.currentTransaction.changes.count&&(E.undoManager.Kf(),E.Ea("Drag")):du(a),E.skipsUndoManager=!y,E.partManager.addsToTemporaryLayer=!y,a.startPoint=E.firstInput.documentPoint,y=a.copiesEffectiveCollection?a.draggedParts.Lf():E.selection,y=E.Kj(y,E,!0),E=new zi,x=a.draggedParts.iterator;x.next();){var b=x.key;if(b.Zc()&&b.canCopy()){var z=y.I(b);z!==null&&(z.location=b.location,z.Va(),E.add(z,a.Pd(z.location)))}}for(y=y.iterator;y.next();)x=y.value,x instanceof Xn&&x.canCopy()&&E.add(x,a.Pd());a.copiedParts=E,Ac(a,E.Lf()),a.draggedLink!==null&&(E=a.draggedLink,y=E.routeBounds,bd(E,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}function El(a){var y=a.diagram;if(a.copiedParts!==null){if(y.Is(a.copiedParts.Lf(),!1),a.copiedParts=null,a.draggedParts!==null)for(var E=a.draggedParts.iterator;E.next();)E.key instanceof Xn&&(E.value.point=new lt(0,0));a.doUpdateCursor(null)}y.skipsUndoManager=!1,y.partManager.addsToTemporaryLayer=!1,a.startPoint=y.firstInput.documentPoint}function Yu(a){if(a.draggedLink!==null){if(a.dragsLink&&a.Oe!==null){var y=a.Oe;y.diagram.remove(y.temporaryFromNode),y.diagram.remove(y.temporaryToNode),a.Oe.originalLink=null}a.draggedLink=null,a.Oe=null}}function xl(a,y,E){var x=a.diagram,b=a.startPoint,z=lt.alloc();z.assign(x.lastInput.documentPoint),a.moveParts(y,z.re(b),E),lt.free(z),x.Gf("temporaryPixelRatio")===!0&&x.Yh===null&&30<x.$w&&(el(x),x.hk())}To.prototype.moveParts=function(a,y,E){E===void 0&&(E=!1);var x=this.diagram;x!==null&&Ud(x,a,y,this.dragOptions,E)};function du(a){if(a.draggedParts!==null){for(var y=a.diagram,E=a.draggedParts.iterator;E.next();){var x=E.key;x.Zc()&&(x.location=E.value.point)}for(E=a.draggedParts.iterator;E.next();)if(x=E.key,x instanceof Xn&&x.suspendsRouting){var b=E.value.point;a.draggedParts.add(x,a.Pd()),bd(x,-b.x,-b.y)}y.bd()}}function uc(a,y){var E=a.diagram;a.dragsLink&&(a.draggedLink!==null&&(a.draggedLink.fromNode=null,a.draggedLink.toNode=null),hu(a,!1));var x=a.findDragOverObject(y),b=E.lastInput;b.targetObject=x,a.doUpdateCursor(x);var z=E.skipsUndoManager,ee=!1;try{if(E.skipsUndoManager=!0,ee=Vu(a,b,x),!a.isActive&&Ia===null)return;var re=x!==null?x.part:null;if(re===null||E.handlesDragDropForTopLevelParts&&re.isTopLevel&&!(re instanceof or)){var oe=E.mouseDragOver;oe!==null&&(oe(b),ee=!0)}if(!a.isActive&&Ia===null||(a.doDragOver(y,x),!a.isActive&&Ia===null))return}finally{E.skipsUndoManager=z,ee&&E.bd()}a.Bn=x,E.isReadOnly||!E.allowMove&&!E.allowCopy||!E.allowHorizontalScroll&&!E.allowVerticalScroll||E.gs(b.viewPoint)}To.prototype.findDragOverObject=function(a){var y=this;return Mc(this.diagram,a,null,function(E){return E===null?E=!0:(E=E.part,E=!!(E===null||E instanceof Ur||E.layer.isTemporary||y.draggedParts&&y.draggedParts.contains(E)||y.copiedParts&&y.copiedParts.contains(E))),!E})},To.prototype.doUpdateCursor=function(a){var y=this.diagram;(a===null||this.Bn!==a)&&(!this.diagram.currentTool.isActive||this.mayCopy()?y.currentCursor=this.copyCursor:this.mayMove()?y.currentCursor=this.moveCursor:this.mayDragOut()&&(y.currentCursor=this.nodropCursor))};function Vu(a,y,E){var x=!1,b=a.Cg.length,z=0<b?a.Cg[0]:null;if(E===z)return!1;y.handled=!1;for(var ee=0;ee<b;ee++){var re=a.Cg[ee],oe=re.mouseDragLeave;if(oe!==null&&(oe(y,re,E),x=!0,y.handled))break}if(a.Cg.length=0,!a.isActive&&Ia===null||E===null)return x;for(y.handled=!1,b=E;b!==null;)a.Cg.push(b),b=cc(b);for(b=a.Cg.length,E=0;E<b&&(ee=a.Cg[E],re=ee.mouseDragEnter,re===null||(re(y,ee,z),x=!0,!y.handled));E++);return x}function cc(a){var y=a.panel;return y!==null?y:a instanceof Ui&&!(a instanceof or)&&(a=a.containingGroup,a!==null&&a.handlesDragDropForMembers)?a:null}function dc(a,y,E){var x=a.Oe;if(x===null)return null;var b=a.diagram.og(y,x.portGravity,function(ce){return x.findValidLinkablePort(ce,E)});a=lt.alloc();var z=1/0,ee=null;for(b=b.iterator;b.next();){var re=b.value;if(re.part!==null){var oe=re.ga(ur,a);oe=y.Bf(oe),oe<z&&(ee=re,z=oe)}}return lt.free(a),ee}function hu(a,y){var E=a.draggedLink;if(E!==null&&!(2>E.pointsCount)){var x=a.diagram;if(!x.isReadOnly){var b=a.Oe;if(b!==null){var z=null,ee=null;E.fromNode===null&&(z=dc(a,E.i(0),!1),z!==null&&(ee=z.part));var re=null,oe=null;E.toNode===null&&(re=dc(a,E.i(E.pointsCount-1),!0),re!==null&&(oe=re.part)),b.isValidLink(ee,z,oe,re)?y?(E.defaultFromPoint=E.i(0),E.defaultToPoint=E.i(E.pointsCount-1),E.suspendsRouting=!1,E.fromNode=ee,z!==null&&(E.fromPortId=z.portId),E.toNode=oe,re!==null&&(E.toPortId=re.portId),E.fromPort!==x.Mx&&x.R("LinkRelinked",E,x.Mx),E.toPort!==x.Nx&&x.R("LinkRelinked",E,x.Nx)):xe(b,ee,z,oe,re):xe(b,null,null,null,null)}}}}To.prototype.doDragOver=function(){};function Nu(a,y){var E=a.diagram;a.dragsLink&&hu(a,!0),cu(a);var x=a.findDragOverObject(y),b=E.lastInput;if(b.targetObject=x,x!==null){b.handled=!1;for(var z=x;z!==null;){var ee=z.mouseDrop;if(ee!==null&&(ee(b,z),b.handled))break;ld(a,b,z),z=cc(z)}}else z=E.mouseDrop,z!==null&&z(b);if(a.isActive||Ia!==null){for(b=(a.copiedParts||a.draggedParts).iterator;b.next();)z=b.key,z instanceof pi&&z.linksConnected.each(function(re){re.suspendsRouting=!1});if(a.doDropOnto(y,x),a.isActive||Ia!==null){for(a=hn.alloc(),y=E.selection.iterator;y.next();)x=y.value,x instanceof pi&&mh(E,x,a);hn.free(a)}}}function ld(a,y,E){a=a.diagram,E=E.part,!a.handlesDragDropForTopLevelParts||!E.isTopLevel||E instanceof or||(E=a.mouseDrop,E!==null&&E(y))}function mh(a,y,E){var x=!1;if(E=y.getAvoidableRect(E),a.viewportBounds.Re(E)&&(x=!0),a=a.Nu(E,function(b){return b.part},function(b){return b instanceof Xn},!0,function(b){return b instanceof Xn},x),a.count!==0)for(a=a.iterator;a.next();)E=a.value,!E.Td(y)&&E.isAvoiding&&E.bb()}To.prototype.doDropOnto=function(){},To.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;this.simulatedMouseMove(y.event,y.documentPoint,y.targetDiagram)||this.currentPart===null||this.draggedParts===null||(this.mayCopy()?(Kl(this,!1),Df(a,this.copiedParts),xl(this,this.copiedParts,!1),Hd(a,this.copiedParts)):this.mayMove()?(El(this),xl(this,this.draggedParts,!0)):this.mayDragOut()?(Kl(this,!1),xl(this,this.copiedParts,!1)):El(this),uc(this,a.lastInput.documentPoint))}},To.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;if(!this.simulatedMouseUp(y.event,y.documentPoint,y.targetDiagram)){y=!1;var E=this.mayCopy();if(E&&this.copiedParts!==null?(El(this),Kl(this,!0),Df(a,this.copiedParts),xl(this,this.copiedParts,!1),Hd(a,this.copiedParts),this.copiedParts!==null&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(b){b.isSelected=!0}))):(y=!0,El(this),this.mayMove()&&(xl(this,this.draggedParts,!0),uc(this,a.lastInput.documentPoint))),this.Ym=!0,Nu(this,a.lastInput.documentPoint),this.isActive){var x=E?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&vh(this),a.Ya(),Hd(a,this.draggedParts),this.transactionResult=E?"Copy":"Move",a.R(E?"SelectionCopied":"SelectionMoved",x)}this.stopTool(),E&&a.R("ChangedSelection",a.selection)}}},To.prototype.simulatedMouseMove=function(a,y,E){if(Ia===null)return!1;var x=Ia.diagram;E instanceof Qt||(E=null);var b=Mu;return E!==b&&(b!==null&&b!==x&&(b.ug(),Ia.isDragOutStarted=!1,b=b.toolManager.findTool("Dragging"),b!==null&&b.doSimulatedDragLeave()),Mu=E,E!==null&&E!==x&&(Cu(),b=E.toolManager.findTool("Dragging"),b!==null&&(Rs.contains(b)||Rs.add(b),b.doSimulatedDragEnter())),this.doUpdateCursor(null)),E===null||E===x||!E.allowDrop||E.isReadOnly||!E.allowInsert?!1:(x=E.toolManager.findTool("Dragging"),x!==null&&(a!==null&&(a.targetTouches!==void 0&&(0<a.targetTouches.length?a=a.targetTouches[0]:0<a.changedTouches.length&&(a=a.changedTouches[0])),y=E.getMouse(a)),E.lastInput.documentPoint=y,E.lastInput.viewPoint=E.op(y),E.lastInput.down=!1,E.lastInput.up=!1,x.doSimulatedDragOver()),!0)},To.prototype.simulatedMouseUp=function(a,y,E){if(Ia===null)return!1;var x=Mu,b=Ia.diagram;if(E===null)return Ia.doCancel(),!0;if(E!==x){var z=x.toolManager.findTool("Dragging");if(x!==null&&x!==b&&z!==null)return x.ug(),Ia.isDragOutStarted=!1,z.doSimulatedDragLeave(),!1;Mu=E,x=E.toolManager.findTool("Dragging"),x!==null&&(Cu(),Rs.contains(x)||Rs.add(x),x.doSimulatedDragEnter())}return E!==this.diagram?(a!==null?(a.targetTouches!==void 0&&(0<a.targetTouches.length?a=a.targetTouches[0]:0<a.changedTouches.length&&(a=a.changedTouches[0])),y=E.getMouse(a)):y===null&&(y=new lt),E.lastInput.documentPoint=y,E.lastInput.viewPoint=E.op(y),E.lastInput.down=!1,E.lastInput.up=!0,a=E.toolManager.findTool("Dragging"),a!==null&&a.doSimulatedDrop(),a=Ia,a!==null&&(E=a.mayCopy(),a.transactionResult=E?"Copy":"Move",a.stopTool()),!0):!1};function vh(a){if(a.draggedParts!==null)for(var y=a.draggedParts.iterator;y.next();){var E=y.key;E instanceof pi&&(E=E.containingGroup,E===null||E.placeholder===null||a.draggedParts.contains(E)||E.placeholder.v())}}To.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowCopy||($i?!a.lastInput.alt:!a.lastInput.control))return!1;for(a=a.selection.iterator;a.next();)if(a.value.canCopy())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canCopy())},To.prototype.mayDragOut=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(!a.allowDragOut||!a.allowCopy||a.allowMove)return!1;for(a=a.selection.iterator;a.next();)if(a.value.canCopy())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canCopy())},To.prototype.mayMove=function(){var a=this.diagram;if(a.isReadOnly||!a.allowMove)return!1;for(a=a.selection.iterator;a.next();)if(a.value.canMove())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canMove())},To.prototype.computeBorder=function(a,y,E){return this.Ym||this.draggedParts===null||this.draggedParts.contains(a)?null:E.assign(y)},To.prototype.Az=function(){return Ia},To.prototype.mayDragIn=function(){var a=this.diagram;if(!a.allowDrop||a.isReadOnly||a.isModelReadOnly||!a.allowInsert)return!1;var y=Ia;return!(y===null||y.diagram.model.dataFormat!==a.model.dataFormat)},To.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.diagram;a.animationManager.Cc(),ql(a),a.animationManager.Cc(),a=Ia,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},To.prototype.doSimulatedDragLeave=function(){var a=Ia;a!==null&&a.doSimulatedDragOut(),this.doCancel()},To.prototype.doSimulatedDragOver=function(){var a=this.diagram;a.animationManager.Dm=!0;var y=Ia;if(y!==null&&y.draggedParts!==null){if(!this.mayDragIn())return;yh(this,y.draggedParts.Lf(),!1,a.firstInput),xl(this,this.copiedParts,!1),uc(this,a.lastInput.documentPoint)}a.animationManager.Dm=!1},To.prototype.doSimulatedDrop=function(){var a=this.diagram,y=Ia;if(y!==null){var E=y.diagram;if(y.Ym=!0,El(this),!this.mayDragIn())return;a.animationManager.Dm=!0,a.R("ChangingSelection",a.selection),this.Ea("Drop"),yh(this,y.draggedParts.Lf(),!0,a.lastInput),xl(this,this.copiedParts,!1);var x=new In;this.copiedParts!==null&&(a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(b){b.isSelected=!0,x.add(b)})),Nu(this,a.lastInput.documentPoint),a.Ya(),this.copiedParts!==null&&(this.transactionResult="ExternalCopy"),this.copiedParts=null,a.doFocus(),a.R("ExternalObjectsDropped",x,E),this.stopTransaction(),a.R("ChangedSelection",a.selection)}a.animationManager.Dm=!1};function yh(a,y,E,x){if(a.copiedParts===null){var b=a.diagram;if(!b.isReadOnly&&!b.isModelReadOnly){b.skipsUndoManager=!E,b.partManager.addsToTemporaryLayer=!E,a.startPoint=x.documentPoint,E=b.Kj(y,b,!0);var z=hn.alloc();b=x=1/0;for(var ee=-1/0,re=-1/0,oe=y.iterator;oe.next();){var ce=oe.value;if(ce.isVisible()){var he=ce.location;ce=he.x,he=he.y,isNaN(ce)||isNaN(he)||(ce<x&&(x=ce),he<b&&(b=he),ce>ee&&(ee=ce),he>re&&(re=he))}}for(x===1/0?z.h(0,0,0,0):z.h(x,b,ee-x,re-b),x=z.x+z.width/2,b=z.y+z.height/2,hn.free(z),z=a.Fr,ee=new zi,re=lt.alloc(),oe=y.iterator;oe.next();)ce=oe.value,ce instanceof Xn&&ce.canCopy()&&(he=E.I(ce),he!==null&&(he.points=ce.points,bd(he,z.x-x,z.y-b),he.suspendsRouting=!0,ee.add(he,a.Pd())));for(y=y.iterator;y.next();)ce=y.value,ce.Zc()&&ce.canCopy()&&(oe=E.I(ce),oe!==null&&(ce=ce.location,re.h(z.x-(x-ce.x),z.y-(b-ce.y)),oe.location=re,oe.Va(),ee.add(oe,a.Pd(re))));lt.free(re),a.copiedParts=ee,Ac(a,ee.Lf()),a.draggedLink!==null&&(E=a.draggedLink,y=E.routeBounds,bd(E,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}To.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},To.prototype.computeMove=function(a,y,E,x){return E=this.diagram,E!==null?E.computeMove(a,y,this.dragOptions,x):new lt},It.Object.defineProperties(To.prototype,{isCopyEnabled:{get:function(){return this.ob},set:function(a){this.ob=a}},copiesEffectiveCollection:{get:function(){return this.u},set:function(a){this.u=a}},dragOptions:{get:function(){return this.ia},set:function(a){this.ia=a}},isGridSnapEnabled:{get:function(){return this.dragOptions.isGridSnapEnabled},set:function(a){this.dragOptions.isGridSnapEnabled=a}},isComplexRoutingRealtime:{get:function(){return this.hb},set:function(a){this.hb=a}},isGridSnapRealtime:{get:function(){return this.dragOptions.isGridSnapRealtime},set:function(a){this.dragOptions.isGridSnapRealtime=a}},gridSnapCellSize:{get:function(){return this.dragOptions.gridSnapCellSize},set:function(a){this.dragOptions.gridSnapCellSize.D(a)||(a=a.J(),this.dragOptions.gridSnapCellSize=a)}},gridSnapCellSpot:{get:function(){return this.dragOptions.gridSnapCellSpot},set:function(a){this.dragOptions.gridSnapCellSpot.D(a)||(a=a.J(),this.dragOptions.gridSnapCellSpot=a)}},gridSnapOrigin:{get:function(){return this.dragOptions.gridSnapOrigin},set:function(a){this.dragOptions.gridSnapOrigin.D(a)||(a=a.J(),this.dragOptions.gridSnapOrigin=a)}},dragsLink:{get:function(){return this.dragOptions.dragsLink},set:function(a){this.dragOptions.dragsLink=a}},dragsTree:{get:function(){return this.dragOptions.dragsTree},set:function(a){this.dragOptions.dragsTree=a}},copyCursor:{get:function(){return this.F},set:function(a){this.F=a}},moveCursor:{get:function(){return this.Oc},set:function(a){this.Oc=a}},nodropCursor:{get:function(){return this.Pc},set:function(a){this.Pc=a}},currentPart:{get:function(){return this.V},set:function(a){this.V=a}},copiedParts:{get:function(){return this.o},set:function(a){this.o=a}},draggedParts:{get:function(){return this.Ha},set:function(a){this.Ha=a}},draggingParts:{get:function(){return this.copiedParts!==null?this.copiedParts.Lf():this.draggedParts!==null?this.draggedParts.Lf():this.te}},draggedLink:{get:function(){return this.diagram.draggedLink},set:function(a){this.diagram.draggedLink=a}},isDragOutStarted:{get:function(){return this.Hb},set:function(a){this.Hb=a}},startPoint:{get:function(){return this.Fr},set:function(a){this.Fr.D(a)||this.Fr.assign(a)}},delay:{get:function(){return this.Ik},set:function(a){this.Ik=a}}}),To.prototype.getDraggingSource=To.prototype.Az;var Ia=null,Mu=null;To.className="DraggingTool",Rs=new Fn,er("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),Co.prototype.doCancel=function(){Ia!==null&&Ia.doCancel(),Pr.prototype.doCancel.call(this)};function Ko(){Pr.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new Xn,y=new pr;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new pr,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new pi,y=new pr,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Zr,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new pi,y=new pr,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Zr,a.add(y),a.selectable=!1,a.layerName="Tool",this.Di=a,this.o=y,this.Pc=this.Oc=this.ob=this.hb=this.Hb=null,this.ia=!0,this.hy=new zi,this.Of=this.gj=this.Pf=null}Ut(Ko,Pr),Ko.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},Ko.prototype.copyPortProperties=function(a,y,E,x,b){if(a!==null&&y!==null&&E!==null&&x!==null){var z=y.Df(),ee=ri.alloc();ee.width=y.naturalBounds.width*z,ee.height=y.naturalBounds.height*z,x.desiredSize=ee,ri.free(ee),b?(x.toSpot=y.toSpot,x.toEndSegmentLength=y.toEndSegmentLength):(x.fromSpot=y.fromSpot,x.fromEndSegmentLength=y.fromEndSegmentLength),E.locationSpot=ur,z=lt.alloc(),E.location=y.ga(ur,z),lt.free(z),x.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,E,x,b)}},Ko.prototype.setNoTargetPortProperties=function(a,y,E){y!==null&&(y.desiredSize=Zr,y.fromSpot=Pi,y.toSpot=Pi),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,E)},Ko.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},Ko.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof pi){var y=this.targetPort.part;this.isForwards?this.copyPortProperties(y,this.targetPort,this.temporaryToNode,this.temporaryToPort,!0):this.copyPortProperties(y,this.targetPort,this.temporaryFromNode,this.temporaryFromPort,!1)}else this.isForwards?this.setNoTargetPortProperties(this.temporaryToNode,this.temporaryToPort,!0):this.setNoTargetPortProperties(this.temporaryFromNode,this.temporaryFromPort,!1);(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},Ko.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var E=a.part;if(!(E instanceof pi))return null;for(;a!==null;){var x=y?a.toLinkable:a.fromLinkable;if(x===!0&&(a.portId!==null||a instanceof pi)&&(y?this.isValidTo(E,a):this.isValidFrom(E,a)))return a;if(x===!1)break;a=a.panel}return null},Ko.prototype.findTargetPort=function(a){var y=this.diagram,E=y.lastInput.documentPoint,x=this.portGravity;0>=x&&(x=.1);var b=this,z=y.og(E,x,function(ye){return b.findValidLinkablePort(ye,a)},null,!0);for(x=1/0,y=null,z=z.iterator;z.next();){var ee=z.value,re=ee.part;if(re instanceof pi){var oe=ee.ga(ur,lt.alloc()),ce=E.x-oe.x,he=E.y-oe.y;lt.free(oe),oe=ce*ce+he*he,oe<x&&(ce=this.validPortsCache.I(ee),ce!==null?ce&&(y=ee,x=oe):a&&this.isValidLink(this.originalFromNode,this.originalFromPort,re,ee)||!a&&this.isValidLink(re,ee,this.originalToNode,this.originalToPort)?(this.validPortsCache.add(ee,!0),y=ee,x=oe):this.validPortsCache.add(ee,!1))}}return y!==null&&(E=y.part,E instanceof pi&&(E.layer===null||E.layer.allowLink))?y:null},Ko.prototype.isValidFrom=function(a,y){if(a===null||y===null)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(a.layer!==null&&!a.layer.allowLink||y.fromLinkable!==!0))return!1;var E=y.fromMaxLinks;if(1/0>E){if(this.originalLink!==null&&a===this.originalFromNode&&y===this.originalFromPort)return!0;if(y=y.portId,y===null&&(y=""),a.Mo(y).count>=E)return!1}return!0},Ko.prototype.isValidTo=function(a,y){if(a===null||y===null)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(a.layer!==null&&!a.layer.allowLink||y.toLinkable!==!0))return!1;var E=y.toMaxLinks;if(1/0>E){if(this.originalLink!==null&&a===this.originalToNode&&y===this.originalToPort)return!0;if(y=y.portId,y===null&&(y=""),a.Sd(y).count>=E)return!1}return!0},Ko.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},Ko.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var E=a.part;if(!(E instanceof pi))return!1;a=a.portId,a===null&&(a="");var x=y.part;if(!(x instanceof pi))return!1;for(y=y.portId,y===null&&(y=""),y=x.Sd(y);y.next();)if(x=y.value,x.fromNode===E&&x.fromPortId===a)return!0;return!1},Ko.prototype.isValidLink=function(a,y,E,x){if(!this.isValidFrom(a,y)||!this.isValidTo(E,x)||!(y===null||x===null||(y.fromLinkableSelfNode&&x.toLinkableSelfNode||!this.isInSameNode(y,x))&&(y.fromLinkableDuplicates&&x.toLinkableDuplicates||!this.isLinked(y,x)))||this.originalLink!==null&&(a!==null&&this.isLabelDependentOnLink(a,this.originalLink)||E!==null&&this.isLabelDependentOnLink(E,this.originalLink))||a!==null&&E!==null&&(a.data===null&&E.data!==null||a.data!==null&&E.data===null)||!this.isValidCycle(a,E,this.originalLink))return!1;if(a!==null){var b=a.linkValidation;if(b!==null&&!b(a,y,E,x,this.originalLink))return!1}return E!==null&&(b=E.linkValidation,b!==null&&!b(a,y,E,x,this.originalLink))?!1:(b=this.linkValidation,b!==null?b(a,y,E,x,this.originalLink):!0)},Ko.prototype.isLabelDependentOnLink=function(a,y){if(a===null)return!1;var E=a.labeledLink;if(E===null)return!1;if(E===y)return!0;var x=new In;return x.add(a),Xa(this,E,y,x)};function Xa(a,y,E,x){if(y===E)return!0;var b=y.fromNode;return b!==null&&b.isLinkLabel&&(x.add(b),Xa(a,b.labeledLink,E,x))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(x.add(y),Xa(a,y.labeledLink,E,x))))}Ko.prototype.isValidCycle=function(a,y,E){if(E===void 0&&(E=null),a===null||y===null)return this.isUnconnectedLinkValid;var x=this.diagram.validCycle;if(x!==$h){if(x===Xg){if(x=E||this.temporaryLink,x!==null&&!x.isTreeLink)return!0;for(x=y.linksConnected;x.next();){var b=x.value;if(b!==E&&b.isTreeLink&&b.toNode===y)return!1}return!as(this,a,y,E,!0)}if(x===Jg){if(x=E||this.temporaryLink,x!==null&&!x.isTreeLink)return!0;for(x=a.linksConnected;x.next();)if(b=x.value,b!==E&&b.isTreeLink&&b.fromNode===a)return!1;return!as(this,a,y,E,!0)}if(x===Zg)return a===y?a=!0:(x=new In,x.add(y),a=ts(this,x,a,y,E)),!a;if(x===Kg)return!as(this,a,y,E,!1);if(x===Qg)return a===y?a=!0:(x=new In,x.add(y),a=Wu(this,x,a,y,E)),!a}return!0};function as(a,y,E,x,b){if(y===E)return!0;if(y===null||E===null)return!1;for(var z=y.linksConnected;z.next();){var ee=z.value;if(ee!==x&&(!b||ee.isTreeLink)&&ee.toNode===y&&(ee=ee.fromNode,ee!==y&&as(a,ee,E,x,b)))return!0}return!1}function ts(a,y,E,x,b){if(E===x)return!0;if(E===null||x===null||y.contains(E))return!1;y.add(E);for(var z=E.linksConnected;z.next();){var ee=z.value;if(ee!==b&&ee.toNode===E&&(ee=ee.fromNode,ee!==E&&ts(a,y,ee,x,b)))return!0}return!1}function Wu(a,y,E,x,b){if(E===x)return!0;if(E===null||x===null||y.contains(E))return!1;y.add(E);for(var z=E.linksConnected;z.next();){var ee=z.value;if(ee!==b){var re=ee.fromNode;if(ee=ee.toNode,re=re===E?ee:re,re!==E&&Wu(a,y,re,x,b))return!0}}return!1}It.Object.defineProperties(Ko.prototype,{portGravity:{get:function(){return this.te},set:function(a){0<=a&&(this.te=a)}},isUnconnectedLinkValid:{get:function(){return this.Ha},set:function(a){this.Ha=a}},linkingCursor:{get:function(){return this.u},set:function(a){this.u=a}},temporaryLink:{get:function(){return this.Ci},set:function(a){this.Ci=a}},temporaryFromNode:{get:function(){return this.Bi},set:function(a){(this.Bi=a)&&(this.j=a.port)}},temporaryFromPort:{get:function(){return this.j},set:function(a){if(this.j!==null){var y=this.j.panel;if(y!==null){var E=y.O.indexOf(this.j);y.mb(E),y.Gb(E,a)}}this.j=a}},temporaryToNode:{get:function(){return this.Di},set:function(a){(this.Di=a)&&(this.o=a.port)}},temporaryToPort:{get:function(){return this.o},set:function(a){if(this.o!==null){var y=this.o.panel;if(y!==null){var E=y.O.indexOf(this.o);y.mb(E),y.Gb(E,a)}}this.o=a}},originalLink:{get:function(){return this.Hb},set:function(a){this.Hb=a}},originalFromNode:{get:function(){return this.hb},set:function(a){this.hb=a}},originalFromPort:{get:function(){return this.ob},set:function(a){this.ob=a}},originalToNode:{get:function(){return this.Oc},set:function(a){this.Oc=a}},originalToPort:{get:function(){return this.Pc},set:function(a){this.Pc=a}},isForwards:{get:function(){return this.ia},set:function(a){this.ia=a}},validPortsCache:{get:function(){return this.hy}},targetPort:{get:function(){return this.Pf},set:function(a){this.Pf=a}},linkValidation:{get:function(){return this.gj},set:function(a){this.gj=a}},portTargeted:{get:function(){return this.Of},set:function(a){this.Of=a}}}),Ko.className="LinkingBaseTool";function fs(){Ko.call(this),this.name="Linking",this.V={},this.F=null,this.K=Pu,this.Xd=null}Ut(fs,Ko),fs.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return a.isReadOnly||a.isModelReadOnly||!a.allowLink||!a.model.xs()||!a.lastInput.left||a.currentTool!==this&&!this.isBeyondDragSize()?!1:this.findLinkablePort()!==null},fs.prototype.findLinkablePort=function(){var a=this.diagram,y=this.startObject;if(y===null&&(y=a.ic(a.firstInput.documentPoint,null,null)),y===null||(a=y.part,!(a instanceof pi)))return null;var E=this.direction;if(E===Pu||E===ud){var x=this.findValidLinkablePort(y,!1);if(x!==null||this.startObject===a&&(x=a.port,this.findValidLinkablePort(x,!1)))return this.isForwards=!0,x}return(E===Pu||E===cd)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},fs.prototype.doActivate=function(){var a=this.diagram,y=this.findLinkablePort();y===null?this.stopTool():(this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.isForwards?(this.temporaryToNode!==null&&(this.temporaryToNode.location=a.lastInput.documentPoint),this.originalFromPort=y,y=this.originalFromPort.part,y instanceof pi&&(this.originalFromNode=y),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1)):(this.temporaryFromNode!==null&&(this.temporaryFromNode.location=a.lastInput.documentPoint),this.originalToPort=y,y=this.originalToPort.part,y instanceof pi&&(this.originalToNode=y),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0)),a.add(this.temporaryFromNode),this.temporaryFromNode&&this.temporaryFromNode.Va(),a.add(this.temporaryToNode),this.temporaryToNode&&this.temporaryToNode.Va(),this.temporaryLink!==null&&(this.temporaryFromNode!==null&&(this.temporaryLink.fromNode=this.temporaryFromNode),this.temporaryToNode!==null&&(this.temporaryLink.toNode=this.temporaryToNode),this.temporaryLink.isTreeLink=this.isNewTreeLink(),this.temporaryLink.bb(),a.add(this.temporaryLink)),this.isActive=!0)},fs.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;a.remove(this.temporaryLink),a.remove(this.temporaryFromNode),a.remove(this.temporaryToNode),a.isMouseCaptured=!1,a.currentCursor="",this.stopTransaction()},fs.prototype.doStop=function(){Ko.prototype.doStop.call(this),this.startObject=null},fs.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=this.transactionResult=null,E=null,x=null,b=null,z=null;try{var ee=this.targetPort=this.findTargetPort(this.isForwards);if(ee!==null){var re=ee.part;re instanceof pi&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,E=this.originalFromPort),x=re,b=ee):(y=re,E=ee,this.originalToNode!==null&&(x=this.originalToNode,b=this.originalToPort)))}else this.isForwards?this.originalFromNode!==null&&this.isUnconnectedLinkValid&&(y=this.originalFromNode,E=this.originalFromPort):this.originalToNode!==null&&this.isUnconnectedLinkValid&&(x=this.originalToNode,b=this.originalToPort);y!==null||x!==null?(z=this.insertLink(y,E,x,b),z!==null?(ee===null&&(this.isForwards?z.defaultToPoint=a.lastInput.documentPoint:z.defaultFromPoint=a.lastInput.documentPoint),a.allowSelect&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),z.isSelected=!0),this.transactionResult=this.name,a.R("LinkDrawn",z)):this.doNoLink(y,E,x,b)):this.isForwards?this.doNoLink(this.originalFromNode,this.originalFromPort,null,null):this.doNoLink(null,null,this.originalToNode,this.originalToPort)}finally{this.stopTool(),z&&a.allowSelect&&a.R("ChangedSelection",a.selection)}}},fs.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof Xn)return a.isTreeLink;var y=this.diagram;return y===null?!0:(a=y.partManager.getLinkCategoryForData(a),y=y.partManager.findLinkTemplateForCategory(a),y!==null?y.isTreeLink:!0)},fs.prototype.insertLink=function(a,y,E,x){return this.diagram.partManager.insertLink(a,y,E,x)},fs.prototype.doNoLink=function(){},It.Object.defineProperties(fs.prototype,{archetypeLinkData:{get:function(){return this.V},set:function(a){this.V=a}},archetypeLabelNodeData:{get:function(){return this.F},set:function(a){this.F=a}},direction:{get:function(){return this.K},set:function(a){this.K=a}},startObject:{get:function(){return this.Xd},set:function(a){this.Xd=a}}});var Pu=new en(fs,"Either",0),ud=new en(fs,"ForwardsOnly",0),cd=new en(fs,"BackwardsOnly",0);fs.className="LinkingTool",fs.Either=Pu,fs.ForwardsOnly=ud,fs.BackwardsOnly=cd;function Fs(){Ko.call(this),this.name="Relinking";var a=new pr;a.figure="Diamond",a.desiredSize=Do,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new pr,a.figure="Diamond",a.desiredSize=Do,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new hn}Ut(Fs,Ko),Fs.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Xn){var y="RelinkFrom",E=null;if(a.isSelected&&!this.diagram.isReadOnly){var x=a.selectionObject;x!==null&&a.canRelinkFrom()&&a.actualBounds.w()&&a.isVisible()&&x.actualBounds.w()&&x.Ed()&&(E=a.Pj(y),E===null&&(E=this.makeAdornment(x,!1),a.bh(y,E)))}E===null&&a.Jf(y),y="RelinkTo",E=null,a.isSelected&&!this.diagram.isReadOnly&&(x=a.selectionObject,x!==null&&a.canRelinkTo()&&a.actualBounds.w()&&a.isVisible()&&x.actualBounds.w()&&x.Ed()&&(E=a.Pj(y),E===null?(E=this.makeAdornment(x,!0),a.bh(y,E)):E.v())),E===null&&a.Jf(y)}},Fs.prototype.makeAdornment=function(a,y){var E=new Ur;return E.type=Vn.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&E.add(y.copy()),E.adornedObject=a,E},Fs.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowRelink||!a.model.xs()||!a.lastInput.left)return!1;var y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom");return y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo")),y!==null},Fs.prototype.doActivate=function(){var a=this.diagram;if(this.originalLink===null){var y=this.handle;if(y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom"),y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo"))),y===null)return;var E=y.part;if(!(E instanceof Ur&&E.adornedPart instanceof Xn))return;this.handle=y,this.isForwards=E===null||E.category==="RelinkTo",this.originalLink=E.adornedPart}this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.originalFromPort=this.originalLink.fromPort,this.originalFromNode=this.originalLink.fromNode,this.originalToPort=this.originalLink.toPort,this.originalToNode=this.originalLink.toNode,this.Ew.set(this.originalLink.actualBounds),this.originalLink!==null&&0<this.originalLink.pointsCount&&(this.originalLink.fromNode===null&&(this.temporaryFromPort!==null&&(this.temporaryFromPort.desiredSize=Ji),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=Ji),this.temporaryToNode!==null&&(this.temporaryToNode.location=this.originalLink.i(this.originalLink.pointsCount-1)))),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0),a.add(this.temporaryFromNode),a.add(this.temporaryToNode),this.temporaryLink!==null&&(this.temporaryFromNode!==null&&(this.temporaryLink.fromNode=this.temporaryFromNode),this.temporaryToNode!==null&&(this.temporaryLink.toNode=this.temporaryToNode),this.copyLinkProperties(this.originalLink,this.temporaryLink),this.temporaryLink.bb(),a.add(this.temporaryLink)),this.isActive=!0},Fs.prototype.copyLinkProperties=function(a,y){if(a!==null&&y!==null){y.adjusting=a.adjusting,y.corner=a.corner;var E=a.curve;(E===ig||E===wd)&&(E=Gs),y.curve=E,y.curviness=a.curviness,y.isTreeLink=a.isTreeLink,y.points=a.points,y.routing=a.routing,y.smoothness=a.smoothness,y.fromSpot=a.fromSpot,y.fromEndSegmentLength=a.fromEndSegmentLength,y.fromShortLength=a.fromShortLength,y.toSpot=a.toSpot,y.toEndSegmentLength=a.toEndSegmentLength,y.toShortLength=a.toShortLength}},Fs.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;a.remove(this.temporaryLink),a.remove(this.temporaryFromNode),a.remove(this.temporaryToNode),a.isMouseCaptured=!1,a.currentCursor="",this.stopTransaction()},Fs.prototype.doStop=function(){Ko.prototype.doStop.call(this),this.handle=null},Fs.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram;this.transactionResult=null;var y=this.originalFromNode,E=this.originalFromPort,x=this.originalToNode,b=this.originalToPort,z=this.originalLink;try{if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null){var ee=this.targetPort.part;ee instanceof pi&&(this.isForwards?(x=ee,b=this.targetPort):(y=ee,E=this.targetPort))}else this.isUnconnectedLinkValid?this.isForwards?b=x=null:E=y=null:z=null;z!==null?(this.reconnectLink(z,this.isForwards?x:y,this.isForwards?b:E,this.isForwards),this.targetPort===null&&(this.isForwards?z.defaultToPoint=a.lastInput.documentPoint:z.defaultFromPoint=a.lastInput.documentPoint,z.bb()),this.transactionResult=this.name,a.R("LinkRelinked",z,this.isForwards?this.originalToPort:this.originalFromPort)):this.doNoRelink(this.originalLink,this.isForwards),this.originalLink.Xo(this.Ew)}finally{this.stopTool()}}},Fs.prototype.reconnectLink=function(a,y,E,x){return E=E!==null&&E.portId!==null?E.portId:"",x?(a.toNode=y,a.toPortId=E):(a.fromNode=y,a.fromPortId=E),!0},Fs.prototype.doNoRelink=function(){};function xe(a,y,E,x,b){y!==null?(a.copyPortProperties(y,E,a.temporaryFromNode,a.temporaryFromPort,!1),a.diagram.add(a.temporaryFromNode)):a.diagram.remove(a.temporaryFromNode),x!==null?(a.copyPortProperties(x,b,a.temporaryToNode,a.temporaryToPort,!0),a.diagram.add(a.temporaryToNode)):a.diagram.remove(a.temporaryToNode)}It.Object.defineProperties(Fs.prototype,{fromHandleArchetype:{get:function(){return this.V},set:function(a){this.V=a}},toHandleArchetype:{get:function(){return this.Xd},set:function(a){this.Xd=a}},handle:{get:function(){return this.F},set:function(a){if(a!==null&&!(a.part instanceof Ur))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),Fs.className="RelinkingTool",er("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),er("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function je(){Pr.call(this),this.name="LinkReshaping";var a=new pr;a.figure="Rectangle",a.desiredSize=jo,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new pr,a.figure="Diamond",a.desiredSize=Do,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new lt,this.Yq=new Fn}Ut(je,Pr),je.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:et},je.prototype.om=function(a,y){a.reshapingBehavior=y},je.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Xn){var y=null;if(a.isSelected&&!this.diagram.isReadOnly){var E=a.path;E!==null&&a.canReshape()&&a.actualBounds.w()&&a.isVisible()&&E.actualBounds.w()&&E.Ed()&&(y=a.Pj(this.name),y===null||y.Aw!==a.pointsCount||y.Uw!==a.resegmentable)&&(y=this.makeAdornment(E),y!==null&&(y.Aw=a.pointsCount,y.Uw=a.resegmentable,a.bh(this.name,y)))}y===null&&a.Jf(this.name)}},je.prototype.makeAdornment=function(a){var y=a.part,E=y.pointsCount,x=y.isOrthogonal,b=null;if(y.points!==null&&1<E){b=new Ur,b.type=Vn.Link,E=y.firstPickIndex;var z=y.lastPickIndex,ee=x?1:0;if(y.resegmentable&&y.computeCurve()!==Gl)for(var re=E+ee;re<z-ee;re++){var oe=this.makeResegmentHandle(a,re);oe!==null&&(oe.segmentIndex=re,oe.segmentFraction=.5,oe.fromMaxLinks=999,b.add(oe))}for(ee=E+1;ee<z;ee++)if(re=this.makeHandle(a,ee),re!==null){if(re.segmentIndex=ee,ee!==E)if(ee===E+1&&x){oe=y.i(E);var ce=y.i(E+1);Bt.B(oe.x,ce.x)&&Bt.B(oe.y,ce.y)&&(ce=y.i(E-1)),Bt.B(oe.x,ce.x)?(this.om(re,Et),re.cursor="n-resize"):Bt.B(oe.y,ce.y)&&(this.om(re,St),re.cursor="w-resize")}else ee===z-1&&x?(oe=y.i(z-1),ce=y.i(z),Bt.B(oe.x,ce.x)&&Bt.B(oe.y,ce.y)&&(oe=y.i(z+1)),Bt.B(oe.x,ce.x)?(this.om(re,Et),re.cursor="n-resize"):Bt.B(oe.y,ce.y)&&(this.om(re,St),re.cursor="w-resize")):ee!==z&&(this.om(re,Rt),re.cursor="move");b.add(re)}b.adornedObject=a}return b},je.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},je.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},je.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!a.isReadOnly&&a.allowReshape&&a.lastInput.left?this.findToolHandleAt(a.firstInput.documentPoint,this.name)!==null:!1},je.prototype.doActivate=function(){var a=this.diagram;if(this.handle===null&&(this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name)),this.handle!==null){var y=this.handle.part.adornedPart;if(y instanceof Xn){if(this.Ts=y,a.isMouseCaptured=!0,this.Ea(this.name),y.resegmentable&&this.handle.fromMaxLinks===999){var E=y.points.copy(),x=this.getResegmentingPoint();if(E.Gb(this.handle.segmentIndex+1,x),y.isOrthogonal&&E.Gb(this.handle.segmentIndex+1,x),y.points=E,y.Wb(),y.updateAdornments(),this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name),this.handle===null){this.doDeactivate();return}}this.Fw=y.i(this.handle.segmentIndex),this.Yq=y.points.copy(),this.isActive=!0}}},je.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},je.prototype.stopTransaction=function(){var a=this.diagram,y=Pr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},je.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},je.prototype.getResegmentingPoint=function(){return this.handle.ga(ur)},je.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},je.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.computeReshape(a.lastInput.documentPoint);if(this.reshape(y),y=this.adornedLink,y!==null&&y.resegmentable){var E=this.handle.segmentIndex,x=y.i(E-1),b=y.i(E),z=y.i(E+1);if(y.isOrthogonal){if(E>y.firstPickIndex+1&&E<y.lastPickIndex-1){var ee=y.i(E-2);if(Math.abs(x.x-b.x)<this.resegmentingDistance&&Math.abs(x.y-b.y)<this.resegmentingDistance&&(We(this,ee,x,b,z,!0)||We(this,ee,x,b,z,!1))){var re=y.points.copy();We(this,ee,x,b,z,!0)?(re.cd(E-2,new lt(ee.x,(z.y+ee.y)/2)),re.cd(E+1,new lt(z.x,(z.y+ee.y)/2))):(re.cd(E-2,new lt((z.x+ee.x)/2,ee.y)),re.cd(E+1,new lt((z.x+ee.x)/2,z.y))),re.mb(E),re.mb(E-1),y.points=re,y.Wb()}else ee=y.i(E+2),Math.abs(b.x-z.x)<this.resegmentingDistance&&Math.abs(b.y-z.y)<this.resegmentingDistance&&(We(this,x,b,z,ee,!0)||We(this,x,b,z,ee,!1))&&(re=y.points.copy(),We(this,x,b,z,ee,!0)?(re.cd(E-1,new lt(x.x,(x.y+ee.y)/2)),re.cd(E+2,new lt(ee.x,(x.y+ee.y)/2))):(re.cd(E-1,new lt((x.x+ee.x)/2,x.y)),re.cd(E+2,new lt((x.x+ee.x)/2,ee.y))),re.mb(E+1),re.mb(E),y.points=re,y.Wb())}}else ee=lt.alloc(),Bt.qh(x.x,x.y,z.x,z.y,b.x,b.y,ee)&&ee.Bf(b)<this.resegmentingDistance*this.resegmentingDistance&&(x=y.points.copy(),x.mb(E),y.points=x,y.Wb()),lt.free(ee)}a.Ya(),this.transactionResult=this.name,a.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function We(a,y,E,x,b,z){return z?Math.abs(y.y-E.y)<a.resegmentingDistance&&Math.abs(E.y-x.y)<a.resegmentingDistance&&Math.abs(x.y-b.y)<a.resegmentingDistance:Math.abs(y.x-E.x)<a.resegmentingDistance&&Math.abs(E.x-x.x)<a.resegmentingDistance&&Math.abs(x.x-b.x)<a.resegmentingDistance}je.prototype.reshape=function(a){var y=this.adornedLink;y.uh();var E=this.handle.segmentIndex,x=this.Ru(this.handle);if(y.isOrthogonal)if(E===y.firstPickIndex+1)E=y.firstPickIndex+1,x===Et?(y.L(E,y.i(E-1).x,a.y),y.L(E+1,y.i(E+2).x,a.y)):x===St&&(y.L(E,a.x,y.i(E-1).y),y.L(E+1,a.x,y.i(E+2).y));else if(E===y.lastPickIndex-1)E=y.lastPickIndex-1,x===Et?(y.L(E-1,y.i(E-2).x,a.y),y.L(E,y.i(E+1).x,a.y)):x===St&&(y.L(E-1,a.x,y.i(E-2).y),y.L(E,a.x,y.i(E+1).y));else{x=E;var b=y.i(x),z=y.i(x-1),ee=y.i(x+1);Bt.B(z.x,b.x)&&Bt.B(b.y,ee.y)?(Bt.B(z.x,y.i(x-2).x)&&!Bt.B(z.y,y.i(x-2).y)?(y.m(x,a.x,z.y),E++,x++):y.L(x-1,a.x,z.y),Bt.B(ee.y,y.i(x+2).y)&&!Bt.B(ee.x,y.i(x+2).x)?y.m(x+1,ee.x,a.y):y.L(x+1,ee.x,a.y)):Bt.B(z.y,b.y)&&Bt.B(b.x,ee.x)?(Bt.B(z.y,y.i(x-2).y)&&!Bt.B(z.x,y.i(x-2).x)?(y.m(x,z.x,a.y),E++,x++):y.L(x-1,z.x,a.y),Bt.B(ee.x,y.i(x+2).x)&&!Bt.B(ee.y,y.i(x+2).y)?y.m(x+1,a.x,ee.y):y.L(x+1,a.x,ee.y)):Bt.B(z.x,b.x)&&Bt.B(b.x,ee.x)?(Bt.B(z.x,y.i(x-2).x)&&!Bt.B(z.y,y.i(x-2).y)?(y.m(x,a.x,z.y),E++,x++):y.L(x-1,a.x,z.y),Bt.B(ee.x,y.i(x+2).x)&&!Bt.B(ee.y,y.i(x+2).y)?y.m(x+1,a.x,ee.y):y.L(x+1,a.x,ee.y)):Bt.B(z.y,b.y)&&Bt.B(b.y,ee.y)&&(Bt.B(z.y,y.i(x-2).y)&&!Bt.B(z.x,y.i(x-2).x)?(y.m(x,z.x,a.y),E++,x++):y.L(x-1,z.x,a.y),Bt.B(ee.y,y.i(x+2).y)&&!Bt.B(ee.x,y.i(x+2).x)?y.m(x+1,ee.x,a.y):y.L(x+1,ee.x,a.y)),y.L(E,a.x,a.y)}else y.L(E,a.x,a.y),x=y.fromNode,b=y.fromPort,x!==null&&(z=x.findVisibleNode(),z!==null&&z!==x&&(x=z,b=x.port)),E===1&&y.computeSpot(!0,b).Mc()&&(z=b.ga(ur,lt.alloc()),x=y.getLinkPointFromPoint(x,b,z,a,!0,lt.alloc()),y.L(0,x.x,x.y),lt.free(z),lt.free(x)),x=y.toNode,b=y.toPort,x!==null&&(z=x.findVisibleNode(),z!==null&&z!==x&&(x=z,b=x.port)),E===y.pointsCount-2&&y.computeSpot(!1,b).Mc()&&(E=b.ga(ur,lt.alloc()),a=y.getLinkPointFromPoint(x,b,E,a,!1,lt.alloc()),y.L(y.pointsCount-1,a.x,a.y),lt.free(E),lt.free(a));y.zf()},je.prototype.computeReshape=function(a){var y=this.adornedLink,E=this.handle.segmentIndex;switch(this.Ru(this.handle)){case Rt:return a;case Et:return new lt(y.i(E).x,a.y);case St:return new lt(a.x,y.i(E).y);default:case et:return y.i(E)}},It.Object.defineProperties(je.prototype,{handleArchetype:{get:function(){return this.o},set:function(a){this.o=a}},midHandleArchetype:{get:function(){return this.u},set:function(a){this.u=a}},handle:{get:function(){return this.j},set:function(a){if(a!==null&&!(a.part instanceof Ur))throw Error("new handle is not in an Adornment: "+a);this.j=a}},adornedLink:{get:function(){return this.Ts}},resegmentingDistance:{get:function(){return this.F},set:function(a){this.F=a}},originalPoint:{get:function(){return this.Fw}},originalPoints:{get:function(){return this.Yq}}}),je.prototype.setReshapingBehavior=je.prototype.om,je.prototype.getReshapingBehavior=je.prototype.Ru;var et=new en(je,"None",0),St=new en(je,"Horizontal",1),Et=new en(je,"Vertical",2),Rt=new en(je,"All",3);je.className="LinkReshapingTool",je.None=et,je.Horizontal=St,je.Vertical=Et,je.All=Rt,er("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function Wt(){Pr.call(this),this.name="Resizing",this.o=new ri(1,1).freeze(),this.j=new ri(9999,9999).freeze(),this.yg=new ri(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var a=new pr;a.alignmentFocus=ur,a.figure="Rectangle",a.desiredSize=jo,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new lt,this.Dw=new ri,this.Tn=new lt,this.rt=new ri(0,0),this.qt=new ri(1/0,1/0),this.pt=new ri(1,1)}Ut(Wt,Pr),Wt.prototype.updateAdornments=function(a){if(!(a===null||a instanceof Xn)){if(a.isSelected&&!this.diagram.isReadOnly){var y=a.resizeObject,E=a.Pj(this.name);if(y!==null&&a.canResize()&&a.actualBounds.w()&&a.isVisible()&&y.actualBounds.w()&&y.Ed()&&((E===null||E.adornedObject!==y)&&(E=this.makeAdornment(y)),E!==null)){y=y.li(),Kd(a)&&this.updateResizeHandles(E,y),a.bh(this.name,E);return}}a.Jf(this.name)}},Wt.prototype.makeAdornment=function(a){var y=a.part.resizeAdornmentTemplate;if(y===null){y=new Ur,y.type=Vn.Spot,y.locationSpot=ur;var E=new Hs;E.isPanelMain=!0,y.add(E),y.add(this.makeHandle(a,Ki)),y.add(this.makeHandle(a,Qr)),y.add(this.makeHandle(a,Wo)),y.add(this.makeHandle(a,Jo)),y.add(this.makeHandle(a,rs)),y.add(this.makeHandle(a,_a)),y.add(this.makeHandle(a,Ya)),y.add(this.makeHandle(a,ds))}else if(yu(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},Wt.prototype.makeHandle=function(a,y){return a=this.handleArchetype,a===null?null:(a=a.copy(),a.alignment=y,a)},Wt.prototype.updateResizeHandles=function(a,y){if(a!==null){if(!a.alignment.Xb()&&(a.cursor==="pointer"||0<a.cursor.indexOf("resize")))e:{var E=a.alignment;if(E.Mc()&&(E=ur),0>=E.x)y=0>=E.y?y+225:1<=E.y?y+135:y+180;else if(1<=E.x)0>=E.y?y+=315:1<=E.y&&(y+=45);else if(0>=E.y)y+=270;else if(1<=E.y)y+=90;else break e;0>y?y+=360:360<=y&&(y-=360),a.cursor=22.5>y?"e-resize":67.5>y?"se-resize":112.5>y?"s-resize":157.5>y?"sw-resize":202.5>y?"w-resize":247.5>y?"nw-resize":292.5>y?"n-resize":337.5>y?"ne-resize":"e-resize"}else if(a instanceof Vn)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},Wt.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!a.isReadOnly&&a.allowResize&&a.lastInput.left?this.findToolHandleAt(a.firstInput.documentPoint,this.name)!==null:!1},Wt.prototype.doActivate=function(){var a=this.diagram;this.handle===null&&(this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name)),this.handle!==null&&(this.adornedObject=this.handle.part.adornedObject,this.adornedObject!==null&&(a.isMouseCaptured=!0,a.animationManager.Cc(),this.Ea(this.name),this.Xq.set(this.adornedObject.ga(this.handle.alignment.gv())),this.Tn.set(this.adornedObject.part.location),this.Dw.set(this.adornedObject.desiredSize),this.pt=this.computeCellSize(),this.rt=this.computeMinSize(),this.qt=this.computeMaxSize(),this.isActive=!0))},Wt.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},Wt.prototype.stopTransaction=function(){var a=this.diagram,y=Pr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Wt.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},Wt.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive){var y=this.rt,E=this.qt,x=this.pt,b=this.adornedObject.qs(a.lastInput.documentPoint,lt.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,E,x,z),this.resize(y),a.bd(),lt.free(b)}},Wt.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.rt,E=this.qt,x=this.pt,b=this.adornedObject.qs(a.lastInput.documentPoint,lt.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,E,x,z),this.resize(y),lt.free(b),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},Wt.prototype.resize=function(a){var y=this.diagram,E=this.adornedObject;if(E!==null){if(E.desiredSize=a.size,a=E.part,a.Va(),E=E.ga(this.handle.alignment.gv()),a instanceof or){var x=new Fn;if(x.add(a),!this.dragsMembers&&a.placeholder===null){var b=new ae;b.dragsMembers=!1}y.moveParts(x,this.oppositePoint.copy().re(E),!0,b)}else a.location=a.location.copy().re(E).add(this.oppositePoint);y.bd()}},Wt.prototype.computeResize=function(a,y,E,x,b,z){y.Mc()&&(y=ur);var ee=this.adornedObject.naturalBounds,re=ee.x,oe=ee.y,ce=ee.x+ee.width,he=ee.y+ee.height,ye=1;if(!z){ye=ee.width;var Te=ee.height;0>=ye&&(ye=1),0>=Te&&(Te=1),ye=Te/ye}return Te=lt.alloc(),Bt.No(a.x,a.y,re,oe,b.width,b.height,Te),a=ee.copy(),0>=y.x?0>=y.y?(a.x=Math.max(Te.x,ce-x.width),a.x=Math.min(a.x,ce-E.width),a.width=Math.max(ce-a.x,E.width),a.y=Math.max(Te.y,he-x.height),a.y=Math.min(a.y,he-E.height),a.height=Math.max(he-a.y,E.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ye*a.width,x.height),E.height),a.width=a.height/ye):(a.width=Math.max(Math.min(a.height/ye,x.width),E.width),a.height=ye*a.width),a.x=ce-a.width,a.y=he-a.height)):1<=y.y?(a.x=Math.max(Te.x,ce-x.width),a.x=Math.min(a.x,ce-E.width),a.width=Math.max(ce-a.x,E.width),a.height=Math.max(Math.min(Te.y-oe,x.height),E.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ye*a.width,x.height),E.height),a.width=a.height/ye):(a.width=Math.max(Math.min(a.height/ye,x.width),E.width),a.height=ye*a.width),a.x=ce-a.width)):(a.x=Math.max(Te.x,ce-x.width),a.x=Math.min(a.x,ce-E.width),a.width=ce-a.x,z||(a.height=Math.max(Math.min(ye*a.width,x.height),E.height),a.width=a.height/ye,a.y=oe+.5*(he-oe-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(Te.x-re,x.width),E.width),a.y=Math.max(Te.y,he-x.height),a.y=Math.min(a.y,he-E.height),a.height=Math.max(he-a.y,E.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ye*a.width,x.height),E.height),a.width=a.height/ye):(a.width=Math.max(Math.min(a.height/ye,x.width),E.width),a.height=ye*a.width),a.y=he-a.height)):1<=y.y?(a.width=Math.max(Math.min(Te.x-re,x.width),E.width),a.height=Math.max(Math.min(Te.y-oe,x.height),E.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ye*a.width,x.height),E.height),a.width=a.height/ye):(a.width=Math.max(Math.min(a.height/ye,x.width),E.width),a.height=ye*a.width))):(a.width=Math.max(Math.min(Te.x-re,x.width),E.width),z||(a.height=Math.max(Math.min(ye*a.width,x.height),E.height),a.width=a.height/ye,a.y=oe+.5*(he-oe-a.height))):0>=y.y?(a.y=Math.max(Te.y,he-x.height),a.y=Math.min(a.y,he-E.height),a.height=he-a.y,z||(a.width=Math.max(Math.min(a.height/ye,x.width),E.width),a.height=ye*a.width,a.x=re+.5*(ce-re-a.width))):1<=y.y&&(a.height=Math.max(Math.min(Te.y-oe,x.height),E.height),z||(a.width=Math.max(Math.min(a.height/ye,x.width),E.width),a.height=ye*a.width,a.x=re+.5*(ce-re-a.width))),lt.free(Te),a},Wt.prototype.computeReshape=function(){var a=Dn;return this.adornedObject instanceof pr&&(a=Nv(this.adornedObject)),!(a===Ii||this.diagram.lastInput.shift)},Wt.prototype.computeMinSize=function(){var a=this.adornedObject.minSize.copy(),y=this.minSize;return!isNaN(y.width)&&y.width>a.width&&(a.width=y.width),!isNaN(y.height)&&y.height>a.height&&(a.height=y.height),a},Wt.prototype.computeMaxSize=function(){var a=this.adornedObject.maxSize.copy(),y=this.maxSize;return!isNaN(y.width)&&y.width<a.width&&(a.width=y.width),!isNaN(y.height)&&y.height<a.height&&(a.height=y.height),a},Wt.prototype.computeCellSize=function(){var a=new ri(NaN,NaN),y=this.adornedObject.part;return y!==null&&(y=y.resizeCellSize,!isNaN(y.width)&&0<y.width&&(a.width=y.width),!isNaN(y.height)&&0<y.height&&(a.height=y.height)),y=this.cellSize,isNaN(a.width)&&!isNaN(y.width)&&0<y.width&&(a.width=y.width),isNaN(a.height)&&!isNaN(y.height)&&0<y.height&&(a.height=y.height),y=this.diagram,(isNaN(a.width)||isNaN(a.height))&&y&&(y=y.grid,y!==null&&y.visible&&this.isGridSnapEnabled&&(y=y.gridCellSize,isNaN(a.width)&&!isNaN(y.width)&&0<y.width&&(a.width=y.width),isNaN(a.height)&&!isNaN(y.height)&&0<y.height&&(a.height=y.height))),(isNaN(a.width)||a.width===0||a.width===1/0)&&(a.width=1),(isNaN(a.height)||a.height===0||a.height===1/0)&&(a.height=1),a},It.Object.defineProperties(Wt.prototype,{handleArchetype:{get:function(){return this.F},set:function(a){this.F=a}},handle:{get:function(){return this.u},set:function(a){if(a!==null&&!(a.part instanceof Ur))throw Error("new handle is not in an Adornment: "+a);this.u=a}},adornedObject:{get:function(){return this.ue},set:function(a){if(a!==null&&a.part instanceof Ur)throw Error("new handle must not be in an Adornment: "+a);this.ue=a}},minSize:{get:function(){return this.o},set:function(a){if(!this.o.D(a)){var y=a.width;isNaN(y)&&(y=0),a=a.height,isNaN(a)&&(a=0),this.o.h(y,a)}}},maxSize:{get:function(){return this.j},set:function(a){if(!this.j.D(a)){var y=a.width;isNaN(y)&&(y=1/0),a=a.height,isNaN(a)&&(a=1/0),this.j.h(y,a)}}},cellSize:{get:function(){return this.yg},set:function(a){this.yg.D(a)||this.yg.assign(a)}},isGridSnapEnabled:{get:function(){return this.V},set:function(a){this.V=a}},dragsMembers:{get:function(){return this.ia},set:function(a){this.ia=a}},oppositePoint:{get:function(){return this.Xq},set:function(a){this.Xq.D(a)||this.Xq.assign(a)}},originalDesiredSize:{get:function(){return this.Dw}},originalLocation:{get:function(){return this.Tn}}}),Wt.className="ResizingTool",er("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function _n(){Pr.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new lt,this.ue=null;var a=new pr;a.figure="Ellipse",a.desiredSize=Do,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new lt(NaN,NaN),this.u=0,this.F=50}Ut(_n,Pr),_n.prototype.updateAdornments=function(a){if(a!==null){if(a.ph()){var y=a.rotateObject;if(y===a||y===a.path||y.isPanelMain)return}if(a.isSelected&&!this.diagram.isReadOnly&&(y=a.rotateObject,y!==null&&a.canRotate()&&a.actualBounds.w()&&a.isVisible()&&y.actualBounds.w()&&y.Ed())){var E=a.Pj(this.name);if((E===null||E.adornedObject!==y)&&(E=this.makeAdornment(y)),E!==null){E.angle=y.li(),E.placeholder===null&&(E.location=this.computeAdornmentLocation(y)),a.bh(this.name,E);return}}a.Jf(this.name)}},_n.prototype.makeAdornment=function(a){var y=a.part.rotateAdornmentTemplate;if(y===null){y=new Ur,y.type=Vn.Position,y.locationSpot=ur;var E=this.handleArchetype;E!==null&&y.add(E.copy())}else if(yu(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},_n.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!a.isReadOnly&&a.allowRotate&&a.lastInput.left?this.findToolHandleAt(a.firstInput.documentPoint,this.name)!==null:!1},_n.prototype.doActivate=function(){var a=this.diagram;if(this.adornedObject===null){if(this.handle===null&&(this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name)),this.handle===null)return;this.adornedObject=this.handle.part.adornedObject}this.adornedObject!==null&&(a.isMouseCaptured=!0,a.delaysLayout=!0,this.Ea(this.name),this.Cw=this.adornedObject.angle,this.kr=this.computeRotationPoint(this.adornedObject),this.Tn=this.adornedObject.part.location.copy(),this.isActive=!0)},_n.prototype.computeRotationPoint=function(a){var y=a.part,E=y.locationObject;return y.rotationSpot.sb()?a.ga(y.rotationSpot):a===y||a===E?E.ga(y.locationSpot):a.ga(ur)},_n.prototype.computeAdornmentLocation=function(a){var y=this.rotationPoint;y.w()||(y=this.computeRotationPoint(a)),y=a.qs(y);var E=this.handleAngle;0>E?E+=360:360<=E&&(E-=360),E=Math.round(45*Math.round(E/45));var x=this.handleDistance;return E===0?y.x=a.naturalBounds.width+x:E===45?(y.x=a.naturalBounds.width+x,y.y=a.naturalBounds.height+x):E===90?y.y=a.naturalBounds.height+x:E===135?(y.x=-x,y.y=a.naturalBounds.height+x):E===180?y.x=-x:E===225?(y.x=-x,y.y=-x):E===270?y.y=-x:E===315&&(y.x=a.naturalBounds.width+x,y.y=-x),a.ga(y)},_n.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new lt(NaN,NaN),this.isActive=a.isMouseCaptured=!1},_n.prototype.stopTransaction=function(){var a=this.diagram,y=Pr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},_n.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},_n.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},_n.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){a.delaysLayout=!1;var y=this.computeRotate(a.lastInput.documentPoint);this.rotate(y),a.Ya(),this.transactionResult=this.name,a.R("PartRotated",this.adornedObject,this.originalAngle)}this.stopTool()},_n.prototype.rotate=function(a){var y=this.adornedObject;if(y!==null){y.angle=a,y=y.part,y.Va();var E=y.locationObject,x=y.rotateObject;(E===x||E.rg(x))&&(E=this.Tn.copy(),y.location=E.re(this.rotationPoint).rotate(a-this.originalAngle).add(this.rotationPoint)),this.diagram.bd()}},_n.prototype.computeRotate=function(a){a=this.rotationPoint.ab(a)-this.handleAngle;var y=this.adornedObject.panel;y!==null&&(a-=y.li()),360<=a?a-=360:0>a&&(a+=360),y=Math.min(Math.abs(this.snapAngleMultiple),180);var E=Math.min(Math.abs(this.snapAngleEpsilon),y/2);return!this.diagram.lastInput.shift&&0<y&&0<E&&(a%y<E?a=Math.floor(a/y)*y:a%y>y-E&&(a=(Math.floor(a/y)+1)*y)),360<=a?a-=360:0>a&&(a+=360),a},It.Object.defineProperties(_n.prototype,{handleArchetype:{get:function(){return this.o},set:function(a){this.o=a}},handle:{get:function(){return this.j},set:function(a){if(a!==null&&!(a.part instanceof Ur))throw Error("new handle is not in an Adornment: "+a);this.j=a}},adornedObject:{get:function(){return this.ue},set:function(a){if(a!==null&&a.part instanceof Ur)throw Error("new handle must not be in an Adornment: "+a);this.ue=a}},snapAngleMultiple:{get:function(){return this.ia},set:function(a){this.ia=a}},snapAngleEpsilon:{get:function(){return this.V},set:function(a){this.V=a}},originalAngle:{get:function(){return this.Cw}},rotationPoint:{get:function(){return this.kr},set:function(a){this.kr=a.copy()}},handleAngle:{get:function(){return this.u},set:function(a){this.u=a}},handleDistance:{get:function(){return this.F},set:function(a){this.F=a}}}),_n.className="RotatingTool",er("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function Un(){Pr.call(this),this.name="ClickSelecting"}Ut(Un,Pr),Un.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},Un.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},Un.className="ClickSelectingTool";function Sn(){Pr.call(this),this.name="Action",this.pk=null}Ut(Sn,Pr),Sn.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram,y=a.lastInput,E=a.ic(y.documentPoint,function(x){for(;x.panel!==null&&!x.isActionable;)x=x.panel;return x});return E!==null&&E.isActionable?(this.pk=E,a.Ck=a.ic(y.documentPoint,null,null),!0):!1},Sn.prototype.doMouseDown=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionDown!==null&&y.actionDown(a,y))}else this.canStart()&&this.doActivate()},Sn.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionMove!==null&&y.actionMove(a,y))}},Sn.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;if(y===null)return;a.targetObject=y,y.actionUp!==null&&y.actionUp(a,y),this.standardMouseClick(function(E){for(;E.panel!==null&&(!E.isActionable||E!==y);)E=E.panel;return E},function(E){return E===y})}this.stopTool()},Sn.prototype.doCancel=function(){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionCancel!==null&&y.actionCancel(a,y),this.stopTool())},Sn.prototype.doStop=function(){this.pk=null},Sn.className="ActionTool";function ai(){Pr.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new lt(0,0)}Ut(ai,Pr),ai.prototype.canStart=function(){if(!this.isEnabled||this.archetypeNodeData===null)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.lastInput.left||this.isBeyondDragSize())return!1;if(this.isDoubleClick){if(a.lastInput.clickCount===1&&(this.mw=a.lastInput.viewPoint.copy()),a.lastInput.clickCount!==2||this.isBeyondDragSize(this.mw))return!1}else if(a.lastInput.clickCount!==1)return!1;return!(a.currentTool!==this&&a.Ol(a.lastInput.documentPoint,!0)!==null)},ai.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},ai.prototype.insertPart=function(a){var y=this.diagram,E=this.archetypeNodeData;if(E===null)return null;var x=null;try{if(y.R("ChangingSelection",y.selection),this.Ea(this.name),E instanceof Ui)E.Zc()&&(yu(E),x=E.copy(),x!==null&&y.add(x));else if(E!==null){var b=y.model.copyNodeData(E);zt(b)&&(y.model.xf(b),x=y.Lc(b))}if(x!==null){var z=lt.allocAt(a.x,a.y);this.isGridSnapEnabled&&kf(this.diagram,x,a,z),x.location=z,y.allowSelect&&(y.clearSelection(!0),x.isSelected=!0),lt.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",x)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return x},It.Object.defineProperties(ai.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(a){this.Ri=a}},isDoubleClick:{get:function(){return this.o},set:function(a){this.o=a}},isGridSnapEnabled:{get:function(){return this.j},set:function(a){this.j=a}}}),ai.className="ClickCreatingTool";function ei(){Pr.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new Ui;a.layerName="Tool",a.selectable=!1;var y=new pr;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}Ut(ei,Pr),ei.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(!a.allowSelect)return!1;var y=a.lastInput;return!(!y.left||a.currentTool!==this&&(!this.isBeyondDragSize()||y.timestamp-a.firstInput.timestamp<this.delay||a.Ol(y.documentPoint,!0)!==null))},ei.prototype.doActivate=function(){var a=this.diagram;this.isActive=!0,a.isMouseCaptured=!0,a.skipsUndoManager=!0,a.add(this.box),this.doMouseMove()},ei.prototype.doDeactivate=function(){var a=this.diagram;a.ug(),a.remove(this.box),a.skipsUndoManager=!1,this.isActive=a.isMouseCaptured=!1},ei.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive&&this.box!==null){var y=this.computeBoxBounds(),E=this.box.fb("SHAPE");E===null&&(E=this.box.Pb());var x=ri.alloc().h(y.width,y.height);E.desiredSize=x,this.box.mm(y.x,y.y,!1),ri.free(x),(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},ei.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram;a.remove(this.box);try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),this.selectInRect(this.computeBoxBounds()),a.R("ChangedSelection",a.selection)}finally{a.currentCursor=""}}this.stopTool()},ei.prototype.computeBoxBounds=function(){var a=this.diagram;return new hn(a.firstInput.documentPoint,a.lastInput.documentPoint)},ei.prototype.selectInRect=function(a){var y=this.diagram,E=y.lastInput;if(a=y.ux(a,this.isPartialInclusion),$i?E.meta:E.control)if(E.shift)for(a=a.iterator;a.next();)y=a.value,y.isSelected&&(y.isSelected=!1);else for(a=a.iterator;a.next();)y=a.value,y.isSelected=!y.isSelected;else if(E.shift)for(a=a.iterator;a.next();)y=a.value,y.isSelected||(y.isSelected=!0);else{for(E=new Fn,y=y.selection.iterator;y.next();){var x=y.value;a.contains(x)||E.add(x)}for(y=E.iterator;y.next();)y.value.isSelected=!1;for(a=a.iterator;a.next();)y=a.value,y.isSelected||(y.isSelected=!0)}},It.Object.defineProperties(ei.prototype,{delay:{get:function(){return this.Ik},set:function(a){this.Ik=a}},isPartialInclusion:{get:function(){return this.o},set:function(a){this.o=a}},box:{get:function(){return this.j},set:function(a){this.j=a}}}),ei.className="DragSelectingTool";function Ln(){Pr.call(this),this.name="Panning",this.Xt=new lt,this.xy=new lt,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(Rn.document,"scroll",a.Kw,!1),a.stopTool()}}Ut(Ln,Pr),Ln.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!(!a.allowHorizontalScroll&&!a.allowVerticalScroll||!a.lastInput.left||a.currentTool!==this&&!this.isBeyondDragSize())},Ln.prototype.doActivate=function(){var a=this.diagram;this.xg?(a.lastInput.bubbles=!0,a.addEventListener(Rn.document,"scroll",this.Kw,!1)):(a.currentCursor="move",a.isMouseCaptured=!0,this.Xt.assign(a.position)),this.isActive=!0},Ln.prototype.doDeactivate=function(){var a=this.diagram;a.currentCursor="",this.isActive=a.isMouseCaptured=!1},Ln.prototype.doCancel=function(){var a=this.diagram;a.position=this.Xt,a.isMouseCaptured=!1,this.stopTool()},Ln.prototype.doMouseMove=function(){this.move()},Ln.prototype.doMouseUp=function(){this.move(),this.stopTool()},Ln.prototype.move=function(){var a=this.diagram;if(this.isActive&&a)if(this.xg)a.lastInput.bubbles=!0;else{var y=a.position,E=a.firstInput.documentPoint,x=a.lastInput.documentPoint,b=y.x+E.x-x.x;E=y.y+E.y-x.y,a.allowHorizontalScroll||(b=y.x),a.allowVerticalScroll||(E=y.y),a.position=this.xy.h(b,E)}},It.Object.defineProperties(Ln.prototype,{bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},originalPosition:{get:function(){return this.Xt}}}),Ln.className="PanningTool",er("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),er("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),er("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),er("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),er("actionTool",function(){return this.findTool("Action")},function(a){this.gb("Action",a,this.mouseDownTools)});function Rr(){this.F=this.u=this.j=this.o=null}It.Object.defineProperties(Rr.prototype,{mainElement:{get:function(){return this.u},set:function(a){this.u=a}},show:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},hide:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}},valueFunction:{get:function(){return this.F},set:function(a){this.F=a}}}),Rr.className="HTMLInfo";function Jr(a,y,E){this.text=a,this.hx=y,this.visible=E}Jr.className="ContextMenuButtonInfo";function uo(){Pr.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new lt,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}Ut(uo,Pr);function vr(a){var y=new Rr;y.show=function(b,z,ee){ee.showDefaultContextMenu()},y.hide=function(b,z){z.hideDefaultContextMenu()},tr=y,a.tu=function(){a.stopTool()},y=li("div");var E=li("div");y.style.cssText="top: 0px;z-index:10002;position: fixed;display: none;text-align: center;left: 25%;width: 50%;background-color: #F5F5F5;padding: 16px;border: 16px solid #444;border-radius: 10px;margin-top: 10px",E.style.cssText="z-index:10001;position: fixed;display: none;top: 0;left: 0;width: 100%;height: 100%;background-color: black;opacity: 0.8;";var x=li("style");Rn.document.getElementsByTagName("head")[0].appendChild(x),x.sheet.insertRule(".goCXul { list-style: none; }",0),x.sheet.insertRule(".goCXli {font:700 1.5em Helvetica, Arial, sans-serif;position: relative;min-width: 60px; }",0),x.sheet.insertRule(".goCXa {color: #444;display: inline-block;padding: 4px;text-decoration: none;margin: 2px;border: 1px solid gray;border-radius: 10px; }",0),x=a.diagram,x!==null&&(x.addEventListener(y,"contextmenu",_r,!1),x.addEventListener(y,"selectstart",_r,!1),x.addEventListener(E,"contextmenu",_r,!1)),y.className="goCXforeground",E.className="goCXbackground",Rn.document.body&&(Rn.document.body.appendChild(y),Rn.document.body.appendChild(E)),na=y,Oa=E,da=!0}function _r(a){return a.preventDefault(),!1}uo.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return this.isBeyondDragSize()||!a.lastInput.right||1<a.lastInput.clickCount?!1:!!(a.lastInput.isTouchEvent&&this.defaultTouchContextMenu!==null||this.findObjectWithContextMenu()!==null)},uo.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},uo.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},uo.prototype.findObjectWithContextMenu=function(a){a===void 0&&(a=null);var y=this.diagram,E=y.lastInput,x=null;if(a instanceof Qt||(a instanceof Dt?x=a:x=y.ic(E.documentPoint,null,function(b){return!b.layer.isTemporary})),x!==null){for(a=x;a!==null;){if(a.contextMenu!==null)return a;a=a.panel}if(y.lastInput.isTouchEvent&&this.defaultTouchContextMenu)return x.part}else if(y.contextMenu!==null)return y;return null},uo.prototype.doActivate=function(){},uo.prototype.doMouseDown=function(){if(Pr.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof Ur){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doMouseDown(),a.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&Hr(this)},uo.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof Ur){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doCancel(),a.doDeactivate())}Hr(this)};function Hr(a){var y=a.diagram;if(a.isActive){var E=a.currentContextMenu;if(E!==null){var x=null;E instanceof Rr||(x=y.ic(y.lastInput.documentPoint,null,null),x!==null&&x.rg(E)&&a.standardMouseClick(null,null)),a.maybeStopTool(x)}}else a.canStart()&&(sa(a,!0),a.isActive||a.stopTool())}uo.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function sa(a,y,E){if(E===void 0&&(E=null),!a.Et&&(a.Et=!0,y&&a.standardMouseSelect(),y=a.standardMouseClick(),a.Et=!1,!y)){if(a.isActive=!0,y=tr,E===null&&(E=a.findObjectWithContextMenu()),E!==null){var x=E.contextMenu;x!==null?(a.currentObject=E instanceof Dt?E:null,a.showContextMenu(x,a.currentObject)):y!==null&&a.showContextMenu(y,a.currentObject)}else y!==null&&a.showContextMenu(y,null);a.currentContextMenu instanceof Ur&&!a.currentContextMenu.visible&&a.stopTool()}}uo.prototype.doMouseMove=function(){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},uo.prototype.showContextMenu=function(a,y){var E=this.diagram;if(a!==this.currentContextMenu&&this.hideContextMenu(),a instanceof Ur){a.layerName="Tool",a.selectable=!1,a.scale=1/E.scale,a.category=this.name,a.placeholder!==null&&(a.placeholder.scale=E.scale);var x=a.diagram;x!==null&&x!==E&&x.remove(a),E.add(a),y!==null?a.adornedObject=y:a.data=E.model,a.Va(),this.positionContextMenu(a,y)}else a instanceof Rr&&a.show(y,E,this);this.currentContextMenu=a},uo.prototype.positionContextMenu=function(a){if(a.placeholder===null){var y=this.diagram,E=y.lastInput.documentPoint.copy(),x=a.measuredBounds,b=y.viewportBounds;y.lastInput.isTouchEvent&&(E.x-=x.width),E.x+x.width>b.right&&(E.x-=x.width+5/y.scale),E.x<b.x&&(E.x=b.x),E.y+x.height>b.bottom&&(E.y-=x.height+5/y.scale),E.y<b.y&&(E.y=b.y),a.position=E}},uo.prototype.hideContextMenu=function(){var a=this.diagram,y=this.currentContextMenu;y!==null&&(y instanceof Ur?(a.remove(y),this.ht!==null&&this.ht.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof Rr&&(y.hide!==null?y.hide(a,this):y.mainElement!==null&&(y.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function la(a){var y=new Fn;return y.add(new Jr("Copy",function(E){E.commandHandler.copySelection()},function(E){return E.commandHandler.canCopySelection()})),y.add(new Jr("Cut",function(E){E.commandHandler.cutSelection()},function(E){return E.commandHandler.canCutSelection()})),y.add(new Jr("Delete",function(E){E.commandHandler.deleteSelection()},function(E){return E.commandHandler.canDeleteSelection()})),y.add(new Jr("Paste",function(E){E.commandHandler.pasteSelection(a.mouseDownPoint)},function(E){return E.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new Jr("Select All",function(E){E.commandHandler.selectAll()},function(E){return E.commandHandler.canSelectAll()})),y.add(new Jr("Undo",function(E){E.commandHandler.undo()},function(E){return E.commandHandler.canUndo()})),y.add(new Jr("Redo",function(E){E.commandHandler.redo()},function(E){return E.commandHandler.canRedo()})),y.add(new Jr("Scroll To Part",function(E){E.commandHandler.scrollToPart()},function(E){return E.commandHandler.canScrollToPart()})),y.add(new Jr("Zoom To Fit",function(E){E.commandHandler.zoomToFit()},function(E){return E.commandHandler.canZoomToFit()})),y.add(new Jr("Reset Zoom",function(E){E.commandHandler.resetZoom()},function(E){return E.commandHandler.canResetZoom()})),y.add(new Jr("Group Selection",function(E){E.commandHandler.groupSelection()},function(E){return E.commandHandler.canGroupSelection()})),y.add(new Jr("Ungroup Selection",function(E){E.commandHandler.ungroupSelection()},function(E){return E.commandHandler.canUngroupSelection()})),y.add(new Jr("Edit Text",function(E){E.commandHandler.editTextBlock()},function(E){return E.commandHandler.canEditTextBlock()})),y}uo.prototype.showDefaultContextMenu=function(){var a=this.diagram;this.jt===null&&(this.jt=la(this)),na.innerHTML="",Oa.addEventListener("pointerdown",this.tu,!1);var y=this,E=li("ul");E.className="goCXul",na.appendChild(E),E.innerHTML="";for(var x=this.jt.iterator;x.next();){var b=x.value,z=b.visible;if(typeof b.hx=="function"&&(typeof z!="function"||z(a))){z=li("li"),z.className="goCXli";var ee=li("a");ee.className="goCXa",ee.href="#",ee.ky=b.hx,ee.addEventListener("pointerdown",function(re){return this.ky(a),y.stopTool(),re.preventDefault(),!1},!1),ee.textContent=b.text,z.appendChild(ee),E.appendChild(z)}}na.style.display="block",Oa.style.display="block"},uo.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===tr){na.style.display="none",Oa.style.display="none";var a=this.diagram;a!==null&&a.removeEventListener(Oa,"pointerdown",this.tu,!1),this.currentContextMenu=null}},It.Object.defineProperties(uo.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof Ur?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return da===!1&&tr===null&&qo&&vr(this),tr},set:function(a){a===null&&(da=!0),tr=a}},currentObject:{get:function(){return this.o},set:function(a){this.o=a}},mouseDownPoint:{get:function(){return this.yw}}});var tr=null,da=!1,Oa=null,na=null;uo.className="ContextMenuTool",er("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function Or(){Pr.call(this),this.name="TextEditing",this.Zh=new So,this.ia=null,this.V=Cs,this.vj=null,this.qa=Zn,this.u=1,this.F=!0,this.o=null,this.j=new Rr,this.kt=null,Bs(this,this.j)}Ut(Or,Pr);function Bs(a,y){if(qo){var E=li("textarea");a.kt=E,E.addEventListener("input",function(){if(a.textBlock!==null){var x=a.Lx(this.value);this.style.width=20+x.measuredBounds.width*this.wA+"px",this.rows=x.lineCount}},!1),E.addEventListener("keydown",function(x){if(!x.isComposing&&a.textBlock!==null){var b=x.key;b==="Enter"?(a.textBlock.isMultiline===!1&&x.preventDefault(),a.acceptText(ka)):b==="Tab"?(a.acceptText(Bo),x.preventDefault()):b==="Escape"&&(a.doCancel(),a.diagram!==null&&a.diagram.doFocus())}},!1),E.addEventListener("focus",function(){if(a.currentTextEditor!==null&&a.state!==Zn){var x=a.kt;a.qa===_s&&(a.qa=bl),typeof x.select=="function"&&a.selectsTextOnActivate&&(x.select(),x.setSelectionRange(0,9999))}},!1),E.addEventListener("blur",function(){if(a.currentTextEditor!==null&&a.state!==Zn){var x=a.kt;typeof x.focus=="function"&&x.focus(),typeof x.select=="function"&&a.selectsTextOnActivate&&(x.select(),x.setSelectionRange(0,9999))}},!1),y.valueFunction=function(){return E.value},y.mainElement=E,y.show=function(x,b,z){if(x instanceof So&&z instanceof Or)if(z.state===Ns)E.style.border="3px solid red",E.focus();else{var ee=x.ga(ur),re=b.position,oe=b.scale,ce=x.Df()*oe;ce<z.minimumEditorScale&&(ce=z.minimumEditorScale);var he=x.naturalBounds.width*ce+6,ye=x.naturalBounds.height*ce+2,Te=(ee.x-re.x)*oe;ee=(ee.y-re.y)*oe,re=x.verticalAlignment,oe=(x.lineHeight+x.spacingAbove+x.spacingBelow)*x.lineCount*ce,ye=re.y*ye-re.y*oe+re.offsetY-(.5*ye-.5*oe)-oe/2,E.value=x.text,b.div.style.font=x.font,E.style.position="absolute",E.style.zIndex="100",E.style.font="inherit",E.style.fontSize=100*ce+"%",E.style.lineHeight="normal",E.style.width=he+"px",E.style.left=(Te-he/2|0)-1+"px",E.style.top=(ee+ye|0)-1+"px",E.style.textAlign=x.textAlign,E.style.margin="0",E.style.padding="1px",E.style.border="0",E.style.outline="none",E.style.whiteSpace="pre-wrap",E.style.overflow="hidden",E.rows=x.lineCount,E.wA=ce,E.className="goTXarea",b.div.appendChild(E),E.focus(),z.selectsTextOnActivate&&(E.select(),E.setSelectionRange(0,9999))}},y.hide=function(x){x.div.removeChild(E)}}}Or.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||a.isReadOnly||Ql&&Ql!==this&&(Ql.acceptText(io),Ql&&Ql!==this)||!a.lastInput.left||this.isBeyondDragSize())return!1;var y=a.ic(a.lastInput.documentPoint);return y!==null&&y instanceof So&&y.editable&&y.part.canEdit()?(y=y.part,!(y===null||this.starting===Cs&&!y.isSelected||this.starting===dl&&2>a.lastInput.clickCount)):!1},Or.prototype.doStart=function(){Ql=this,this.textBlock!==null&&this.doActivate()},Or.prototype.doActivate=function(){if(!this.isActive){var a=this.diagram;if(a!==null){var y=this.textBlock;if(y===null&&(y=a.ic(a.lastInput.documentPoint)),y!==null&&y instanceof So&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=_s;var E=this.defaultTextEditor;y.textEditor!==null&&(E=y.textEditor),this.Zh=this.textBlock.copy();var x=new hn(this.textBlock.ga(Ki),this.textBlock.ga(Wo));a.tv(x),E.show(y,a,this),this.currentTextEditor=E}}}},Or.prototype.doCancel=function(){this.stopTool()},Or.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},Or.prototype.doMouseDown=function(){this.isActive&&this.acceptText(io)},Or.prototype.acceptText=function(a){switch(a){case io:this.qa===Fl?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===_s||this.qa===Ns||this.qa===bl)&&(this.qa=Jn,Ea(this));break;case lo:case ka:case Bo:(ka!==a||this.textBlock.isMultiline!==!0)&&(this.qa===_s||this.qa===Ns||this.qa===bl)&&(this.qa=Jn,Ea(this))}};function Ea(a){var y=a.textBlock,E=a.diagram,x=a.currentTextEditor;if(y!==null&&x!==null){var b=y.text,z="";x.valueFunction!==null&&(z=x.valueFunction()),a.isValidText(y,b,z)?(a.Ea(a.name),a.qa=Fl,a.transactionResult=a.name,y.text=z,a.doSuccess(b,z),E!==null&&E.R("TextEdited",y,b),a.stopTransaction(),a.stopTool(),E!==null&&E.doFocus()):(a.qa=Ns,a.doError(b,z))}}Or.prototype.doError=function(a,y){var E=this.textBlock;E.errorFunction!==null&&E.errorFunction(this,a,y),(a=this.currentTextEditor)&&a.show(E,this.diagram,this)},Or.prototype.doSuccess=function(a,y){var E=this.textBlock;E.textEdited!==null&&E.textEdited(E,a,y)},Or.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=Zn,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},Or.prototype.doStop=function(){Ql=null},Or.prototype.isValidText=function(a,y,E){var x=this.textValidation;return x!==null&&!x(a,y,E)?!1:(x=a.textValidation,!!(x===null||x(a,y,E)))},Or.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},It.Object.defineProperties(Or.prototype,{textBlock:{get:function(){return this.ia},set:function(a){this.ia=a}},currentTextEditor:{get:function(){return this.o},set:function(a){this.o=a}},defaultTextEditor:{get:function(){return this.j},set:function(a){this.j=a}},starting:{get:function(){return this.V},set:function(a){this.V=a}},textValidation:{get:function(){return this.vj},set:function(a){this.vj=a}},minimumEditorScale:{get:function(){return this.u},set:function(a){this.u=a}},selectsTextOnActivate:{get:function(){return this.F},set:function(a){this.F=a}},state:{get:function(){return this.qa},set:function(a){this.qa!==a&&(this.qa=a)}}}),Or.prototype.measureTemporaryTextBlock=Or.prototype.Lx;var lo=new en(Or,"LostFocus",0),io=new en(Or,"MouseDown",1),Bo=new en(Or,"Tab",2),ka=new en(Or,"Enter",3),gs=new en(Or,"SingleClick",0),Cs=new en(Or,"SingleClickSelected",1),dl=new en(Or,"DoubleClick",2),Zn=new en(Or,"StateNone",0),_s=new en(Or,"StateActive",1),bl=new en(Or,"StateEditing",2),Jn=new en(Or,"StateValidating",3),Ns=new en(Or,"StateInvalid",4),Fl=new en(Or,"StateValidated",5),Ql=null;Or.className="TextEditingTool",Or.LostFocus=lo,Or.MouseDown=io,Or.Tab=Bo,Or.Enter=ka,Or.SingleClick=gs,Or.SingleClickSelected=Cs,Or.DoubleClick=dl,Or.StateNone=Zn,Or.StateActive=_s,Or.StateEditing=bl,Or.StateValidating=Jn,Or.StateInvalid=Ns,Or.StateValidated=Fl,er("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function ss(a){bi||(Ot(),bi=!0),this.H=Nc,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=Vi,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new In,this.ce=new Si,this.ce.Yd=this,this.Ei=new In,this.pu=new In,this.Sr=new In,this.pr=new In,a&&Object.assign(this,a)}ss.prototype.Xe=function(a){this.H=a},ss.prototype.canStart=function(){return!0};function Da(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),ls(a.H),a.zb=!0)}function wl(a){if(a.Jd&&a.zb){var y=a.ce,E=a.H,x=a.Zd.contains("Model");x&&(a.Ok=!0,a.Pk===Vi?(y.isViewportUnconstrained=!0,y.vc.clear(),y.add(E,"position",E.position.copy().offset(0,-200),E.position),y.add(E,"opacity",0,1)):a.Pk===ro&&y.vc.clear(),a.Qw=!!(a.Pk===jr&&E.du.D(E.pa)),E.R("InitialAnimationStarting",a)),x&&!a.Gh||y.vc.count===0?(a.Zd.clear(),a.zb=!1,y.vc.clear(),fr(y,E),a.Ok=!1,E.N()):(a.Zd.clear(),E.kg=!1,x=y.vc.get(E),E.autoScale!==Ms&&x!==null&&(delete x.start.scale,delete x.end.scale),Rn.requestAnimationFrame(function(){a.zb===!1||y.bc||(E.Gf("temporaryPixelRatio")&&el(E),Pg(E),a.zb=!1,y.start(),y.bc&&(Bl(a),E.Ya(),Xl(y,0),ql(E,!0),Zu(a),E.R("AnimationStarting",a)))}))}}function Ss(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function fu(a,y,E,x){a.isTicking||Ss(a)||y instanceof Xn&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",E,x,!1)}Ce=ss.prototype,Ce.fv=function(a){return this.ce.fv(a)},Ce.Xu=function(a){return this.ce.Xu(a)};function Lu(a,y){function E(){if(0<b.Sr.count&&(x.addAll(b.Sr),b.Sr.clear(),b.bc=!0),b.bc!==!1&&x.count!==0){b.pu.addAll(x);for(var z=b.pu.iterator;z.next();){var ee=z.value;if(ee.bc!==!1){e:if(0<ee.yl.count)var re=!0;else{for(re=ee.vc.iterator;re.next();){var oe=re.key;if(oe instanceof Dt&&oe.diagram!==null||oe instanceof Qt){re=!0;break e}}re=!1}re?ya(ee,!1):ee.Xk=!0}}b.pu.clear(),b.bc!==!1&&(Bl(b),ql(b.H),Zu(b)),Rn.requestAnimationFrame(E)}}var x=a.Ei,b=a;a.bc?a.Sr.add(y):(a.bc=!0,x.add(y),Rn.requestAnimationFrame(function(){E()}))}function dd(a){for(a=a.Ei.iterator;a.next();)a.value.Xk=!1}function Bl(a){if(!a.vq){var y=a.H;a.Ow=y.skipsUndoManager,a.cw=y.skipsModelSourceBindings,y.skipsUndoManager=!0,y.skipsModelSourceBindings=!0,a.vq=!0}}function Zu(a){var y=a.H;y.skipsUndoManager=a.Ow,y.skipsModelSourceBindings=a.cw,a.vq=!1}Ce.Cc=function(a){var y=this.ce;if(this.zb===!0&&(this.Ok=this.zb=!1,this.Zd.clear(),0<y.vc.count&&this.H.$b()),this.bc){if(y.Ml(!0),y.vc.clear(),fr(y,null),a===!0)for(a=this.Ei.Fa(),y=0;y<a.length;y++)a[y].Ml(!0)}else y.vc.clear(),fr(y,this.H)},Ce.Ml=function(a){a===this.defaultAnimation&&this.defaultAnimation.vc.clear(),this.Ei.remove(a),this.Ei.count===0&&(this.bc=!1,this.H.$b()),a===this.defaultAnimation&&(this.defaultAnimation.vc.clear(),this.H.R("AnimationFinished",this))},Ce.Cj=function(a,y){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(a,y),ge(this,a))},Ce.Aj=function(a,y){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(a,y),co(this.ce,y,"position",y.position,y.position),ge(this,a))};function _d(a,y,E){!a.zb||y.D(E)||Ss(a)||(a.H.pi||(y=E.copy()),co(a.ce,a.H,"position",y,E))}function ue(a,y,E){y.fd&&(y.Tg=E,a.pr.add(y))}function ge(a,y){for(y=y.findLinksConnected();y.next();){var E=y.value;E.fd&&(E.Tg=E.points.copy(),a.pr.add(E))}}function Ye(a,y,E,x,b){a===null&&(a=[0,0,0,0]),y===null&&(y=[0,0,0,0]);var z=a[0],ee=a[1],re=a[2];a=a[3];var oe=y[0],ce=y[1],he=y[2];return y=y[3],re===0||re===100?(z=oe,ee=ce):(he===0||he===100)&&(oe=z,ce=ee),180<Math.abs(oe-z)&&(oe>z?z+=360:oe+=360),z=b(E,z,oe-z,x)%360,ee=b(E,ee,ce-ee,x),re=b(E,re,he-re,x),E=b(E,a,y-a,x),"hsla("+z+", "+ee+"%, "+re+"%, "+E+")"}function Ot(){function a(E,x,b,z,ee,re){E.position=new lt(z(ee,x.x,b.x-x.x,re),z(ee,x.y,b.y-x.y,re))}var y=new zi;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(E,x,b,z,ee,re){ee<re?E.mm(z(ee,x.x,b.x-x.x,re),z(ee,x.y,b.y-x.y,re),!1):E.position=new lt(z(ee,x.x,b.x-x.x,re),z(ee,x.y,b.y-x.y,re))}),y.add("location",function(E,x,b,z,ee,re){ee<re?E.mm(z(ee,x.x,b.x-x.x,re),z(ee,x.y,b.y-x.y,re),!0):E.location=new lt(z(ee,x.x,b.x-x.x,re),z(ee,x.y,b.y-x.y,re))}),y.add("position:placeholder",function(E,x,b,z,ee,re){ee<re?E.mm(z(ee,x.x,b.x-x.x,re),z(ee,x.y,b.y-x.y,re),!1):E.position=new lt(z(ee,x.x,b.x-x.x,re),z(ee,x.y,b.y-x.y,re))}),y.add("position:nodeCollapse",function(E,x,b,z,ee,re){var oe=E.actualBounds,ce=b.actualBounds;b=ce.x+ce.width/2-oe.width/2,oe=ce.y+ce.height/2-oe.height/2,ee<re?E.mm(z(ee,x.x,b-x.x,re),z(ee,x.y,oe-x.y,re),!1):E.position=new lt(z(ee,x.x,b-x.x,re),z(ee,x.y,oe-x.y,re))}),y.add("desiredSize",function(E,x,b,z,ee,re){E.desiredSize=new hn(z(ee,x.width,b.width-x.width,re),z(ee,x.height,b.height-x.height,re))}),y.add("width",function(E,x,b,z,ee,re){E.width=z(ee,x,b-x,re)}),y.add("height",function(E,x,b,z,ee,re){E.height=z(ee,x,b-x,re)}),y.add("fill",function(E,x,b,z,ee,re){E.fill=Ye(x,b,ee,re,z)}),y.add("stroke",function(E,x,b,z,ee,re){E.stroke=Ye(x,b,ee,re,z)}),y.add("strokeWidth",function(E,x,b,z,ee,re){E.strokeWidth=z(ee,x,b-x,re)}),y.add("strokeDashOffset",function(E,x,b,z,ee,re){E.strokeDashOffset=z(ee,x,b-x,re)}),y.add("background",function(E,x,b,z,ee,re){E.background=Ye(x,b,ee,re,z)}),y.add("areaBackground",function(E,x,b,z,ee,re){E.areaBackground=Ye(x,b,ee,re,z)}),y.add("opacity",function(E,x,b,z,ee,re){E.opacity=z(ee,x,b-x,re)}),y.add("scale",function(E,x,b,z,ee,re){E.scale=z(ee,x,b-x,re)}),y.add("angle",function(E,x,b,z,ee,re){E.angle=z(ee,x,b-x,re)}),zn=y}It.Object.defineProperties(ss.prototype,{animationReasons:{get:function(){return this.Zd}},isEnabled:{get:function(){return this.Jd},set:function(a){(this.Jd=a)&&this.Ei.each(function(y){y.isAnimating||y.runCount!==1/0||y.start()})}},duration:{get:function(){return this.Dg},set:function(a){1>a&&ii(a,">= 1",ss,"duration"),this.Dg=a}},isAnimating:{get:function(){return this.bc}},isTicking:{get:function(){return this.vq}},isInitial:{get:function(){return this.Gh},set:function(a){this.Gh=a}},defaultAnimation:{get:function(){return this.ce}},activeAnimations:{get:function(){return this.Ei}},initialAnimationStyle:{get:function(){return this.Pk},set:function(a){this.Pk=a}}}),ss.prototype.stopAnimation=ss.prototype.Cc;var zn=null,bi=!1,Vi=new en(ss,"Default",1),jr=new en(ss,"AnimateLocations",2),ro=new en(ss,"None",3);ss.className="AnimationManager",ss.defineAnimationEffect=function(a,y){bi||(Ot(),bi=!0),zn.add(a,y)},ss.Default=Vi,ss.AnimateLocations=jr,ss.None=ro;function Si(a){this.vu=this.Nw=this.Yd=this.H=null,this.Xk=this.bc=this.j=!1,this.cn=this.Qd=0,this.Lp=this.ot=gu,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=Go,this.vc=new zi,this.Tt=new zi,this.yl=new In,this.Ut=new In,this.dw=gd,a&&Object.assign(this,a)}Si.prototype.suspend=function(){this.Xk=!0},Si.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,ya(this,!0),Bl(this.Yd),ql(this.H),Zu(this.Yd),this.H.redraw()};function fr(a,y){if(a.Tt.clear(),a.Wk=!1,a.au=0,a.Gd=NaN,0<a.yl.count&&a.yl.clear(),0<a.Ut.count&&a.Ut.clear(),y!==null)for(a=y.links;a.next();)a.value.Tg=null}Ce=Si.prototype,Ce.start=function(){if(this.vc.count===0||this.bc)return this;for(var a=this.H,y=this.vc.iterator;y.next();){var E=y.key;a===null&&(E instanceof Qt?a=E:E instanceof Dt&&(a=E.diagram))}if(a!==null)this.H=a,this.Yd=a.animationManager;else return this;return y=this.Yd,y.isEnabled===!1?this:(this.Gd=isNaN(this.Dg)?y.duration:this.Dg,this.Lp=this.ot,y.Ok&&y.Pk===Vi&&this===y.defaultAnimation&&(this.Lp=Ku,this.Gd=isNaN(this.Dg)?y.duration===600?900:y.duration:this.Dg),this.dw=a.scrollMode,this.isViewportUnconstrained&&(a.sj=ef),Bl(y),this.yl.each(function(x){x.data=null,a.add(x)}),Zu(y),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,Lu(y,this),this)},Ce.Iy=function(a,y){return a.Zc()?(this.yl.add(a),this.H=y,this):this},Ce.add=function(a,y,E,x,b){if(y==="position"&&E.Xa(x))return this;if(this.H===null&&(a instanceof Qt?this.H=a:a instanceof Dt&&a.diagram!==null&&(this.H=a.diagram)),a instanceof Ui){if(!a.isAnimated)return this;y==="position"&&(y="position:part")}return co(this,a,y,E,x,b),this};function co(a,y,E,x,b,z){var ee=a.vc;if(y instanceof Qt&&E==="position"&&(E="position:diagram"),(E==="fill"||E==="stroke"||E==="background"||E==="areaBackground")&&(Qc(x),uv(),x=[Hl.j,Hl.u,Hl.o,Hl.F],Qc(b),uv(),b=[Hl.j,Hl.u,Hl.o,Hl.F]),ee.contains(y)){var re=ee.I(y),oe=re.start,ce=re.end;oe[E]===void 0&&(oe[E]=Vo(x)),ce[E]=Vo(b)}else oe={},ce={},oe[E]=Vo(x),ce[E]=Vo(b),re=oe.position,y instanceof Dt&&re instanceof lt&&!re.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&re.assign(ce.position),re=new Iu(oe,ce,z),ee.add(y,re);ee=oe[E],ee instanceof lt&&!ee.w()&&ee.assign(a.o),z&&E.indexOf("position:")===0&&y instanceof Ui?re.Ku.location=Vo(y.location):z&&(re.Ku[E]=Vo(x))}function Vo(a){return a instanceof lt||a instanceof ri?a.copy():a}Ce.fv=function(a){return this.bc?(a=this.vc.I(a),a!==null&&a.nv):!1},Ce.Xu=function(a){return this.bc?(a=this.vc.I(a),a!==null&&(a.start.position||a.start.location)):!1};function ya(a,y){if(!a.Xk||y){var E=a.Yd;if(a.bc!==!1){var x=+new Date,b=x>a.cn?a.Gd:x-a.Qd;y&&(b=a.gw,b<a.Gd?(a.Qd=+new Date-b,a.cn=a.Qd+a.Gd):b=a.Gd),Bl(E),Xl(a,b),ql(a.H,!0),Zu(E),x>a.cn&&(a.ho&&!a.Wk?(a.Qd=+new Date,a.cn=a.Qd+a.Gd,a.Wk=!0):a.Ml(!1))}}}function Xl(a,y){for(var E=a.Gd,x=a.vc.iterator,b=a.Wk;x.next();){var z=x.key;if(!(z instanceof Dt&&z.diagram===null)){var ee=x.value,re=b?ee.end:ee.start;ee=b?ee.start:ee.end;var oe=zn,ce;for(ce in ee)ce==="position"&&(ee["position:placeholder"]||ee["position:nodeCollapse"])||oe.get(ce)===null||oe.get(ce)(z,re[ce],ee[ce],a.Lp,y,E,a)}}}Ce.stop=function(){return this.bc?(this.Ml(!0),this):this},Ce.Ml=function(a){if(this.vu!==null&&this.vu.jo.remove(this.Nw),this.bc){var y=this.H,E=this.Yd;this.Xk=this.bc=E.Ok=!1,Bl(E);for(var x=this.vc,b=this.yl.iterator;b.next();)y.remove(b.value);for(b=this.Ut.iterator;b.next();)b.value.v();b=this.ho,x=x.iterator;for(var z=zn;x.next();){var ee=x.key,re=x.value,oe=b?re.end:re.start,ce=b?re.start:re.end,he=re.Ku,ye;for(ye in ce)if(z.get(ye)!==null){var Te=ye;!re.Hu||Te!=="position:nodeCollapse"&&Te!=="position:placeholder"||(Te="position"),z.get(Te)(ee,oe[ye],he[ye]!==void 0?he[ye]:re.Hu?oe[ye]:ce[ye],this.Lp,this.Gd,this.Gd,this)}re.Hu&&he.location!==void 0&&ee instanceof Ui&&(ee.location=he.location),re.nv&&ee instanceof Ui&&ee.Zb(!1)}if(y.As.clear(),Kh(y,!1),y.Ya(),y.N(),ql(y,!0),E.defaultAnimation===this){for(ye=E.pr.iterator;ye.next();)b=ye.value,b.Tg!==null&&(b.points=b.Tg,b.Tg=null);E.pr.clear()}ql(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),Zu(E),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),fr(this,null),E.Ml(this),y.$b())}},Ce.Cj=function(a,y){var E=y.actualBounds,x=null;if(y instanceof or&&(x=y.placeholder),x!==null?(E=x.ga(Ki),x=x.padding,E.x+=x.left,E.y+=x.top,this.add(a,"position",E,a.position,!1)):this.add(a,"position",new lt(E.x+E.width/2,E.y+E.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof or)for(a=a.memberParts;a.next();)x=a.value,x instanceof pi&&this.Cj(x,y)},Ce.Aj=function(a,y){if(a.isVisible()){var E=null;if(y instanceof or&&(E=y.placeholder),E!==null){var x=E.ga(Ki);E=E.padding,x.x+=E.left,x.y+=E.top,this.add(a,"position:placeholder",a.position,x,!0)}else this.add(a,"position:nodeCollapse",a.position,y,!0);if(this.add(a,"scale",a.scale,.01,!0),x=this.vc,x.contains(a)&&(x.I(a).nv=!0),a instanceof or)for(a=a.memberParts;a.next();)x=a.value,x instanceof pi&&this.Aj(x,y)}},Ce.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},It.Object.defineProperties(Si.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&ii(a,">= 1",Si,"duration"),this.Dg=a}},reversible:{get:function(){return this.ho},set:function(a){this.ho=a}},runCount:{get:function(){return this.cu},set:function(a){0<a?this.cu=a:pt("Animation.runCount value must be a positive integer.")}},finished:{get:function(){return this.dn},set:function(a){this.dn!==a&&(this.dn=a)}},easing:{get:function(){return this.ot},set:function(a){this.ot=a}},isViewportUnconstrained:{get:function(){return this.j},set:function(a){this.j=a}},isAnimating:{get:function(){return this.bc}}}),Si.prototype.getTemporaryState=Si.prototype.Ez,Si.prototype.stop=Si.prototype.stop,Si.prototype.add=Si.prototype.add,Si.prototype.addTemporaryPart=Si.prototype.Iy;function gu(a,y,E,x){return a/=x/2,1>a?E/2*a*a+y:-E/2*(--a*(a-2)-1)+y}function Ku(a,y,E,x){return a===x?y+E:E*(-Math.pow(2,-10*a/x)+1)+y}Si.className="Animation",Si.EaseLinear=function(a,y,E,x){return E*a/x+y},Si.EaseInOutQuad=gu,Si.EaseInQuad=function(a,y,E,x){return E*(a/=x)*a+y},Si.EaseOutQuad=function(a,y,E,x){return-E*(a/=x)*(a-2)+y},Si.EaseInExpo=function(a,y,E,x){return a===0?y:E*Math.pow(2,10*(a/x-1))+y},Si.EaseOutExpo=Ku;function Iu(a,y,E){this.start=a,this.end=y,this.Ku={},this.Hu=E,this.nv=!1}Iu.className="AnimationState";function $s(a,y,E){this.xd=null,this.rf=a,this.so=E||Cc,this.uk=null,y!==void 0&&(this.uk=y,E===void 0&&(this.so=Tl))}$s.prototype.copy=function(){var a=new $s(this.rf);a.so=this.so;var y=this.uk;if(y!==null){var E={};y.duration!==void 0&&(E.duration=y.duration),y.finished!==void 0&&(E.finished=y.finished),y.easing!==void 0&&(E.easing=y.easing),a.uk=E}return a};function _l(a,y){a=a.uk,a!==null&&(a.duration&&(y.duration=a.duration),a.finished&&(y.finished=a.finished),a.easing&&(y.easing=a.easing))}It.Object.defineProperties($s.prototype,{propertyName:{get:function(){return this.rf},set:function(a){this.rf=a}},animationSettings:{get:function(){return this.uk},set:function(a){this.uk=a}},startCondition:{get:function(){return this.so},set:function(a){this.so=a}}});var Cc=new en($s,"Default",1),Tl=new en($s,"Immediate",2),Sh=new en($s,"Bundled",3);$s.className="AnimationTrigger",$s.Default=Cc,$s.Immediate=Tl,$s.Bundled=Sh;function Va(a){wr(this),this.H=null,this.Pa=new Fn,this.xa="",this.pb=1,this.o=!1,this.j=this.Uh=this.u=this.Oi=this.Ni=this.Mi=this.Li=this.Ji=this.Ki=this.Ii=this.Qi=this.Hi=this.Pi=this.Gi=this.Fi=!0,this.Zq=[],a&&Object.assign(this,a)}Ce=Va.prototype,Ce.clear=function(){for(var a=this.Pa,y=0;y<a.length;y++){var E=a.s[y];E.Ig=null,bs(E)}a.clear(),this.Zq.length=0},Ce.Xe=function(a){this.H=a},Ce.toString=function(a){a===void 0&&(a=0);var y='Layer "'+this.name+'"';if(0>=a)return y;for(var E=0,x=0,b=0,z=0,ee=0,re=this.Pa.iterator;re.next();){var oe=re.value;oe instanceof or?b++:oe instanceof pi?x++:oe instanceof Xn?z++:oe instanceof Ur?ee++:E++}if(re="",0<E&&(re+=E+" Parts "),0<x&&(re+=x+" Nodes "),0<b&&(re+=b+" Groups "),0<z&&(re+=z+" Links "),0<ee&&(re+=ee+" Adornments "),1<a)for(a=this.Pa.iterator;a.next();)E=a.value,re+=`
`+E.toString(),x=E.data,x!==null&&Tr(x)&&(re+=" #"+Tr(x)),E instanceof pi?re+=" "+Yi(x):E instanceof Xn&&(re+=" "+Yi(E.fromNode)+" "+Yi(E.toNode));return y+" "+this.Pa.count+": "+re},Ce.ic=function(a,y,E){if(y===void 0&&(y=null),E===void 0&&(E=null),this.Uh===!1)return null;var x=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(x=!0);for(var b=lt.alloc(),z=this.Pa.s,ee=z.length;ee--;){var re=z[ee];if((x!==!0||Kd(re)!==!1)&&re.isVisible()&&(b.assign(a),Ar(b,re.oe),re=re.ic(b,y,E),re!==null&&(y!==null&&(re=y(re)),re!==null&&(E===null||E(re)))))return lt.free(b),re}return lt.free(b),null},Ce.ji=function(a,y,E,x){if(y===void 0&&(y=null),E===void 0&&(E=null),x instanceof Fn||x instanceof In||(x=new In),this.Uh===!1)return x;var b=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(b=!0);for(var z=lt.alloc(),ee=this.Pa.s,re=ee.length;re--;){var oe=ee[re];if((b!==!0||Kd(oe)!==!1)&&oe.isVisible()){z.assign(a),Ar(z,oe.oe);var ce=oe;oe.ji(z,y,E,x)&&(y!==null&&(ce=y(ce)),ce===null||E!==null&&!E(ce)||x.add(ce))}}return lt.free(z),x},Ce.Cf=function(a,y,E,x,b){if(y===void 0&&(y=null),E===void 0&&(E=null),x===void 0&&(x=!1),b instanceof Fn||b instanceof In||(b=new In),this.Uh===!1)return b;var z=!1;this.diagram!==null&&this.diagram.viewportBounds.Re(a)&&(z=!0);for(var ee=this.Pa.s,re=ee.length;re--;){var oe=ee[re];if((z!==!0||Kd(oe)!==!1)&&oe.isVisible()){var ce=oe;oe.Cf(a,y,E,x,b)&&(y!==null&&(ce=y(ce)),ce===null||E!==null&&!E(ce)||b.add(ce))}}return b},Ce.Nu=function(a,y,E,x,b,z,ee){if(this.Uh===!1)return b;for(var re=this.Pa.s,oe=re.length;oe--;){var ce=re[oe];if((ee!==!0||Kd(ce)!==!1)&&z(ce)&&ce.isVisible()){var he=ce;ce.Cf(a,y,E,x,b)&&(y!==null&&(he=y(he)),he===null||E!==null&&!E(he)||b.add(he))}}return b},Ce.og=function(a,y,E,x,b,z){if(E===void 0&&(E=null),x===void 0&&(x=null),b===void 0&&(b=!0),b!==!1&&b!==!0&&((b instanceof Fn||b instanceof In)&&(z=b),b=!0),z instanceof Fn||z instanceof In||(z=new In),this.Uh===!1)return z;var ee=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(ee=!0);for(var re=lt.alloc(),oe=lt.alloc(),ce=this.Pa.s,he=ce.length;he--;){var ye=ce[he];if((ee!==!0||Kd(ye)!==!1)&&ye.isVisible()){re.assign(a),Ar(re,ye.oe),oe.h(a.x+y,a.y),Ar(oe,ye.oe);var Te=ye;ye.og(re,oe,E,x,b,z)&&(E!==null&&(Te=E(Te)),Te===null||x!==null&&!x(Te)||z.add(Te))}}return lt.free(re),lt.free(oe),z},Ce.Fd=function(a,y){if(this.visible){var E=this.Pa.s,x=E.length;if(x!==0){a=Ni();for(var b=Ni(),z=0;z<x;z++){var ee=E[z];if(ee.vw=z,ee instanceof Xn){if(ee.fd===!1)continue}else if(ee instanceof Ur&&ee.adornedPart!==null)continue;var re=ee.actualBounds;ee.isVisible()&&An(re,y)?(ee.Fd(!0),a.push(ee)):(ee.Fd(!1),ee.adornments!==null&&0<ee.adornments.count&&b.push(ee))}for(y=0;y<a.length;y++)for(E=a[y],_v(E),E=E.adornments;E.next();)x=E.value,x.measure(1/0,1/0),x.arrange(),x.Fd(!0);for(y=0;y<b.length;y++)_v(b[y]);hi(a),hi(b)}}};function Wc(a,y){var E=1;return a.pb!==1&&(E=y.globalAlpha,y.globalAlpha=E*a.pb),E}Ce.gc=function(a,y,E){if(this.visible&&this.pb!==0&&(E===void 0&&(E=!0),E||!this.isTemporary)){E=this.Pa.s;var x=E.length;if(x!==0){if(a.isTemporary)for(var b=0;b<x;b++)E[b].Gj();b=Wc(this,a);var z=this.Zq;z.length=0;for(var ee=y.scale,re=hn.alloc(),oe=0;oe<x;oe++)this.Oj(a,E[oe],y,z,ee,re,!0);if(hn.free(re),a.isTemporary)for(y=0;y<x;y++)E[y].Gj();a.globalAlpha=b}}};function Xp(a,y,E,x,b){if(a.visible&&a.pb!==0&&(b||!a.isTemporary)){b=a.Pa.s;var z=b.length;if(z!==0){var ee=Wc(a,y),re=a.Zq;re.length=0;for(var oe=E.scale,ce=hn.alloc(),he=0;he<z;he++){var ye=b[he];x.contains(ye)&&a.Oj(y,ye,E,re,oe,ce,!1)}hn.free(ce),y.globalAlpha=ee}}}Ce.Oj=function(a,y,E,x,b,z,ee){if(ee&&!Kd(y))a.Hs(y);else{if(x!==null&&y instanceof Xn&&(y.isOrthogonal&&x.push(y),y.fd===!1)){a.Hs(y);return}for(ee=!1,x=y.containingGroup;x!==null;)ee?x.tb!==null&&z.Ex(x.tb):x.tb!==null&&(ee=!0,z.assign(x.tb)),x=x.containingGroup;var re=y.actualBounds;if(x=!1,ee&&y.isVisible()){if(!z.Yc(re)){a.Hs(y);return}x=!z.Re(re)}x&&(a.save(),a instanceof Al?a.bk=z.copy():(a.beginPath(),a.rect(z.x,z.y,z.width,z.height),a.clip())),re.width*b>E.Oq||re.height*b>E.Oq?y.gc(a,E):(b=y.actualBounds,z=y.naturalBounds,b.width===0||b.height===0||isNaN(b.x)||isNaN(b.y)||!y.isVisible()||(E=y.transform,y.areaBackground!==null&&(ea(y,a,y.areaBackground,!0,!0,z,b),a.fillRect(b.x,b.y,b.width,b.height)),y.areaBackground===null&&y.background===null&&(ea(y,a,"rgba(0,0,0,0.3)",!0,!1,z,b),a.fillRect(b.x,b.y,b.width,b.height)),y.background!==null&&(a.transform(E.m11,E.m12,E.m21,E.m22,E.dx,E.dy),ea(y,a,y.background,!0,!1,z,b),a.fillRect(0,0,z.width/2,z.height/2),E.ws()||(y=1/(E.m11*E.m22-E.m12*E.m21),a.transform(E.m22*y,-E.m12*y,-E.m21*y,E.m11*y,y*(E.m21*E.dy-E.m22*E.dx),y*(E.m12*E.dx-E.m11*E.dy)))))),x&&(a.restore(),a.Vc(!0))}},Ce.g=function(a,y,E,x,b){var z=this.diagram;z!==null&&z.cb(wo,a,this,y,E,x,b)},Ce.oi=function(a,y,E){var x=this.Pa;if(y.Ig=this,this===null&&bs(y),a>=x.count)a=x.count;else if(x.M(a)===y)return-1;return x.Gb(a,y),y.Vo(E),x=this.diagram,x!==null&&(E?x.N():x.oi(y)),Mf(this,a,y),a},Ce.pc=function(a,y,E){if(!E&&y.layer!==this&&y.layer!==null)return y.layer.pc(a,y,E);var x=this.Pa;if(0>a||a>=x.length){if(a=x.indexOf(y),0>a)return-1}else if(x.M(a)!==y&&(a=x.indexOf(y),0>a))return-1;return y.Wo(E),x.mb(a),x=this.diagram,x!==null&&(E?x.N():x.pc(y)),y.Ig=null,bs(y),a};function Mf(a,y,E){if(y=Jp(a,y,E),E instanceof or&&E!==null&&isNaN(E.zOrder)){if(E.memberParts.count!==0){for(var x=-1,b=a.Pa.s,z=b.length,ee=0;ee<z;ee++){var re=b[ee];if(re===E&&(y=ee,0<=x)||0>x&&re.containingGroup===E&&(x=ee,0<=y))break}!(0>x)&&x<y&&(b=a.Pa,b.mb(y),b.Gb(x,E))}y=E.containingGroup,y!==null&&Mf(a,-1,y)}E.svg!==null&&E.svg.remove()}function Jp(a,y,E){var x=E.zOrder;if(isNaN(x))return y;a=a.Pa;var b=a.count;if(1>=b)return y;if(0>y&&(y=a.indexOf(E)),0>y)return-1;for(var z=y-1,ee=NaN;0<=z&&(ee=a.M(z).zOrder,!!isNaN(ee));)z--;for(var re=y+1,oe=NaN;re<b&&(oe=a.M(re).zOrder,!!isNaN(oe));)re++;if(!isNaN(ee)&&ee>x)for(;;){if(z===-1||ee<=x){if(z++,z===y)break;return a.mb(y),a.Gb(z,E),z}for(ee=NaN;0<=--z&&(ee=a.M(z).zOrder,isNaN(ee)););}else if(!isNaN(oe)&&oe<x)for(;;){if(re===b||oe>=x){if(re--,re===y)break;return a.mb(y),a.Gb(re,E),re}for(oe=NaN;++re<b&&(oe=a.M(re).zOrder,isNaN(oe)););}return y}It.Object.defineProperties(Va.prototype,{parts:{get:function(){return this.Pa.iterator}},partsBackwards:{get:function(){return this.Pa.iteratorBackwards}},diagram:{get:function(){return this.H}},name:{get:function(){return this.xa},set:function(a){var y=this.xa;if(y!==a){var E=this.diagram;if(E!==null)for(y===""&&pt("Cannot rename default Layer to: "+a),E=E.layers;E.next();)E.value.name===a&&pt("Layer.name is already present in this diagram: "+a);for(this.xa=a,this.g("name",y,a),a=this.Pa.iterator;a.next();)a.value.layerName=this.xa}}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1<a)&&ii(a,"0 <= value <= 1",Va,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,a!==null&&a.N())}},isTemporary:{get:function(){return this.o},set:function(a){var y=this.o;y!==a&&((this.o=a)&&(this.isInDocumentBounds=!1),this.g("isTemporary",y,a))}},visible:{get:function(){return this.u},set:function(a){var y=this.u;if(y!==a){for(this.u=a,this.g("visible",y,a),y=this.Pa.iterator;y.next();)y.value.Zb(a);a=this.diagram,a!==null&&a.N()}}},pickable:{get:function(){return this.Uh},set:function(a){var y=this.Uh;y!==a&&(this.Uh=a,this.g("pickable",y,a))}},isInDocumentBounds:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a,this.diagram!==null&&this.diagram.Ya())}},allowCopy:{get:function(){return this.Fi},set:function(a){var y=this.Fi;y!==a&&(this.Fi=a,this.g("allowCopy",y,a))}},allowDelete:{get:function(){return this.Gi},set:function(a){var y=this.Gi;y!==a&&(this.Gi=a,this.g("allowDelete",y,a))}},allowTextEdit:{get:function(){return this.Pi},set:function(a){var y=this.Pi;y!==a&&(this.Pi=a,this.g("allowTextEdit",y,a))}},allowGroup:{get:function(){return this.Hi},set:function(a){var y=this.Hi;y!==a&&(this.Hi=a,this.g("allowGroup",y,a))}},allowUngroup:{get:function(){return this.Qi},set:function(a){var y=this.Qi;y!==a&&(this.Qi=a,this.g("allowUngroup",y,a))}},allowLink:{get:function(){return this.Ii},set:function(a){var y=this.Ii;y!==a&&(this.Ii=a,this.g("allowLink",y,a))}},allowRelink:{get:function(){return this.Ki},set:function(a){var y=this.Ki;y!==a&&(this.Ki=a,this.g("allowRelink",y,a))}},allowMove:{get:function(){return this.Ji},set:function(a){var y=this.Ji;y!==a&&(this.Ji=a,this.g("allowMove",y,a))}},allowReshape:{get:function(){return this.Li},set:function(a){var y=this.Li;y!==a&&(this.Li=a,this.g("allowReshape",y,a))}},allowResize:{get:function(){return this.Mi},set:function(a){var y=this.Mi;y!==a&&(this.Mi=a,this.g("allowResize",y,a))}},allowRotate:{get:function(){return this.Ni},set:function(a){var y=this.Ni;y!==a&&(this.Ni=a,this.g("allowRotate",y,a))}},allowSelect:{get:function(){return this.Oi},set:function(a){var y=this.Oi;y!==a&&(this.Oi=a,this.g("allowSelect",y,a))}}}),Va.prototype.findObjectsNear=Va.prototype.og,Va.prototype.findObjectsIn=Va.prototype.Cf,Va.prototype.findObjectsAt=Va.prototype.ji,Va.prototype.findObjectAt=Va.prototype.ic,Va.className="Layer";function Qt(a,y){if(dm||(Es(),dm=!0),wr(this),Nc=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,qo){var E=this,x=function(){E.removeEventListener(Rn.document,"DOMContentLoaded",x,!1),E.setRTL()};Rn.document.body!==null?this.setRTL():E.addEventListener(Rn.document,"DOMContentLoaded",x,!1)}this.ol=null,jf.add("Model",eo);var b=this;return this.Hb=function(z){var ee=b.partManager;if(z.model===ee.diagram.model&&ee.diagram.aa){ee.diagram.aa=!1;try{var re=z.change;z.modelChange===""&&re===wo&&ee.updateDataBindings(z.object,z.propertyName)}finally{ee.diagram.aa=!0}}},this.Oc=function(z){b.partManager.doModelChanged(z)},this.hu=this.ku=null,qp(this),this.model=fy(),this.Wg=!0,em(this),this.layout=new _o,this.Wg=!1,this.ck=this.ek=this.fk=this.dk=this.ui=this.aA=this.$j=this.Ov=null,this.hk=function(){},this.preventDefault=null,this.rn=!1,this.Yf=new hm,a!==void 0&&(typeof a=="string"||Rn.Element&&a instanceof Element?Mg(this,a):y=a),this.vb=!1,y&&this.nm(y),this}var jd,Nc;function qp(a){a.Yd=new ss,a.Yd.Xe(a),a.Db=17,a.Gw=!1,a.tn=!1,a.bu="default",a.Wa=new Fn,a.pj=new zi,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new lt(NaN,NaN).freeze(),a.du=new lt(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new lt(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new ir,a.zu=new lt(NaN,NaN).freeze(),a.ut=new hn(NaN,NaN,NaN,NaN).freeze(),a.rj=new cr(0,0,0,0).freeze(),a.sj=gd,a.nu=!1,a.Zt=null,a.fu=null,a.yh=Ms,a.zk=Ca,a.Fg=Ms,a.pq=Ca,a.yt=Ki,a.Bt=Ki,a.Fc=!0,a.pn=!1,a.De=new In,a.Eh=new zi,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new cr(16,16,16,16).freeze(),a.kg=!1,a.Jk=!1,a.fn=!0,a.bq=new Qa,a.bq.diagram=a,a.Qg=new Qa,a.Qg.diagram=a,a.cj=new Qa,a.cj.diagram=a,a.zg=null,a.pf=null,a.qu=!1,rv(a),a.ai=new In,a.Ht=!0,a.uu=pd,a.pw=!1,a.wu=$h,a.it="auto",a.Op="auto",a.zh=null,a.Fh=null,a.Bh=null,a.Qh=null,a.Oh=null,a.Nh=null,a.Qt=null,a.Lh=null,a.xt=!1,a.Mh=null,a.Ph=null,a.$h=null,a.Ch=null,a.Rt=!1,a.Yt={},a.oj=[null,null],a.Wg=!1,a.Iw=!1,a.ou=!1,a.lt=!1,a.rw=!0,a.ld=!1,a.$i=!1,a.Tw=!0,a.Ce=-2,a.Og=new zi,a.Xn=new Fn,a.Gg=!1,a.Jd=!0,a.Us=!0,a.Fi=!0,a.Gi=!0,a.Vs=!1,a.Ws=!0,a.Pi=!0,a.Hi=!0,a.Qi=!0,a.Ys=!0,a.Ii=!0,a.Ki=!0,a.Ji=!0,a.Li=!0,a.Mi=!0,a.Ni=!0,a.Oi=!0,a.Zs=!0,a.at=!0,a.qw=!1,a.Vk=!1,a.mn=!0,a.nn=!0,a.Xs=!0,a.$s=!0,a.iu=16,a.mu=16,a.qr=!1,a.gu=!1,a.lu=0,a.ju=0,a.yb=new cr(5).freeze(),a.Hw=new In().freeze(),a.Nt=999999999,a.nw=new In().freeze(),a.Zi=!0,a.Ee=!0,a.vd=!0,a.Be=!1,a.gf=!1,a.xh=!0,a.hf=!1,a.sy=new In,a.ow=new In,a.Xh=null,a.aw=new ri(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new lt,bounds:new hn,Py:new ri,bA:new ri,Oz:!1},a.fc.canvasSize=a.fc.Py,a.fc.newCanvasSize=a.fc.bA,a.fc.isScroll=!1,a.Rw=new hn(NaN,NaN,NaN,NaN).freeze(),a.wo=new ri(NaN,NaN).freeze(),a.Sp=new hn(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new zi;var y=new pi,E=new So;E.bind(new ha("text","",Yi)),y.add(E),a.ny=y,a.Lg.add("",y),y=new pi,E=new So,E.stroke="brown",E.bind(new ha("text","",Yi)),y.add(E),a.Lg.add("Comment",y),y=new pi,y.selectable=!1,y.avoidable=!1,E=new pr,E.figure="Ellipse",E.fill="black",E.stroke=null,E.desiredSize=new ri(3,3).ja(),y.add(E),a.Lg.add("LinkLabel",y),a.Yi=new zi,y=new or,y.selectionObjectName="GROUPPANEL",y.type=Vn.Vertical,E=new So,E.font="bold 12pt sans-serif",E.bind(new ha("text","",Yi)),y.add(E),E=new Vn(Vn.Auto),E.name="GROUPPANEL";var x=new pr;x.figure="Rectangle",x.fill="rgba(128,128,128,0.2)",x.stroke="black",E.add(x),x=new Hs,x.padding=new cr(5,5,5,5).ja(),E.add(x),y.add(E),a.ly=y,a.Yi.add("",y),a.Kh=new zi,y=new Xn,E=new pr,E.isPanelMain=!0,y.add(E),E=new pr,E.toArrow="Standard",E.fill="black",E.stroke=null,E.strokeWidth=0,y.add(E),a.my=y,a.Kh.add("",y),y=new Xn,E=new pr,E.isPanelMain=!0,E.stroke="brown",y.add(E),a.Kh.add("Comment",y),y=new Ur,y.type=Vn.Auto,E=new pr,E.fill=null,E.stroke="dodgerblue",E.strokeWidth=3,y.add(E),E=new Hs,E.margin=new cr(1.5,1.5,1.5,1.5).ja(),y.add(E),a.St=y,a.wt=y,y=new Ur,y.type=Vn.Link,E=new pr,E.isPanelMain=!0,E.fill=null,E.stroke="dodgerblue",E.strokeWidth=3,y.add(E),a.Kt=y,a.fe=null,a.mq=!1,a.Ck=null,a.partManager=new eo,a.toolManager=new Co,a.toolManager.initializeStandardTools(),a.defaultTool=a.toolManager,a.currentTool=a.defaultTool,a.nt=null,a.Wm=new ae,a.Vt=null,a.Wt=null,a.Mr=!1,a.commandHandler=$p(),a.eq=null,a.fq=fo,a.Pw=!1,a.Mb=1,a.Yh=null,a.Oq=1,a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0,a.yq=1,a.tw=0,a.uw=new lt,a.zy=500,a.wp=new lt,a.wq=!1}Qt.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),Ch=null,Yd="",Ng(this,!1),this.Xn.clear(),qf(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function Ng(a,y){a.animationManager.Cc(!0),a.Hw=new In().freeze(),a.nw=new In().freeze();var E=a.skipsUndoManager,x=a.cc!==null&&a.cc!==void 0;x&&(a.skipsUndoManager=!0);var b=null;a.fe!==null&&(b=a.fe.part,b!==null&&a.remove(b));var z=[],ee=a.Wa.length;if(y){for(y=0;y<ee;y++)for(var re=a.Wa.s[y].parts;re.next();){var oe=re.value;oe!==b&&oe.data===null&&z.push(oe)}for(y=0;y<z.length;y++)a.remove(z[y])}for(y=0;y<ee;y++)a.Wa.s[y].clear();return a.partManager.clear(),a.De.clear(),a.Eh.clear(),a.ai.clear(),a.Ck=null,a.Xn.clear(),qf(),a.Og.clear(),Vr=[],b!==null&&(a.add(b),a.partManager.parts.remove(b)),x&&(a.skipsUndoManager=E),z}function $p(){return null}Qt.prototype.reset=function(){this.clear(),this.vb=!0,qp(this),fc(this),this.Wg=!0,em(this),this.layout=new _o,this.Wg=!1,this.model=fy(),this.model.undoManager=new ho,this.vb=this.rn=!1,this.N()},Qt.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=Rn.document.body);var y=li("div");y.dir="rtl",y.style.cssText="font-size: 14px; width: 1px; height: 1px; position: absolute; top: -1000px; overflow: scroll;",y.textContent="A",a.appendChild(y);var E="reverse";0<y.scrollLeft?E="default":(y.scrollLeft=1,y.scrollLeft===0&&(E="negative")),a.removeChild(y),this.bu=E},Qt.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=Rn.document.body);var y=0;if(qo){var E=cm;y=jd,E===null&&(E=cm=li("p"),E.style.width="100%",E.style.height="200px",E.style.boxSizing="content-box",y=jd=li("div"),y.style.position="absolute",y.style.visibility="hidden",y.style.width="200px",y.style.height="150px",y.style.boxSizing="content-box",y.appendChild(E)),y.style.overflow="hidden",a.appendChild(y);var x=E.offsetWidth;y.style.overflow="scroll",E=E.offsetWidth,x===E&&(E=y.clientWidth),a.removeChild(y),y=x-E,y!==0||$i||(y=11)}this.Db=y,this.Gw=!0},Qt.prototype.qb=function(a){a.classType===Qt&&(this.autoScale=a)},Qt.prototype.toString=function(a){a===void 0&&(a=0);var y="";if(this.div&&this.div.id&&(y=this.div.id),y='Diagram "'+y+'"',0>=a)return y;for(var E=this.Wa.iterator;E.next();)y+=`
`+E.value.toString(a-1);return y};function Mg(a,y){if(qo){if(y!=null||pt("Diagram setup requires an argument DIV."),a.Ka!==null&&pt("Diagram has already completed setup."),typeof y=="string"?a.Ka=Rn.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:pt("No DIV or DIV id supplied: "+y),a.Ka===null&&pt("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&pt("Invalid div id; div already has a Diagram associated with it."),!a.ol&&Rn.ResizeObserver){var E=qt(function(){a.$b()},250);a.ol=new Rn.ResizeObserver(function(){E()}),a.ol.observe(a.Ka)}Rn.getComputedStyle(a.Ka,null).position==="static"&&(a.Ka.style.position="relative"),y=5;var x="rgba(2"+y+"5, 255, 255, 0)";y--,a.Ka.style["-webkit-tap-highlight-color"]=x,a.Ka.innerHTML="",a.Ka.H=a,a.Ka.goDiagram=a,a.Ka.go=Rn.go;var b=new vu(a);if(b.style!==void 0&&(b.style.position="absolute",b.style.top="0px",b.style.left="0px",Rn.getComputedStyle(a.Ka,null).getPropertyValue("direction")==="rtl"&&(a.tn=!0),b.style.zIndex="2",b.style.userSelect="none",b.style.MozUserSelect="none",b.style.touchAction="none",b.style.letterSpacing="normal !important",b.style.wordSpacing="normal !important"),a.ta=b,a.ib=b.context,x=a.ib,a.Mb=a.computePixelRatio(),a.viewSize.w()||(a.Aa=a.Ka.clientWidth||1,a.ya=a.Ka.clientHeight||1),Fg(a,a.Aa,a.ya),a.Ka.insertBefore(b.Oa,a.Ka.firstChild),b=new vu(null),b.width=1,b.height=1,a.jw=b,a.oy=b.context,qo){b=li("div");var z=li("div");b.style.position="absolute",b.style.overflow="auto",b.style.width=a.Aa+"px",b.style.height=a.ya+"px",b.style.zIndex="1",z.style.position="absolute",z.style.width="1px",z.style.height="1px",a.Ka.appendChild(b),b.appendChild(z),b.onscroll=nm,b.addEventListener("pointerdown",im),b.H=a,b.uy=!0,b.vy=!0,a.ku=b,a.hu=z}a.hk=qt(function(){a.Yh=null,a.N()},300),a.Ov=qt(function(){Pg(a)},250),a.preventDefault=function(ee){return ee.preventDefault(),!1},a.$j=function(ee){if(a.isEnabled){var re=Jl(a,ee,!0);re.bubbles=!0;var oe=0,ce=0;re.delta=0,ee.deltaX!==void 0?(ee.deltaX!==0&&(oe=0<ee.deltaX?1:-1),ee.deltaY!==0&&(ce=0<ee.deltaY?1:-1),re.delta=Math.abs(ee.deltaX)>Math.abs(ee.deltaY)?-oe:-ce):ee.wheelDeltaX!==void 0?(ee.wheelDeltaX!==0&&(oe=0<ee.wheelDeltaX?-1:1),ee.wheelDeltaY!==0&&(ce=0<ee.wheelDeltaY?-1:1),re.delta=Math.abs(ee.wheelDeltaX)>Math.abs(ee.wheelDeltaY)?-oe:-ce):ee.wheelDelta!==void 0&&ee.wheelDelta!==0&&(re.delta=0<ee.wheelDelta?1:-1),a.doMouseWheel(),ku(re,ee)}},a.aA=function(ee){a.isEnabled&&(a.Vk=!1,Jl(a,ee,!0),ee=a.currentTool,ee.cancelWaitAfter(),ee.standardMouseOver())},a.ui=function(ee){if(a.isEnabled){a.Vk=!0;var re=a.Yt;re[ee.pointerId]===void 0&&(re[ee.pointerId]=ee),re=a.oj;var oe=!1;if(re[0]===null||re[0].pointerId!==ee.pointerId&&re[0].pointerType===ee.pointerType)if(re[1]!==null&&re[1].pointerId===ee.pointerId)re[1]=ee,oe=!0;else if(re[0]===null)re[0]=ee;else if(re[1]===null)re[1]=ee,oe=!0;else{ee.preventDefault();return}else re[0]=ee;(re=ee.pointerType==="touch"||ee.pointerType==="pen")&&(a.qu=!1,a.wq=!0);var ce=oe;oe=Dg(a,ee,!0,!1,!0,ce),xh(a,ee,oe),oe.targetDiagram=kg(ee,ee.target),oe.targetObject=null,ce||oe.clone(a.bq),ce=a.uw,re=re?25:10,ee.timeStamp-a.tw<a.zy&&!(Math.abs(ce.x-ee.screenX)>re||Math.abs(ce.y-ee.screenY)>re)?a.yq++:a.yq=1,oe.clickCount=a.yq,a.tw=ee.timeStamp,a.uw.sg(ee.screenX,ee.screenY),a.doMouseDown(),ee.button===1?ee.preventDefault():ku(oe,ee)}},a.dk=function(ee){if(a.isEnabled){a.Vk=!0;var re=a.oj;if(re[0]===null||re[0].pointerId!==ee.pointerId&&re[0].pointerType===ee.pointerType){if(re[1]!==null&&re[1].pointerId===ee.pointerId){re[1]=ee;return}if(re[0]===null)re[0]=ee;else return}else re[0]=ee;if(re[0].pointerId===ee.pointerId){re=Dg(a,ee,!1,!1,!1,re[1]!==null);var oe=Rn.document.elementFromPoint(ee.clientX,ee.clientY)||null;oe!==null&&oe.shadowRoot!==void 0&&oe.shadowRoot!==null&&(oe=oe.shadowRoot.elementFromPoint(ee.clientX,ee.clientY));var ce=a,he=ee;oe&&oe.H&&(he=ee,ce=oe.H),re.targetDiagram=ce,xh(a,he,re),re.targetObject=null,a.doMouseMove(),ku(re,ee)}}},a.fk=function(ee){if(a.isEnabled){a.Vk=!0;var re=ee.pointerType==="touch"||ee.pointerType==="pen",oe=a.Yt;if(re&&a.qu)delete oe[ee.pointerId],ee.preventDefault();else if(oe=a.oj,oe[0]===null||oe[0].pointerId!==ee.pointerId&&oe[0].pointerType===ee.pointerType)oe[1]!==null&&oe[1].pointerId===ee.pointerId&&(oe[1]=null);else{oe[0]=null,oe=Dg(a,ee,!1,!0,!0,!1);var ce=Rn.document.elementFromPoint(ee.clientX,ee.clientY)||null;ce!==null&&ce.shadowRoot!==void 0&&ce.shadowRoot!==null&&(ce=ce.shadowRoot.elementFromPoint(ee.clientX,ee.clientY)),ce!==null&&ce.H instanceof Qt&&ce.H!==a&&xh(ce.H,ee,oe),ce===null&&(ce=ee.target),xh(a,ee,oe),oe.clickCount=a.yq,oe.targetDiagram=kg(ee,ce),oe.targetObject=null,a.doMouseUp(),ku(oe,ee),re&&(a.wq=!1)}}},a.ek=function(ee){if(a.isEnabled){a.Vk=!1;var re=a.Yt;re[ee.pointerId]&&delete re[ee.pointerId],re=a.oj,re[0]!==null&&re[0].pointerId===ee.pointerId&&(re[0]=null),re[1]!==null&&re[1].pointerId===ee.pointerId&&(re[1]=null),ee.pointerType!=="touch"&&ee.pointerType!=="pen"&&(ee=a.currentTool,ee.cancelWaitAfter(),ee.standardMouseOver())}},a.ck=function(ee){var re=a.oj;re[0]!==null&&re[0].pointerId===ee.pointerId?(re[0]=null,a.wq=!1):re[1]!==null&&re[1].pointerId===ee.pointerId&&(re[1]=null)},a.Vp=x.Z["d"+nf[1]+nf[2]+"wI"+Mh.slice(1,5)]["b"+HE.slice(1,y)](x.Z,tf,y,y),x.Vc(!0),iv(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}Qt.prototype.addEventListener=function(a,y,E,x){a.addEventListener(y,E,{capture:x,passive:!1})},Qt.prototype.removeEventListener=function(a,y,E,x){a.removeEventListener(y,E,{capture:x})};function iv(a){var y=a.ta.Oa;y instanceof HTMLCanvasElement||(y=a.div),a.addEventListener(y,"pointerdown",a.ui,!1),a.addEventListener(y,"pointermove",a.dk,!1),a.addEventListener(y,"pointerup",a.fk,!1),a.addEventListener(y,"pointerout",a.ek,!1),a.addEventListener(y,"pointercancel",a.ck,!1),a.addEventListener(y,"pointerenter",a.bz,!1),a.addEventListener(y,"pointerleave",a.cz,!1),a.addEventListener(y,"wheel",a.$j,!1),a.addEventListener(y,"keydown",a.Qz,!1),a.addEventListener(y,"keyup",a.Rz,!1),a.addEventListener(y,"blur",a.Ny,!1),a.addEventListener(y,"focus",a.Oy,!1),a.addEventListener(y,"selectstart",function(E){return E.preventDefault(),!1},!1),a.addEventListener(y,"contextmenu",function(E){return E.preventDefault(),!1},!1),a.addEventListener(Rn,"resize",a.Ov,!1)}function el(a){30<a.Sq&&(a.Yh=1)}function Kh(a,y){a.Yh!==null&&(a.Yh=null,y&&a.hk(),Fi&&Fi.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}Qt.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:Rn.devicePixelRatio||1},Qt.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},Qt.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},Qt.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},Qt.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},Qt.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},Qt.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},Qt.prototype.doFocus=function(){this.focus()},Qt.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var a=Rn.scrollX||Rn.pageXOffset,y=Rn.scrollY||Rn.pageYOffset;this.ta.focus(),Rn.scrollTo(a,y)}},Qt.prototype.Oy=function(){this.H.R("GainedFocus")},Qt.prototype.Ny=function(){this.H.R("LostFocus")};function Pg(a){if(a.ta!==null){var y=a.Ka;if(y!==null&&y.clientWidth!==0&&y.clientHeight!==0){a.Gw||a.setScrollWidth();var E=a.gf?a.Db:0,x=a.Be?a.Db:0,b=a.Mb;a.Mb=a.computePixelRatio(),a.Mb!==b&&(a.pn=!0,a.$b()),(y.clientWidth!==a.Aa+E||y.clientHeight!==a.ya+x)&&(a.Ee=!0,a.Fc=!0,y=a.layout,y!==null&&y.isViewportSized&&a.autoScale===Ms&&(a.Jk=!0,y.C()),a.ld||a.$b())}}}function em(a){var y=new Va;y.name="Background",a.Al(y),y=new Va,y.name="",a.Al(y),y=new Va,y.name="Foreground",a.Al(y),y=new Va,y.name="Adornment",y.isTemporary=!0,y.isInDocumentBounds=!1,a.Al(y),y=new Va,y.name="Tool",y.isTemporary=!0,y.isInDocumentBounds=!0,a.Al(y),y=new Va,y.name="Grid",y.allowSelect=!1,y.pickable=!1,y.isTemporary=!0,y.isInDocumentBounds=!1,a.Ww(y,a.Qj("Background"))}function tm(a){var y=new Vn(Vn.Grid);y.name="GRID";var E=new pr;return E.figure="LineH",E.stroke="lightgray",E.strokeWidth=.5,E.interval=1,y.add(E),E=new pr,E.figure="LineH",E.stroke="gray",E.strokeWidth=.5,E.interval=5,y.add(E),E=new pr,E.figure="LineH",E.stroke="gray",E.strokeWidth=1,E.interval=10,y.add(E),E=new pr,E.figure="LineV",E.stroke="lightgray",E.strokeWidth=.5,E.interval=1,y.add(E),E=new pr,E.figure="LineV",E.stroke="gray",E.strokeWidth=.5,E.interval=5,y.add(E),E=new pr,E.figure="LineV",E.stroke="gray",E.strokeWidth=1,E.interval=10,y.add(E),E=new Ui,E.add(y),E.layerName="Grid",E.zOrder=0,E.isInDocumentBounds=!1,E.isAnimated=!1,E.pickable=!1,E.locationObjectName="GRID",a.add(E),a.partManager.parts.remove(E),y.visible=!1,y}function nm(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):Th(this.H)}function im(a){this.H.isEnabled?(this.H.lu=a.target.scrollTop,this.H.ju=a.target.scrollLeft):Th(this.H)}Qt.prototype.kx=function(a){if(this.ta!==null){var y=this.ku,E=this.hu;this.qr=!0;var x=this.documentBounds,b=this.viewportBounds,z=this.rj,ee=x.x-z.left,re=x.y-z.top,oe=x.width+z.left+z.right,ce=x.height+z.top+z.bottom,he=x.right+z.right;z=x.bottom+z.bottom;var ye=b.x;x=b.y;var Te=b.width,Ae=b.height,ke=b.right,He=b.bottom;b=this.scale;var dt=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":dt=dt+a.scrollWidth-a.clientWidth;break;case"reverse":dt=a.scrollWidth-dt-a.clientWidth}var tt=dt;Te<oe||Ae<ce?(dt=lt.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==tt&&(dt.x=tt/b+ee,this.ju=tt),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(dt.y=a.scrollTop/b+re,this.lu=a.scrollTop),this.position=dt,lt.free(dt),this.Ee=this.qr=!1):(dt=lt.alloc(),a.uy&&this.allowHorizontalScroll&&(ee<ye&&(this.position=dt.h(tt+ee,this.position.y)),he>ke&&(this.position=dt.h(-(y.scrollWidth-this.Aa)+tt-this.Aa/b+he,this.position.y))),a.vy&&this.allowVerticalScroll&&(re<x&&(this.position=dt.h(this.position.x,a.scrollTop+re)),z>He&&(this.position=dt.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/b+z))),lt.free(dt),this.vd=!0,this.Ee=this.qr=!1,x=this.documentBounds,b=this.viewportBounds,he=x.right,ke=b.right,z=x.bottom,He=b.bottom,ee=x.x,ye=b.x,re=x.y,x=b.y,Te>=oe&&ee>=ye&&he<=ke&&(E.style.width="1px"),Ae>=ce&&re>=x&&z<=He&&(E.style.height="1px"))}},Qt.prototype.computeBounds=function(a){return a===void 0&&(a=new hn),ls(this),Lg(this,a)};function Lg(a,y){if(a.fixedBounds.w())return y.assign(a.fixedBounds),y.Co(a.yb),y;for(var E=!0,x=a.Wa.s,b=x.length,z=0;z<b;z++){var ee=x[z];if(ee.visible&&ee.isInDocumentBounds){ee=ee.Pa.s;for(var re=ee.length,oe=0;oe<re;oe++){var ce=ee[oe];ce.isInDocumentBounds&&ce.isVisible()&&(ce=ce.actualBounds,ce.w()&&(E?(E=!1,y.assign(ce)):y.ed(ce)))}}}return E&&y.h(0,0,0,0),y.Co(a.yb),y}Qt.prototype.computePartsBounds=function(a,y){y===void 0&&(y=!1);var E=null;if(xn(a))for(var x=0;x<a.length;x++){var b=a[x];!y&&b instanceof Xn||(b.Va(),E===null?E=b.actualBounds.copy():E.ed(b.actualBounds))}else for(a=a.iterator;a.next();)x=a.value,!y&&x instanceof Xn||(x.Va(),E===null?E=x.actualBounds.copy():E.ed(x.actualBounds));return E===null?new hn(NaN,NaN,0,0):E};function pu(a,y){if((y||a.hf)&&!a.vb&&a.ta!==null&&a.documentBounds.w()){if(a.vb=!0,y){var E=a.initialPosition;if(E.w()){a.vb=!1,a.position=E;return}E=lt.alloc(),E.xi(a.documentBounds,a.initialDocumentSpot);var x=a.viewportBounds;x=hn.allocAt(0,0,x.width,x.height);var b=lt.alloc();b.xi(x,a.initialViewportSpot),b.h(E.x-b.x,E.y-b.y),a.position=b,hn.free(x),lt.free(b),lt.free(E)}E=a.yh,y&&a.Fg!==Ms&&(E=a.Fg);var z=E!==Ms?Eh(a,E):a.scale;E=a.pa.x,x=a.pa.y,b=a.Aa/z;var ee=a.ya/z,re=a.zk,oe=a.pq;y&&!re.sb()&&(oe.sb()||oe.Xb())&&(re=oe.Xb()?ur:oe),Ig(a,a.documentBounds,b,ee,re,y),y=a.scale,a.scale=z,a.vb=!1,z=a.viewportBounds,Bt.B(z.x,E)&&Bt.B(z.y,x)&&Bt.B(z.width,b)&&Bt.B(z.height,ee)||a.onViewportBoundsChanged(new hn(E,x,b,ee),z,y,!1)}}function Eh(a,y){var E=a.Pp;if(a.ta===null)return E;a.Va();var x=a.documentBounds;if(!x.w())return E;var b=x.width;x=x.height;var z=a.Aa+(a.gf?a.Db:0),ee=a.ya+(a.Be?a.Db:0),re=z/b,oe=ee/x;return y===jl?(y=Math.min(oe,re),y>E&&(y=E),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):y===Vd?(y=oe>re?(ee-a.Db)/x:(z-a.Db)/b,y>E&&(y=E),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):a.scale}Qt.prototype.zoomToFit=function(){var a=this.sj;this.sj=gd,this.scale=Eh(this,jl),a!==gd&&(pu(this,!1),Ig(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},Ce=Qt.prototype,Ce.BA=function(a,y){y===void 0&&(y=jl);var E=a.width,x=a.height;if(!(E===0||x===0||isNaN(E)&&isNaN(x))){var b=1;if(y===jl||y===Vd)if(isNaN(E))b=this.viewportBounds.height*this.scale/x;else if(isNaN(x))b=this.viewportBounds.width*this.scale/E;else{b=this.Aa;var z=this.ya;b=y===Vd?z/x>b/E?(z-(this.Be?this.Db:0))/x:(b-(this.gf?this.Db:0))/E:Math.min(z/x,b/E)}this.scale=b,this.position=new lt(a.x,a.y)}},Ce.Jy=function(a,y){this.Va();var E=this.documentBounds,x=this.viewportBounds;this.position=new lt(E.x+(a.x*E.width+a.offsetX)-(y.x*x.width-y.offsetX),E.y+(a.y*E.height+a.offsetY)-(y.y*x.height-y.offsetY))},Ce.zz=function(a){if(a instanceof Dt){this.eq=a;var y=lt.alloc();this.fq=this.op(a.ga(Ki,y)),lt.free(y)}else this.eq=null,this.fq=fo};function Ig(a,y,E,x,b,z){var ee=lt.allocAt(a.pa.x,a.pa.y),re=ee.x,oe=ee.y;if(a.eq!==null){var ce=lt.alloc();ce=a.eq.ga(Ki,ce),re=ce.x-a.fq.x/a.scale,oe=ce.y-a.fq.y/a.scale,b=Pi,lt.free(ce)}(z||a.scrollMode===gd)&&(b.sb()&&(E>y.width&&(re=y.x+(b.x*y.width+b.offsetX)-(b.x*E-b.offsetX)),x>y.height&&(oe=y.y+(b.y*y.height+b.offsetY)-(b.y*x-b.offsetY))),b=a.rj,z=E-y.width,E<y.width+b.left+b.right?(re=Math.min(re+E/2,y.right+Math.max(z,b.right)-E/2),re=Math.max(re,y.left-Math.max(z,b.left)+E/2),re-=E/2):re>y.left?re=y.left:re<y.right-E&&(re=y.right-E),E=x-y.height,x<y.height+b.top+b.bottom?(oe=Math.min(oe+x/2,y.bottom+Math.max(E,b.bottom)-x/2),oe=Math.max(oe,y.top-Math.max(E,b.top)+x/2),oe-=x/2):oe>y.top?oe=y.top:oe<y.bottom-x&&(oe=y.bottom-x)),ee.x=isFinite(re)?re:-a.yb.left,ee.y=isFinite(oe)?oe:-a.yb.top,a.positionComputation!==null&&(y=a.positionComputation(a,ee),ee.x=y.x,ee.y=y.y),_d(a.Yd,a.pa,ee),a.pa.h(ee.x,ee.y),fc(a),lt.free(ee)}Ce.Ol=function(a,y){if(y===void 0&&(y=!0),y){if(a=Mc(this,a,function(E){return E.part},function(E){return E.canSelect()}),a instanceof Ui)return a}else if(a=Mc(this,a,function(E){return E.part}),a instanceof Ui)return a;return null},Ce.ic=function(a,y,E){y===void 0&&(y=null),E===void 0&&(E=null),ls(this);for(var x=this.Wa.iteratorBackwards;x.next();){var b=x.value;if(b.visible&&(b=b.ic(a,y,E),b!==null))return b}return null};function Mc(a,y,E,x){for(E===void 0&&(E=null),x===void 0&&(x=null),ls(a),a=a.Wa.iteratorBackwards;a.next();){var b=a.value;if(b.visible&&!b.isTemporary&&(b=b.ic(y,E,x),b!==null))return b}return null}Ce.lz=function(a,y,E){return y===void 0&&(y=!0),Qh(this,a,function(x){return x.part},y?function(x){return x instanceof Ui&&x.canSelect()}:null,E)};function Qh(a,y,E,x,b){for(E===void 0&&(E=null),x===void 0&&(x=null),b instanceof Fn||b instanceof In||(b=new In),ls(a),a=a.Wa.iteratorBackwards;a.next();){var z=a.value;z.visible&&!z.isTemporary&&z.ji(y,E,x,b)}return b}Ce.ji=function(a,y,E,x){y===void 0&&(y=null),E===void 0&&(E=null),x instanceof Fn||x instanceof In||(x=new In),ls(this);for(var b=this.Wa.iteratorBackwards;b.next();){var z=b.value;z.visible&&z.ji(a,y,E,x)}return x},Ce.ux=function(a,y,E,x){return y===void 0&&(y=!1),E===void 0&&(E=!0),Pf(this,a,function(b){return b instanceof Ui&&(!E||b.canSelect())},y,x)},Ce.Cf=function(a,y,E,x,b){y===void 0&&(y=null),E===void 0&&(E=null),x===void 0&&(x=!1),b instanceof Fn||b instanceof In||(b=new In),ls(this);for(var z=this.Wa.iteratorBackwards;z.next();){var ee=z.value;ee.visible&&ee.Cf(a,y,E,x,b)}return b},Ce.Nu=function(a,y,E,x,b,z){var ee=new In;ls(this);for(var re=this.Wa.iteratorBackwards;re.next();){var oe=re.value;oe.visible&&oe.Nu(a,y,E,x,ee,b,z)}return ee};function Pf(a,y,E,x,b){var z=null;for(z===void 0&&(z=null),E===void 0&&(E=null),x===void 0&&(x=!1),b instanceof Fn||b instanceof In||(b=new In),ls(a),a=a.Wa.iteratorBackwards;a.next();){var ee=a.value;ee.visible&&!ee.isTemporary&&ee.Cf(y,z,E,x,b)}return b}Ce.mz=function(a,y,E,x,b){return E===void 0&&(E=!0),x===void 0&&(x=!0),Xh(this,a,y,function(z){return z instanceof Ui&&(!x||z.canSelect())},E,b)},Ce.og=function(a,y,E,x,b,z){E===void 0&&(E=null),x===void 0&&(x=null),b===void 0&&(b=!0),b!==!1&&b!==!0&&((b instanceof Fn||b instanceof In)&&(z=b),b=!0),z instanceof Fn||z instanceof In||(z=new In),ls(this);for(var ee=this.Wa.iteratorBackwards;ee.next();){var re=ee.value;re.visible&&re.og(a,y,E,x,b,z)}return z};function Xh(a,y,E,x,b,z){var ee=null;for(ee===void 0&&(ee=null),x===void 0&&(x=null),b===void 0&&(b=!0),b!==!1&&b!==!0&&((b instanceof Fn||b instanceof In)&&(z=b),b=!0),z instanceof Fn||z instanceof In||(z=new In),ls(a),a=a.Wa.iteratorBackwards;a.next();){var re=a.value;re.visible&&!re.isTemporary&&re.og(y,E,ee,x,b,z)}return z}Qt.prototype.acceptEvent=function(a){return Jl(this,a,a instanceof MouseEvent)};function Jl(a,y,E){var x=a.Qg;return a.Qg=a.cj,a.cj=x,x.diagram=a,x.event=y,E?xh(a,y,x):(x.viewPoint=a.Qg.viewPoint,x.documentPoint=a.Qg.documentPoint),a=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),x.modifiers=a,x.button=y.button,y.buttons!==void 0&&(x.buttons=y.buttons),$i&&y.button===0&&y.ctrlKey&&(x.button=2),x.down=!1,x.up=!1,x.clickCount=1,x.delta=0,x.handled=!1,x.bubbles=!1,x.timestamp=y.timeStamp,x.isMultiTouch=!1,x.targetDiagram=kg(y,y.target),x.targetObject=null,x}function kg(a,y){return y===null?null:(y=y.H)?y:((y=a.path)||typeof a.composedPath!="function"||(y=a.composedPath()),y&&y[0]&&y[0].H?y[0].H:null)}function Dg(a,y,E,x,b,z){var ee=a.Qg;return a.Qg=a.cj,a.cj=ee,ee.diagram=a,ee.clickCount=1,a=ee.delta=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),ee.modifiers=a,ee.event=y,ee.timestamp=y.timeStamp,ee.button=y.button,ee.buttons=y.buttons,$i&&y.button===0&&y.ctrlKey&&(ee.button=2),ee.down=E,ee.up=x,ee.handled=!1,ee.bubbles=b,ee.isMultiTouch=z,ee}function ku(a,y){return a.bubbles?!0:(y.stopPropagation!==void 0&&y.stopPropagation(),y.cancelable!==!1&&y.preventDefault(),y.cancelBubble=!0,!1)}Qt.prototype.Qz=function(a){var y=this.H;if(!this.H.isEnabled)return!1;var E=Jl(y,a,!1);switch(E.key=String.fromCharCode(a.which),E.down=!0,a.which){case 8:E.key="Backspace";break;case 33:E.key="PageUp";break;case 34:E.key="PageDown";break;case 35:E.key="End";break;case 36:E.key="Home";break;case 37:E.key="Left";break;case 38:E.key="Up";break;case 39:E.key="Right";break;case 40:E.key="Down";break;case 45:E.key="Insert";break;case 46:E.key="Del";break;case 48:E.key="0";break;case 187:case 61:case 107:E.key="Add";break;case 189:case 173:case 109:E.key="Subtract";break;case 27:E.key="Esc"}return y.doKeyDown(),ku(E,a)},Qt.prototype.Rz=function(a){var y=this.H;if(!y.isEnabled)return!1;var E=Jl(y,a,!1);switch(E.key=String.fromCharCode(a.which),E.up=!0,a.which){case 8:E.key="Backspace";break;case 33:E.key="PageUp";break;case 34:E.key="PageDown";break;case 35:E.key="End";break;case 36:E.key="Home";break;case 37:E.key="Left";break;case 38:E.key="Up";break;case 39:E.key="Right";break;case 40:E.key="Down";break;case 45:E.key="Insert";break;case 46:E.key="Del"}return y.doKeyUp(),ku(E,a)},Qt.prototype.bz=function(a){var y=this.H;if(!y.isEnabled)return!1;var E=Jl(y,a,!0);return y.mouseEnter!==null&&y.mouseEnter(E),y.currentTool.standardMouseOver(),ku(E,a)},Qt.prototype.cz=function(a){var y=this.H;if(!y.isEnabled)return!1;var E=Jl(y,a,!0);return y.mouseLeave!==null&&y.mouseLeave(E),ku(E,a)},Qt.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new lt(0,0);var E=y.getBoundingClientRect();return y=a.clientX-this.Aa/E.width*E.left,a=a.clientY-this.ya/E.height*E.top,this.Ab!==null?Ar(new lt(y,a),this.Ab):new lt(y,a)};function xh(a,y,E){var x=a.ta,b=a.Aa,z=a.ya,ee=0,re=0;x!==null&&(x=x.getBoundingClientRect(),ee=y.clientX-b/x.width*x.left,re=y.clientY-z/x.height*x.top),E.viewPoint.h(ee,re),a.Ab!==null?(y=lt.allocAt(ee,re),a.Ab.Cd(y),E.documentPoint.assign(y),lt.free(y)):E.documentPoint.h(ee,re)}function Og(a,y,E){if(a.oj[0]!==null){y=a.oj[y];var x=a.ta;x!==null&&(x=x.getBoundingClientRect(),E.h(y.clientX-a.Aa/x.width*x.left,y.clientY-a.ya/x.height*x.top))}}Qt.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function rm(a){a.ld||ls(a),a.Va()}Qt.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},Ce=Qt.prototype,Ce.Pz=function(){return this.kg},Ce.Xy=function(a){a===void 0&&(a=null);var y=this.animationManager,E=y.isEnabled;y.Cc(),y.isEnabled=!1,ql(this),this.hf=!1,this.du=new lt(NaN,NaN),y.isEnabled=E,this.ld=!0;var x=this;a!==null&&Gt(function(){x.ld=!1,Da(y,"Model"),a(x)},1)},Ce.$b=function(a){if(a===void 0&&(a=!1),this.kg!==!0&&!(this.vb||a===!1&&this.ld)){this.kg=!0;var y=this;Rn.requestAnimationFrame(function(){y.kg&&y.bd()})}},Ce.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),ql(this))};function zd(a,y,E){!a.Ee||a.vb||a.animationManager.defaultAnimation.isAnimating||Th(a)||(y&&ls(a),E&&pu(a,!1))}function ql(a,y){if(!a.ld&&(a.kg=!1,a.Ka!==null||a.wo.w())){a.ld=!0;var E=a.animationManager,x=a.Xn;if(!E.isAnimating&&x.length!==0){for(var b=x.s,z=b.length,ee=0;ee<z;ee++){var re=b[ee];ba(re,!1),re.v()}x.clear()}x=a.ow,0<x.count&&(x.each(function(oe){oe.Nv()}),x.clear()),b=x=!1,E.defaultAnimation.isAnimating&&(b=!0,x=a.skipsUndoManager,a.skipsUndoManager=!0),E.zb||Pg(a),zd(a,!1,!0),a.fe!==null&&(a.fe.visible&&!a.mq&&(hc(a),a.mq=!0),!a.fe.visible&&a.mq&&(a.mq=!1)),ls(a),z=!1,(!a.hf||a.xh)&&(a.hf?Yg(a,!a.Jk):(a.Ea("Initial Layout"),E.isEnabled===!1&&E.Cc(),Yg(a,!1)),z=!0),a.Jk=!1,ls(a),a.ou||rm(a),zd(a,!0,!1),ee=!1,z?(E=hn.alloc(),E.assign(a.viewportBounds),a.hf||(ee=a.hf=!0,a.skipsUndoManager||(a.undoManager.isPendingClear=!0),a.undoManager.isPendingUnmodified=!0,Rg(a)),a.R("LayoutCompleted"),zd(a,!0,!1),hn.free(E)):E.Ok&&E.Qw&&(a.Fg!==Ms?a.scale=Eh(a,a.Fg):a.yh!==Ms?a.scale=Eh(a,a.yh):(E=a.initialScale,isFinite(E)&&0<E&&(a.scale=E)),pu(a,!0)),z&&ee&&a.eb("Initial Layout"),ls(a),y||a.gc(a.ib),b&&(a.skipsUndoManager=x),a.ld=!1}}function Rg(a){if(a.Fg!==Ms)a.scale=Eh(a,a.Fg);else if(a.yh!==Ms)a.scale=Eh(a,a.yh);else{var y=a.initialScale;isFinite(y)&&0<y&&(a.scale=y)}pu(a,!0),y=a.Wa.s,a.Fd(y,y.length,a,a.viewportBounds),a.R("InitialLayoutCompleted"),a.du.assign(a.pa),hc(a)}function ls(a){if(a.De.count!==0&&(a.ld||!a.animationManager.isTicking)){for(var y=0;23>y;y++){var E=a.De.iterator;if(E===null||a.De.count===0)break;a.De=new In,a.Nv(E,a.De)}a.nodes.each(function(x){x instanceof or&&x.U&65536&&(x.U=x.U^65536)})}}Ce.Nv=function(a,y){for(a.reset();a.next();){var E=a.value;!E.Zc()||E instanceof or||(E.si()?(E.measure(1/0,1/0),E.arrange()):y.add(E))}for(a.reset();a.next();)E=a.value,E instanceof or&&E.isVisible()&&Jh(this,E);for(a.reset();a.next();)E=a.value,E instanceof Xn&&E.isVisible()&&(E.si()?(E.measure(1/0,1/0),E.arrange()):y.add(E));for(a.reset();a.next();)E=a.value,E instanceof Ur&&E.isVisible()&&(E.si()?(E.measure(1/0,1/0),E.arrange()):y.add(E))};function Jh(a,y){for(var E=Ni(),x=Ni(),b=y.memberParts;b.next();){var z=b.value;z.isVisible()&&(z instanceof or?(Ul(z)||zs(z)||Zd(z))&&Jh(a,z):z instanceof Xn?z.fromNode===y||z.toNode===y?x.push(z):E.push(z):(z.measure(1/0,1/0),z.arrange()))}for(a=E.length,b=0;b<a;b++)z=E[b],z.measure(1/0,1/0),z.arrange();for(hi(E),y.measure(1/0,1/0),y.arrange(),a=x.length,y=0;y<a;y++)E=x[y],E.measure(1/0,1/0),E.arrange();hi(x)}Ce.Fd=function(a,y,E,x){if(this.vd||this.animationManager.isAnimating)for(var b=0;b<y;b++)a[b].Fd(E,x)},Ce.gc=function(a){if(this.Ka!==null){if(this.ta===null&&pt("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var y=this.animationManager;if(!y.zb&&(!y.isAnimating||y.isTicking)){wh(this);var E=this.Aa,x=this.ya;if(a.Gv.resize(E,x,E,x),E=this.Wa.s,x=E.length,this.Fd(E,x,this,this.viewportBounds),this.Fc||y.isAnimating){y=this.pa;var b=this.Ca,z=Math.round(y.x*b)/b,ee=Math.round(y.y*b)/b,re=this.Ab;for(re.reset(),b!==1&&re.scale(b),y.x===0&&y.y===0||re.translate(-z,-ee),a.ti=null,$y(a,re.m11,re.m12,re.m21,re.m22,re.dx,re.dy),this.pb!==1&&(a.globalAlpha=this.pb),hd(this,a),y=this.Mb,this.ta.context.setTransform(y,0,0,y,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya),y=0;y<x;y++)E[y].gc(a,this);a=!1,this.Yf?Ph(this.Yf,this)&&(a=this.Vp()):a=!0,a&&(ir.prototype.Cd=ir.prototype.Eu),this.Fc=this.vd=!1}}}}else e:if(z=this.animationManager,!z.zb&&(!z.isAnimating||z.isTicking)&&(E=new Date,wh(this),this.Ka.style.opacity!=="0")){if(x=a!==this.ib,y=this.Wa.s,b=y.length,this.Fd(y,b,this,this.viewportBounds),x)a.Vc(!0),this.vd=!0;else if(!this.Fc&&!z.isAnimating)break e;z=this.Ab,z.reset(),ee=this.Mb,re=this.pa;var oe=this.Ca,ce=Math.round(re.x*oe)/oe,he=Math.round(re.y*oe)/oe;for(oe!==1&&z.scale(oe),re.x===0&&re.y===0||z.translate(-ce,-he),a.setTransform(ee,0,0,ee,0,0),a.clearRect(0,0,this.Aa,this.ya),this.pb!==1&&(a.globalAlpha=this.pb),hd(this,a),re=0;re<b;re++)a.setTransform(ee,0,0,ee,0,0),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),a.yc(),y[re].gc(a,this);if(y=!1,this.Yf?Ph(this.Yf,this)&&(y=this.Vp()):y=!0,y&&(ir.prototype.Cd=ir.prototype.Eu),x?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,y=+new Date-+E,x=Fi&&Fi.nx,E=this.zw,x||this.Yh===null){for(E[this.Tq]=y,this.Tq=(this.Tq+1)%E.length,b=y=0;b<E.length;b++)y+=E[b];this.Sq=y/E.length}if(this.pb!==1&&(a.globalAlpha=1),x)for(a.setTransform(1,0,0,1,0,0),x=0;x<E.length;x++)a.fillText(E[x].toString(),20,150+ +(20*x))}}};function Lf(a,y,E,x,b,z,ee,re,oe,ce){if(a.Ka!==null){a.ta===null&&pt("No canvas specified"),ee===void 0&&(ee=null),re===void 0&&(re=null),oe===void 0&&(oe=!1),ce===void 0&&(ce=!1),wh(a),a.ib.Vc(!0),a.vd=!0,a.$i=!0;var he=a.Ca;a.Ca=b;var ye=a.Wa.s,Te=ye.length;try{var Ae=new hn(z.x,z.y,x.width/b,x.height/b),ke=Ae.copy();ke.Co(E),hc(a,ke),ls(a),a.Fd(ye,Te,a,Ae),y.setTransform(1,0,0,1,0,0),y.clearRect(0,0,x.width,x.height),re!==null&&re!==""&&(y.fillStyle=re,y.ox(0,0,x.width,x.height));var He=a.Mb;y.scale(He,He);var dt=ir.alloc();dt.reset(),dt.translate(E.left,E.top),dt.scale(b),z.x===0&&z.y===0||dt.translate(-z.x,-z.y),y.setTransform(dt.m11,dt.m12,dt.m21,dt.m22,dt.dx,dt.dy),y.yc(),y instanceof Al&&$y(y,dt.m11,dt.m12,dt.m21,dt.m22,dt.dx,dt.dy),ir.free(dt),hd(a,y),y.globalAlpha=a.pb;var tt=a.Qj("Grid");if(ee){var gt=new In,yt=ee.iterator;for(yt.reset();yt.next();){var bt=yt.value;bt instanceof Ui&&(ce||bt.layer!==tt)&&(bt.Gj(),gt.add(bt))}for(ce=0;ce<Te;ce++)Xp(ye[ce],y,a,gt,oe);gt.each(function(Kt){return Kt.Gj()})}else for(gt=0;gt<Te;gt++){var kt=ye[gt];kt===tt?ce&&kt.gc(y,a,!0):kt.gc(y,a,oe)}a.$i=!1,a.Yf&&Ph(a.Yf,a)&&a.Vp()}finally{a.Ca=he,a.ib.Vc(!0),a.vd=!0,a.Fd(ye,Te,a,a.viewportBounds),hc(a),a.ib instanceof Al&&(a.ib.Nj.PA(),a.redraw())}}}Ce.Gf=function(a){return this.Rg[a]},Ce.Xx=function(a,y){a==="minDrawingLength"&&(this.Oq=y),this.Rg[a]=y,this.redraw()},Ce.Tx=function(){this.Rg=new ji,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!($i||Zt),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function hd(a,y){a=a.Rg,a!==null&&(a.imageSmoothingEnabled!==void 0&&y.Wx(!!a.imageSmoothingEnabled),a=a.defaultFont,a!=null&&(y.font=a))}Ce.Ql=function(a){return this.on[a]},Ce.sA=function(a,y){this.on[a]=y},Ce.Sx=function(){this.on=new ji,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},Ce.set=function(a){return Object.assign(this,a),this},Ce.Du=function(a){return this.nm(a)},Ce.nm=function(a){return bh(this,a),this};function bh(a,y){var E=a instanceof Vn,x=a instanceof Qt,b;for(b in y){b===""&&pt("Setting properties requires non-empty property names");var z=a,ee=b;if(E||x){var re=b.indexOf(".");if(0<re){var oe=b.substring(0,re);E?z=a.fb(oe):(z=a[oe],z==null&&(z=a.toolManager[oe])),zt(z)?ee=b.substr(re+1):pt("Unable to find object named: "+oe+" in "+a.toString()+" when trying to set property: "+b)}}if(ee[0]!=="_"&&!Qi(z,ee))if(x&&ee==="ModelChanged"){a.Yw(y[ee]);continue}else if(x&&ee==="Changed"){a.Pe(y[ee]);continue}else if(x&&Qi(a.toolManager,ee))z=a.toolManager;else if(x&&sm(a,ee)){a.Bj(ee,y[ee]);continue}else if(a instanceof Di&&ee==="Changed"){a.Pe(y[ee]);continue}else pt('Trying to set undefined property "'+ee+'" on object: '+z.toString());z[ee]=y[b],ee[0]==="_"&&z instanceof Dt&&z.Vw(ee)}}Ce.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var a=this.Eh;for(this.Eh=new zi,a=a.iterator;a.next();){var y=a.key;y.Xo(a.value),y.qc()}}this.N()}},Ce.N=function(a){if(a===void 0)this.Fc=!0,this.$b();else{var y=this.viewportBounds;a.w()&&y.Yc(a)&&(this.Fc=!0,this.$b())}this.R("InvalidateDraw")},Qt.prototype.invalidateViewport=function(a,y){if(this.Fc!==!0)if(this.Fc=!0,this.nl==="svg")this.bd();else{var E=this.Gf("temporaryPixelRatio")===!0;if(this.Gf("viewportOptimizations")===!0&&this.scrollMode!==ef&&this.rj.hi(0,0,0,0)&&y.width===a.width&&y.height===a.height){var x=this.scale,b=Math.max(a.y,y.y),z=Math.min(a.y+a.height,y.y+y.height);if(0<Math.max(0,Math.min(a.x+a.width,y.x+y.width)-Math.max(a.x,y.x))*x&&0<Math.max(0,z-b)*x){if(!(this.ld||(this.kg=!1,this.Ka===null||(this.ld=!0,this.documentBounds.w()||(x=hn.alloc(),Gg(this,this.computeBounds(x)),hn.free(x)),x=this.ta,x===null||x instanceof gc)))){var ee=this.Mb;b=this.Aa*ee;var re=this.ya*ee,oe=this.scale*ee;z=Math.round(Math.round(y.x*oe)-Math.round(a.x*oe)),y=Math.round(Math.round(y.y*oe)-Math.round(a.y*oe)),oe=this.jw,a=this.oy,oe.width!==b&&(oe.width=b),oe.height!==re&&(oe.height=re),a.clearRect(0,0,b,re),oe=190*ee;var ce=70*ee,he=Math.max(z,0),ye=Math.max(y,0),Te=Math.floor(b-he),Ae=Math.floor(re-ye);a.drawImage(x.Oa,he,ye,Te,Ae,0,0,Te,Ae),Ph(this.Yf,this)&&a.clearRect(0,0,oe,ce),x=Ni(),a=Ni(),Ae=Math.abs(z),Te=Math.abs(y);var ke=he===0?0:b-Ae;he=lt.allocAt(ke,0),Ae=lt.allocAt(Ae+ke,re),a.push(new hn(Math.min(he.x,Ae.x),Math.min(he.y,Ae.y),Math.abs(he.x-Ae.x),Math.abs(he.y-Ae.y)));var He=this.Ab;if(He.reset(),He.scale(ee,ee),this.Ca!==1&&He.scale(this.Ca),ee=this.pa,(ee.x!==0||ee.y!==0)&&isFinite(ee.x)&&isFinite(ee.y)&&He.translate(-ee.x,-ee.y),Ar(he,He),Ar(Ae,He),x.push(new hn(Math.min(he.x,Ae.x),Math.min(he.y,Ae.y),Math.abs(he.x-Ae.x),Math.abs(he.y-Ae.y))),ke=ye===0?0:re-Te,he.h(0,ke),Ae.h(b,Te+ke),a.push(new hn(Math.min(he.x,Ae.x),Math.min(he.y,Ae.y),Math.abs(he.x-Ae.x),Math.abs(he.y-Ae.y))),Ar(he,He),Ar(Ae,He),x.push(new hn(Math.min(he.x,Ae.x),Math.min(he.y,Ae.y),Math.abs(he.x-Ae.x),Math.abs(he.y-Ae.y))),Ph(this.Yf,this)&&(b=0<z?0:-z,re=0<y?0:-y,he.h(b,re),Ae.h(oe+b,ce+re),a.push(new hn(Math.min(he.x,Ae.x),Math.min(he.y,Ae.y),Math.abs(he.x-Ae.x),Math.abs(he.y-Ae.y))),Ar(he,He),Ar(Ae,He),x.push(new hn(Math.min(he.x,Ae.x),Math.min(he.y,Ae.y),Math.abs(he.x-Ae.x),Math.abs(he.y-Ae.y)))),lt.free(he),lt.free(Ae),zd(this,!1,!0),this.Ka===null&&pt("No div specified"),this.ta===null&&pt("No canvas specified"),!this.animationManager.zb&&(b=this.ib,this.Fc)){for(wh(this),re=this.Mb,b.setTransform(1,0,0,1,0,0),b.clearRect(0,0,this.Aa*re,this.ya*re),b.drawImage(this.jw.Oa,0<z?0:Math.round(-z),0<y?0:Math.round(-y)),z=this.pa,ee=this.Ca,oe=Math.round(z.x*ee)/ee,ce=Math.round(z.y*ee)/ee,y=this.Ab,y.reset(),ee!==1&&y.scale(ee),z.x===0&&z.y===0||y.translate(-oe,-ce),b.save(),b.beginPath(),z=a.length,ee=0;ee<z;ee++)oe=a[ee],oe.width!==0&&oe.height!==0&&b.rect(Math.floor(oe.x),Math.floor(oe.y),Math.ceil(oe.width),Math.ceil(oe.height));for(b.clip(),b.setTransform(re,0,0,re,0,0),b.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),b.yc(),y=this.Wa.s,z=y.length,this.Fd(y,z,this,this.viewportBounds),hd(this,b),b.globalAlpha=this.pb,re=0;re<z;re++)if(ee=y[re],oe=x,ee.visible&&ee.pb!==0){ce=Wc(ee,b),ye=ee.Zq,ye.length=0,he=this.scale,Te=hn.alloc(),Ae=ee.Pa.s,He=Ae.length,ke=oe.length;for(var dt=0;dt<He;dt++){var tt=Ae[dt],gt=Fh(tt,tt.actualBounds);e:{for(var yt=2/he,bt=4/he,kt=0;kt<ke;kt++){var Kt=oe[kt];if(Kt.width!==0&&Kt.height!==0&&gt.Vu(Kt.x-yt,Kt.y-yt,Kt.width+bt,Kt.height+bt)){gt=!0;break e}}gt=!1}gt&&ee.Oj(b,tt,this,ye,he,Te,!0)}hn.free(Te),b.globalAlpha=ce}b.restore(),b.Vc(!0),this.Yf&&Ph(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}hi(x),hi(a),this.ld=!1}}else this.bd();E&&(el(this),this.bd(),Kh(this,!0))}else E?(el(this),this.bd(),Kh(this,!0)):this.bd()}};function wh(a){a.pn!==!1&&(a.pn=!1,Fg(a,a.Aa,a.ya))}function Fg(a,y,E){fc(a);var x=a.Mb;a.ta.resize(y*x,E*x,y,E)&&(a.Fc=!0,a.ib.Vc(!0))}function Th(a){var y=a.ta;if(y===null||a.wo.w())return!0;var E=a.Aa,x=a.ya,b=a.Ka,z=!1,ee=a.gf?a.Db:0,re=a.Be?a.Db:0,oe=b.clientWidth||E+ee,ce=b.clientHeight||x+re,he=a.viewportBounds;b=he.x;var ye=he.y,Te=he.width,Ae=he.height;if((oe!==E+ee||ce!==x+re)&&(a.gf=!1,a.Be=!1,re=ee=0,a.Aa=oe,a.ya=ce,z=a.pn=!0,fc(a)),!a.hf||!a.viewportBounds.w())return!0;var ke=a.ku,He=a.hu;if(a.Ee=!1,!(z||a.gf||a.Be||a.mn||a.nn))return!0;var dt=a.documentBounds,tt=0,gt=0,yt=0,bt=0,kt=he.width,Kt=he.height,di=a.rj;a.contentAlignment.sb()?(dt.width>kt&&(tt=di.left,gt=di.right),dt.height>Kt&&(yt=di.top,bt=di.bottom)):(tt=di.left,gt=di.right,yt=di.top,bt=di.bottom);var Ai=dt.width+tt+gt,xi=dt.height+yt+bt;di=a.scale;var Qn=Ai>oe/di,kn=xi>ce/di;if(!(z||a.gf||a.Be||Qn||kn))return!0;tt=dt.x-tt,oe=he.x,gt=dt.right+gt,ce=he.right+ee,yt=dt.y-yt;var rr=he.y;dt=dt.bottom+bt,he=he.bottom+re;var qi="1px";if(bt="1px",a.scrollMode===gd&&(Qn||kn)&&(Qn&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Qn=1,tt+1<oe&&(Qn=Math.max((oe-tt)*di+a.Aa,Qn)),gt>ce+1&&(Qn=Math.max((gt-ce)*di+a.Aa,Qn)),kt+ee+1<Ai&&(Qn=Math.max((Ai-kt)*di+a.Aa,Qn)),qi=Qn.toString()+"px"),kn&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Qn=1,yt+1<rr&&(Qn=Math.max((rr-yt)*di+a.ya,Qn)),dt>he+1&&(Qn=Math.max((dt-he)*di+a.ya,Qn)),Kt+re+1<xi&&(Qn=Math.max((xi-Kt)*di+a.ya,Qn)),bt=Qn.toString()+"px")),Qn=qi!=="1px",kn=bt!=="1px",Qn&&kn||!Qn&&!kn||(kn&&(ce-=a.Db),Qn&&(he-=a.Db),Ai<kt+ee||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(ee=1,tt+1<oe&&(ee=Math.max((oe-tt)*di+a.Aa,ee)),gt>ce+1&&(ee=Math.max((gt-ce)*di+a.Aa,ee)),kt+1<Ai&&(ee=Math.max((Ai-kt)*di+a.Aa,ee)),qi=ee.toString()+"px"),Qn=qi!=="1px",ee=a.ya,Qn!==a.Be&&(ee=Qn?a.ya-a.Db:a.ya+a.Db),xi<Kt+re||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(re=1,yt+1<rr&&(re=Math.max((rr-yt)*di+ee,re)),dt>he+1&&(re=Math.max((dt-he)*di+ee,re)),Kt+1<xi&&(re=Math.max((xi-Kt)*di+ee,re)),bt=re.toString()+"px"),kn=bt!=="1px"),a.qr&&Qn===a.Be&&kn===a.gf)return E===a.Aa&&x===a.ya||a.bd(),!1;if(Qn!==a.Be&&(qi==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),z=!0),a.Be=Qn,He.style.width=qi,kn!==a.gf&&(bt==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),z=!0,a.tn&&(re=lt.alloc(),kn?(y.style.left=a.Db+"px",a.position=re.h(a.pa.x+a.Db/a.scale,a.pa.y)):(y.style.left="0px",a.position=re.h(a.pa.x-a.Db/a.scale,a.pa.y)),lt.free(re))),z&&fc(a),a.gf=kn,He.style.height=bt,a.gu=!0,z&&(a.pn=!0),y=ke.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(kt+1<Ai?y=(a.position.x-tt)*di:tt+1<oe?y=ke.scrollWidth-ke.clientWidth:gt>ce+1&&(y=a.position.x*di)),a.tn)switch(a.bu){case"negative":y=-(ke.scrollWidth-y-ke.clientWidth);break;case"reverse":y=ke.scrollWidth-y-ke.clientWidth}return ke.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Kt+1<xi?ke.scrollTop=(a.position.y-yt)*di:yt+1<rr?ke.scrollTop=ke.scrollHeight-ke.clientHeight:dt>he+1&&(ke.scrollTop=a.position.y*di)),oe=a.Aa,ce=a.ya,ke.style.width=oe+(a.gf?a.Db:0)+"px",ke.style.height=ce+(a.Be?a.Db:0)+"px",E!==oe||x!==ce||a.animationManager.zb?(E=hn.allocAt(b,ye,Te,Ae),a.onViewportBoundsChanged(E,a.viewportBounds,di,z),hn.free(E),!1):!0}Ce=Qt.prototype,Ce.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&pt("Cannot add part "+a.toString()+" to "+this.toString()+". It is already a part of "+y.toString()),y=this.Qj(a.layerName),y===null&&(y=this.Qj("")),y===null&&pt('Cannot add a Part when unable find a Layer named "'+a.layerName+'" and there is no default Layer'),a.layer!==y)){var E=y.oi(99999999,a,a.diagram===this);0<=E&&this.cb(Xo,"parts",y,null,a,null,E),y.isTemporary||this.Ya(),a.C(1),E=a.layerChanged,E!==null&&E(a,null,y)}},Ce.oi=function(a){this.partManager.oi(a);var y=this;Dh(a,function(E){Ah(y,E)}),(a instanceof Ur||a instanceof or&&a.placeholder!==null)&&a.v(),a.data!==null&&Dh(a,function(E){cy(y.partManager,E)}),zs(a)!==!0&&Zd(a)!==!0||this.De.add(a),H1(a,!0,this),Y1(a)?(a.actualBounds.w()&&this.N(Fh(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Fh(a,a.actualBounds)),this.$b()},Ce.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&Dh(a,function(E){dy(y.partManager,E,y)}),this.De.remove(a),Y1(a)?(a.actualBounds.w()&&this.N(Fh(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Fh(a,a.actualBounds)),this.$b()},Ce.remove=function(a){Bg(this,a,!0)};function Bg(a,y,E){var x=y.layer;x!==null&&x.diagram===a&&(y.isSelected=!1,y.isHighlighted=!1,y.C(2),E&&y.Lj(),E=x.pc(-1,y,!1),0<=E&&a.cb($o,"parts",x,y,null,E,null),a=y.layerChanged,a!==null&&a(y,x,null))}Ce.Is=function(a,y){if(y===void 0&&(y=!1),xn(a))for(var E=a.length,x=0;x<E;x++){var b=a[x];y&&!b.canDelete()||this.remove(b)}else for(E=new In,E.addAll(a),a=E.iterator;a.next();)E=a.value,y&&!E.canDelete()||this.remove(E)},Ce.Kj=function(a,y,E){return E===void 0&&(E=!1),this.partManager.Kj(a,y,E)},Qt.prototype.moveParts=function(a,y,E,x){if(E===void 0&&(E=!1),x===void 0&&(x=If(this)),this.toolManager!==null){var b=new zi;if(a!==null)if(xn(a))for(var z=0;z<a.length;z++)Pc(this,b,a[z],E,x);else for(a=a.iterator;a.next();)Pc(this,b,a.value,E,x);else{for(a=this.parts;a.next();)Pc(this,b,a.value,E,x);for(a=this.nodes;a.next();)Pc(this,b,a.value,E,x);for(a=this.links;a.next();)Pc(this,b,a.value,E,x)}Ud(this,b,y,x,E)}};function Pc(a,y,E,x,b,z){if(!y.contains(E)&&(z===void 0&&(z=!1),!x||z||E.canMove()||E.canCopy()))if(b===void 0&&(b=If(a)),E instanceof pi){if(y.add(E,a.Pd(b,E,E.location)),E instanceof or&&(E.placeholder!==null||b.dragsMembers))for(z=E.memberParts;z.next();)Pc(a,y,z.value,x,b,b.groupsAlwaysMove);for(z=E.linksConnected;z.next();){var ee=z.value;if(!y.contains(ee)){var re=ee.fromNode,oe=ee.toNode;re!==null&&y.contains(re)&&oe!==null&&y.contains(oe)&&Pc(a,y,ee,x,b)}}if(b.dragsTree)for(E=E.Ou();E.next();)Pc(a,y,E.value,x,b)}else if(E instanceof Xn)for(y.add(E,a.Pd(b,E)),E=E.labelNodes;E.next();)Pc(a,y,E.value,x,b);else E instanceof Ur||y.add(E,a.Pd(b,E,E.location))}function Ud(a,y,E,x,b){if(y!==null&&y.count!==0){var z=lt.alloc(),ee=lt.alloc();ee.assign(E),isNaN(ee.x)&&(ee.x=0),isNaN(ee.y)&&(ee.y=0),(E=a.Mr)||Df(a,y);for(var re=Ni(),oe=Ni(),ce=y.iterator,he=lt.alloc();ce.next();){var ye=ce.key,Te=ce.value;if(ye.Zc()){var Ae=_g(a,ye,y);Ae!==null?re.push(new ie(ye,Te,Ae)):(!b||ye.canMove())&&(Ae=Te.point,z.assign(Ae),a.computeMove(ye,z.add(ee),x,he),ye.location=he,Te.shifted===void 0&&(Te.shifted=new lt),Te.shifted.assign(he.re(Ae)))}else ce.key instanceof Xn&&oe.push(ce.sa)}for(lt.free(he),b=re.length,ce=0;ce<b;ce++)ye=re[ce],z.assign(ye.info.point),ye.Su.shifted===void 0&&(ye.Su.shifted=new lt),ye.node.location=z.add(ye.Su.shifted);for(b=lt.alloc(),ce=lt.alloc(),ye=oe.length,Te=0;Te<ye;Te++){var ke=oe[Te];if(Ae=ke.key,Ae instanceof Xn)if(Ae.suspendsRouting){Ae.Tg=null,he=Ae.fromNode;var He=Ae.toNode;if(a.draggedLink!==null&&x.dragsLink)if(He=ke.value.point,Ae.dragComputation===null)y.add(Ae,a.Pd(x,Ae,ee)),bd(Ae,ee.x-He.x,ee.y-He.y);else{ke=lt.allocAt(0,0),(he=Ae.i(0))&&he.w()&&ke.assign(he);var dt=he=lt.alloc().assign(ke).add(ee);x.isGridSnapEnabled&&(x.isGridSnapRealtime||a.lastInput.up)&&(dt=lt.alloc(),kf(a,Ae,he,dt,x)),he.assign(Ae.dragComputation(Ae,he,dt)).re(ke),y.add(Ae,a.Pd(x,Ae,he)),bd(Ae,he.x-He.x,he.y-He.y),lt.free(ke),lt.free(he),dt!==he&&lt.free(dt)}else he!==null&&(b.assign(he.location),dt=y.I(he),dt!==null&&b.re(dt.point)),He!==null&&(ce.assign(He.location),dt=y.I(He),dt!==null&&ce.re(dt.point)),he!==null&&He!==null?b.Xa(ce)?(he=ke.value.point,He=z,He.assign(b),He.re(he),y.add(Ae,a.Pd(x,Ae,b)),bd(Ae,He.x,He.y)):(Ae.suspendsRouting=!1,Ae.bb()):(ke=ke.value.point,he=he!==null?b:He!==null?ce:ee,y.add(Ae,a.Pd(x,Ae,he)),bd(Ae,he.x-ke.x,he.y-ke.y))}else(Ae.fromNode===null||Ae.toNode===null)&&(he=ke.value.point,y.add(Ae,a.Pd(x,Ae,ee)),bd(Ae,ee.x-he.x,ee.y-he.y))}lt.free(z),lt.free(ee),lt.free(b),lt.free(ce),hi(re),hi(oe),E||(ls(a),Hd(a,y))}}Qt.prototype.computeMove=function(a,y,E,x){if(x===void 0&&(x=new lt),x.assign(y),a===null)return x;var b=y,z=E.isGridSnapEnabled;z&&(E.isGridSnapRealtime||this.lastInput.up)&&(b=lt.alloc(),kf(this,a,y,b,E)),E=a.dragComputation!==null?a.dragComputation(a,y,b):b;var ee=a.minLocation,re=ee.x;isNaN(re)&&(re=z?Math.round(1e3*a.location.x)/1e3:a.location.x),ee=ee.y,isNaN(ee)&&(ee=z?Math.round(1e3*a.location.y)/1e3:a.location.y);var oe=a.maxLocation,ce=oe.x;return isNaN(ce)&&(ce=z?Math.round(1e3*a.location.x)/1e3:a.location.x),oe=oe.y,isNaN(oe)&&(oe=z?Math.round(1e3*a.location.y)/1e3:a.location.y),x.h(Math.max(re,Math.min(E.x,ce)),Math.max(ee,Math.min(E.y,oe))),b!==y&&lt.free(b),x};function If(a){var y=a.toolManager.findTool("Dragging");return y!==null?y.dragOptions:a.Wm}function kf(a,y,E,x,b){if(b===void 0&&(b=If(a)),x.assign(E),y!==null){var z=a.grid;y=b.gridSnapCellSize,a=y.width,y=y.height;var ee=b.gridSnapOrigin,re=ee.x;if(ee=ee.y,b=b.gridSnapCellSpot,z!==null){var oe=z.gridCellSize;isNaN(a)&&(a=oe.width),isNaN(y)&&(y=oe.height),z=z.gridOrigin,isNaN(re)&&(re=z.x),isNaN(ee)&&(ee=z.y)}z=lt.allocAt(0,0),z.yi(0,0,a,y,b),Bt.No(E.x,E.y,re+z.x,ee+z.y,a,y,x),lt.free(z)}}function Df(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof Xn&&(y.suspendsRouting=!0)}function Hd(a,y){if(y!==null){for(y=y.iterator;y.next();){var E=y.key;E instanceof Xn&&(E.suspendsRouting=!1,Xv(E)&&E.bb())}a.Mr=!1}}function _g(a,y,E){return y=y.containingGroup,y!==null&&(a=_g(a,y,E),a!==null||(a=E.I(y),a!==null))?a:null}Ce=Qt.prototype,Ce.Pd=function(a,y,E){if(E===void 0)return new Zc(Go);var x=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(x=!1),x?new Zc(new lt(Math.round(1e3*E.x)/1e3,Math.round(1e3*E.y)/1e3)):new Zc(E.copy())};function jg(a,y,E){if(y.diagram!==null&&y.diagram!==a&&pt("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),E===null?y.diagram!==null&&pt("Cannot add an existing Layer to this Diagram again: "+y):(E.diagram!==a&&pt("Existing Layer must be in this Diagram: "+E+" not in "+E.diagram),y===E&&pt("Cannot move a Layer before or after itself: "+y)),y.diagram!==a){y=y.name,a=a.Wa,E=a.count;for(var x=0;x<E;x++)a.M(x).name===y&&pt("Cannot add Layer with the name '"+y+"'; a Layer with the same name is already present in this Diagram.")}}Ce.Al=function(a){jg(this,a,null),a.Xe(this);var y=this.Wa,E=y.count-1;if(!a.isTemporary)for(;0<=E&&y.M(E).isTemporary;)E--;return y.Gb(E+1,a),this.cc!==null&&this.cb(Xo,"layers",this,null,a,null,E+1),this.N(),this.Ya(),this},Ce.Ww=function(a,y){jg(this,a,y),a.Xe(this);var E=this.Wa,x=E.indexOf(a);0<=x&&(E.remove(a),this.cc!==null&&this.cb($o,"layers",this,a,null,x,null));var b=E.count,z;for(z=0;z<b;z++)if(E.M(z)===y){E.Gb(z,a);break}return this.cc!==null&&this.cb(Xo,"layers",this,null,a,null,z),this.N(),0>x&&this.Ya(),this},Ce.Cy=function(a,y){jg(this,a,y),a.Xe(this);var E=this.Wa,x=E.indexOf(a);0<=x&&(E.remove(a),this.cc!==null&&this.cb($o,"layers",this,a,null,x,null));var b=E.count,z;for(z=0;z<b;z++)if(E.M(z)===y){E.Gb(z+1,a);break}return this.cc!==null&&this.cb(Xo,"layers",this,null,a,null,z+1),this.N(),0>x&&this.Ya(),this},Ce.kA=function(a){if(a.diagram!==this&&pt("Cannot remove a Layer from another Diagram: "+a+" of "+a.diagram),a.name!==""){var y=this.Wa,E=y.indexOf(a);if(y.remove(a)){for(y=a.Pa.copy().iterator;y.next();){var x=y.value,b=x.layerName;b!==a.name?x.layerName=b:x.layerName=""}this.cc!==null&&this.cb($o,"layers",this,a,null,E,null),this.N(),this.Ya()}}},Ce.Qj=function(a){for(var y=this.layers;y.next();){var E=y.value;if(E.name===a)return E}return null},Ce.Yw=function(a){return this.pf===null&&(this.pf=new Fn),this.pf.add(a),this.model.Pe(a),this},Ce.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},Ce.Pe=function(a){return this.zg===null&&(this.zg=new Fn),this.zg.add(a),this},Ce.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},Ce.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==ys&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,E=y.length,x=0;x<E;x++)y.M(x)(a)},Ce.cb=function(a,y,E,x,b,z,ee){z===void 0&&(z=null),ee===void 0&&(ee=null);var re=new Oo;re.diagram=this,re.change=a,re.propertyName=y,re.object=E,re.oldValue=x,re.oldParam=z,re.newValue=b,re.newParam=ee,this.ds(re)},Ce.g=function(a,y,E,x,b){this.cb(wo,a,this,y,E,x,b)},Qt.prototype.changeState=function(a,y){if(a!==null&&a.diagram===this){var E=this.skipsModelSourceBindings;try{this.skipsModelSourceBindings=!0;var x=a.change;if(x===wo){var b=a.object;if(Ro(b,a.propertyName,a.I(y)),b instanceof Dt){var z=b.part;z!==null&&z.Wb()}this.isModified=!0}else if(x===Xo){var ee=a.object,re=a.newParam,oe=a.newValue;if(ee instanceof Vn)if(typeof re=="number"&&oe instanceof Dt){y?ee.pc(re):ee.Gb(re,oe);var ce=ee.part;ce!==null&&ce.Wb()}else typeof re=="number"&&oe instanceof wa&&(oe.isRow?p1(ee,re,y?void 0:oe):m1(ee,re,y?void 0:oe));else if(ee instanceof Va){var he=a.oldParam===!0;typeof re=="number"&&oe instanceof Ui&&(y?(oe.isSelected=!1,oe.isHighlighted=!1,oe.Wb(),ee.pc(he?re:-1,oe,he)):ee.oi(re,oe,he))}else ee instanceof Qt?typeof re=="number"&&oe instanceof Va&&(y?this.Wa.mb(re):(oe.Xe(this),this.Wa.Gb(re,oe))):pt("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(x===$o){var ye=a.object,Te=a.oldParam,Ae=a.oldValue;if(ye instanceof Vn)typeof Te=="number"&&Ae instanceof Dt?y?ye.Gb(Te,Ae):ye.pc(Te):typeof Te=="number"&&Ae instanceof wa&&(Ae.isRow?p1(ye,Te,y?Ae:void 0):m1(ye,Te,y?Ae:void 0));else if(ye instanceof Va){var ke=a.newParam===!0;typeof Te=="number"&&Ae instanceof Ui&&(y?0>ye.Pa.indexOf(Ae)&&ye.oi(Te,Ae,ke):(Ae.isSelected=!1,Ae.isHighlighted=!1,Ae.Wb(),ye.pc(ke?Te:-1,Ae,ke)))}else ye instanceof Qt?typeof Te=="number"&&Ae instanceof Va&&(y?(Ae.Xe(this),this.Wa.Gb(Te,Ae)):this.Wa.mb(Te)):pt("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else x!==ys&&pt("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=E}}},Qt.prototype.Ea=function(a){return this.undoManager.Ea(a)},Qt.prototype.eb=function(a){return this.undoManager.eb(a)},Qt.prototype.Kf=function(){return this.undoManager.Kf()},Qt.prototype.commit=function(a,y){y===void 0&&(y="");var E=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var x=!1;try{a(this),x=!0}finally{x?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=E}},Qt.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},Qt.prototype.rp=function(){this.partManager.rp()};function zg(a,y,E){var x=a.animationManager;if(a.vb||a.ld)a.Ca=E,fc(a),a.N(),a.Ee=!0,x.zb&&(Ss(x)||x.ce.add(x.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=E,fc(a);else{a.vb=!0;var b=a.viewportBounds.copy(),z=a.Aa,ee=a.ya,re=a.zoomPoint.x,oe=a.zoomPoint.y,ce=a.contentAlignment;isNaN(re)&&(ce.$c()?ce.Hf(ms)?re=0:ce.Hf(Zo)&&(re=z-1):re=ce.sb()?ce.x*(z-1):z/2),isNaN(oe)&&(ce.$c()?ce.Hf(oa)?oe=0:ce.Hf(Aa)&&(oe=ee-1):oe=ce.sb()?ce.y*(ee-1):ee/2),a.scaleComputation===null||a.animationManager.defaultAnimation.isAnimating||(E=a.scaleComputation(a,E)),E<a.minScale&&(E=a.minScale),E>a.maxScale&&(E=a.maxScale),z=lt.allocAt(a.pa.x+re/y-re/E,a.pa.y+oe/y-oe/E),a.position=z,lt.free(z),a.Ca=E,fc(a),a.vb=!1,a.onViewportBoundsChanged(b,a.viewportBounds,y,!1),pu(a,!1),x.zb&&(Ss(x)||x.ce.add(x.H,"scale",y,a.Ca))}}Qt.prototype.onViewportBoundsChanged=function(a,y,E,x){if(!a.D(y)){x===void 0&&(x=!1),x||(this.Ee=!0),this.vd=!0;var b=this.layout;b===null||!b.isViewportSized||this.autoScale!==Ms||a.width===y.width&&a.height===y.height||b.C(),b=this.currentTool,this.Vk===!0&&b instanceof Co&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),ph(b,this)),this.vb||this.invalidateViewport(a,y),hc(this),this.fc.scale=E,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.canvasSize.width=Math.round(a.width*E),this.fc.canvasSize.height=Math.round(a.height*E),this.fc.newCanvasSize.width=this.Aa,this.fc.newCanvasSize.height=this.ya,this.fc.isScroll=x,this.R("ViewportBoundsChanged",this.fc,a),this.isVirtualized&&this.links.each(function(z){z.isAvoiding&&z.actualBounds.Yc(y)&&z.bb()})}};function hc(a,y){var E=a.fe;if(E!==null&&E.visible){for(var x=ri.alloc(),b=1,z=1,ee=E.O.s,re=ee.length,oe=0;oe<re;oe++){var ce=ee[oe],he=Math.abs(ce.interval);2>he||(yv(ce.figure)?z=z*he/Bt.vx(z,he):b=b*he/Bt.vx(b,he))}if(ee=E.gridCellSize,x.h(z*ee.width,b*ee.height),y!==void 0)b=y.width,z=y.height,a=y.x,ee=y.y;else{if(y=hn.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){hn.free(y);return}b=y.width,z=y.height,a=y.x,ee=y.y,hn.free(y)}E.width=b+2*x.width,E.height=z+2*x.height,y=lt.alloc(),Bt.No(a,ee,0,0,x.width,x.height,y),y.offset(-x.width,-x.height),ri.free(x),E.part.location=y,lt.free(y)}}Qt.prototype.clearSelection=function(a){a===void 0&&(a=!1);var y=this.selection;if(y.count!==0){a||this.R("ChangingSelection",y);for(var E=y.Fa(),x=E.length,b=0;b<x;b++)E[b].isSelected=!1;y.ka(),y.clear(),y.freeze(),a||this.R("ChangedSelection",y)}},Qt.prototype.select=function(a){a!==null&&a.diagram===this&&(!a.isSelected||1<this.selection.count)&&(this.R("ChangingSelection",this.selection),this.clearSelection(!0),a.isSelected=!0,this.R("ChangedSelection",this.selection))},Qt.prototype.rA=function(a){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),xn(a))for(var y=a.length,E=0;E<y;E++){var x=a[E];x instanceof Ui||pt("Diagram.selectCollection given something that is not a Part: "+x),x.isSelected=!0}else for(a=a.iterator;a.next();)y=a.value,y instanceof Ui||pt("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},Qt.prototype.clearHighlighteds=function(){var a=this.highlighteds;if(0<a.count){for(var y=a.Fa(),E=y.length,x=0;x<E;x++)y[x].isHighlighted=!1;a.ka(),a.clear(),a.freeze()}},Ce=Qt.prototype,Ce.Iz=function(a){a!==null&&a.diagram===this&&(!a.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),a.isHighlighted=!0)},Ce.Jz=function(a){a=new In().addAll(a);for(var y=this.highlighteds.copy().hp(a).iterator;y.next();)y.value.isHighlighted=!1;for(a=a.iterator;a.next();)y=a.value,y instanceof Ui||pt("Diagram.highlightCollection given something that is not a Part: "+y),y.isHighlighted=!0},Ce.scroll=function(a,y,E){E===void 0&&(E=1);var x=y==="up"||y==="down",b=0,z=lt.alloc();if(a==="pixel")b=E;else if(a==="line")b=E*(x?this.scrollVerticalLineChange:this.scrollHorizontalLineChange);else if(a==="page")a=x?this.viewportBounds.height:this.viewportBounds.width,a*=this.scale,a!==0&&(b=E*Math.max(a-(x?this.scrollVerticalLineChange:this.scrollHorizontalLineChange),0));else{if(a==="document"){b=this.documentBounds,E=this.viewportBounds,y==="up"?this.position=z.h(E.x,b.y):y==="left"?this.position=z.h(b.x,E.y):y==="down"?this.position=z.h(E.x,b.bottom-E.height):y==="right"&&(this.position=z.h(b.right-E.width,E.y)),lt.free(z);return}pt("scrolling unit must be 'pixel', 'line', 'page', or 'document', not: "+a)}b/=this.scale,E=this.position,y==="up"?this.position=z.h(E.x,E.y-b):y==="down"?this.position=z.h(E.x,E.y+b):y==="left"?this.position=z.h(E.x-b,E.y):y==="right"?this.position=z.h(E.x+b,E.y):pt("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),lt.free(z)},Ce.tv=function(a){var y=this.viewportBounds;y.Re(a)||(a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a)},Ce.es=function(a){var y=this.viewportBounds;a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a},Ce.op=function(a){var y=this.Ab;y.reset(),this.Ca!==1&&y.scale(this.Ca);var E=this.pa;return(E.x!==0||E.y!==0)&&isFinite(E.x)&&isFinite(E.y)&&y.translate(-E.x,-E.y),a.copy().transform(this.Ab)},Ce.zA=function(a){var y=this.Ab,E=a.x,x=a.y,b=E+a.width,z=x+a.height,ee=y.m11,re=y.m12,oe=y.m21,ce=y.m22,he=y.dx,ye=y.dy,Te=E*ee+x*oe+he;y=E*re+x*ce+ye;var Ae=b*ee+x*oe+he;return a=b*re+x*ce+ye,x=E*ee+z*oe+he,E=E*re+z*ce+ye,ee=b*ee+z*oe+he,b=b*re+z*ce+ye,z=Math.min(Te,Ae),Te=Math.max(Te,Ae),Ae=Math.min(y,a),y=Math.max(y,a),z=Math.min(z,x),Te=Math.max(Te,x),Ae=Math.min(Ae,E),y=Math.max(y,E),z=Math.min(z,ee),Te=Math.max(Te,ee),Ae=Math.min(Ae,b),y=Math.max(y,b),new hn(z,Ae,Te-z,y-Ae)},Ce.Ps=function(a){var y=this.Ab;y.reset(),this.Ca!==1&&y.scale(this.Ca);var E=this.pa;return(E.x!==0||E.y!==0)&&isFinite(E.x)&&isFinite(E.y)&&y.translate(-E.x,-E.y),Ar(a.copy(),this.Ab)};function om(a){var y=a.isModified;a.Tw!==y&&(a.Tw=y,a.R("Modified"))}function Ug(a){return a=jf.get(a),a!==null?new a:new eo}Qt.prototype.doModelChanged=function(a){var y=this;if(a.model===this.model){var E=a.change,x=a.propertyName;if(E===ys&&x[0]==="S")if(x==="StartingFirstTransaction"){var b=this;a=this.toolManager,a.mouseDownTools.each(function(oe){return oe.diagram=b}),a.mouseMoveTools.each(function(oe){return oe.diagram=b}),a.mouseUpTools.each(function(oe){return oe.diagram=b}),this.ld||this.hf||(this.Jk=!0,this.fn&&(this.kg=!0))}else x==="StartingUndo"||x==="StartingRedo"?(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc(),this.R("ChangingSelection",this.selection)):x==="StartedTransaction"&&(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc());else if(this.aa){this.aa=!1;try{if(a.modelChange===""&&E===ys){(x==="FinishedUndo"||x==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),ls(this));var z=this.animationManager;x==="RolledBackTransaction"&&z.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||wl(z),x==="CommittedTransaction"&&this.undoManager.isJustDiscarded&&(this.Ce=Math.min(this.Ce,this.undoManager.historyIndex-1)),x!=="CommittedTransaction"&&x!=="RolledBackTransaction"||!this.undoManager.isPendingUnmodified||setTimeout(function(){y.isModified=!1},1);var ee=a.isTransactionFinished;if(ee&&(om(this),this.As.clear(),dd(this.animationManager)),!this.Rt&&ee&&this.lastInput.targetDiagram){this.Rt=!0;var re=this;Gt(function(){re.currentTool.standardMouseOver(),re.Rt=!1},10)}}}finally{this.aa=!0}}}};function Ah(a,y){y=y.O.s;for(var E=y.length,x=0;x<E;x++)Gd(a,y[x])}function Gd(a,y){if(y instanceof rl){var E=y.element;if(E!==null&&E instanceof HTMLImageElement){E.Bg instanceof In&&E.Bg.add(a);var x=y.Eg;if(x!==null&&x.sq===!0&&y.diagram!==null&&y.diagram.Xn.add(y),E.hn)if(E=E.getAttribute("src")||"",x=a.Og.I(E),x===null)x=[],x.push(y),a.Og.add(E,x);else{for(a=0;a<x.length;a++)if(x[a]===y)return;x.push(y)}}}}function Hg(a,y){if(y instanceof rl){var E=y.element;if(E!==null&&E instanceof HTMLImageElement&&E.hn){var x=E.getAttribute("src")||"",b=a.Og.I(x);if(b!==null){for(var z=0;z<b.length;z++)if(b[z]===y){b.splice(z,1),b.length===0&&(a.Og.remove(x),E.Fq&&E.removeEventListener("load",E.Fq),E.Yp&&E.removeEventListener("error",E.Yp),delete E.Fq,delete E.Yp,E.Bg instanceof In&&E.Bg.remove(a),qf(x));break}}}}}Qt.prototype.Wd=function(){this.partManager.Wd()},Qt.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},Qt.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},Qt.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},Qt.prototype.Vb=function(a){return this.partManager.Vb(a)},Qt.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},Ce=Qt.prototype,Ce.Lc=function(a){return this.partManager.Lc(a)},Ce.ii=function(a){return this.partManager.ii(a)},Ce.Kc=function(a){return this.partManager.Kc(a)},Ce.ms=function(a){for(var y=[],E=0;E<arguments.length;++E)y[E]=arguments[E];return this.partManager.ms.apply(this.partManager,y instanceof Array?y:Ri(Bi(y)))},Ce.ls=function(a){for(var y=[],E=0;E<arguments.length;++E)y[E]=arguments[E];return this.partManager.ls.apply(this.partManager,y instanceof Array?y:Ri(Bi(y)))};function fc(a){var y=a.pa,E=a.Ca;a.Rw.h(y.x,y.y,Math.max(a.Aa,0)/E,Math.max(a.ya,0)/E),a.vd=!0}function Gg(a,y){a.Zi=!1;var E=a.Sp;E.D(y)||(E=E.copy(),a.Sp.assign(y),pu(a,!1),a.R("DocumentBoundsChanged",void 0,E),a.Ee=!0,a.N())}Ce.Va=function(){if(this.Zi){var a=hn.alloc();Gg(this,this.computeBounds(a)),hn.free(a)}},Ce.rz=function(){for(var a=new In,y=this.nodes;y.next();){var E=y.value;E.isTopLevel&&a.add(E)}for(y=this.links;y.next();)E=y.value,E.isTopLevel&&a.add(E);return a.iterator},Ce.qz=function(){return this.ai.iterator},Ce.Uz=function(a){ls(this),a&&Of(this,!0),this.ld?Yg(this,!1):(this.Jk=!0,ql(this))};function Of(a,y){for(var E=a.ai.iterator;E.next();)am(a,E.value,y);a.layout&&(y?a.layout.isValidLayout=!1:a.layout.C())}function am(a,y,E){if(y!==null){for(var x=y.gl.iterator;x.next();)am(a,x.value,E);y.layout!==null&&(E?y.layout.isValidLayout=!1:y.layout.C())}}function Yg(a,y){if(a.xh&&!a.lt){var E=a.aa;a.aa=!0;var x=a.undoManager.transactionLevel,b=a.layout,z=a.animationManager;try{x===0&&(a.undoManager.isInternalTransaction=!0,a.Ea("Layout")),1>=x&&!z.defaultAnimation.isAnimating&&!z.zb&&(y||Da(z,"Layout")),a.xh=!1;for(var ee=a.ai.iterator;ee.next();)Vg(a,ee.value,y,x);b.isValidLayout||(!y||b.isRealtime||b.isRealtime===null||x===0?(b.doLayout(a),ls(a),b.isValidLayout=!0):a.xh=!0)}finally{y=a.undoManager.isInternalTransaction,x===0&&(a.eb("Layout"),a.undoManager.isInternalTransaction=!1),!y||x!==0&&x!==1||wl(z),a.aa=E}}}function Vg(a,y,E,x){if(y!==null){for(var b=y.gl.iterator;b.next();)Vg(a,b.value,E,x);b=y.layout,b===null||b.isValidLayout||(!E||b.isRealtime||x===0?(y.rh=!y.location.w(),b.doLayout(y),y.C(32),Jh(a,y),b.isValidLayout=!0):a.xh=!0)}}Ce.yz=function(){for(var a=new Fn,y=this.nodes;y.next();){var E=y.value;E.isTopLevel&&E.kh()===null&&a.add(E)}return a.iterator};function rv(a){function y(b){var z=b.toLowerCase(),ee=new Fn;E.add(b,ee),E.add(z,ee),x.add(b,b),x.add(z,b)}var E=new zi,x=new zi;y("InitialAnimationStarting"),y("AnimationStarting"),y("AnimationFinished"),y("BackgroundSingleClicked"),y("BackgroundDoubleClicked"),y("BackgroundContextClicked"),y("ClipboardChanged"),y("ClipboardPasted"),y("DocumentBoundsChanged"),y("ExternalObjectsDropped"),y("GainedFocus"),y("InitialLayoutCompleted"),y("LayoutCompleted"),y("LinkDrawn"),y("LinkRelinked"),y("LinkReshaped"),y("LostFocus"),y("Modified"),y("ObjectSingleClicked"),y("ObjectDoubleClicked"),y("ObjectContextClicked"),y("PartCreated"),y("PartResized"),y("PartRotated"),y("SelectionMoved"),y("SelectionCopied"),y("SelectionDeleting"),y("SelectionDeleted"),y("SelectionGrouped"),y("SelectionUngrouped"),y("ChangingSelection"),y("ChangedSelection"),y("SubGraphCollapsed"),y("SubGraphExpanded"),y("TextEdited"),y("TreeCollapsed"),y("TreeExpanded"),y("ViewportBoundsChanged"),y("InvalidateDraw"),a.iw=E,a.hw=x}function sm(a,y){var E=a.hw.I(y);return E!==null?E:a.hw.I(y.toLowerCase())}function Rf(a,y){var E=a.iw.I(y);if(E!==null||(E=a.iw.I(y.toLowerCase()),E!==null))return E;pt("Unknown DiagramEvent name: "+y)}Ce.Bj=function(a,y){return a=Rf(this,a),a!==null&&a.add(y),this},Ce.am=function(a,y){a=Rf(this,a),a!==null&&a.remove(y)},Ce.R=function(a,y,E){var x=Rf(this,a),b=new Tu;if(b.diagram=this,a=sm(this,a),a!==null&&(b.name=a),y!==void 0&&(b.subject=y),E!==void 0&&(b.parameter=E),y=x.length,y===1)x.M(0)(b);else if(y!==0)for(x=x.Fa(),E=0;E<y;E++)(0,x[E])(b)};function Ff(a){if(a.animationManager.isTicking)return!1;var y=a.currentTool;return y===a.toolManager.findTool("Dragging")?!a.Mr||y.isComplexRoutingRealtime:!0}Ce.Yj=function(a,y){return Bf(this,!1,null,y||null).Yj(a.x,a.y,a.width,a.height)},Qt.prototype.computeOccupiedArea=function(a){return this.isVirtualized?this.viewportBounds.copy():this.Zi?Lg(this,a):a.assign(this.documentBounds)};function Bf(a,y,E,x){var b=a.Xh;if(b===null&&(a.Xh=b=new Ep(a.avoidanceCellSize)),b.vs||b.group!==E||b.Yx!==x){if(b.Hx=Math.max(b.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.width)),b.Ix=Math.max(b.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.height)),E!==null&&(E=lm(a,E)),E===null){y=hn.alloc(),a.computeOccupiedArea(y),y.Bc(100,100),b.initialize(y);for(var z=a.nodes;z.next();){var ee=z.value,re=ee.layer;re!==null&&re.visible&&!re.isTemporary&&_f(a,ee,x,y)}hn.free(y)}else{for(0<E.memberParts.count&&(y=a.computePartsBounds(E.memberParts,!1),y.Bc(20,20),b.initialize(y)),y=hn.alloc(),z=E.memberParts;z.next();)ee=z.value,ee instanceof pi&&_f(a,ee,x,y);hn.free(y)}b.group=E,b.Yx=x,b.vs=!1}else y&&uS(b);return b}function lm(a,y){return y.avoidable&&!y.isLinkLabel?y:y.containingGroup!==null?lm(a,y.containingGroup):null}function _f(a,y,E,x){if(y!==E&&y.isVisible()){if(y.avoidable&&!y.isLinkLabel){y=y.getAvoidableRect(x),a=a.Xh;var b=y.x,z=y.y;if(rg(a,b,z))for(E=(z-a.Od)/a.sc|0,x=Math.min((b+y.width-a.Nd)/a.rc|0,a.di),y=Math.min((z+y.height-a.Od)/a.sc|0,a.ei),b=(b-a.Nd)/a.rc|0;b<=x;b++)if(z=a.ac[b],z.fill)z.fill(Td,E,y+1);else for(var ee=E;ee<=y;ee++)z[ee]=Td}else if(y instanceof or)for(y=y.memberParts;y.next();)b=y.value,b instanceof pi&&_f(a,b,E,x)}}function fd(a,y){a.Xh===null||a.Xh.vs||y!==void 0&&(!y.avoidable||y.isLinkLabel)||(a.Xh.vs=!0)}Qt.prototype.gs=function(a){this.wp.assign(a),this.computeAutoScrollPosition(this.wp).Xa(this.position)?this.ug():Wg(this)};function Wg(a){a.vk===-1&&(a.vk=Gt(function(){if(a.vk!==-1&&(a.ug(),a.lastInput.event!==null)){var y=a.computeAutoScrollPosition(a.wp);y.Xa(a.position)||(a.position=y,a.lastInput.documentPoint=a.Ps(a.wp),a.doMouseMove(),a.Zi=!0,y=hn.alloc(),a.computeBounds(y),y.ed(a.documentBounds),Gg(a,y),hn.free(y),a.Fc=!0,a.bd(),Wg(a))}},a.vp))}Qt.prototype.ug=function(){this.vk!==-1&&(Rn.clearTimeout(this.vk),this.vk=-1)},Qt.prototype.computeAutoScrollPosition=function(a){var y=this.position,E=this.xp;if(0>=E.top&&0>=E.left&&0>=E.right&&0>=E.bottom)return y;var x=this.viewportBounds,b=this.scale;x=hn.allocAt(0,0,x.width*b,x.height*b);var z=lt.allocAt(0,0);if(a.x>=x.x&&a.x<x.x+E.left&&this.allowHorizontalScroll){var ee=Math.max(this.scrollHorizontalLineChange,1);ee|=0,z.x-=ee,a.x<x.x+E.left/2&&(z.x-=ee),a.x<x.x+E.left/4&&(z.x-=4*ee)}else a.x<=x.x+x.width&&a.x>x.x+x.width-E.right&&this.allowHorizontalScroll&&(ee=Math.max(this.scrollHorizontalLineChange,1),ee|=0,z.x+=ee,a.x>x.x+x.width-E.right/2&&(z.x+=ee),a.x>x.x+x.width-E.right/4&&(z.x+=4*ee));return a.y>=x.y&&a.y<x.y+E.top&&this.allowVerticalScroll?(ee=Math.max(this.scrollVerticalLineChange,1),ee|=0,z.y-=ee,a.y<x.y+E.top/2&&(z.y-=ee),a.y<x.y+E.top/4&&(z.y-=4*ee)):a.y<=x.y+x.height&&a.y>x.y+x.height-E.bottom&&this.allowVerticalScroll&&(ee=Math.max(this.scrollVerticalLineChange,1),ee|=0,z.y+=ee,a.y>x.y+x.height-E.bottom/2&&(z.y+=ee),a.y>x.y+x.height-E.bottom/4&&(z.y+=4*ee)),z.Xa(Go)||(y=new lt(y.x+z.x/b,y.y+z.y/b)),hn.free(x),lt.free(z),y},Ce=Qt.prototype,Ce.Cs=function(){return null},Ce.av=function(){return null},Ce.bs=function(a,y){this.pj.add(a,y)},Ce.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof or&&(y.$p=null)})};function qh(a,y,E){function x(){var he=+new Date;for(z=!0,ee.reset();ee.next();)if(!ee.value[0].al){z=!1;break}z||he-ce>oe?y(E,b,re):Rn.requestAnimationFrame(x)}for(var b=E.callback,z=!0,ee=a.Og.iterator;ee.next();)if(!ee.value[0].al){z=!1;break}if(typeof b!="function"||z)return y(E,b,a);var re=a,oe=E.callbackTimeout||300,ce=+new Date;return Rn.requestAnimationFrame(function(){x()}),null}Ce.Wz=function(a){return qo?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},Ce.Jx=function(a){return a===void 0&&(a={}),qh(this,this.Xz,a)},Ce.Xz=function(a,y,E){var x=um(E,a,"canvas",null);if(x===null)return null;E=x.Z.canvas;var b=null;if(E!==null)switch(b=a.returnType,b===void 0?b="string":b=b.toLowerCase(),b){case Mh+"data":b=x.getImageData(0,0,E.width,E.height);break;case Mh:x=(a.document||document).createElement("img"),x.src=E.toDataURL(a.type,a.details),b=x;break;case"blob":return typeof y!="function"&&pt('Error: Diagram.makeImageData called with "returnType: toBlob", but no required "callback" function property defined.'),typeof E.toBlob=="function"?(E.toBlob(y,a.type,a.details),"toBlob"):(y(null),null);default:b=E.toDataURL(a.type,a.details)}return typeof y=="function"?(y(b),null):b};function um(a,y,E,x){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&pt("properties argument must be an Object.");var b=y.size||null,z=y.scale||null;y.scale!==void 0&&isNaN(y.scale)&&(z="NaN");var ee=y.maxSize;y.maxSize===void 0&&(ee=E==="SVG"?new ri(1/0,1/0):new ri(2e3,2e3));var re=y.position||null,oe=y.parts||null,ce=y.padding===void 0?1:y.padding,he=y.background||null,ye=y.omitTemporary;ye===void 0&&(ye=!0);var Te=y.document||document,Ae=y.elementFinished||null,ke=y.showTemporary;ke===void 0&&(ke=!ye),y=y.showGrid,y===void 0&&(y=ke),b!==null&&isNaN(b.width)&&isNaN(b.height)&&(b=null),typeof ce=="number"?ce=new cr(ce):ce instanceof cr||pt("MakeImage padding must be a Margin or a number."),ce.left=Math.max(ce.left,0),ce.right=Math.max(ce.right,0),ce.top=Math.max(ce.top,0),ce.bottom=Math.max(ce.bottom,0),a.ib.Vc(!0),ye=new vu(null,Te,void 0,!0);var He=ye.context;if(!(b||z||oe||re))return ye.width=a.Aa+Math.ceil(ce.left+ce.right),ye.height=a.ya+Math.ceil(ce.top+ce.bottom),E==="SVG"?x===null?null:(x.resize(ye.width,ye.height,ye.width,ye.height),x.ownerDocument=Te,x.hs=Ae,Lf(a,x.context,ce,new ri(ye.width,ye.height),a.Ca,a.pa,oe,he,ke,y),x.context):(a.Xm=!1,Lf(a,He,ce,new ri(ye.width,ye.height),a.Ca,a.pa,oe,he,ke,y),a.Xm=!0,ye.context);var dt=a.Pp,tt=a.documentBounds.copy();if(tt.Fv(a.yb),ke)for(var gt=a.Wa.s,yt=gt.length,bt=0;bt<yt;bt++){var kt=gt[bt];if(kt.visible&&kt.isTemporary){kt=kt.Pa.s;for(var Kt=kt.length,di=0;di<Kt;di++){var Ai=kt[di];Ai.isInDocumentBounds&&Ai.isVisible()&&(Ai=Ai.actualBounds,Ai.w()&&tt.ed(Ai))}}}if(gt=new lt(tt.x,tt.y),oe!==null){for(yt=new hn(0,0,0,0),bt=!0,kt=oe.iterator,kt.reset();kt.next();)Kt=kt.value,Kt instanceof Ui&&(di=Kt.layer,di!==null&&!di.visible||di!==null&&!ke&&di.isTemporary||!Kt.isVisible()||(Kt=Kt.actualBounds,Kt.w()&&(bt?(bt=!1,yt.assign(Kt)):yt.ed(Kt))));tt.width=yt.width,tt.height=yt.height,gt.x=yt.x,gt.y=yt.y}return re!==null&&re.w()&&(gt=re,z||(z=dt)),yt=re=0,ce!==null&&(re=ce.left+ce.right,yt=ce.top+ce.bottom),bt=kt=0,b!==null&&(kt=b.width,bt=b.height,isFinite(kt)&&(kt=Math.max(0,kt-re)),isFinite(bt)&&(bt=Math.max(0,bt-yt))),b!==null&&z!==null?(z==="NaN"&&(z=dt),b.w()?(b=kt,tt=bt):isNaN(bt)?(b=kt,tt=tt.height*z):(b=tt.width*z,tt=bt)):b!==null?b.w()?(z=Math.min(kt/tt.width,bt/tt.height),b=kt,tt=bt):isNaN(bt)?(z=kt/tt.width,b=kt,tt=tt.height*z):(z=bt/tt.height,b=tt.width*z,tt=bt):z!==null?z==="NaN"&&ee.w()?(z=Math.min((ee.width-re)/tt.width,(ee.height-yt)/tt.height),z>dt?(z=dt,b=tt.width,tt=tt.height):(b=ee.width,tt=ee.height)):(b=tt.width*z,tt=tt.height*z):(z=dt,b=tt.width,tt=tt.height),ce!==null?(b+=re,tt+=yt):ce=new cr(0),ee!==null&&(dt=ee.width,ee=ee.height,isNaN(dt)&&(dt=2e3),isNaN(ee)&&(ee=2e3),isFinite(dt)&&(b=Math.min(b,dt)),isFinite(ee)&&(tt=Math.min(tt,ee))),ye.width=Math.ceil(b),ye.height=Math.ceil(tt),E==="SVG"?x===null?null:(x.resize(ye.width,ye.height,ye.width,ye.height),x.ownerDocument=Te,x.hs=Ae,Lf(a,x.context,ce,new ri(Math.ceil(b),Math.ceil(tt)),z,gt,oe,he,ke,y),x.context):(a.Xm=!1,Lf(a,He,ce,new ri(Math.ceil(b),Math.ceil(tt)),z,gt,oe,he,ke,y),a.Xm=!0,ye.context)}It.Object.defineProperties(Qt.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof Ee||(a===""&&(a="default"),a=a.toLowerCase(),a!==this.nl&&(this.nl=a,a==="default"||a==="canvas"?(a=this.pj.get("svg"),a!==null&&a.Oa.remove(),this.ta&&(this.ib=this.ta.context)):a==="svg"?(this.pj.contains("svg")?a=this.pj.get("svg"):(a=new gc(this,Rn.document),this.bs("svg",a)),this.div!==null&&this.div.appendChild(a.Oa),this.ib=a.context,this.ta&&(this.ta.context.setTransform(this.Mb,0,0,this.Mb,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya))):a!=="debug"||this.pj.contains("SVG")||(a=new gc(this,Rn.document),this.bs("SVG",a),a.Oa.style.backgroundColor="whitesmoke",this.div!==null&&this.div.after(a.Oa)),this.hk()))}},div:{get:function(){return this.Ka},set:function(a){if(this.Ka!==a){var y=this.Ka;y!==null?(y.H=void 0,y.goDiagram=void 0,y.go=void 0,y.innerHTML="",this.ta!==null&&(y=this.ta.Oa,this.removeEventListener(y,"pointermove",this.dk,!1),this.removeEventListener(y,"pointerdown",this.ui,!1),this.removeEventListener(y,"pointerup",this.fk,!1),this.removeEventListener(y,"pointerout",this.ek,!1),this.removeEventListener(y,"pointercancel",this.ck,!1),this.ta.mx()),this.ol&&(this.ol.disconnect(),this.ol=null),y=this.toolManager,y!==null&&(y.mouseDownTools.each(function(E){E.cancelWaitAfter()}),y.mouseMoveTools.each(function(E){E.cancelWaitAfter()}),y.mouseUpTools.each(function(E){E.cancelWaitAfter()})),y.cancelWaitAfter(),this.currentTool.doCancel(),this.ta=null,this.removeEventListener(Rn,"resize",this.Ov,!1),this.removeEventListener(Rn,"wheel",this.$j,!0),Nc===this&&(Nc=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),Mg(this,a),this.hk())}}},$w:{get:function(){return this.Sq}},pi:{get:function(){return this.hf}},draggedLink:{get:function(){return this.nt},set:function(a){this.nt!==a&&(this.nt=a,a!==null&&(this.Vt=a.fromPort,this.Wt=a.toPort))}},Mx:{get:function(){return this.Vt},set:function(a){this.Vt=a}},Nx:{get:function(){return this.Wt},set:function(a){this.Wt=a}},animationManager:{get:function(){return this.Yd}},undoManager:{get:function(){return this.cc.undoManager}},skipsUndoManager:{get:function(){return this.Wg},set:function(a){this.Wg=a,this.cc.skipsUndoManager=a}},delaysLayout:{get:function(){return this.lt},set:function(a){this.lt=a}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1<a)&&ii(a,"0 <= value <= 1",Qt,"opacity"),this.pb=a,this.g("opacity",y,a),this.N())}},validCycle:{get:function(){return this.wu},set:function(a){var y=this.wu;y!==a&&(this.wu=a,this.g("validCycle",y,a))}},layers:{get:function(){return this.Wa.iterator}},isModelReadOnly:{get:function(){var a=this.cc;return a===null?!1:a.isReadOnly},set:function(a){var y=this.cc;y!==null&&(y.isReadOnly=a)}},isReadOnly:{get:function(){return this.Gg},set:function(a){var y=this.Gg;y!==a&&(this.Gg=a,this.g("isReadOnly",y,a))}},isEnabled:{get:function(){return this.Jd},set:function(a){var y=this.Jd;y!==a&&(this.Jd=a,this.g("isEnabled",y,a))}},allowClipboard:{get:function(){return this.Us},set:function(a){var y=this.Us;y!==a&&(this.Us=a,this.g("allowClipboard",y,a))}},allowCopy:{get:function(){return this.Fi},set:function(a){var y=this.Fi;y!==a&&(this.Fi=a,this.g("allowCopy",y,a))}},allowDelete:{get:function(){return this.Gi},set:function(a){var y=this.Gi;y!==a&&(this.Gi=a,this.g("allowDelete",y,a))}},allowDragOut:{get:function(){return this.Vs},set:function(a){var y=this.Vs;y!==a&&(this.Vs=a,this.g("allowDragOut",y,a))}},allowDrop:{get:function(){return this.Ws},set:function(a){var y=this.Ws;y!==a&&(this.Ws=a,this.g("allowDrop",y,a))}},allowTextEdit:{get:function(){return this.Pi},set:function(a){var y=this.Pi;y!==a&&(this.Pi=a,this.g("allowTextEdit",y,a))}},allowGroup:{get:function(){return this.Hi},set:function(a){var y=this.Hi;y!==a&&(this.Hi=a,this.g("allowGroup",y,a))}},allowUngroup:{get:function(){return this.Qi},set:function(a){var y=this.Qi;y!==a&&(this.Qi=a,this.g("allowUngroup",y,a))}},allowInsert:{get:function(){return this.Ys},set:function(a){var y=this.Ys;y!==a&&(this.Ys=a,this.g("allowInsert",y,a))}},allowLink:{get:function(){return this.Ii},set:function(a){var y=this.Ii;y!==a&&(this.Ii=a,this.g("allowLink",y,a))}},allowRelink:{get:function(){return this.Ki},set:function(a){var y=this.Ki;y!==a&&(this.Ki=a,this.g("allowRelink",y,a))}},allowMove:{get:function(){return this.Ji},set:function(a){var y=this.Ji;y!==a&&(this.Ji=a,this.g("allowMove",y,a))}},allowReshape:{get:function(){return this.Li},set:function(a){var y=this.Li;y!==a&&(this.Li=a,this.g("allowReshape",y,a))}},allowResize:{get:function(){return this.Mi},set:function(a){var y=this.Mi;y!==a&&(this.Mi=a,this.g("allowResize",y,a))}},allowRotate:{get:function(){return this.Ni},set:function(a){var y=this.Ni;y!==a&&(this.Ni=a,this.g("allowRotate",y,a))}},allowSelect:{get:function(){return this.Oi},set:function(a){var y=this.Oi;y!==a&&(this.Oi=a,this.g("allowSelect",y,a))}},allowUndo:{get:function(){return this.Zs},set:function(a){var y=this.Zs;y!==a&&(this.Zs=a,this.g("allowUndo",y,a))}},allowZoom:{get:function(){return this.at},set:function(a){var y=this.at;y!==a&&(this.at=a,this.g("allowZoom",y,a))}},hasVerticalScrollbar:{get:function(){return this.nn},set:function(a){var y=this.nn;y!==a&&(this.nn=a,this.Ee=!0,this.N(),this.g("hasVerticalScrollbar",y,a),pu(this,!1))}},hasHorizontalScrollbar:{get:function(){return this.mn},set:function(a){var y=this.mn;y!==a&&(this.mn=a,this.Ee=!0,this.N(),this.g("hasHorizontalScrollbar",y,a),pu(this,!1))}},allowHorizontalScroll:{get:function(){return this.Xs},set:function(a){var y=this.Xs;y!==a&&(this.Xs=a,this.g("allowHorizontalScroll",y,a),pu(this,!1))}},allowVerticalScroll:{get:function(){return this.$s},set:function(a){var y=this.$s;y!==a&&(this.$s=a,this.g("allowVerticalScroll",y,a),pu(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(a){var y=this.iu;y!==a&&(0>a&&ii(a,">= 0",Qt,"scrollHorizontalLineChange"),this.iu=a,this.g("scrollHorizontalLineChange",y,a))}},scrollVerticalLineChange:{get:function(){return this.mu},set:function(a){var y=this.mu;y!==a&&(0>a&&ii(a,">= 0",Qt,"scrollVerticalLineChange"),this.mu=a,this.g("scrollVerticalLineChange",y,a))}},lastInput:{get:function(){return this.cj},set:function(a){this.cj=a}},previousInput:{get:function(){return this.Qg},set:function(a){this.Qg=a}},firstInput:{get:function(){return this.bq},set:function(a){this.bq=a}},currentCursor:{get:function(){return this.it},set:function(a){if(a===""&&(a=this.Op),this.it!==a){var y=this.ta,E=this.Ka;if(y!==null&&E!==null){this.it=a;var x=y.style.cursor;y.style.cursor=a,E.style.cursor=a,y.style.cursor===x&&(y.style.cursor="-webkit-"+a,E.style.cursor="-webkit-"+a,y.style.cursor===x&&(y.style.cursor="-moz-"+a,E.style.cursor="-moz-"+a,y.style.cursor===x&&(y.style.cursor=a,E.style.cursor=a)))}}}},defaultCursor:{get:function(){return this.Op},set:function(a){a===""&&(a="auto");var y=this.Op;y!==a&&(this.Op=a,this.g("defaultCursor",y,a))}},click:{get:function(){return this.zh},set:function(a){var y=this.zh;y!==a&&(this.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.Fh},set:function(a){var y=this.Fh;y!==a&&(this.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.Bh},set:function(a){var y=this.Bh;y!==a&&(this.Bh=a,this.g("contextClick",y,a))}},mouseOver:{get:function(){return this.Qh},set:function(a){var y=this.Qh;y!==a&&(this.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.Oh},set:function(a){var y=this.Oh;y!==a&&(this.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.Nh},set:function(a){var y=this.Nh;y!==a&&(this.Nh=a,this.g("mouseHold",y,a))}},mouseDragOver:{get:function(){return this.Qt},set:function(a){var y=this.Qt;y!==a&&(this.Qt=a,this.g("mouseDragOver",y,a))}},mouseDrop:{get:function(){return this.Lh},set:function(a){var y=this.Lh;y!==a&&(this.Lh=a,this.g("mouseDrop",y,a))}},handlesDragDropForTopLevelParts:{get:function(){return this.xt},set:function(a){var y=this.xt;y!==a&&(this.xt=a,this.g("handlesDragDropForTopLevelParts",y,a))}},mouseEnter:{get:function(){return this.Mh},set:function(a){var y=this.Mh;y!==a&&(this.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.Ph},set:function(a){var y=this.Ph;y!==a&&(this.Ph=a,this.g("mouseLeave",y,a))}},toolTip:{get:function(){return this.$h},set:function(a){var y=this.$h;y!==a&&(this.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.Ch},set:function(a){var y=this.Ch;y!==a&&(this.Ch=a,this.g("contextMenu",y,a))}},commandHandler:{get:function(){return this.nb},set:function(a){this.nb!==a&&(this.nb=a,a.Xe(this))}},toolManager:{get:function(){return this.te},set:function(a){this.te!==a&&(this.te=a,a.diagram=this)}},defaultTool:{get:function(){return this.ob},set:function(a){var y=this.ob;y!==a&&(this.ob=a,a.diagram=this,this.currentTool===y&&(this.currentTool=a))}},currentTool:{get:function(){return this.hb},set:function(a){var y=this.hb;y&&(y.isActive&&y.doDeactivate(),y.cancelWaitAfter(),y.doStop()),a===null&&(a=this.defaultTool),a!==null&&(this.hb=a,a.diagram=this,a.doStart())}},selection:{get:function(){return this.Hw}},maxSelectionCount:{get:function(){return this.Nt},set:function(a){var y=this.Nt;if(y!==a)if(0<=a&&!isNaN(a)){if(this.Nt=a,this.g("maxSelectionCount",y,a),!this.undoManager.isUndoingRedoing&&(a=this.selection.count-a,0<a)){this.R("ChangingSelection",this.selection),y=this.selection.Fa();for(var E=0;E<a;E++)y[E].isSelected=!1;this.R("ChangedSelection",this.selection)}}else ii(a,">= 0",Qt,"maxSelectionCount")}},nodeSelectionAdornmentTemplate:{get:function(){return this.St},set:function(a){var y=this.St;y!==a&&(this.St=a,this.g("nodeSelectionAdornmentTemplate",y,a))}},groupSelectionAdornmentTemplate:{get:function(){return this.wt},set:function(a){var y=this.wt;y!==a&&(this.wt=a,this.g("groupSelectionAdornmentTemplate",y,a))}},linkSelectionAdornmentTemplate:{get:function(){return this.Kt},set:function(a){var y=this.Kt;y!==a&&(this.Kt=a,this.g("linkSelectionAdornmentTemplate",y,a))}},highlighteds:{get:function(){return this.nw}},isModified:{get:function(){var a=this.undoManager;return a.isEnabled?a.currentTransaction!==null?!0:this.rn&&this.Ce!==a.historyIndex:this.rn},set:function(a){if(this.rn!==a){this.rn=a;var y=this.undoManager;!a&&y.isEnabled&&(this.Ce=y.historyIndex),a||om(this)}}},model:{get:function(){return this.cc},set:function(a){var y=this.cc;if(y!==a){this.currentTool.doCancel(),y&&y.undoManager!==a.undoManager&&y.undoManager.isInTransaction&&pt("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var E=Ng(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var x=this.vb;this.vb=!0,Da(this.animationManager,"Model"),y&&(this.pf!==null&&this.pf.each(function(z){return y.ik(z)}),y.ik(this.Oc)),this.cc=a,this.partManager=Ug(this.cc.type);for(var b=0;b<E.length;b++)this.add(E[b]);a.Pe(this.Hb),this.partManager.addAllModeledParts(),a.ik(this.Hb),a.Pe(this.Oc),this.pf!==null&&this.pf.each(function(z){return a.Pe(z)}),this.vb=x,this.Ya(),this.vb||this.N(),y&&a.undoManager.copyProperties(y.undoManager)}}},aa:{get:function(){return this.rw},set:function(a){this.rw=a}},As:{get:function(){return this.sy}},skipsModelSourceBindings:{get:function(){return this.Iw},set:function(a){this.Iw=a}},Ns:{get:function(){return this.ou},set:function(a){this.ou=a}},nodeTemplate:{get:function(){return this.Lg.I("")},set:function(a){var y=this.Lg.I("");y!==a&&(this.Lg.add("",a),this.g("nodeTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},nodeTemplateMap:{get:function(){return this.Lg},set:function(a){var y=this.Lg;y!==a&&(this.Lg=a,this.g("nodeTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplate:{get:function(){return this.Yi.I("")},set:function(a){var y=this.Yi.I("");y!==a&&(this.Yi.add("",a),this.g("groupTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplateMap:{get:function(){return this.Yi},set:function(a){var y=this.Yi;y!==a&&(this.Yi=a,this.g("groupTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplate:{get:function(){return this.Kh.I("")},set:function(a){var y=this.Kh.I("");y!==a&&(this.Kh.add("",a),this.g("linkTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplateMap:{get:function(){return this.Kh},set:function(a){var y=this.Kh;y!==a&&(this.Kh=a,this.g("linkTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},isMouseCaptured:{get:function(){return this.qw},set:function(a){var y=this.ta;y!==null&&(y=y.Oa,y instanceof SVGElement||(a?(this.lastInput.bubbles=!1,this.removeEventListener(y,"pointermove",this.dk,!1),this.removeEventListener(y,"pointerdown",this.ui,!1),this.removeEventListener(y,"pointerup",this.fk,!1),this.removeEventListener(y,"pointerout",this.ek,!1),this.removeEventListener(y,"pointercancel",this.ck,!1),this.addEventListener(Rn,"pointermove",this.dk,!0),this.addEventListener(Rn,"pointerdown",this.ui,!0),this.addEventListener(Rn,"pointerup",this.fk,!0),this.addEventListener(Rn,"pointerout",this.ek,!0),this.addEventListener(Rn,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(Rn,"wheel",this.$j,!0),this.addEventListener(Rn,"selectstart",this.preventDefault,!1)):(this.removeEventListener(Rn,"pointermove",this.dk,!0),this.removeEventListener(Rn,"pointerdown",this.ui,!0),this.removeEventListener(Rn,"pointerup",this.fk,!0),this.removeEventListener(Rn,"pointerout",this.ek,!0),this.removeEventListener(Rn,"pointercancel",this.ck,!0),this.addEventListener(y,"pointermove",this.dk,!1),this.addEventListener(y,"pointerdown",this.ui,!1),this.addEventListener(y,"pointerup",this.fk,!1),this.addEventListener(y,"pointerout",this.ek,!1),this.addEventListener(y,"pointercancel",this.ck,!1),this.removeEventListener(Rn,"wheel",this.$j,!0),this.removeEventListener(Rn,"selectstart",this.preventDefault,!1),this.addEventListener(y,"wheel",this.$j,!1)),this.qw=a))}},position:{get:function(){return this.pa},set:function(a){var y=lt.alloc().assign(this.pa);if(!y.D(a)){var E=this.viewportBounds.copy();this.pa.assign(a),_d(this.animationManager,y,this.pa),this.vb||this.ta===null&&!this.wo.w()?fc(this):(this.vb=!0,a=this.scale,Ig(this,this.Sp,this.Aa/a,this.ya/a,this.zk,!1),this.vb=!1),this.vb||this.onViewportBoundsChanged(E,this.viewportBounds,this.Ca,!1)}lt.free(y)}},initialPosition:{get:function(){return this.zt},set:function(a){this.zt.D(a)||(this.zt=a.J())}},initialScale:{get:function(){return this.At},set:function(a){this.At!==a&&(this.At=a)}},grid:{get:function(){return this.fe===null&&(this.fe=tm(this)),this.fe},set:function(a){var y=this.fe;if(y!==a){y===null&&(y=this.fe=tm(this)),a.type!==Vn.Grid&&pt("Diagram.grid must be a Panel of type Panel.Grid");var E=y.panel;E!==null&&E.remove(y),this.fe=a,a.name="GRID",E!==null&&E.add(a),hc(this),this.N(),this.g("grid",y,a)}}},viewportBounds:{get:function(){return this.Rw}},viewSize:{get:function(){return this.wo},set:function(a){var y=this.viewSize;y.D(a)||(this.wo=a=a.J(),this.ya=this.Aa=0,a.w()?(this.Aa=a.width,this.ya=a.height):this.Ka!==null&&(this.Aa=this.Ka.clientWidth||1,this.ya=this.Ka.clientHeight||1),fc(this),this.Ya(),this.g("viewSize",y,a),this.redraw())}},fixedBounds:{get:function(){return this.ut},set:function(a){var y=this.ut;y.D(a)||(a.width!==-1/0&&a.height!==1/0&&a.height!==-1/0||pt("fixedBounds width/height must not be Infinity"),this.ut=a=a.J(),this.Ya(),this.g("fixedBounds",y,a))}},scrollMargin:{get:function(){return this.rj},set:function(a){typeof a=="number"&&(a=new cr(a));var y=this.rj;y.D(a)||(this.rj=a=a.J(),this.g("scrollMargin",y,a),this.hk())}},scrollMode:{get:function(){return this.sj},set:function(a){var y=this.sj;y!==a&&(this.sj=a,a===gd&&pu(this,!1),this.g("scrollMode",y,a),this.Ee=!0,this.N())}},scrollsPageOnFocus:{get:function(){return this.nu},set:function(a){var y=this.nu;y!==a&&(this.nu=a,this.g("scrollsPageOnFocus",y,a))}},positionComputation:{get:function(){return this.Zt},set:function(a){var y=this.Zt;y!==a&&(this.Zt=a,pu(this,!1),this.g("positionComputation",y,a))}},scaleComputation:{get:function(){return this.fu},set:function(a){var y=this.fu;y!==a&&(this.fu=a,zg(this,this.scale,this.scale),this.g("scaleComputation",y,a))}},documentBounds:{get:function(){return this.Sp}},isVirtualized:{get:function(){return this.It},set:function(a){var y=this.It;y!==a&&(this.It=a,this.g("isVirtualized",y,a))}},scale:{get:function(){return this.Ca},set:function(a){var y=this.Ca;y!==a&&zg(this,y,a)}},defaultScale:{get:function(){return this.Pp},set:function(a){this.Pp=a}},autoScale:{get:function(){return this.yh},set:function(a){var y=this.yh;y!==a&&(this.yh=a,this.g("autoScale",y,a),a!==Ms&&pu(this,!1))}},initialAutoScale:{get:function(){return this.Fg},set:function(a){var y=this.Fg;y!==a&&(this.Fg=a,this.g("initialAutoScale",y,a))}},initialViewportSpot:{get:function(){return this.Bt},set:function(a){var y=this.Bt;y!==a&&(a.sb()||pt("initialViewportSpot must be a specific Spot: "+a),this.Bt=a,this.g("initialViewportSpot",y,a))}},initialDocumentSpot:{get:function(){return this.yt},set:function(a){var y=this.yt;y!==a&&(a.sb()||pt("initialViewportSpot must be a specific Spot: "+a),this.yt=a,this.g("initialDocumentSpot",y,a))}},minScale:{get:function(){return this.Ot},set:function(a){var y=this.Ot;y!==a&&(0<a?(this.Ot=a,this.g("minScale",y,a),a>this.scale&&(this.scale=a)):ii(a,"> 0",Qt,"minScale"))}},maxScale:{get:function(){return this.Mt},set:function(a){var y=this.Mt;y!==a&&(0<a?(this.Mt=a,this.g("maxScale",y,a),a<this.scale&&(this.scale=a)):ii(a,"> 0",Qt,"maxScale"))}},zoomPoint:{get:function(){return this.zu},set:function(a){this.zu.D(a)||(this.zu=a=a.J())}},contentAlignment:{get:function(){return this.zk},set:function(a){var y=this.zk;y.D(a)||(this.zk=a=a.J(),this.g("contentAlignment",y,a),pu(this,!1))}},initialContentAlignment:{get:function(){return this.pq},set:function(a){var y=this.pq;y.D(a)||(this.pq=a=a.J(),this.g("initialContentAlignment",y,a))}},padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new cr(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.Ya(),this.g("padding",y,a))}},partManager:{get:function(){return this.Pc},set:function(a){var y=this.Pc;y!==a&&(a.diagram!==null&&pt("Cannot share PartManagers between Diagrams: "+a.toString()),y&&y.Xe(null),this.Pc=a,a.Xe(this))}},nodes:{get:function(){return this.partManager.nodes.iterator}},links:{get:function(){return this.partManager.links.iterator}},parts:{get:function(){return this.partManager.parts.iterator}},layout:{get:function(){return this.Sc},set:function(a){var y=this.Sc;y!==a&&(this.Sc=a,a.diagram=this,a.group=null,this.xh=!0,this.g("layout",y,a),this.$b())}},isTreePathToChildren:{get:function(){return this.Ht},set:function(a){var y=this.Ht;if(y!==a&&(this.Ht=a,this.g("isTreePathToChildren",y,a),!this.undoManager.isUndoingRedoing))for(a=this.nodes;a.next();)cp(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==pd&&a!==xa&&a!==zf&&pt("Unknown Diagram.treeCollapsePolicy: "+a),this.uu=a,this.g("treeCollapsePolicy",y,a))}},Ue:{get:function(){return this.pw},set:function(a){this.pw=a}},avoidanceCellSize:{get:function(){return this.aw},set:function(a){this.Xh=null,this.aw=new ri(Math.max(1,a.width),Math.max(1,a.height))}},avoidanceLimit:{get:function(){return this.bw},set:function(a){this.bw=Math.max(1,a)}},autoScrollInterval:{get:function(){return this.vp},set:function(a){var y=this.vp;y!==a&&(this.vp=a,this.g("autoScrollInterval",y,a))}},autoScrollRegion:{get:function(){return this.xp},set:function(a){typeof a=="number"&&(a=new cr(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),It.Object.defineProperties(Qt,{licenseKey:{get:function(){return qg.jc()},set:function(a){qg.add(a.replace(/\s/g,""))}},version:{get:function(){return Nh}}}),Qt.prototype.makeImageData=Qt.prototype.Jx,Qt.prototype.makeImage=Qt.prototype.Wz,Qt.prototype.cacheGroupExternalLinks=Qt.prototype.Fu,Qt.prototype.addRenderer=Qt.prototype.bs,Qt.prototype.makeSVG=Qt.prototype.av,Qt.prototype.makeSvg=Qt.prototype.Cs,Qt.prototype.stopAutoScroll=Qt.prototype.ug,Qt.prototype.doAutoScroll=Qt.prototype.gs,Qt.prototype.isUnoccupied=Qt.prototype.Yj,Qt.prototype.raiseDiagramEvent=Qt.prototype.R,Qt.prototype.removeDiagramListener=Qt.prototype.am,Qt.prototype.addDiagramListener=Qt.prototype.Bj,Qt.prototype.findTreeRoots=Qt.prototype.yz,Qt.prototype.layoutDiagram=Qt.prototype.Uz,Qt.prototype.findTopLevelGroups=Qt.prototype.qz,Qt.prototype.findTopLevelNodesAndLinks=Qt.prototype.rz,Qt.prototype.ensureBounds=Qt.prototype.Va,Qt.prototype.findLinksByExample=Qt.prototype.ls,Qt.prototype.findNodesByExample=Qt.prototype.ms,Qt.prototype.findLinkForData=Qt.prototype.Kc,Qt.prototype.findNodeForData=Qt.prototype.ii,Qt.prototype.findPartForData=Qt.prototype.Lc,Qt.prototype.findLinkForKey=Qt.prototype.findLinkForKey,Qt.prototype.findNodeForKey=Qt.prototype.Vb,Qt.prototype.findPartForKey=Qt.prototype.findPartForKey,Qt.prototype.rebuildParts=Qt.prototype.Wd,Qt.prototype.transformViewToDoc=Qt.prototype.Ps,Qt.prototype.transformRectDocToView=Qt.prototype.zA,Qt.prototype.transformDocToView=Qt.prototype.op,Qt.prototype.centerRect=Qt.prototype.es,Qt.prototype.scrollToRect=Qt.prototype.tv,Qt.prototype.scroll=Qt.prototype.scroll,Qt.prototype.highlightCollection=Qt.prototype.Jz,Qt.prototype.highlight=Qt.prototype.Iz,Qt.prototype.selectCollection=Qt.prototype.rA,Qt.prototype.select=Qt.prototype.select,Qt.prototype.updateAllRelationshipsFromData=Qt.prototype.rp,Qt.prototype.updateAllTargetBindings=Qt.prototype.updateAllTargetBindings,Qt.prototype.commit=Qt.prototype.commit,Qt.prototype.rollbackTransaction=Qt.prototype.Kf,Qt.prototype.commitTransaction=Qt.prototype.eb,Qt.prototype.startTransaction=Qt.prototype.Ea,Qt.prototype.raiseChanged=Qt.prototype.g,Qt.prototype.raiseChangedEvent=Qt.prototype.cb,Qt.prototype.removeChangedListener=Qt.prototype.ik,Qt.prototype.addChangedListener=Qt.prototype.Pe,Qt.prototype.removeModelChangedListener=Qt.prototype.mA,Qt.prototype.addModelChangedListener=Qt.prototype.Yw,Qt.prototype.findLayer=Qt.prototype.Qj,Qt.prototype.removeLayer=Qt.prototype.kA,Qt.prototype.addLayerAfter=Qt.prototype.Cy,Qt.prototype.addLayerBefore=Qt.prototype.Ww,Qt.prototype.addLayer=Qt.prototype.Al,Qt.prototype.moveParts=Qt.prototype.moveParts,Qt.prototype.copyParts=Qt.prototype.Kj,Qt.prototype.removeParts=Qt.prototype.Is,Qt.prototype.remove=Qt.prototype.remove,Qt.prototype.add=Qt.prototype.add,Qt.prototype.clearDelayedGeometries=Qt.prototype.bx,Qt.prototype.setProperties=Qt.prototype.nm,Qt.prototype.attach=Qt.prototype.Du,Qt.prototype.set=Qt.prototype.set,Qt.prototype.resetInputOptions=Qt.prototype.Sx,Qt.prototype.setInputOption=Qt.prototype.sA,Qt.prototype.getInputOption=Qt.prototype.Ql,Qt.prototype.resetRenderingHints=Qt.prototype.Tx,Qt.prototype.setRenderingHint=Qt.prototype.Xx,Qt.prototype.getRenderingHint=Qt.prototype.Gf,Qt.prototype.maybeUpdate=Qt.prototype.bd,Qt.prototype.requestUpdate=Qt.prototype.$b,Qt.prototype.delayInitialization=Qt.prototype.Xy,Qt.prototype.isUpdateRequested=Qt.prototype.Pz,Qt.prototype.invalidateDocumentBounds=Qt.prototype.Ya,Qt.prototype.findObjectsNear=Qt.prototype.og,Qt.prototype.findPartsNear=Qt.prototype.mz,Qt.prototype.findObjectsIn=Qt.prototype.Cf,Qt.prototype.findPartsIn=Qt.prototype.ux,Qt.prototype.findObjectsAt=Qt.prototype.ji,Qt.prototype.findPartsAt=Qt.prototype.lz,Qt.prototype.findObjectAt=Qt.prototype.ic,Qt.prototype.findPartAt=Qt.prototype.Ol,Qt.prototype.focusObject=Qt.prototype.zz,Qt.prototype.alignDocument=Qt.prototype.Jy,Qt.prototype.zoomToRect=Qt.prototype.BA,Qt.prototype.zoomToFit=Qt.prototype.zoomToFit,Qt.prototype.diagramScroll=Qt.prototype.kx,Qt.prototype.focus=Qt.prototype.focus;var jf=new zi,cm=null,qo=Rn.document!==void 0,Ch=null,Yd="",Ms=new en(Qt,"None",0),jl=new en(Qt,"Uniform",1),Vd=new en(Qt,"UniformToFill",2),$h=new en(Qt,"CycleAll",10),Zg=new en(Qt,"CycleNotDirected",11),Kg=new en(Qt,"CycleNotDirectedFast",12),Qg=new en(Qt,"CycleNotUndirected",13),Xg=new en(Qt,"CycleDestinationTree",14),Jg=new en(Qt,"CycleSourceTree",15),gd=new en(Qt,"DocumentScroll",1),ef=new en(Qt,"InfiniteScroll",2),pd=new en(Qt,"TreeParentCollapsed",21),xa=new en(Qt,"AllParentsCollapsed",22),zf=new en(Qt,"AnyParentsCollapsed",23),qg=new Fn,Nh="2.3.10",Mh="image",tf=null,dm=!1;function Es(){if(qo){var a=Rn.document.createElement("canvas"),y=a.getContext("2d"),E=Tn("7ca11abfd022028846");y[E]=Tn("398c3597c01238");for(var x=["5da73c80a36455d7038e4972187c3cae51fd22",oi.Dx+"4ae6247590da4bb21c324ba3a84e385776",ir.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",Bt.za],b=1;5>b;b++)y[Tn("7ca11abfd7330390")](Tn(x[b-1]),10,15*b);for(y[E]=Tn("39f046ebb36e4b"),E=1;5>E;E++)y[Tn("7ca11abfd7330390")](Tn(x[E-1]),10,15*E);(x.length!==4||x[0][0]!=="5"||x[3][0]!=="7")&&(ir.prototype.Cd=ir.prototype.Eu),tf=a}}Qt.className="Diagram",Qt.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=Rn.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof Qt?y.H:null},Qt.inherit=function(a,y){function E(){}if(Object.getPrototypeOf(a).prototype)throw Error(`Used go.Diagram.inherit defining already defined class
`+a);E.prototype=y.prototype,a.prototype=new E,a.prototype.constructor=a},Qt.useDOM=function(a){qo=a?Rn.document!==void 0:!1},Qt.isUsingDOM=function(){return qo},Qt.None=Ms,Qt.Uniform=jl,Qt.UniformToFill=Vd,Qt.CycleAll=$h,Qt.CycleNotDirected=Zg,Qt.CycleNotDirectedFast=Kg,Qt.CycleNotUndirected=Qg,Qt.CycleDestinationTree=Xg,Qt.CycleSourceTree=Jg,Qt.DocumentScroll=gd,Qt.InfiniteScroll=ef,Qt.TreeParentCollapsed=pd,Qt.AllParentsCollapsed=xa,Qt.AnyParentsCollapsed=zf;function hm(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function Ph(a,y){if(y.ib.setTransform(y.Mb,0,0,y.Mb,0,0),y.ib.yc(),a.Rc===null)e:{y="f";var E=Rn[Tn("76a715b2f73f148a")][Tn("72ba13b5")]||"";if(a.Rc=!0,qo){var x=Qt[Tn("76a115b6ed251eaf4692")];if(x)for(var b=qg.iterator;b.next()&&(x=b.value,x=Tn(x).split(Tn("39e9")),!(6>x.length));){var z=Tn(x[1]).split(".");if(x[4]!=="7da71ca0")break;var ee=Tn(oi[Tn("6cae19")]).split(".");if(z[0]>ee[0]||z[0]===ee[0]&&z[1]>=ee[1]){var re=Rn[Tn("74a900bae4370f8b51")][Tn("6fbb13a1c2311e8a57")].toLowerCase();if(ee=re[Tn("73a612b6fb191d")](Tn("3aad1ab6e022098b4dc4")),z=Tn(x[2]),-1<ee&&(re=re[Tn("73a612b6fb191d")](z.toLowerCase()+"/"),a.Rc=!(-1<re&&re<ee),!a.Rc))break;for(ee=E[Tn("76ad18b4f73e")],re=E[Tn("73a612b6fb191d")](Tn("35e7"))+2;re<ee;re++)y+=E[re];if(ee=y[Tn("73a612b6fb191d")](z),0>ee&&z!==Tn("7da71ca0ad381e90")&&(ee=y[Tn("73a612b6fb191d")](Tn("76a715b2ef3e149757"))),0>ee&&(ee=y[Tn("73a612b6fb191d")](Tn("76a715b2ef3e149757"))),0>ee&&(ee=y[Tn("73a612b6fb191d")](Tn("2bfa41fdb3784bca12"))),0>ee&&(ee=E[Tn("73a612b6fb191d")](Tn("7baa19a6f76c1988428554"))),a.Rc=!(0<=ee&&ee<y[Tn("73a612b6fb191d")](Tn("35"))||y[Tn("73a612b6fb191d")](Tn("35"))===-1),!a.Rc||E[Tn("73a612b6fb191d")](Tn("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<E[Tn("73a612b6fb191d")](z)),!a.Rc)||(ee=Rn[Tn("76a715b2f73f148a")][Tn("69ad17a1e03e")],re=ee[Tn("73a612b6fb191d")](Tn("7fb002b6ed25128b4da25b2e")),-1<re&&(a.Rc=!(ee[Tn("73a612b6fb191d")](z)>re),!a.Rc)))break;if(z[0]==="#"){ee=Rn.document.createElement("div");for(var oe=x[0].replace(/[A-Za-z]/g,"");4>oe.length;)oe+="9";if(re=oe,oe=oe.substr(oe.length-4),x="",x+=["gsh","gsf"][parseInt(oe.substr(0,1),10)%2],x+=["Header","Background","Display","Feedback"][parseInt(oe.substr(0,1),10)%4],ee[Tn("79a417a0f0181a8946")]=x,Rn.document[Tn("78a712aa")]){Rn.document[Tn("78a712aa")][Tn("7bb806b6ed32388c4a875b")](ee),oe=Rn.getComputedStyle(ee).getPropertyValue(Tn("78a704b7e62456904c9b12701b6532a8"));var ce=Rn.getComputedStyle(ee).getPropertyValue(Tn("75b817b0ea2202"));if(Rn.document[Tn("78a712aa")][Tn("68ad1bbcf533388c4a875b")](ee),oe){if(ee=Rn[Tn("77a902b0eb1b1e804a8a")],ce==="0."+parseInt(re,10)%100||oe.indexOf(parseInt(z[1]+z[2],16))!==-1&&oe.indexOf(parseInt(z[3]+z[4],16))!==-1){a.Rc=!1;break}else if(ee&&ee(Tn("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(x="."+x,z=0;z<document.styleSheets.length;z++){ee=document.styleSheets[z].rules||document.styleSheets[z].cssRules;for(var he in ee)if(x===ee[he].selectorText){a.Rc=!1;break e}}}}else a.Rc=null,a.Rc=!1}}}else{for(he=E[Tn("76ad18b4f73e")],b=E[Tn("73a612b6fb191d")](Tn("35e7"))+2;b<he;b++)y+=E[b];E=y[Tn("73a612b6fb191d")](Tn("7da71ca0ad381e90")),a.Rc=!(0<=E&&E<y[Tn("73a612b6fb191d")](Tn("35")))}}}return 0<a.Rc&&a!==a.wy}hm.className="DiagramHelper";function Zc(a){this.j=a===void 0?new lt:a,this.o=new lt}It.Object.defineProperties(Zc.prototype,{point:{get:function(){return this.j},set:function(a){this.j=a}},shifted:{get:function(){return this.o},set:function(a){this.o=a}}});var nf="DraggingInfo";Zc.className="DraggingInfo";function ie(a,y,E){this.node=a,this.info=y,this.Su=E}ie.className="DraggingNodeInfoPair";function ae(){this.reset()}ae.prototype.reset=function(){this.isGridSnapEnabled=!1,this.isGridSnapRealtime=!0,this.gridSnapCellSize=new ri(NaN,NaN).freeze(),this.gridSnapCellSpot=Ki,this.gridSnapOrigin=new lt(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},ae.className="DraggingOptions";function ve(a,y){if(typeof a=="string"||Rn.Element&&a instanceof Element)var E=Qt.call(this,a)||this;else E=Qt.call(this)||this,y=a;return me(E),y&&E.nm(y),E}Ut(ve,Qt);function me(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=xr,a.layout=new qa}ve.prototype.reset=function(){Qt.prototype.reset.call(this),me(this)},ve.className="Palette";function Ee(a,y){if(typeof a=="string"||Rn.Element&&a instanceof Element)var E=Qt.call(this,a)||this;else E=Qt.call(this)||this,y=a;var x=E;E.animationManager.isEnabled=!1,E.vb=!0,E.V=null,E.mn=!1,E.nn=!1,E.F=!0,E.u=!0,E.ia=0,E.o=!1,E.ql=null,E.Xx("drawShadows",!1),a=new Ui;var b=new pr;return b.stroke="magenta",b.strokeWidth=2,b.fill="transparent",b.name="BOXSHAPE",a.selectable=!0,a.selectionAdorned=!1,a.selectionObjectName="BOXSHAPE",a.locationObjectName="BOXSHAPE",a.resizeObjectName="BOXSHAPE",a.cursor="move",a.add(b),E.j=a,E.allowCopy=!1,E.allowDelete=!1,E.allowSelect=!0,E.autoScrollRegion=new cr(0,0,0,0),E.pa.h(0,0),E.toolManager.gb("Dragging",new ht,E.toolManager.mouseMoveTools),E.click=function(){var z=x.observed;if(z!==null){var ee=z.viewportBounds,re=x.lastInput.documentPoint;z.position=new lt(re.x-ee.width/2,re.y-ee.height/2)}},E.Pf=function(){x.Ya(),qe(x)},E.Xd=function(){x.observed!==null&&(x.Ya(),x.N())},E.Ha=function(){1>x.updateDelay?x.N():x.o||(x.o=!0,setTimeout(function(){return x.redraw()},x.updateDelay))},E.Of=function(){x.observed!==null&&qe(x)},E.autoScale=jl,E.vb=!1,y&&Object.assign(E,y),E}Ut(Ee,Qt),Ee.prototype.computePixelRatio=function(){return 1},Ee.prototype.redraw=function(){if(this.o&&1<=this.updateDelay){this.o=!1;var a=this.ta,y=this.ib;if(a!==null&&y!==null){if(wh(this),this.ql===null){var E=new vu(null);E.width=a.width,E.height=a.height,this.ql=E}try{this.ta=this.ql,this.ib=this.ta.context,this.ib.Vc(!0),this.ib.setTransform(1,0,0,1,0,0),this.ib.clearRect(0,0,this.ta.width,this.ta.height),Be(this)}finally{this.ta=a,this.ib=y}}}Qt.prototype.redraw.call(this)},Ee.prototype.gc=function(){if(this.Ka===null&&pt("No div specified"),this.ta===null&&pt("No canvas specified"),!(this.ta instanceof gc)&&(_v(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){wh(this);var y=this.ta;a=this.ib,a.Vc(!0),a.setTransform(1,0,0,1,0,0),a.clearRect(0,0,y.width,y.height),1>this.updateDelay?Be(this):this.ql!==null&&(a.drawImage(this.ql.Oa,0,0),y=this.Ab,y.reset(),this.scale!==1&&y.scale(this.scale),this.position.x===0&&this.position.y===0||y.translate(-this.position.x,-this.position.y),a.scale(this.Mb,this.Mb),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.yc()),y=this.Wa.s;for(var E=y.length,x=0;x<E;x++)y[x].gc(a,this);this.Fc=this.vd=!1}}};function Be(a){var y=a.observed;if(y!==null){var E=a.drawsTemporaryLayers,x=a.drawsGrid&&E,b=y.grid;x&&b!==null&&b.visible&&!isNaN(b.width)&&!isNaN(b.height)&&(b=hn.alloc().assign(a.viewportBounds).ed(y.viewportBounds),hc(y,b),hn.free(b),ls(y));var z=a.Ab;z.reset(),a.scale!==1&&z.scale(a.scale),a.position.x===0&&a.position.y===0||z.translate(-a.position.x,-a.position.y),b=a.ib,b.scale(a.Mb,a.Mb),b.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),b.yc(),y=y.Wa.s,z=y.length;for(var ee=0;ee<z;ee++){var re=y[ee],oe=a;if(re.visible&&re.opacity!==0){var ce=re.diagram.grid.part;if(!E&&re.isTemporary)x&&ce.layer===re&&(re=Wc(re,b),ce.gc(b,oe),b.globalAlpha=re);else{for(var he=Wc(re,b),ye=oe.scale,Te=hn.alloc(),Ae=re.Pa.s,ke=Ae.length,He=0;He<ke;He++){var dt=Ae[He];(x||dt!==ce)&&re.Oj(b,dt,oe,null,ye,Te,!1)}hn.free(Te),b.globalAlpha=he}}}}}function qe(a){var y=a.box;if(y!==null){var E=a.observed;if(E!==null){a.Fc=!0,E=E.viewportBounds;var x=y.selectionObject,b=ri.alloc();b.h(E.width,E.height),x.desiredSize=b,ri.free(b),a=2/a.scale,x instanceof pr&&(x.strokeWidth=a),y.location=new lt(E.x-a/2,E.y-a/2),y.isSelected=!0}}}Ee.prototype.computeBounds=function(){var a=this.observed;if(a===null)return Ga;var y=a.documentBounds.copy();return y.ed(a.viewportBounds),y},Ee.prototype.invalidateViewport=function(){this.Fc!==!0&&(this.Fc=!0,this.$b())},Ee.prototype.onViewportBoundsChanged=function(a,y,E,x){this.vb||(this.vd=!0,this.N(),this.Ee=!0,this.Ya(),qe(this),this.fc.scale=E,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.Oz=x,this.R("ViewportBoundsChanged",this.fc,a))},It.Object.defineProperties(Ee.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof Ee&&pt("Overview.observed Diagram may not be an Overview itself: "+a),y!==a){if(y!==null&&(this.remove(this.box),y.am("ViewportBoundsChanged",this.Pf),y.am("DocumentBoundsChanged",this.Xd),y.am("InvalidateDraw",this.Ha),y.am("AnimationFinished",this.Of)),this.V=a,a!==null&&(a.Bj("ViewportBoundsChanged",this.Pf),a.Bj("DocumentBoundsChanged",this.Xd),a.Bj("InvalidateDraw",this.Ha),a.Bj("AnimationFinished",this.Of),this.add(this.box)),this.Ya(),a===null){this.ql=null;var E=this.ta,x=this.ib;E&&x&&(x.setTransform(1,0,0,1,0,0),x.clearRect(0,0,E.width,E.height))}else this.Ha(null),qe(this),this.N();this.g("observed",y,a)}}},box:{get:function(){return this.j},set:function(a){var y=this.j;y!==a&&(this.j=a,this.remove(y),this.add(this.j),qe(this),this.g("box",y,a))}},drawsTemporaryLayers:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a,this.redraw())}},drawsGrid:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a,this.redraw())}},updateDelay:{get:function(){return this.ia},set:function(a){0>a&&(a=0),this.ia!==a&&(this.ia=a)}}}),Ee.className="Overview";function ht(){To.call(this),this.j=null}Ut(ht,To),ht.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||!a.allowMove||!a.allowSelect)return!1;var y=a.observed;if(y===null)return!1;var E=a.lastInput;return!E.left||a.currentTool!==this&&(!this.isBeyondDragSize()||E.isTouchEvent&&E.timestamp-a.firstInput.timestamp<this.delay)?!1:(this.findDraggablePart()===null&&(E=y.viewportBounds,this.j=new lt(E.width/2,E.height/2),a=a.firstInput.documentPoint,y.position=new lt(a.x-this.j.x,a.y-this.j.y)),!0)},ht.prototype.doActivate=function(){this.j=null,To.prototype.doActivate.call(this)},ht.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},ht.prototype.moveParts=function(){var a=this.diagram,y=a.observed;if(y!==null){var E=a.box;if(E!==null){if(this.j===null){var x=a.firstInput.documentPoint;E=E.location,this.j=new lt(x.x-E.x,x.y-E.y)}a=a.lastInput.documentPoint,y.position=new lt(a.x-this.j.x,a.y-this.j.y)}}},ht.className="OverviewDraggingTool";function ct(){wr(this),this.H=Nc,this.Ha=this.u=this.o=!0,this.F=this.V=this.nb=this.ia=!1,this.ij=this.j=null,this.Hb=1.05,this.Jt=NaN,this.sw=null,this.Au=NaN,this.yu=Ga,this.hb=!0,this.cg=null,this.ob=200}ct.prototype.toString=function(){return"CommandHandler"},ct.prototype.Xe=function(a){this.H=a},ct.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,E=$i?y.meta:y.control,x=y.shift,b=y.alt,z=y.key;!E||z!=="C"&&z!=="Insert"?E&&z==="X"||x&&z==="Del"?this.canCutSelection()&&this.cutSelection():E&&z==="V"||x&&z==="Insert"?this.canPasteSelection()&&this.pasteSelection():E&&z==="Y"||b&&x&&z==="Backspace"?this.canRedo()&&this.redo():E&&z==="Z"||b&&z==="Backspace"?this.canUndo()&&this.undo():z==="Del"||z==="Backspace"?this.canDeleteSelection()&&this.deleteSelection():E&&z==="A"?this.canSelectAll()&&this.selectAll():z==="Esc"?this.canStopCommand()&&this.stopCommand():z==="Up"?a.allowVerticalScroll&&(E?a.scroll("pixel","up"):a.scroll("line","up")):z==="Down"?a.allowVerticalScroll&&(E?a.scroll("pixel","down"):a.scroll("line","down")):z==="Left"?a.allowHorizontalScroll&&(E?a.scroll("pixel","left"):a.scroll("line","left")):z==="Right"?a.allowHorizontalScroll&&(E?a.scroll("pixel","right"):a.scroll("line","right")):z==="PageUp"?x&&a.allowHorizontalScroll?a.scroll("page","left"):a.allowVerticalScroll&&a.scroll("page","up"):z==="PageDown"?x&&a.allowHorizontalScroll?a.scroll("page","right"):a.allowVerticalScroll&&a.scroll("page","down"):z==="Home"?E&&a.allowVerticalScroll?a.scroll("document","up"):!E&&a.allowHorizontalScroll&&a.scroll("document","left"):z==="End"?E&&a.allowVerticalScroll?a.scroll("document","down"):!E&&a.allowHorizontalScroll&&a.scroll("document","right"):z===" "?this.canScrollToPart()&&this.scrollToPart():z==="Subtract"?this.canDecreaseZoom()&&this.decreaseZoom():z==="Add"?this.canIncreaseZoom()&&this.increaseZoom():E&&z==="0"?this.canResetZoom()&&this.resetZoom():x&&z==="Z"?this.canZoomToFit()&&this.zoomToFit():E&&!x&&z==="G"?this.canGroupSelection()&&this.groupSelection():E&&x&&z==="G"?this.canUngroupSelection()&&this.ungroupSelection():z==="F2"||y.event&&y.event.key==="F2"?this.canEditTextBlock()&&this.editTextBlock():z==="ContextMenu"||y.event&&y.event.key==="ContextMenu"?this.canShowContextMenu()&&this.showContextMenu():y.bubbles=!0:this.canCopySelection()&&this.copySelection()},ct.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},ct.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof Co&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},ct.prototype.canStopCommand=function(){return!0},ct.prototype.selectAll=function(){var a=this.diagram;a.N();try{a.currentCursor="wait",a.R("ChangingSelection",a.selection);for(var y=a.parts;y.next();)y.value.isSelected=!0;for(var E=a.nodes;E.next();)E.value.isSelected=!0;for(var x=a.links;x.next();)x.value.isSelected=!0}finally{a.R("ChangedSelection",a.selection),a.currentCursor=""}},ct.prototype.canSelectAll=function(){return this.diagram.allowSelect},ct.prototype.deleteSelection=function(){var a=this.diagram;try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),a.Ea("Delete"),a.R("SelectionDeleting",a.selection);for(var y=new In,E=a.selection.iterator;E.next();)Qd(y,E.value,!0,this.deletesTree?1/0:0,this.deletesConnectedLinks?null:!1,function(x){return x.canDelete()});a.Is(y,!0),a.R("SelectionDeleted",y)}finally{a.eb("Delete"),a.R("ChangedSelection",a.selection),a.currentCursor=""}},ct.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},ct.prototype.copySelection=function(){var a=this.diagram,y=new In;for(a=a.selection.iterator;a.next();)Qd(y,a.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,function(E){return E.canCopy()});this.copyToClipboard(y)},ct.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},ct.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},ct.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},ct.prototype.copyToClipboard=function(a){var y=this.diagram,E=null;if(a===null)Ch=null,Yd="";else{E=y.model;var x=!1,b=!1,z=null;try{E.Tl()&&(x=E.Jj,E.Jj=this.copiesParentKey),E.Wj()&&(b=E.Ij,E.Ij=this.copiesGroupKey),z=y.Kj(a,null,!0)}finally{E.Tl()&&(E.Jj=x),E.Wj()&&(E.Ij=b),E=new Fn,E.addAll(z),Ch=E,Yd=y.model.dataFormat}}y.R("ClipboardChanged",E)},ct.prototype.pasteFromClipboard=function(){var a=new In,y=Ch;if(y===null)return a;var E=this.diagram;if(Yd!==E.model.dataFormat)return a;var x=E.model,b=!1,z=!1,ee=null;try{x.Tl()&&(b=x.Jj,x.Jj=this.copiesParentKey),x.Wj()&&(z=x.Ij,x.Ij=this.copiesGroupKey),ee=E.Kj(y,E,!1)}finally{for(x.Tl()&&(x.Jj=b),x.Wj()&&(x.Ij=z),y=ee.iterator;y.next();)E=y.value,x=y.key,E.location.w()||(x.location.w()?E.location=x.location:!E.position.w()&&x.position.w()&&(E.position=x.position)),a.add(E)}return a},ct.prototype.pasteSelection=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.currentCursor="wait",y.R("ChangingSelection",y.selection),y.Ea("Paste");var E=this.pasteFromClipboard();0<E.count&&y.clearSelection(!0);for(var x=E.iterator;x.next();)x.value.isSelected=!0;if(a!==null){var b=y.computePartsBounds(y.selection);if(b.w()){var z=this.computeEffectiveCollection(y.selection,y.Wm);Ud(y,z,new lt(a.x-b.centerX,a.y-b.centerY),y.Wm,!1)}}y.R("ClipboardPasted",E)}finally{y.eb("Paste"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},ct.prototype.canPasteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowClipboard||Ch===null||Ch.count===0||Yd!==a.model.dataFormat)},ct.prototype.undo=function(){this.diagram.undoManager.undo()},ct.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},ct.prototype.redo=function(){this.diagram.undoManager.redo()},ct.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},ct.prototype.decreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;y.autoScale===Ms&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},ct.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==Ms?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},ct.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===Ms&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},ct.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==Ms?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},ct.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},ct.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},ct.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var E=a.position,x=a.scale;Da(y,"Zoom To Fit"),this.isZoomToFitRestoreEnabled&&x===this.Au&&!isNaN(this.Jt)&&a.documentBounds.D(this.yu)?(a.scale=this.Jt,a.position=this.sw,this.Au=NaN,this.yu=Ga):(this.Jt=x,this.sw=E.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),wl(y)},ct.prototype.canZoomToFit=function(){return this.diagram.allowZoom},ct.prototype.scrollToPart=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.Va(),a===null){try{this.cg!==null&&(this.cg.next()?a=this.cg.value:this.cg=null)}catch(oe){this.cg=null}a===null&&(0<y.highlighteds.count?this.cg=y.highlighteds.iterator:0<y.selection.count&&(this.cg=y.selection.iterator),this.cg!==null&&this.cg.next()&&(a=this.cg.value))}if(a!==null){var E=y.animationManager;Da(E,"Scroll To Part");var x=this.scrollToPartPause;if(0<x){var b=Tt(this,a,[a]);if(b.length===1)y.Ea(),y.es(a.actualBounds),y.eb("Scroll To Part");else{var z=function(){y.Ea();for(var oe=b.pop();0<b.length&&oe instanceof pi&&oe.isTreeExpanded&&(!(oe instanceof or)||oe.isSubGraphExpanded);)oe=b.pop();0<b.length?(oe instanceof Ui&&y.tv(oe.actualBounds),oe instanceof pi&&!oe.isTreeExpanded&&(oe.isTreeExpanded=!0),oe instanceof or&&!oe.isSubGraphExpanded&&(oe.isSubGraphExpanded=!0)):(oe instanceof Ui&&y.es(oe.actualBounds),y.am("LayoutCompleted",ee)),y.eb("Scroll To Part")},ee=function(){Gt(z,(E.isEnabled?E.duration:0)+x)};y.Bj("LayoutCompleted",ee),z()}}else{var re=y.position.copy();y.es(a.actualBounds),re.Xa(y.position)&&E.Cc()}}};function Tt(a,y,E){if(y.isVisible())return E;if(y instanceof Ur)Tt(a,y.adornedPart,E);else if(y instanceof Xn){var x=y.fromNode;x!==null&&Tt(a,x,E),y=y.toNode,y!==null&&Tt(a,y,E)}else y instanceof pi&&(x=y.labeledLink,x!==null&&Tt(a,x,E),x=y.pg(),x!==null&&(x.isTreeExpanded||x.wasTreeExpanded||E.push(x),Tt(a,x,E))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||E.push(y),Tt(a,y,E));return E}ct.prototype.canScrollToPart=function(a){return a===void 0&&(a=null),a!==null&&!(a instanceof Ui)?!1:(a=this.diagram,a.selection.count===0&&a.highlighteds.count===0?!1:a.allowHorizontalScroll&&a.allowVerticalScroll)},ct.prototype.collapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse Tree"),Da(y.animationManager,"Collapse Tree");var E=new Fn;if(a!==null&&a.isTreeExpanded)a.collapseTree(),E.add(a);else if(a===null)for(var x=y.selection.iterator;x.next();){var b=x.value;b instanceof pi&&b.isTreeExpanded&&(b.collapseTree(),E.add(b))}y.R("TreeCollapsed",E)}finally{y.eb("Collapse Tree")}},ct.prototype.canCollapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof pi&&a.isTreeExpanded))return!1;if(0<a.Qo().count)return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof pi&&y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},ct.prototype.expandTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand Tree"),Da(y.animationManager,"Expand Tree");var E=new Fn;if(a!==null&&!a.isTreeExpanded)a.expandTree(),E.add(a);else if(a===null)for(var x=y.selection.iterator;x.next();){var b=x.value;b instanceof pi&&!b.isTreeExpanded&&(b.expandTree(),E.add(b))}y.R("TreeExpanded",E)}finally{y.eb("Expand Tree")}},ct.prototype.canExpandTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof pi)||a.isTreeExpanded)return!1;if(0<a.Qo().count)return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof pi&&!y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},ct.prototype.groupSelection=function(){var a=this.diagram,y=a.model;if(y.Xj()){var E=this.archetypeGroupData;if(E!==null){var x=null;try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),a.Ea("Group");for(var b=new Fn,z=a.selection.iterator;z.next();){var ee=z.value;ee.Zc()&&ee.canGroup()&&b.add(ee)}for(var re=new Fn,oe=b.iterator;oe.next();){var ce=oe.value;z=!1;for(var he=b.iterator;he.next();)if(ce.Td(he.value)){z=!0;break}z||re.add(ce)}if(0<re.count){var ye=re.first().containingGroup;if(ye!==null)for(;ye!==null;){b=!1;for(var Te=re.iterator;Te.next();)if(!Te.value.Td(ye)){b=!0;break}if(b)ye=ye.containingGroup;else break}if(E instanceof or)yu(E),x=E.copy(),x!==null&&a.add(x);else if(y.Yu(E)){var Ae=y.copyNodeData(E);zt(Ae)&&(y.xf(Ae),x=a.ii(Ae))}if(x!==null){ye!==null&&this.isValidMember(ye,x)&&(x.containingGroup=ye);for(var ke=re.iterator;ke.next();){var He=ke.value;this.isValidMember(x,He)&&(He.containingGroup=x)}a.clearSelection(!0),x.isSelected=!0}}a.R("SelectionGrouped",x)}finally{a.eb("Group"),a.R("ChangedSelection",a.selection),a.currentCursor=""}}}},ct.prototype.canGroupSelection=function(){var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowGroup||!a.model.Xj()||this.archetypeGroupData===null)return!1;for(a=a.selection.iterator;a.next();){var y=a.value;if(y.Zc()&&y.canGroup())return!0}return!1};function ln(a){var y=Ni();for(a=a.iterator;a.next();){var E=a.value;E instanceof Xn||y.push(E)}a=new In,E=y.length;for(var x=0;x<E;x++){for(var b=y[x],z=!0,ee=0;ee<E;ee++)if(b.Td(y[ee])){z=!1;break}z&&a.add(b)}return hi(y),a}ct.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof Xn)return!1;if(a!==null){if(a===y||a.Td(y))return!1;var E=a.memberValidation;if(E!==null&&!E(a,y)||a.data===null&&y.data!==null||a.data!==null&&y.data===null)return!1}return E=this.memberValidation,E!==null?E(a,y):!0},ct.prototype.ungroupSelection=function(a){a===void 0&&(a=null);var y=this.diagram,E=y.model;if(E.Xj())try{y.currentCursor="wait",y.R("ChangingSelection",y.selection),y.Ea("Ungroup");var x=new Fn;if(a!==null)x.add(a);else for(var b=y.selection.iterator;b.next();){var z=b.value;z instanceof or&&z.canUngroup()&&x.add(z)}var ee=new Fn;if(0<x.count){y.clearSelection(!0);for(var re=x.iterator;re.next();){var oe=re.value;oe.expandSubGraph();var ce=oe.containingGroup,he=ce!==null&&ce.data!==null?E.wa(ce.data):void 0;ee.addAll(oe.memberParts);for(var ye=ee.iterator;ye.next();){var Te=ye.value;if(Te.isSelected=!0,!(Te instanceof Xn)){var Ae=Te.data;Ae!==null?E.mp(Ae,he):Te.containingGroup=ce}}y.remove(oe)}}y.R("SelectionUngrouped",x,ee)}finally{y.eb("Ungroup"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},ct.prototype.canUngroupSelection=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly||y.isModelReadOnly||!y.allowDelete||!y.allowUngroup||!y.model.Xj())return!1;if(a!==null){if(!(a instanceof or))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof or&&y.canUngroup())return!0;return!1},ct.prototype.addTopLevelParts=function(a,y){var E=!0;for(a=ln(a).iterator;a.next();){var x=a.value;x.containingGroup!==null&&(!y||this.isValidMember(null,x)?x.containingGroup=null:E=!1)}return E},ct.prototype.collapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse SubGraph"),Da(y.animationManager,"Collapse SubGraph");var E=new Fn;if(a!==null&&a.isSubGraphExpanded)a.collapseSubGraph(),E.add(a);else if(a===null)for(var x=y.selection.iterator;x.next();){var b=x.value;b instanceof or&&b.isSubGraphExpanded&&(b.collapseSubGraph(),E.add(b))}y.R("SubGraphCollapsed",E)}finally{y.eb("Collapse SubGraph")}},ct.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof or&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof or&&y.isSubGraphExpanded)return!0;return!1},ct.prototype.expandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand SubGraph"),Da(y.animationManager,"Expand SubGraph");var E=new Fn;if(a!==null&&!a.isSubGraphExpanded)a.expandSubGraph(),E.add(a);else if(a===null)for(var x=y.selection.iterator;x.next();){var b=x.value;b instanceof or&&!b.isSubGraphExpanded&&(b.expandSubGraph(),E.add(b))}y.R("SubGraphExpanded",E)}finally{y.eb("Expand SubGraph")}},ct.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof or&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof or&&!y.isSubGraphExpanded)return!0;return!1},ct.prototype.editTextBlock=function(a){a===void 0&&(a=null);var y=this.diagram,E=y.toolManager.findTool("TextEditing");if(E!==null){if(a===null){a=null;for(var x=y.selection.iterator;x.next();){var b=x.value;if(b.canEdit()){a=b;break}}if(a===null)return;a=a.Nl(function(z){return z instanceof So&&z.editable})}a!==null&&(y.currentTool=null,E.textBlock=a,y.currentTool=E)}},ct.prototype.canEditTextBlock=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly||y.isModelReadOnly||!y.allowTextEdit||y.toolManager.findTool("TextEditing")===null)return!1;if(a!==null){if(!(a instanceof So))return!1;if(a=a.part,a!==null&&a.canEdit())return!0}else for(y=y.selection.iterator;y.next();)if(a=y.value,a.canEdit()&&(a=a.Nl(function(E){return E instanceof So&&E.editable}),a!==null))return!0;return!1},ct.prototype.showContextMenu=function(a){var y=this.diagram,E=y.toolManager.findTool("ContextMenu");if(E!==null&&(a===void 0&&(a=0<y.selection.count?y.selection.first():y),a=E.findObjectWithContextMenu(a),a!==null)){var x=y.lastInput,b=null;a instanceof Dt?b=a.ga(ur):y.viewportBounds.ca(x.documentPoint)||(b=y.viewportBounds,b=new lt(b.x+b.width/2,b.y+b.height/2)),b!==null&&(x.viewPoint=y.op(b),x.documentPoint=b,x.left=!1,x.right=!0,x.up=!0),y.currentTool=E,sa(E,!1,a)}},ct.prototype.canShowContextMenu=function(a){var y=this.diagram,E=y.toolManager.findTool("ContextMenu");return E===null?!1:(a===void 0&&(a=0<y.selection.count?y.selection.first():y),E.findObjectWithContextMenu(a)!==null)},ct.prototype.computeEffectiveCollection=function(a,y){var E=this.diagram,x=E.toolManager.findTool("Dragging"),b=E.currentTool===x;if(y===void 0&&(y=b?x.dragOptions:E.Wm),x=new zi,a===null)return x;for(var z=a.iterator;z.next();)Pc(E,x,z.value,b,y);if(E.draggedLink!==null&&y.dragsLink)return x;for(z=a.iterator;z.next();)a=z.value,a instanceof Xn&&(y=a.fromNode,y===null||x.contains(y)?(y=a.toNode,y===null||x.contains(y)||x.remove(a)):x.remove(a));return x},It.Object.defineProperties(ct.prototype,{diagram:{get:function(){return this.H}},copiesClipboardData:{get:function(){return this.o},set:function(a){this.o=a}},copiesConnectedLinks:{get:function(){return this.u},set:function(a){this.u=a}},deletesConnectedLinks:{get:function(){return this.Ha},set:function(a){this.Ha=a}},copiesTree:{get:function(){return this.ia},set:function(a){this.ia=a}},deletesTree:{get:function(){return this.nb},set:function(a){this.nb=a}},copiesParentKey:{get:function(){return this.V},set:function(a){this.V=a}},copiesGroupKey:{get:function(){return this.F},set:function(a){this.F=a}},archetypeGroupData:{get:function(){return this.j},set:function(a){this.j=a}},memberValidation:{get:function(){return this.ij},set:function(a){this.ij=a}},defaultScale:{get:function(){return this.diagram.defaultScale},set:function(a){this.diagram.defaultScale=a}},zoomFactor:{get:function(){return this.Hb},set:function(a){1<a||pt("zoomFactor must be larger than 1.0, not: "+a),this.Hb=a}},isZoomToFitRestoreEnabled:{get:function(){return this.hb},set:function(a){this.hb=a}},scrollToPartPause:{get:function(){return this.ob},set:function(a){this.ob=a}}}),ct.className="CommandHandler",$p=function(){return new ct};function Dt(){wr(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new lt(NaN,NaN).freeze(),this.jd=Po,this.Ab=new ir,this.wh=new ir,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=is,this.uc=new hn(NaN,NaN,NaN,NaN).freeze(),this.Ib=new hn(NaN,NaN,NaN,NaN).freeze(),this.dc=new hn(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=Ca,this.Ag=this.io=0,this.V=this.tb=this.Dh=this.A=this.Ua=null,this.Uc=!1,this.jo=this.Ng=null}var Hn,Dn,Ii,_i,Wi,sr,Mr,Er,Fr,oo;Dt.prototype.cloneProtected=function(a){a.l=this.l|6144,a.pb=this.pb,a.bn=this.bn,a.Ma=this.Ma,a.pa.assign(this.pa),a.jd=this.jd.J(),this.Lb!==null?a.Lb=this.Lb.copy():a.Lb=null,a.Ca=this.Ca,a.Kb=this.Kb,a.Kg=this.Kg.J(),a.uc.assign(this.uc),a.Ib.assign(this.Ib),a.dc.assign(this.dc),a.Yn=this.Yn,this.ba!==null&&(a.ba=this.ba.copy()),a.Jb=this.Jb.J(),a.sk=this.sk.J(),a.io=this.io,a.Ag=this.Ag,this.Ua!==null&&(a.Ua=this.Ua.copy()),this.A!==null&&(a.A=this.A.nc?this.A:this.A.copy()),this.Dh!==null&&(a.Dh=vi(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},Dt.prototype.Vw=function(a){var y=this.Dh;if(xn(y)){for(var E=0;E<y.length;E++)if(y[E]===a)return}else this.Dh=y=[];y.push(a)},Dt.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},Dt.prototype.clone=function(){var a=new this.constructor;if(this.cloneProtected(a),this.Dh!==null)for(var y=0;y<this.Dh.length;y++){var E=this.Dh[y];a[E]=this[E]}return a},Dt.prototype.copy=function(){return this.clone()},Ce=Dt.prototype,Ce.qb=function(a){a.classType===Xn?a.name.indexOf("Orient")===0?this.segmentOrientation=a:pt("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===Dt&&(this.stretch=a)},Ce.toString=function(){return Pn(this.constructor)+"#"+Tr(this)},Ce.th=function(){this.A!==null&&(this.A.nc=!0)};function yr(a){a.A===null?a.A=new of:a.A.nc&&(a.A=a.A.copy())}Ce.Xc=function(){if(this.ba===null){var a=new $g;a.Xi=Pi,a.yj=Pi,a.Vi=10,a.wj=10,a.Wi=0,a.xj=0,this.ba=a}},Ce.cb=function(a,y,E,x,b,z,ee){var re=this.part;if(re!==null&&(re.gk(a,y,E,x,b,z,ee),E===this&&a===wo&&ns(this)&&No(this,re,y),z=this.diagram,this.animationTriggers===null||z===null||!z.pi||z.undoManager.isUndoingRedoing||z.animationManager.Dm||(a=this.animationTriggers.get(y),a!==null&&z.animationManager.isEnabled&&!z.animationManager.isTicking&&(this.jo===null&&(this.jo=new zi),ee=z.undoManager.transactionLevel===0,a.startCondition===Tl?ee=!0:a.startCondition===Sh&&(ee=!1),ee?(z=new Si,_l(a,z),ee=this.jo.get(a),ee!==null&&ee.stop(),this.jo.add(a,z),z.vu=this,z.Nw=a,z.add(this,y,x,b),z.start()):(Da(z.animationManager,"Trigger"),z.animationManager.defaultAnimation.add(this,y,x,b)))),this instanceof Vn&&E===re&&(re.l&16777216)!==0&&re.data!==null))for(E=this.O.s,x=E.length,b=0;b<x;b++)re=E[b],re instanceof Vn&&Dh(re,function(oe){oe.data!==null&&oe.l&16777216&&oe.La(y)})};function No(a,y,E){var x=a.ih();if(x!==null)for(var b=a.localBindings.iterator;b.next();){var z=b.value,ee=null;if(z.sourceName!==null){if(ee=kS(z,x,a),ee===null)continue;z.sp(a,ee,E,null)}else if(z.isToModel){var re=y.diagram;re===null||re.skipsModelSourceBindings||z.sp(a,re.model.modelData,E,x)}else{if(re=x.data,re===null)continue;var oe=y.diagram;oe===null||oe.skipsModelSourceBindings||z.sp(a,re,E,x)}ee===a&&(re=x.ks(z.Ai),re!==null&&z.Mv(re,ee,E))}}Ce.ks=function(a){return this.bindingId===a?this:null},Ce.g=function(a,y,E){this.cb(wo,a,this,y,E)},Ce.Ge=function(a,y,E,x){var b=this.uc;if(b.h(a,y,E,x),this.Ca!==1||this.Kb!==0){this.Lb===null&&(this.Lb=new ir);var z=this.Lb;z.reset(),this.no(z,a,y,E,x),z.pp(b)}};function Ra(a,y,E,x){return a.pickable===!1?!1:(x.multiply(a.transform),E?a.Yc(y,x):a.fh(y,x))}Ce.tx=function(a,y,E){if(this.pickable===!1)return!1;var x=this.naturalBounds;return y=a.Bf(y),E?kr(a.x,a.y,0,0,0,x.height)<=y||kr(a.x,a.y,0,x.height,x.width,x.height)<=y||kr(a.x,a.y,x.width,x.height,x.width,0)<=y||kr(a.x,a.y,x.width,0,0,0)<=y:a.zd(0,0)<=y&&a.zd(0,x.height)<=y&&a.zd(x.width,0)<=y&&a.zd(x.width,x.height)<=y},Ce.se=function(){return!0},Ce.ca=function(a){var y=lt.alloc();y.assign(a),this.transform.Ga(y);var E=this.actualBounds;if(!E.w())return lt.free(y),!1;var x=this.diagram;if(x!==null&&x.wq){var b=x.Ql("extraTouchThreshold"),z=x.Ql("extraTouchArea"),ee=z/2,re=this.naturalBounds;x=this.Df()*x.scale;var oe=1/x;if(re.width*x<b&&re.height*x<b)return a=ca(E.x-ee*oe,E.y-ee*oe,E.width+z*oe,E.height+z*oe,y.x,y.y),lt.free(y),a}return b=!1,(this instanceof Ur||this instanceof pr?ca(E.x-5,E.y-5,E.width+10,E.height+10,y.x,y.y):E.ca(y))&&(this.tb&&!this.tb.ca(y)?b=!1:this.areaBackground!==null&&E.ca(y)||this.Ma!==null&&this.dc.ca(a)?b=!0:b=this.gh(a)),lt.free(y),b},Ce.gh=function(a){var y=this.naturalBounds;return ca(0,0,y.width,y.height,a.x,a.y)},Ce.Re=function(a){if(this.angle===0)return this.actualBounds.Re(a);var y=this.naturalBounds;y=hn.allocAt(0,0,y.width,y.height);var E=this.transform,x=!1,b=lt.allocAt(a.x,a.y);return y.ca(E.Cd(b))&&(b.h(a.x,a.bottom),y.ca(E.Cd(b))&&(b.h(a.right,a.bottom),y.ca(E.Cd(b))&&(b.h(a.right,a.y),y.ca(E.Cd(b))&&(x=!0)))),lt.free(b),hn.free(y),x},Ce.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var E=this.naturalBounds,x=!1,b=lt.allocAt(0,0);return a.ca(y.Ga(b))&&(b.h(0,E.height),a.ca(y.Ga(b))&&(b.h(E.width,E.height),a.ca(y.Ga(b))&&(b.h(E.width,0),a.ca(y.Ga(b))&&(x=!0)))),lt.free(b),x},Ce.Yc=function(a,y){if(y===void 0&&(y=this.transform,this.angle===0))return a.Yc(this.actualBounds);var E=this.naturalBounds,x=lt.allocAt(0,0),b=lt.allocAt(0,E.height),z=lt.allocAt(E.width,E.height),ee=lt.allocAt(E.width,0),re=!1;if(a.ca(y.Ga(x))||a.ca(y.Ga(b))||a.ca(y.Ga(z))||a.ca(y.Ga(ee)))re=!0;else{E=hn.allocAt(0,0,E.width,E.height);var oe=lt.allocAt(a.x,a.y);E.ca(y.Cd(oe))?re=!0:(oe.h(a.x,a.bottom),E.ca(y.Cd(oe))?re=!0:(oe.h(a.right,a.bottom),E.ca(y.Cd(oe))?re=!0:(oe.h(a.right,a.y),E.ca(y.Cd(oe))&&(re=!0)))),lt.free(oe),hn.free(E),!re&&(Bt.us(a,x,b)||Bt.us(a,b,z)||Bt.us(a,z,ee)||Bt.us(a,ee,x))&&(re=!0)}return lt.free(x),lt.free(b),lt.free(z),lt.free(ee),re},Ce.ga=function(a,y){if(y===void 0&&(y=new lt),a instanceof Yt){var E=this.naturalBounds;y.h(a.x*E.width+a.offsetX,a.y*E.height+a.offsetY)}else y.set(a);return this.oe.Ga(y),y},Ce.mi=function(a){a===void 0&&(a=new hn);var y=this.naturalBounds,E=this.oe,x=lt.allocAt(0,0).transform(E);return a.h(x.x,x.y,0,0),x.h(y.width,0).transform(E),zo(a,x.x,x.y,0,0),x.h(y.width,y.height).transform(E),zo(a,x.x,x.y,0,0),x.h(0,y.height).transform(E),zo(a,x.x,x.y,0,0),lt.free(x),a},Ce.li=function(){var a=this.oe;return a.m11===1&&a.m12===0?a=0:(a=180*Math.atan2(a.m12,a.m11)/Math.PI,0>a&&(a+=360)),a},Ce.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},Ce.qs=function(a,y){return y===void 0&&(y=new lt),y.assign(a),this.oe.Cd(y),y},Ce.rs=function(a,y,E){return this.Sj(a.x,a.y,y.x,y.y,E)},Ce.Sj=function(a,y,E,x,b){var z=this.transform,ee=1/(z.m11*z.m22-z.m12*z.m21),re=z.m22*ee,oe=-z.m12*ee,ce=-z.m21*ee,he=z.m11*ee,ye=ee*(z.m21*z.dy-z.m22*z.dx),Te=ee*(z.m12*z.dx-z.m11*z.dy);return this.areaBackground!==null?(z=this.actualBounds,Bt.Ff(z.left,z.top,z.right,z.bottom,a,y,E,x,b)):(ee=a*re+y*ce+ye,a=a*oe+y*he+Te,y=E*re+x*ce+ye,E=E*oe+x*he+Te,b.h(0,0),x=this.naturalBounds,E=Bt.Ff(0,0,x.width,x.height,ee,a,y,E,b),b.transform(z),E)},Dt.prototype.measure=function(a,y,E,x){if(Ul(this)!==!1){var b=this.Kg,z=b.right+b.left;b=b.top+b.bottom,a=Math.max(a-z,0),y=Math.max(y-b,0),E=Math.max((E||0)-z,0),x=Math.max((x||0)-b,0),z=this.angle,b=this.desiredSize;var ee=this.kq();z===90||z===270?(a=isFinite(b.height)?b.height+ee:a,y=isFinite(b.width)?b.width+ee:y):(a=isFinite(b.width)?b.width+ee:a,y=isFinite(b.height)?b.height+ee:y),b=E||0,ee=x||0;var re=this instanceof Vn;switch(nl(this,!0)){case Dn:ee=b=0,re&&(y=a=1/0);break;case Hn:isFinite(a)&&a>E&&(b=a),isFinite(y)&&y>x&&(ee=y);break;case _i:isFinite(a)&&a>E&&(b=a),ee=0,re&&(y=1/0);break;case Wi:isFinite(y)&&y>x&&(ee=y),b=0,re&&(a=1/0)}re=this.maxSize;var oe=this.minSize;b>re.width&&oe.width<re.width&&(b=re.width),ee>re.height&&oe.height<re.height&&(ee=re.height),E=Math.max(b,oe.width),x=Math.max(ee,oe.height),re.width<E&&(E=Math.min(oe.width,E)),re.height<x&&(x=Math.min(oe.height,x)),a=Math.min(re.width,a),y=Math.min(re.height,y),a=Math.max(E,a),y=Math.max(x,y),(z===90||z===270)&&(z=a,a=y,y=z,z=E,E=x,x=z),this.uc.ka(),this.Wl(a,y,E,x),this.uc.freeze(),this.uc.w()||pt("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),ba(this,!1)}},Dt.prototype.Wl=function(){},Dt.prototype.Dd=function(){return!1},Dt.prototype.arrange=function(a,y,E,x,b){this.Uk();var z=hn.alloc();z.assign(this.Ib),this.Ib.ka(),zs(this)===!1?this.Ib.h(a,y,E,x):this.eh(a,y,E,x),this.Ib.freeze(),b===void 0?this.tb=null:this.tb=b,E=!1,b!==void 0?E=!0:(b=this.panel,b!==null&&yd(b)&&(b=b.panel),b!==null&&(b=b.dc,x=this.measuredBounds,this.areaBackground!==null&&(x=this.Ib),E=y+x.height,x=a+x.width,E=!(0<=a+.05&&x<=b.width+.05&&0<=y+.05&&E<=b.height+.05),this instanceof So&&(a=this.naturalBounds,this.Lq>a.height||this.Cb>a.width))&&(E=!0)),this.l=E?this.l|256:this.l&-257,this.Ib.w()||pt("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),Lc(this,!1),hn.free(z)},Ce=Dt.prototype,Ce.eh=function(){};function Ps(a,y,E,x,b){if(a.Ib.h(y,E,x,b),!a.desiredSize.w()){var z=a.uc;E=a.Kg,y=E.right+E.left;var ee=E.top+E.bottom;switch(E=z.width+y,z=z.height+ee,x+=y,b+=ee,y=nl(a,!0),E===x&&z===b&&(y=Dn),y){case Dn:(E>x||z>b)&&(ba(a,!0),a.measure(E>x?x:E,z>b?b:z,0,0));break;case Hn:ba(a,!0),a.measure(x,b,0,0);break;case _i:ba(a,!0),a.measure(x,z,0,0);break;case Wi:ba(a,!0),a.measure(E,b,0,0)}}}Ce.Xl=function(a,y){var E=this.part;E!==null&&E.diagram!==null&&(E.selectionObject!==this&&E.resizeObject!==this&&E.rotateObject!==this||Uv(E,!0),this.N(),yl(a,y)||(E.oh(),this.Pn(E)))},Ce.Pn=function(a){this.portId!==null&&(Uv(a,!0),a instanceof pi&&K1(a,this))},Ce.gc=function(a,y){if(!$l(this,a,y)&&this.visible){var E=this.opacity;if(E!==0){var x=1;E!==1&&(x=a.globalAlpha,a.globalAlpha=x*E);var b="";this.filter!==""&&(b=a.filter,a.filter=this.filter);var z=this instanceof Vn&&yd(this),ee=this.Ib;if(z){var re=this.Ib,oe=this.dc,ce=this.areaBackground,he=this.Ma;ce===null&&he===null||a.yc(),ce!==null&&(ea(this,a,ce,!0,!0,oe,re),ce instanceof qr&&ce.type===nu?(a.beginPath(),a.rect(re.x,re.y,re.width,re.height),a.ng(ce)):a.fillRect(re.x,re.y,re.width,re.height)),he!==null&&(ea(this,a,he,!0,!1,oe,re),he instanceof qr&&he.type===nu?(a.beginPath(),a.rect(re.x,re.y,re.width,re.height),a.ng(he)):a.fillRect(re.x,re.y,re.width,re.height)),this.hh(a,y)}if(!z&&(z||ee.width!==0&&ee.height!==0&&!isNaN(ee.x)&&!isNaN(ee.y))){z=this.transform,re=this.panel,this.l&4096&&Ja(this),ce=this.part,oe=!1;var ye=0;ce&&y.Gf("drawShadows")&&(oe=ce.isShadowed)&&(he=ce.shadowOffset,ye=Math.max(he.y,he.x)*y.scale*y.Mb),he=this.Dd();var Te;if(!(Te=y.$i||!he)){var Ae=this.naturalBounds;Te=this.wh;var ke=Te.m11,He=Te.m21,dt=Te.dx,tt=Te.m12,gt=Te.m22,yt=Te.dy,bt,kt=bt=0;Te=bt*ke+kt*He+dt;var Kt=bt*tt+kt*gt+yt;bt=Ae.width+ye,kt=0;var di=bt*ke+kt*He+dt;bt=bt*tt+kt*gt+yt,kt=Math.min(Te,di);var Ai=Math.min(Kt,bt),xi=Math.max(Te+0,di)-kt,Qn=Math.max(Kt+0,bt)-Ai;Te=kt,Kt=Ai,bt=Ae.width+ye,kt=Ae.height+ye,di=bt*ke+kt*He+dt,bt=bt*tt+kt*gt+yt,kt=Math.min(Te,di),Ai=Math.min(Kt,bt),xi=Math.max(Te+xi,di)-kt,Qn=Math.max(Kt+Qn,bt)-Ai,Te=kt,Kt=Ai,bt=0,kt=Ae.height+ye,di=bt*ke+kt*He+dt,bt=bt*tt+kt*gt+yt,kt=Math.min(Te,di),Ai=Math.min(Kt,bt),xi=Math.max(Te+xi,di)-kt,Qn=Math.max(Kt+Qn,bt)-Ai,Te=kt,Kt=Ai,ye=y.viewportBounds,Ae=ye.x,ke=ye.y,Te=!(Te>ye.width+Ae||Ae>xi+Te||Kt>ye.height+ke||ke>Qn+Kt)}if(Te){if(Te=(this.l&256)!==0,a.clipInsteadOfFill&&(Te=!1),this instanceof So&&(a.font=this.font),Te){if(Kt=re.se()?re.naturalBounds:re.actualBounds,xi=Math.max(ee.x,Kt.x),Qn=Math.max(ee.y,Kt.y),ye=Math.min(ee.right,Kt.right)-xi,Ae=Math.min(ee.bottom,Kt.bottom)-Qn,ke=this.tb,ke!==null&&(xi=ke.x,Qn=ke.y,ye=ke.width,Ae=ke.height),xi>ee.width+ee.x||ee.x>Kt.width+Kt.x){E!==1&&(a.globalAlpha=x),this.filter!==""&&(a.filter=b);return}a.save(),a.beginPath(),a.rect(xi,Qn,ye,Ae),a.clip()}if(he){if(!ce.isVisible()){E!==1&&(a.globalAlpha=x),this.filter!==""&&(a.filter=b);return}oe&&(Kt=ce.shadowOffset,a.Ev(Kt.x*y.scale*this.scale*y.Mb,Kt.y*y.scale*this.scale*y.Mb,ce.shadowBlur),Kc(a),a.shadowColor=ce.shadowColor)}oe&&this.shadowVisible===!0?Kc(a):oe&&this.shadowVisible===!1&&Ic(a),ce=this.naturalBounds,this.areaBackground!==null&&(a.yc(),zl(this,a,ce,ee)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),oe&&Wa(this,re)&&this.shadowVisible===null&&Ic(a),this.Ma!==null&&(a.yc(),hl(this,a,ce,ee)),oe&&(this.Ma!==null||this.areaBackground!==null||Wa(this,re))?(Du(this,!0),this.shadowVisible===null&&Ic(a)):Du(this,!1),this.hh(a,y),oe&&this.l&512&&Kc(a),he&&oe&&Ic(a),Te&&(a.restore(),a.Vc(this instanceof Vn)),z.ws()||(y=1/(z.m11*z.m22-z.m12*z.m21),a.transform(z.m22*y,-z.m12*y,-z.m21*y,z.m11*y,y*(z.m21*z.dy-z.m22*z.dx),y*(z.m12*z.dx-z.m11*z.dy)))}}E!==1&&(a.globalAlpha=x),this.filter!==""&&(a.filter=b)}}};function Wa(a,y){return y===null?!1:(yd(y)&&(y=y.panel),(y.l&512)!==0||(y.type===Vn.Auto||y.type===Vn.Spot)&&y.Pb()!==a)}Ce.Dv=function(){};function zl(a,y,E,x){ea(a,y,a.areaBackground,!0,!0,E,x),a.areaBackground instanceof qr&&a.areaBackground.type===nu?(y.beginPath(),y.rect(x.x,x.y,x.width,x.height),y.ng(a.areaBackground)):y.fillRect(x.x,x.y,x.width,x.height)}function hl(a,y,E,x){var b=a.kq(),z=E.x,ee=E.y,re=E.width+b,oe=E.height+b;ea(a,y,a.Ma,!0,!1,E,x),a.Ma instanceof qr&&a.Ma.type===nu?(y.beginPath(),y.rect(z-b/2,ee-b/2,re,oe),y.ng(a.Ma)):y.fillRect(z-b/2,ee-b/2,re,oe)}function xs(a,y,E){for(var x=y.O.s,b=x.length,z=-1,ee=0;ee<b;ee++)if(x[ee]===a){z=ee;break}if(a=z,a!==-1)if(a===0)y.svg.gd?y.svg.gd.after(E):y.svg.Ma?y.svg.Ma.after(E):y.type===Vn.Table?(y=y.svg.getElementsByClassName("gojs-ts"),y=y.length!==0?y[0]:null,y!==null&&y.after(E)):y.svg.prepend(E);else{for(;a!==0&&!y.M(a-1).Ed();)a--;a===0?y.svg.prepend(E):(a=y.M(a-1).svg,a!==null?a.after(E):y.svg.appendChild(E))}}function $l(a,y,E){if(!(y instanceof Al))return!1;if(!a.visible||a.opacity===0||a.Dd()&&!a.isVisible())return a.svg!==null&&a.svg.parentNode!==null&&a.svg.remove(),!0;var x=a.panel,b=a.nk(y);if(a.kk(y,E,b))return a.svg.parentElement!==null?(a.Dd()&&(y.ti=a.svg),!0):(a.Dd()?(y.ti!==null?y.ti.after(a.svg):y.Nj.prepend(a.svg),y.ti=a.svg):x&&xs(a,x,a.svg),!0);if(a.Dd()&&a.isShadowed){var z=a.shadowOffset;y.Ev(z.x*E.scale*a.scale*E.Mb,z.y*E.scale*a.scale*E.Mb,a.shadowBlur),Kc(y),y.shadowColor=a.shadowColor}a instanceof So&&(y.font=a.font),y.yd=null;var ee=a.transform;z=a instanceof Vn;var re=a instanceof Vn?yd(a):!1;a.l&4096&&Ja(a);var oe=a.Ib;if(y.rb.ha=[1,0,0,1,0,0],y.o=!1,b&&(y.o=!0,z&&re?(ep(y,1,0,0,1,0,0),a.svg=y.ad):z?(ep(y,ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy),a.svg=y.ad):ep(y,1,0,0,1,0,0)),b=a.naturalBounds,a.areaBackground!==null){var ce=ee.copy().Vj();y.rb.ha=[ce.m11,ce.m12,ce.m21,ce.m22,ce.dx,ce.dy],zl(a,y,b,oe),y.rb.ha=[1,0,0,1,0,0],y.yd.gd=y.ad,y.yd.prepend(y.ad)}return z||(y.rb.ha=[ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy]),a.background!==null&&(z?(re&&(y.rb.ha=[ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy]),hl(a,y,b,oe),re&&(y.rb.ha=[1,0,0,1,0,0])):(y.rb.ha=[ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy],hl(a,y,b,oe)),y.yd.Ma=y.ad,y.yd.prepend(y.ad)),ee=y.yd,b=a.part,re=!1,b&&E.Gf("drawShadows")&&(re=b.isShadowed),y.clipInsteadOfFill&&(re=!1),a.Dd()&&re&&Kc(y),re&&a.shadowVisible===!0?Kc(y):re&&a.shadowVisible===!1&&Ic(y),b=a.panel,re&&Wa(a,b)&&a.shadowVisible===null&&Ic(y),y.Il&&(ce=E.computePixelRatio(),ce="drop-shadow("+y.shadowOffsetX/ce+"px "+y.shadowOffsetY/ce+"px "+y.shadowBlur/ce/2+"px "+y.shadowColor+")",a.background!==null&&ee.Ma.setAttributeNS(null,"filter",ce),a.areaBackground!==null&&ee.gd.setAttributeNS(null,"filter",ce)),re&&(a.Ma!==null||a.areaBackground!==null||Wa(a,b))?(Du(a,!0),a.shadowVisible===null&&Ic(y)):Du(a,!1),b=re,a.hh(y,E),z&&y.nh.pop(),y.o&&y.nh.pop(),ee=y.Gv.hs,re=z?a.svg:y.yd,ce=a.svg,!z&&ce!==null&&re!==ce&&ce.parentNode===a.panel.svg?(a.svg.replaceWith(re),a.svg=re,re!==null&&a.$o(y,x,oe,re),tl(y,ce),!0):(a.svg=re,ee!==null&&re===null&&(gm(y),y.nh.pop()),re===null||(a.$o(y,x,oe,re),y.Il&&(E=E.computePixelRatio(),a.Dv(re,"drop-shadow("+y.shadowOffsetX/E+"px "+y.shadowOffsetY/E+"px "+y.shadowBlur/E/2+"px "+y.shadowColor+")")),b&&a.l&512&&Kc(y),a.Dd()&&Ic(y),E=a.Dd()?a.opacity*y.globalAlpha:a.opacity,E!==1&&re.setAttributeNS(null,"opacity",E.toString()),a.filter!==""&&re.setAttributeNS(null,"filter",a.filter),a.Dd()?(y.ti?y.ti.after(re):y.Nj.prepend(re),y.ti=re):x!==null&&xs(a,x,re),ee!==null&&ee(a,re)),!0)}Ce.$o=function(a,y,E,x){var b=(this.l&256)!==0;if(a.clipInsteadOfFill&&(b=!1),b){var z=y.se()?y.naturalBounds:y.actualBounds;y=Math.max(E.x,z.x),b=Math.max(E.y,z.y);var ee=Math.min(E.right,z.right)-y;E=Math.min(E.bottom,z.bottom)-b,z=this.tb,z!==null&&(y=z.x,b=z.y,ee=z.width,E=z.height),z=x.getAttribute("clip-path");var re=null;z!==null&&(re=a.svg.getElementById(z.split("#")[1].slice(0,-1))),re===null?(z="CLIP"+mo++,re=a.Ud("clipPath",{id:z}),y=a.Ud("rect",{x:y,y:b,width:ee,height:E}),this instanceof Vn&&(b=this.transform.copy().Vj(),y.setAttribute("transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")")),re.appendChild(y),a.svg.appendChild(re),x.setAttributeNS(null,"clip-path","url(#"+z+")")):(a=re.firstElementChild,a.setAttribute("x",y.toString()),a.setAttribute("y",b.toString()),a.setAttribute("width",ee.toString()),a.setAttribute("height",E.toString()))}else x.removeAttributeNS(null,"clip-path"),tl(a,x)};function tl(a,y){y=y.getAttribute("clip-path"),y!==null&&(a=a.svg.getElementById(y.split("#")[1].slice(0,-1)),a!==null&&a.remove())}function bs(a){if(a.svg!==null){var y=a.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),E=a.svg.ownerDocument;if(y!==null){y=Bi(y);for(var x=y.next();!x.done;x=y.next())x=E.getElementById(x.value.split("#")[1].slice(0,-1)),x!==null&&x.remove()}a.svg.remove()}}Ce.hh=function(){},Ce.lv=function(){this.Uc=!0},Ce.kk=function(a,y,E){if(this.Uc)return this.lv(),this.Uc=!1;if(y=this.svg,y===null)return!1;if(!this.visible)return y.remove(),!1;if(y.nodeName!=="g"&&E||y.nodeName==="g"&&!E)return!1;var x=this.transform,b=this instanceof Vn?yd(this):!1;if(!(this instanceof Vn&&b))if(this instanceof rl){var z=this.bt;a.rb.ha=[x.m11,x.m12,x.m21,x.m22,x.dx,x.dy],z!==null&&e1(a,z[0],z[1],z[2],z[3],z[4],z[5],z[6],z[7]),E?y.lastElementChild.setAttributeNS(null,"transform",t1(a)):y.setAttributeNS(null,"transform",t1(a))}else if(!E||this instanceof Vn)y.setAttributeNS(null,"transform","matrix("+x.m11+", "+x.m12+", "+x.m21+", "+x.m22+", "+x.dx+", "+x.dy+")");else if(this instanceof pr){z=y.getElementsByTagName("path");for(var ee=0;ee<z.length;ee++)z[ee].setAttributeNS(null,"transform","matrix("+x.m11+", "+x.m12+", "+x.m21+", "+x.m22+", "+x.dx+", "+x.dy+")")}else y.lastElementChild.setAttributeNS(null,"transform","matrix("+x.m11+", "+x.m12+", "+x.m21+", "+x.m22+", "+x.dx+", "+x.dy+")");return z=this.Dd()?this.opacity*a.globalAlpha:this.opacity,z===1?y.removeAttribute("opacity"):y.setAttributeNS(null,"opacity",z.toString()),a.rb.ha=[1,0,0,1,0,0],(this.areaBackground!==null||y.gd!==void 0)&&(z=y.gd,this.areaBackground===null?(y.gd.remove(),y.gd=void 0):(ee=x.copy().Vj(),a.rb.ha=[ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy],zl(this,a,this.naturalBounds,this.actualBounds),a.rb.ha=[1,0,0,1,0,0],y.gd?(ee=y.gd.getAttribute("filter"),ee!==null&&a.ad.setAttribute("filter",ee),y.gd.replaceWith(a.ad)):y.prepend(a.ad),y.gd=a.ad),z&&pm(a,z)),(this.background!==null||y.Ma!==void 0)&&(z=y.Ma,this.background===null?(pm(a,y.Ma),y.Ma.remove(),y.Ma=void 0):((b||E&&!(this instanceof Vn))&&(a.rb.ha=[x.m11,x.m12,x.m21,x.m22,x.dx,x.dy]),hl(this,a,this.naturalBounds,this.actualBounds),y.Ma?(pm(a,y.Ma),E=y.Ma.getAttribute("filter"),E!==null&&a.ad.setAttribute("filter",E),y.Ma.replaceWith(a.ad)):y.prepend(a.ad),y.Ma=a.ad),z&&pm(a,z)),this.$o(a,this.panel,this.actualBounds,y),!0},Ce.nk=function(a){if(this.background!==null||this.areaBackground!==null)return!0;var y=(this.l&256)!==0;return a.clipInsteadOfFill&&(y=!1),!!y};function ea(a,y,E,x,b,z,ee){if(E!==null){var re=1,oe=1;if(typeof E=="string")x?y.fillStyle=E:y.strokeStyle=E;else if(E.type===vd)x?y.fillStyle=E.color:y.strokeStyle=E.color;else{var ce=a.kq();if(re=z.width,oe=z.height,b?(re=ee.width,oe=ee.height):x||(re+=ce,oe+=ce),(z=y instanceof kh)&&E.xe&&(E.type===Zf||E.yk===re&&E.ft===oe))var he=E.xe;else{var ye=0,Te=0,Ae=0,ke=0,He=0,dt=0;if(dt=He=0,b?(He=ee.x,dt=ee.y):x||(He-=ce/2,dt-=ce/2),ye=E.start.x*re+E.start.offsetX,Te=E.start.y*oe+E.start.offsetY,Ae=E.end.x*re+E.end.offsetX,ke=E.end.y*oe+E.end.offsetY,ye+=He,Ae+=He,Te+=dt,ke+=dt,E.type===Xc)he=y.createLinearGradient(ye,Te,Ae,ke);else if(E.type===nu)dt=isNaN(E.endRadius)?Math.max(re,oe)/2:E.endRadius,isNaN(E.startRadius)?(He=0,dt=Math.max(re,oe)/2):He=E.startRadius,he=y.createRadialGradient(ye,Te,He,Ae,ke,dt);else if(E.type===Zf)try{he=y.createPattern(E.pattern,"repeat")}catch(gt){he=null}if(E.type!==Zf&&(b=E.colorStops,b!==null))for(b=b.iterator;b.next();)he.addColorStop(b.key,b.value);if(z&&(E.xe=he,he!==null&&(E.yk=re,E.ft=oe),he===null&&E.type===Zf&&E.yk!==-1)){E.yk=-1;var tt=a.diagram;tt!==null&&E.yk===-1&&Gt(function(){tt.redraw()},600)}}x?y.fillStyle=he:y.strokeStyle=he}}}Ce.rg=function(a){if(a instanceof Vn)e:{if(this!==a&&a!==null)for(var y=this.panel;y!==null;){if(y===a){a=!0;break e}y=y.panel}a=!1}else a=!1;return a},Ce.Ed=function(){if(!this.visible)return!1;var a=this.panel;return a!==null?a.Ed():!0},Ce.If=function(){for(var a=this instanceof Vn?this:this.panel;a!==null&&a.isEnabled;)a=a.panel;return a===null};function Ja(a){if(a.l&2048){var y=a.Ab;if(y.reset(),!a.Ib.w()||!a.uc.w()){mu(a,!1);return}if(y.translate(a.Ib.x-a.uc.x,a.Ib.y-a.uc.y),a.scale!==1||a.angle!==0){var E=a.naturalBounds;a.no(y,E.x,E.y,E.width,E.height)}mu(a,!1),eu(a,!0)}a.l&4096&&(y=a.panel,y===null?(a.wh.set(a.Ab),a.Kk=a.scale,eu(a,!1)):y.oe!==null&&(E=a.wh,E.reset(),y.se()?E.multiply(y.wh):y.panel!==null&&E.multiply(y.panel.wh),E.multiply(a.Ab),a.Kk=a.scale*y.Kk,eu(a,!1)))}Ce.no=function(a,y,E,x,b){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=lt.alloc();z.yi(y,E,x,b,ur),a.rotate(this.Kb,z.x,z.y),lt.free(z)}},Ce.v=function(a){if(!Ul(this)){a===void 0&&(a=!1),ba(this,!0),Lc(this,!0);var y=this.panel;y===null||a||y.v()}},Ce.Uj=function(){Ul(this)||(ba(this,!0),Lc(this,!0))};function js(a){if(!zs(a)){var y=a.panel;y!==null?y.v():a.Dd()&&(y=a.diagram,y!==null&&(y.De.add(a),a instanceof pi&&a.Bd(),y.$b())),Lc(a,!0)}}Ce.Uk=function(){!(this.l&2048)&&(mu(this,!0),eu(this,!0))},Ce.Wu=function(){eu(this,!0)},Ce.N=function(){var a=this.part;a!==null&&a.N()};function nl(a,y){var E=a.stretch,x=a.panel;return x!==null&&x.type===Vn.Table?Qu(a,x.Fb(a.row),x.Eb(a.column),y):x!==null&&x.type===Vn.Auto&&x.Pb()===a?Za(a,Hn,y):E===sr?x!==null?x.type===Vn.Spot&&x.Pb()===a?Za(a,Hn,y):(E=x.defaultStretch,E===sr?Za(a,Dn,y):Za(a,E,y)):Za(a,Dn,y):Za(a,E,y)}function Qu(a,y,E,x){var b=a.stretch;if(b!==sr)return Za(a,b,x);var z=b=null;switch(y.stretch){case Wi:z=!0;break;case Hn:z=!0}switch(E.stretch){case _i:b=!0;break;case Hn:b=!0}return y=a.panel.defaultStretch,b===null&&(b=y===_i||y===Hn),z===null&&(z=y===Wi||y===Hn),b===!0&&z===!0?Za(a,Hn,x):b===!0?Za(a,_i,x):z===!0?Za(a,Wi,x):Za(a,Dn,x)}function Za(a,y,E){if(E)return y;if(y===Dn||(E=a.desiredSize,E.w()))return Dn;if(a=a.angle,!isNaN(E.width))if(a!==90&&a!==270){if(y===_i)return Dn;if(y===Hn)return Wi}else{if(y===Wi)return Dn;if(y===Hn)return _i}if(!isNaN(E.height))if(a!==90&&a!==270){if(y===Wi)return Dn;if(y===Hn)return _i}else{if(y===_i)return Dn;if(y===Hn)return Wi}return y}function Du(a,y){a.l=y?a.l|512:a.l&-513}function ns(a){return(a.l&1024)!==0}function rf(a,y){a.l=y?a.l|1024:a.l&-1025}function mu(a,y){a.l=y?a.l|2048:a.l&-2049}function eu(a,y){a.l=y?a.l|4096:a.l&-4097}function Ul(a){return(a.l&8192)!==0}function ba(a,y){a.l=y?a.l|8192:a.l&-8193}function zs(a){return(a.l&16384)!==0}function Lc(a,y){a.l=y?a.l|16384:a.l&-16385}Ce.Gj=function(){this.svg=null},Ce.wi=function(a){this.Me=a,this.svg!==null&&this.svg.remove()},Ce.Av=function(){},Ce.zv=function(a){return this.pa=a,js(this),!0},Ce.mm=function(a,y){(this.pa.x!==a||this.pa.y!==y)&&(this.pa.h(a,y),this.Uk())},Ce.kq=function(){return 0};function Lh(a){var y=a.part;if(y instanceof pi&&(a.portId!==null||a===y.port)){var E=y.diagram;E===null||E.undoManager.isUndoingRedoing||K1(y,a)}}function qy(a){var y=a.diagram;y===null||y.undoManager.isUndoingRedoing||(a instanceof Vn?a instanceof pi?a.Bd():a.qm(a,function(E){Lh(E)}):Lh(a))}Ce.bind=function(a,y,E,x){var b=null;return typeof a=="string"?b=new ha(a,y,E,x):b=a,b.xd=this,a=this.ih(),a!==null&&v1(a)&&pt("Cannot add a Binding to a template that has already been copied: "+b),this.localBindings===null&&(this.localBindings=new Fn),this.localBindings.add(b),this},Ce.set=function(a){return Object.assign(this,a),this},Ce.Du=function(a){return ov(this,a),this},Ce.apply=function(a){return a(this),this},Ce.nm=function(a){return bh(this,a),this},Ce.pz=function(){return this.ih()},Ce.ih=function(){for(var a=this instanceof Vn?this:this.panel;a!==null;){if(a.allBindings!==null)return a;a=a.panel}return null},Ce.Jv=function(a){return a.xd=this,this.animationTriggers===null&&(this.animationTriggers=new zi),this.animationTriggers.add(a.propertyName,a),this};function tu(a,y){for(var E=1;E<arguments.length;++E);E=arguments;var x=null,b=null;if(typeof a=="function")b=a;else if(typeof a=="string"){var z=Uf.I(a);typeof z=="function"?(E=vi(arguments),x=z(E),zt(x)||pt('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):b=Rn.go[a]}if(x===null&&(b!=null&&b.constructor||pt("GraphObject.make requires a class function or GoJS class name or name of an object builder, not: "+a),x=new b),b=1,x instanceof Qt&&1<E.length){z=x;var ee=E[1];(typeof ee=="string"||ee instanceof HTMLDivElement)&&(Mg(z,ee),b++)}for(;b<E.length;b++)z=E[b],z===void 0?pt("Undefined value at argument "+b+" for object being constructed by GraphObject.make: "+x):ov(x,z);return x}function ov(a,y){if(typeof y=="string")if(a instanceof So)a.text=y;else if(a instanceof pr)a.figure=y;else if(a instanceof rl)a.source=y;else if(a instanceof Vn)y=Ou.I(y),y!==null&&(a.type=y);else if(a instanceof qr){var E=gi(qr,y);E!==null?a.type=E:pt("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof Kn?(y=gi(Kn,y),y!==null&&(a.type=y)):a instanceof Br&&(y=gi(Br,y),y!==null&&(a.type=y));else if(y instanceof Dt)a instanceof Vn||pt("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof wa){var x;y.isRow&&typeof a.getRowDefinition=="function"?x=a.getRowDefinition(y.index):y.isRow||typeof a.getColumnDefinition!="function"||(x=a.getColumnDefinition(y.index)),x instanceof wa?Im(x,y):pt("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof en)typeof a.qb=="function"&&a.qb(y);else if(y instanceof Na)a.type=y;else if(y instanceof ha)a instanceof Dt||a instanceof wa?a.bind(y):pt("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof $s)a instanceof Dt?a.Jv(y):pt("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof ma)a instanceof Kn&&a.type===Kn.o?a.figures.add(y):pt("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof Br)a instanceof ma?a.segments.add(y):pt("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof _o)a instanceof Qt||a instanceof or?a.layout=y:pt("A Layout can only be assigned to a Diagram or a Group, not to: "+a);else if(Array.isArray(y))for(E=0;E<y.length;E++)ov(a,y[E]);else if(typeof y=="object"&&y!==null)if(a instanceof qr){E=new ji;for(var b in y)x=parseFloat(b),isNaN(x)?E[b]=y[b]:a.addColorStop(x,y[b]);bh(a,E)}else if(a instanceof wa){y.row!==void 0?(b=y.row,(b==null||b===1/0||isNaN(b)||0>b)&&pt("Must specify non-negative integer row for RowColumnDefinition "+y+", not: "+b),a.isRow=!0,a.index=b):y.column!==void 0&&(b=y.column,(b==null||b===1/0||isNaN(b)||0>b)&&pt("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+b),a.isRow=!1,a.index=b),b=new ji;for(E in y)E!=="row"&&E!=="column"&&(b[E]=y[E]);bh(a,b)}else bh(a,y);else pt('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function md(a,y){Uf.add(a,y)}function fm(a,y,E){E===void 0&&(E=null);var x=a[1];if(typeof E=="function"?E(x):typeof x=="string")return a.splice(1,1),x;if(y===void 0)throw Error("no "+(typeof E=="function"?"satisfactory":"string")+" argument for GraphObject builder "+a[0]);return y}It.Object.defineProperties(Dt.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new of),this.A.zp=a)}},localBindings:{get:function(){return this.A!==null?this.A.te:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new of),this.A.te=a)}},srcBindings:{get:function(){return this.A!==null?this.A.wm:null},set:function(a){this.srcBindings!==a&&(this.A===null&&(this.A=new of),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(yr(this),this.A.Ci=a,this.Uc=!0,this.N(),this.g("shadowVisible",y,a))}},enabledChanged:{get:function(){return this.A!==null?this.A.Hb:null},set:function(a){var y=this.enabledChanged;y!==a&&(yr(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:Gs},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new Wd),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===Gs&&(this.angle=0))}},segmentIndex:{get:function(){return this.Ua!==null?this.Ua.u:-1/0},set:function(a){a=Math.round(a);var y=this.segmentIndex;y!==a&&(this.Ua===null&&(this.Ua=new Wd),this.Ua.u=a,this.v(),this.g("segmentIndex",y,a))}},segmentFraction:{get:function(){return this.Ua!==null?this.Ua.o:0},set:function(a){isNaN(a)||0>a?a=0:1<a&&(a=1);var y=this.segmentFraction;y!==a&&(this.Ua===null&&(this.Ua=new Wd),this.Ua.o=a,this.v(),this.g("segmentFraction",y,a))}},segmentOffset:{get:function(){return this.Ua!==null?this.Ua.F:Go},set:function(a){var y=this.segmentOffset;y.D(a)||(a=a.J(),this.Ua===null&&(this.Ua=new Wd),this.Ua.F=a,this.v(),this.g("segmentOffset",y,a))}},stretch:{get:function(){return this.A!==null?this.A.hg:sr},set:function(a){var y=this.stretch;y!==a&&(yr(this),this.A.hg=a,this.v(),this.g("stretch",y,a))}},name:{get:function(){return this.A!==null?this.A.xa:""},set:function(a){var y=this.name;y!==a&&(yr(this),this.A.xa=a,this.part!==null&&(this.part.Rh=null),this.g("name",y,a))}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1<a)&&ii(a,"0 <= value <= 1",Dt,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(Fh(y,y.actualBounds)))}},filter:{get:function(){return this.bn},set:function(a){var y=this.bn;y!==a&&(this.bn=a,this.Uc=!0,this.g("filter",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(Fh(y,y.actualBounds)))}},visible:{get:function(){return(this.l&1)!==0},set:function(a){var y=(this.l&1)!==0;y!==a&&(this.l^=1,this.g("visible",y,a),y=this.panel,y!==null?y.v():this.Dd()&&this.Zb(a),this.N(),qy(this))}},pickable:{get:function(){return(this.l&2)!==0},set:function(a){var y=(this.l&2)!==0;y!==a&&(this.l^=2,this.g("pickable",y,a))}},fromLinkableDuplicates:{get:function(){return(this.l&4)!==0},set:function(a){var y=(this.l&4)!==0;y!==a&&(this.l^=4,this.g("fromLinkableDuplicates",y,a))}},fromLinkableSelfNode:{get:function(){return(this.l&8)!==0},set:function(a){var y=(this.l&8)!==0;y!==a&&(this.l^=8,this.g("fromLinkableSelfNode",y,a))}},toLinkableDuplicates:{get:function(){return(this.l&16)!==0},set:function(a){var y=(this.l&16)!==0;y!==a&&(this.l^=16,this.g("toLinkableDuplicates",y,a))}},toLinkableSelfNode:{get:function(){return(this.l&32)!==0},set:function(a){var y=(this.l&32)!==0;y!==a&&(this.l^=32,this.g("toLinkableSelfNode",y,a))}},isPanelMain:{get:function(){return(this.l&64)!==0},set:function(a){var y=(this.l&64)!==0;y!==a&&(this.l^=64,this.v(),this.g("isPanelMain",y,a))}},isActionable:{get:function(){return(this.l&128)!==0},set:function(a){var y=(this.l&128)!==0;y!==a&&(this.l^=128,this.g("isActionable",y,a))}},areaBackground:{get:function(){return this.A!==null?this.A.gd:null},set:function(a){var y=this.areaBackground;y!==a&&(a!==null&&sf(a,"GraphObject.areaBackground"),a instanceof qr&&a.freeze(),yr(this),this.A.gd=a,this.N(),this.g("areaBackground",y,a))}},background:{get:function(){return this.Ma},set:function(a){var y=this.Ma;y!==a&&(a!==null&&sf(a,"GraphObject.background"),a instanceof qr&&a.freeze(),this.Ma=a,this.N(),this.g("background",y,a))}},part:{get:function(){if(this.Dd())return this;if(this.Ng!==null)return this.Ng;var a;for(a=this.panel;a;){if(a instanceof Ui)return this.Ng=a;a=a.panel}return null}},svg:{get:function(){return this.V},set:function(a){this.V=a}},panel:{get:function(){return this.Me}},layer:{get:function(){var a=this.part;return a!==null?a.layer:null}},diagram:{get:function(){var a=this.part;return a!==null?a.diagram:null}},position:{get:function(){return this.pa},set:function(a){var y=a.x,E=a.y,x=this.pa,b=x.x;x=x.y,(b===y||isNaN(b)&&isNaN(y))&&(x===E||isNaN(x)&&isNaN(E))?this.Av():(a=a.copy(),this.zv(a,b,x)&&this.g("position",new lt(b,x),a))}},actualBounds:{get:function(){return this.Ib}},scale:{get:function(){return this.Ca},set:function(a){var y=this.Ca;y!==a&&(0>=a&&pt("GraphObject.scale for "+this+" must be greater than zero, not: "+a),this.Ca=a,this.v(),this.g("scale",y,a))}},angle:{get:function(){return this.Kb},set:function(a){var y=this.Kb;y!==a&&(a%=360,0>a&&(a+=360),y!==a&&(this.Kb=a,qy(this),this.v(),this.g("angle",y,a)))}},desiredSize:{get:function(){return this.jd},set:function(a){var y=a.width,E=a.height,x=this.jd,b=x.width,z=x.height;(b===y||isNaN(b)&&isNaN(y))&&(z===E||isNaN(z)&&isNaN(E))||(this.jd=a=a.J(),this.v(),this instanceof pr&&this.qc(),this.g("desiredSize",x,a),ns(this)&&(a=this.part,a!==null&&(No(this,a,"width"),No(this,a,"height"))))}},width:{get:function(){return this.jd.width},set:function(a){var y=this.jd.width;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new ri(a,this.jd.height).freeze(),this.v(),this instanceof pr&&this.qc(),this.g("desiredSize",y,a),ns(this)&&(a=this.part,a!==null&&No(this,a,"width")))}},height:{get:function(){return this.jd.height},set:function(a){var y=this.jd.height;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new ri(this.jd.width,a).freeze(),this.v(),this instanceof pr&&this.qc(),this.g("desiredSize",y,a),ns(this)&&(a=this.part,a!==null&&No(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:Ji},set:function(a){var y=this.minSize;y.D(a)||(a=a.copy(),isNaN(a.width)&&(a.width=0),isNaN(a.height)&&(a.height=0),a.freeze(),yr(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:Ho},set:function(a){var y=this.maxSize;y.D(a)||(a=a.copy(),isNaN(a.width)&&(a.width=1/0),isNaN(a.height)&&(a.height=1/0),a.freeze(),yr(this),this.A.o=a,this.v(),this.g("maxSize",y,a))}},measuredBounds:{get:function(){return this.uc}},naturalBounds:{get:function(){return this.dc}},margin:{get:function(){return this.Kg},set:function(a){typeof a=="number"&&(a=new cr(a));var y=this.Kg;y.D(a)||(this.Kg=a=a.J(),this.v(),this.g("margin",y,a))}},transform:{get:function(){return this.l&2048&&Ja(this),this.Ab}},oe:{get:function(){return this.l&4096&&Ja(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(yr(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:Dn},set:function(a){this.reshapingBehavior!==a&&(yr(this),this.A.Pf=a)}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(a.Mc()&&!a.Xb()&&pt("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),js(this),this.g("alignment",y,a))}},column:{get:function(){return this.Ag},set:function(a){a=Math.round(a);var y=this.Ag;y!==a&&(0>a&&ii(a,">= 0",Dt,"column"),this.Ag=a,this.v(),this.g("column",y,a),this.svg!==null&&this.svg.remove())}},columnSpan:{get:function(){return this.A!==null?this.A.ob:1},set:function(a){a=Math.round(a);var y=this.columnSpan;y!==a&&(1>a&&ii(a,">= 1",Dt,"columnSpan"),yr(this),this.A.ob=a,this.v(),this.g("columnSpan",y,a))}},row:{get:function(){return this.io},set:function(a){a=Math.round(a);var y=this.io;y!==a&&(0>a&&ii(a,">= 0",Dt,"row"),this.io=a,this.v(),this.g("row",y,a),this.svg!==null&&this.svg.remove())}},rowSpan:{get:function(){return this.A!==null?this.A.Bi:1},set:function(a){a=Math.round(a);var y=this.rowSpan;y!==a&&(1>a&&ii(a,">= 1",Dt,"rowSpan"),yr(this),this.A.Bi=a,this.v(),this.g("rowSpan",y,a))}},spanAllocation:{get:function(){return this.A!==null?this.A.Di:null},set:function(a){var y=this.spanAllocation;y!==a&&(yr(this),this.A.Di=a,this.v(),this.g("spanAllocation",y,a))}},alignmentFocus:{get:function(){return this.sk},set:function(a){var y=this.sk;y.D(a)||(this.sk=a=a.J(),this.v(),this.g("alignmentFocus",y,a))}},portId:{get:function(){return this.Yn},set:function(a){var y=this.Yn;if(y!==a){var E=this.part;E===null||E instanceof pi||pt("Cannot set portID on a Link: "+a),y!==null&&E!==null&&Vv(E,this),this.Yn=a,a!==null&&E!==null&&(E.Te=!0,J1(E,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:Pi},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),Lh(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&ii(a,">= 0",Dt,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),Lh(this))}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:0},set:function(a){var y=this.toShortLength;y!==a&&(this.Xc(),this.ba.xj=a,this.g("toShortLength",y,a),Lh(this))}},toLinkable:{get:function(){return this.ba!==null?this.ba.Tr:null},set:function(a){var y=this.toLinkable;y!==a&&(this.Xc(),this.ba.Tr=a,this.g("toLinkable",y,a))}},toMaxLinks:{get:function(){return this.ba!==null?this.ba.Ur:1/0},set:function(a){var y=this.toMaxLinks;y!==a&&(0>a&&ii(a,">= 0",Dt,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:Pi},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),Lh(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&ii(a,">= 0",Dt,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),Lh(this))}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:0},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.g("fromShortLength",y,a),Lh(this))}},fromLinkable:{get:function(){return this.ba!==null?this.ba.hq:null},set:function(a){var y=this.fromLinkable;y!==a&&(this.Xc(),this.ba.hq=a,this.g("fromLinkable",y,a))}},fromMaxLinks:{get:function(){return this.ba!==null?this.ba.iq:1/0},set:function(a){var y=this.fromMaxLinks;y!==a&&(0>a&&ii(a,">= 0",Dt,"fromMaxLinks"),this.Xc(),this.ba.iq=a,this.g("fromMaxLinks",y,a))}},cursor:{get:function(){return this.A!==null?this.A.j:""},set:function(a){var y=this.cursor;y!==a&&(yr(this),this.A.j=a,this.g("cursor",y,a))}},click:{get:function(){return this.A!==null?this.A.zh:null},set:function(a){var y=this.click;y!==a&&(yr(this),this.A.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.A!==null?this.A.Fh:null},set:function(a){var y=this.doubleClick;y!==a&&(yr(this),this.A.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.A!==null?this.A.Bh:null},set:function(a){var y=this.contextClick;y!==a&&(yr(this),this.A.Bh=a,this.g("contextClick",y,a))}},mouseEnter:{get:function(){return this.A!==null?this.A.Mh:null},set:function(a){var y=this.mouseEnter;y!==a&&(yr(this),this.A.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.A!==null?this.A.Ph:null},set:function(a){var y=this.mouseLeave;y!==a&&(yr(this),this.A.Ph=a,this.g("mouseLeave",y,a))}},mouseOver:{get:function(){return this.A!==null?this.A.Qh:null},set:function(a){var y=this.mouseOver;y!==a&&(yr(this),this.A.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.A!==null?this.A.Oh:null},set:function(a){var y=this.mouseHover;y!==a&&(yr(this),this.A.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.A!==null?this.A.Nh:null},set:function(a){var y=this.mouseHold;y!==a&&(yr(this),this.A.Nh=a,this.g("mouseHold",y,a))}},mouseDragEnter:{get:function(){return this.A!==null?this.A.Of:null},set:function(a){var y=this.mouseDragEnter;y!==a&&(yr(this),this.A.Of=a,this.g("mouseDragEnter",y,a))}},mouseDragLeave:{get:function(){return this.A!==null?this.A.Xd:null},set:function(a){var y=this.mouseDragLeave;y!==a&&(yr(this),this.A.Xd=a,this.g("mouseDragLeave",y,a))}},mouseDrop:{get:function(){return this.A!==null?this.A.Lh:null},set:function(a){var y=this.mouseDrop;y!==a&&(yr(this),this.A.Lh=a,this.g("mouseDrop",y,a))}},actionDown:{get:function(){return this.A!==null?this.A.V:null},set:function(a){var y=this.actionDown;y!==a&&(yr(this),this.A.V=a,this.g("actionDown",y,a))}},actionMove:{get:function(){return this.A!==null?this.A.ia:null},set:function(a){var y=this.actionMove;y!==a&&(yr(this),this.A.ia=a,this.g("actionMove",y,a))}},actionUp:{get:function(){return this.A!==null?this.A.Ha:null},set:function(a){var y=this.actionUp;y!==a&&(yr(this),this.A.Ha=a,this.g("actionUp",y,a))}},actionCancel:{get:function(){return this.A!==null?this.A.F:null},set:function(a){var y=this.actionCancel;y!==a&&(yr(this),this.A.F=a,this.g("actionCancel",y,a))}},toolTip:{get:function(){return this.A!==null?this.A.$h:null},set:function(a){var y=this.toolTip;y!==a&&(yr(this),this.A.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.A!==null?this.A.Ch:null},set:function(a){var y=this.contextMenu;y!==a&&(yr(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),Dt.prototype.trigger=Dt.prototype.Jv,Dt.prototype.findBindingPanel=Dt.prototype.ih,Dt.prototype.findTemplateBinder=Dt.prototype.pz,Dt.prototype.setProperties=Dt.prototype.nm,Dt.prototype.apply=Dt.prototype.apply,Dt.prototype.attach=Dt.prototype.Du,Dt.prototype.set=Dt.prototype.set,Dt.prototype.isEnabledObject=Dt.prototype.If,Dt.prototype.isVisibleObject=Dt.prototype.Ed,Dt.prototype.isContainedBy=Dt.prototype.rg,Dt.prototype.getNearestIntersectionPoint=Dt.prototype.rs,Dt.prototype.getLocalPoint=Dt.prototype.qs,Dt.prototype.getDocumentScale=Dt.prototype.Df,Dt.prototype.getDocumentAngle=Dt.prototype.li,Dt.prototype.getDocumentBounds=Dt.prototype.mi,Dt.prototype.getDocumentPoint=Dt.prototype.ga,Dt.prototype.intersectsRect=Dt.prototype.Yc,Dt.prototype.containedInRect=Dt.prototype.fh,Dt.prototype.containsRect=Dt.prototype.Re,Dt.prototype.containsPoint=Dt.prototype.ca,Dt.prototype.raiseChanged=Dt.prototype.g,Dt.prototype.raiseChangedEvent=Dt.prototype.cb,Dt.prototype.addCopyProperty=Dt.prototype.Vw;var Uf=null;Dt.className="GraphObject",Uf=new zi,md("Button",function(){function a(E,x){return E.diagram.ic(E.documentPoint,function(b){for(;b.panel!==null&&!b.isActionable;)b=b.panel;return b},function(b){return b===x})!==null}var y=tu(Vn,Vn.Auto,{isActionable:!0,enabledChanged:function(E,x){if(E instanceof Vn){var b=E.fb("ButtonBorder");b!==null&&(b.fill=x?E._buttonFillNormal:E._buttonFillDisabled)}},cursor:"pointer",_buttonFillNormal:"#F5F5F5",_buttonStrokeNormal:"#BDBDBD",_buttonFillOver:"#E0E0E0",_buttonStrokeOver:"#9E9E9E",_buttonFillPressed:"#BDBDBD",_buttonStrokePressed:"#9E9E9E",_buttonFillDisabled:"#E5E5E5"},tu(pr,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new Yt(0,0,2.76142374915397,2.761423749153969),spot2:new Yt(1,1,-2.76142374915397,-2.761423749153969),parameter1:2,parameter2:2,fill:"#F5F5F5",stroke:"#BDBDBD"}));return y.mouseEnter=function(E,x){if(x.If()&&x instanceof Vn&&(E=x.fb("ButtonBorder"),E instanceof pr)){var b=x._buttonFillOver;x._buttonFillNormal=E.fill,E.fill=b,b=x._buttonStrokeOver,x._buttonStrokeNormal=E.stroke,E.stroke=b}},y.mouseLeave=function(E,x){x.If()&&x instanceof Vn&&(E=x.fb("ButtonBorder"),E instanceof pr&&(E.fill=x._buttonFillNormal,E.stroke=x._buttonStrokeNormal))},y.actionDown=function(E,x){if(x.If()&&x instanceof Vn&&x._buttonFillPressed!==null&&E.button===0){var b=x.fb("ButtonBorder");if(b instanceof pr){E=E.diagram;var z=E.skipsUndoManager;E.skipsUndoManager=!0;var ee=x._buttonFillPressed;x._buttonFillOver=b.fill,b.fill=ee,ee=x._buttonStrokePressed,x._buttonStrokeOver=b.stroke,b.stroke=ee,E.skipsUndoManager=z}}},y.actionUp=function(E,x){if(x.If()&&x instanceof Vn&&x._buttonFillPressed!==null&&E.button===0){var b=x.fb("ButtonBorder");if(b instanceof pr){var z=E.diagram,ee=z.skipsUndoManager;z.skipsUndoManager=!0,a(E,x)?(b.fill=x._buttonFillOver,b.stroke=x._buttonStrokeOver):(b.fill=x._buttonFillNormal,b.stroke=x._buttonStrokeNormal),z.skipsUndoManager=ee}}},y.actionCancel=function(E,x){if(x.If()&&x instanceof Vn&&x._buttonFillPressed!==null){var b=x.fb("ButtonBorder");if(b instanceof pr){var z=E.diagram,ee=z.skipsUndoManager;z.skipsUndoManager=!0,a(E,x)?(b.fill=x._buttonFillOver,b.stroke=x._buttonStrokeOver):(b.fill=x._buttonFillNormal,b.stroke=x._buttonStrokeNormal),z.skipsUndoManager=ee}}},y.actionMove=function(E,x){if(x.If()&&x instanceof Vn&&x._buttonFillPressed!==null){var b=E.diagram;if(b.firstInput.button===0&&(b.currentTool.standardMouseOver(),a(E,x)&&(E=x.fb("ButtonBorder"),E instanceof pr))){var z=b.skipsUndoManager;b.skipsUndoManager=!0;var ee=x._buttonFillPressed;E.fill!==ee&&(E.fill=ee),ee=x._buttonStrokePressed,E.stroke!==ee&&(E.stroke=ee),b.skipsUndoManager=z}}},y}),md("TreeExpanderButton",function(){var a=tu("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},tu(pr,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Do},new ha("figure","isTreeExpanded",function(y,E){return E=E.panel,y?E._treeExpandedFigure:E._treeCollapsedFigure}).cp()),{visible:!1},new ha("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,E){if(E=E.part,E instanceof Ur&&(E=E.adornedPart),E instanceof pi){var x=E.diagram;if(x!==null){if(x=x.commandHandler,E.isTreeExpanded){if(!x.canCollapseTree(E))return}else if(!x.canExpandTree(E))return;y.handled=!0,E.isTreeExpanded?x.collapseTree(E):x.expandTree(E)}}},a}),md("SubGraphExpanderButton",function(){var a=tu("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},tu(pr,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Do},new ha("figure","isSubGraphExpanded",function(y,E){return E=E.panel,y?E._subGraphExpandedFigure:E._subGraphCollapsedFigure}).cp()));return a.click=function(y,E){if(E=E.part,E instanceof Ur&&(E=E.adornedPart),E instanceof or){var x=E.diagram;if(x!==null){if(x=x.commandHandler,E.isSubGraphExpanded){if(!x.canCollapseSubGraph(E))return}else if(!x.canExpandSubGraph(E))return;y.handled=!0,E.isSubGraphExpanded?x.collapseSubGraph(E):x.expandSubGraph(E)}}},a}),md("ToolTip",function(){return tu(Ur,Vn.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new lt(0,3),shadowBlur:5},tu(pr,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new Yt(0,0,4,6),spot2:new Yt(1,1,-4,-4)}))}),md("ContextMenu",function(){return tu(Ur,Vn.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new lt(0,3),shadowBlur:5},new ha("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),md("ContextMenuButton",function(){var a=tu("Button");a.stretch=_i;var y=a.fb("ButtonBorder");return y instanceof pr&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new Yt(0,0,2,3),y.spot2=new Yt(1,1,-2,-2)),a}),md("PanelExpanderButton",function(a){var y=fm(a,"COLLAPSIBLE"),E=tu("Button",{_buttonExpandedFigure:"M0 0 M0 6 L4 2 8 6 M8 8",_buttonCollapsedFigure:"M0 0 M0 2 L4 6 8 2 M8 8",_buttonFillNormal:"rgba(0, 0, 0, 0)",_buttonStrokeNormal:null,_buttonFillOver:"rgba(0, 0, 0, .2)",_buttonStrokeOver:null,_buttonFillPressed:"rgba(0, 0, 0, .4)",_buttonStrokePressed:null},tu(pr,{name:"ButtonIcon",strokeWidth:2},new ha("geometryString","visible",function(x){return x?E._buttonExpandedFigure:E._buttonCollapsedFigure}).cp(y)));return a=E.fb("ButtonBorder"),a instanceof pr&&(a.stroke=null,a.fill="rgba(0, 0, 0, 0)"),E.click=function(x,b){var z=b.diagram;if(z!==null&&!z.isReadOnly){var ee=b.ih();ee===null&&(ee=b.part),ee!==null&&(b=ee.fb(y),b!==null&&(x.handled=!0,z.Ea("Collapse/Expand Panel"),b.visible=!b.visible,z.eb("Collapse/Expand Panel")))}},E}),md("CheckBoxButton",function(a){var y=fm(a);return a=tu("Button",{desiredSize:new ri(14,14)},tu(pr,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:Hn,geometryStretch:Ii,visible:!1},y!==""?new ha("visible",y).Kx():[])),a.click=function(E,x){if(x instanceof Vn){var b=E.diagram;if(!(b===null||b.isReadOnly||y!==""&&b.model.isReadOnly)){E.handled=!0;var z=x.fb("ButtonIcon");b.Ea("checkbox"),z.visible=!z.visible,typeof x._doClick=="function"&&x._doClick(E,x),b.eb("checkbox")}}},a}),md("CheckBox",function(a){a=fm(a),a=tu("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new cr(0,1,0,0)});var y=tu(Vn,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new cr(1),_buttonFillNormal:a._buttonFillNormal,_buttonStrokeNormal:a._buttonStrokeNormal,_buttonFillOver:a._buttonFillOver,_buttonStrokeOver:a._buttonStrokeOver,_buttonFillPressed:a._buttonFillPressed,_buttonStrokePressed:a._buttonStrokePressed,_buttonFillDisabled:a._buttonFillDisabled,mouseEnter:a.mouseEnter,mouseLeave:a.mouseLeave,actionDown:a.actionDown,actionUp:a.actionUp,actionCancel:a.actionCancel,actionMove:a.actionMove,click:a.click,_buttonClick:a.click});return a.mouseEnter=null,a.mouseLeave=null,a.actionDown=null,a.actionUp=null,a.actionCancel=null,a.actionMove=null,a.click=null,y}),Dt.None=Dn=new en(Dt,"None",0),Dt.Default=sr=new en(Dt,"Default",0),Dt.Vertical=Wi=new en(Dt,"Vertical",4),Dt.Horizontal=_i=new en(Dt,"Horizontal",5),Dt.Fill=Hn=new en(Dt,"Fill",3),Dt.Uniform=Ii=new en(Dt,"Uniform",1),Dt.UniformToFill=Mr=new en(Dt,"UniformToFill",2),Dt.FlipVertical=Er=new en(Dt,"FlipVertical",1),Dt.FlipHorizontal=Fr=new en(Dt,"FlipHorizontal",2),Dt.FlipBoth=oo=new en(Dt,"FlipBoth",3),Dt.make=tu,Dt.getBuilders=function(){var a=new zi,y;for(y in Uf)if(y!==y.toLowerCase()){var E=Uf.I(y);typeof E=="function"&&a.add(y,E)}return a.freeze(),a},Dt.defineBuilder=md,Dt.build=function(a,y,E){for(var x=[],b=2;b<arguments.length;++b)x[b-2]=arguments[b];if(b=Uf.I(a),typeof b=="function"&&(x=b([a].concat(x)),x instanceof Dt))return y&&x.set(y),x;pt('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},Dt.takeBuilderArgument=fm;function of(){this.nc=!1,this.xa="",this.zp=-1,this.nb=this.wm=this.te=null,this.j="",this.hb=this.Di=this.Hb=this.Ch=this.$h=this.F=this.Ha=this.ia=this.V=this.Lh=this.Xd=this.Of=this.Nh=this.Oh=this.Qh=this.Ph=this.Mh=this.Bh=this.Fh=this.zh=null,this.u=Ji,this.o=Ho,this.hg=sr,this.ob=this.Bi=1,this.Pf=Dn,this.Pc=this.Ci=this.gd=null,this.Oc="category"}of.prototype.copy=function(){var a=new of;return a.xa=this.xa,a.zp=this.zp,a.te=this.te,a.nb=this.nb,a.j=this.j,a.zh=this.zh,a.Fh=this.Fh,a.Bh=this.Bh,a.Mh=this.Mh,a.Ph=this.Ph,a.Qh=this.Qh,a.Oh=this.Oh,a.Nh=this.Nh,a.Of=this.Of,a.Xd=this.Xd,a.Lh=this.Lh,a.V=this.V,a.ia=this.ia,a.Ha=this.Ha,a.F=this.F,a.$h=this.$h,a.Ch=this.Ch,a.Hb=this.Hb,a.Di=this.Di,a.hb=this.hb,a.u=this.u.J(),a.o=this.o.J(),a.hg=this.hg,a.Bi=this.Bi,a.ob=this.ob,a.Pf=this.Pf,a.gd=this.gd,a.Ci=this.Ci,a.Pc=this.Pc,a.Oc=this.Oc,a};function Wd(){this.u=-1/0,this.o=0,this.F=Go,this.rr=Gs,this.j=this.V="None"}Wd.prototype.copy=function(){var a=new Wd;return a.u=this.u,a.o=this.o,a.F=this.F.J(),a.rr=this.rr,a.V=this.V,a.j=this.j,a},Wd.className="LinkElementSettings";function $g(){this.yj=this.Xi=Ca,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}$g.prototype.copy=function(){var a=new $g;return a.Xi=this.Xi.J(),a.yj=this.yj.J(),a.Vi=this.Vi,a.wj=this.wj,a.Wi=this.Wi,a.xj=this.xj,a.hq=this.hq,a.Tr=this.Tr,a.iq=this.iq,a.Ur=this.Ur,a},$g.className="LinkSettings";function Ih(){this.ha=[1,0,0,1,0,0]}Ih.prototype.copy=function(){var a=new Ih;return a.ha[0]=this.ha[0],a.ha[1]=this.ha[1],a.ha[2]=this.ha[2],a.ha[3]=this.ha[3],a.ha[4]=this.ha[4],a.ha[5]=this.ha[5],a},Ih.prototype.translate=function(a,y){this.ha[4]+=this.ha[0]*a+this.ha[2]*y,this.ha[5]+=this.ha[1]*a+this.ha[3]*y},Ih.prototype.scale=function(a,y){this.ha[0]*=a,this.ha[1]*=a,this.ha[2]*=y,this.ha[3]*=y},Ih.prototype.rotate=function(a,y,E){if(360<=a?a-=360:0>a&&(a+=360),a!==0){if(this.translate(y,E),a===90){a=0;var x=1}else a===180?(a=-1,x=0):a===270?(a=0,x=-1):(x=a*Math.PI/180,a=Math.cos(x),x=Math.sin(x));var b=this.ha[1]*a+this.ha[3]*x,z=this.ha[0]*-x+this.ha[2]*a,ee=this.ha[1]*-x+this.ha[3]*a;this.ha[0]=this.ha[0]*a+this.ha[2]*x,this.ha[1]=b,this.ha[2]=z,this.ha[3]=ee,this.translate(-y,-E)}},Ih.className="STransform";function af(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}af.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},af.className="SGradient";function gc(a,y,E){this.ownerDocument=a=y===void 0?Rn.document:y,this.cA="http://www.w3.org/2000/svg",a!==void 0&&(this.Oa=this.Ud("svg",{width:"1px",height:"1px",viewBox:"0 0 1 1"}),this.style.display="block",this.style.letterSpacing="normal",this.style.wordSpacing="normal",this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink")),this.hs=null,this.context=new Al(this,E)}gc.prototype.resize=function(a,y,E,x){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=E+"px",this.style.height=x+"px",this.Oa.setAttributeNS(null,"width",E+"px"),this.Oa.setAttributeNS(null,"height",x+"px"),this.Oa.setAttributeNS(null,"viewBox","0 0 "+E+" "+x),this.context.ww.firstElementChild.setAttributeNS(null,"width",E+"px"),this.context.ww.firstElementChild.setAttributeNS(null,"height",x+"px"),!0):!1},gc.prototype.Ud=function(a,y,E){if(a=this.ownerDocument.createElementNS(this.cA,a),zt(y))for(var x in y)a.setAttributeNS(x==="href"?"http://www.w3.org/1999/xlink":"",x,y[x]);return E!==void 0&&(a.textContent=E),a},gc.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},gc.prototype.focus=function(){this.Oa.focus()},gc.prototype.mx=function(){this.ownerDocument=null},It.Object.defineProperties(gc.prototype,{width:{get:function(){return this.Oa.width.baseVal.value},set:function(a){this.Oa.setAttribute("width",a+"px")}},height:{get:function(){return this.Oa.height.baseVal.value},set:function(a){this.Oa.setAttribute("height",a+"px")}},style:{get:function(){return this.Oa.style}}}),gc.className="SVGSurface";function Al(a,y){this.Gv=a,this.svg=a.Oa,this.stack=[],this.nh=[],this.fillStyle="#000000",this.font="10px sans-serif",this.globalAlpha=1,this.lineCap="butt",this.lineDashOffset=0,this.lineJoin="miter",this.lineWidth=1,this.miterLimit=10,this.shadowBlur=0,this.shadowColor="rgba(0, 0, 0, 0)",this.shadowOffsetY=this.shadowOffsetX=0,this.Il=!1,this.strokeStyle="#000000",this.textAlign="start",this.clipInsteadOfFill=!1,this.Vg=this.Br=this.Ar=0,this.yd=this.ad=null,this.path=[],this.Yl={},this.Ct=!1,this.Yg=null,this.uj=0,this.rb=new Ih,this.j=gm(this),this.Nj=gm(this,"gojs-diagram"),this.Hl=this.ti=null;var E=mo++,x=this.Ud("clipPath",{id:"mainClip"+E});x.appendChild(this.Ud("rect",{x:0,y:0,width:a.width,height:a.height})),this.ww=x,this.svg.appendChild(this.j),this.j.appendChild(this.Nj),this.svg.appendChild(x),this.j.setAttributeNS(null,"clip-path","url(#mainClip"+E+")"),this.eA={},this.isTemporary=!!y,this.filter="",this.bk=null}function $y(a,y,E,x,b,z,ee){a.Nj===void 0?ep(a,y,E,x,b,z,ee):a.Nj.setAttribute("transform","matrix("+y+", "+E+", "+x+", "+b+", "+z+", "+ee+")")}Ce=Al.prototype,Ce.arc=function(a,y,E,x,b,z,ee,re){var oe=2*Math.PI,ce=oe-1e-6,he=E*Math.cos(x),ye=E*Math.sin(x),Te=a+he,Ae=y+ye,ke=z?0:1;x=z?x-b:b-x,(1e-6<Math.abs(ee-Te)||1e-6<Math.abs(re-Ae))&&this.path.push(["L",Te,+Ae]),0>x&&(x=x%oe+oe),x>ce?(this.path.push(["A",E,E,0,1,ke,a-he,y-ye]),this.path.push(["A",E,E,0,1,ke,Te,Ae])):1e-6<x&&this.path.push(["A",E,E,0,+(x>=Math.PI),ke,a+E*Math.cos(b),y+E*Math.sin(b)])},Ce.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},Ce.Se=function(a){this.addPath(this.path,this.rb,a||0)},Ce.bezierCurveTo=function(a,y,E,x,b,z){this.path.push(["C",a,y,E,x,b,z])},Ce.clearRect=function(){},Ce.clip=function(){this.Yl.clipPath=!0},Ce.closePath=function(){this.path.push(["z"])},Ce.createLinearGradient=function(a,y,E,x){var b=new af("linear");return b.x1=a,b.y1=y,b.x2=E,b.y2=x,b},Ce.createPattern=function(a){var y="";a instanceof HTMLCanvasElement&&(y=a.toDataURL()),a instanceof HTMLImageElement&&(y=a.getAttribute("src"));var E=this.eA;if(E[y])return"url(#"+E[y]+")";var x="PATTERN"+mo++,b={x:0,y:0,width:a.width,height:a.height,href:y};return a=this.Ud("pattern",{width:a.width,height:a.height,id:x,patternUnits:"userSpaceOnUse"}),a.appendChild(this.Ud(Mh,b)),this.svg.appendChild(a),E[y]=x,"url(#"+x+")"},Ce.createRadialGradient=function(a,y,E,x,b,z){var ee=new af("radial");return ee.x1=a,ee.y1=y,ee.r1=E,ee.x2=x,ee.y2=b,ee.r2=z,ee};function e1(a,y,E,x,b,z,ee,re,oe){x=re/x,b=oe/b,z===0&&ee===0||a.rb.translate(z,ee),x===1&&b===1||a.rb.scale(x,b),y===0&&E===0||a.rb.translate(-y,-E)}Ce.drawImage=function(a,y,E,x,b,z,ee,re,oe){var ce="";a instanceof HTMLCanvasElement&&(ce=a.toDataURL()),a instanceof HTMLImageElement&&(ce=a.getAttribute("src"));var he=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,x===void 0&&(z=y,ee=E,re=x=he,oe=b=a),x=x||0,b=b||0,re=re||0,oe=oe||0,e1(this,y,E,x,b,z||0,ee||0,re,oe),z={x:0,y:0,width:he||x,height:a||b,href:ce},Bt.$(x,re)&&Bt.$(b,oe)?ce.toLowerCase().indexOf(".svg")===-1&&ce.toLowerCase().indexOf("data:image/svg")===-1&&(z.preserveAspectRatio="xMidYMid slice"):z.preserveAspectRatio="none",(y!==0||E!==0||x!==he||b!==a)&&(x+=y,b+=E,z["clip-path"]="path('M "+y+","+E+" L "+x+" "+E+" L "+x+" "+b+" L "+y+" "+b+" z')"),Hf(this,Mh,z,this.rb),this.addElement(Mh,z)},Ce.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),av(this,this.Yl)},Ce.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},Ce.fillRect=function(a,y,E,x){a=[a,y,E,x],a={x:a[0],y:a[1],width:a[2],height:a[3]},Hf(this,"fill",a,this.rb),this.addElement("rect",a)},Ce.ox=function(a,y,E,x){a={x:a,y,width:E,height:x},Hf(this,"fill",a,this.rb),av(this,a),this.svg.prepend(this.Ud("rect",a))},Ce.fillText=function(a,y,E){a=[a,y,E],y=this.textAlign,y==="left"?y="start":y==="right"?y="end":y==="center"&&(y="middle"),y={x:a[1],y:a[2],style:"font: "+this.font,"text-anchor":y},Hf(this,"fill",y,this.rb),this.addElement("text",y,a[0])},Ce.lineTo=function(a,y){this.path.push(["L",a,y])},Ce.moveTo=function(a,y){this.path.push(["M",a,y])},Ce.quadraticCurveTo=function(a,y,E,x){this.path.push(["Q",a,y,E,x])},Ce.rect=function(a,y,E,x){this.path.push(["M",a,y],["L",a+E,y],["L",a+E,y+x],["L",a,y+x],["z"])},Ce.restore=function(){this.rb=this.stack.pop(),this.path=this.stack.pop();var a=this.stack.pop();this.fillStyle=a.fillStyle,this.font=a.font,this.globalAlpha=a.globalAlpha,this.lineCap=a.lineCap,this.lineDashOffset=a.lineDashOffset,this.lineJoin=a.lineJoin,this.lineWidth=a.lineWidth,this.miterLimit=a.miterLimit,this.shadowBlur=a.shadowBlur,this.shadowColor=a.shadowColor,this.shadowOffsetX=a.shadowOffsetX,this.shadowOffsetY=a.shadowOffsetY,this.strokeStyle=a.strokeStyle,this.textAlign=a.textAlign,this.bk=a.bk},Ce.save=function(){this.stack.push({fillStyle:this.fillStyle,font:this.font,globalAlpha:this.globalAlpha,lineCap:this.lineCap,lineDashOffset:this.lineDashOffset,lineJoin:this.lineJoin,lineWidth:this.lineWidth,miterLimit:this.miterLimit,shadowBlur:this.shadowBlur,shadowColor:this.shadowColor,shadowOffsetX:this.shadowOffsetX,shadowOffsetY:this.shadowOffsetY,strokeStyle:this.strokeStyle,textAlign:this.textAlign,bk:this.bk});for(var a=[],y=0;y<this.path.length;y++)a.push(this.path[y]);this.stack.push(a),this.stack.push(this.rb.copy())},Ce.setTransform=function(a,y,E,x,b,z){a===1&&y===0&&E===0&&x===1&&b===0&&z===0||ep(this,a,y,E,x,b,z)};function t1(a){return a=a.rb.ha,"matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")"}Ce.scale=function(a,y){this.rb.scale(a,y)},Ce.translate=function(a,y){this.rb.translate(a,y)},Ce.transform=function(){},Ce.yc=function(){},Ce.stroke=function(){i1(this,this.Yl)},Ce.jk=function(){this.clipInsteadOfFill||this.stroke()},Ce.Ud=function(a,y,E){return this.Gv.Ud(a,y,E)},Ce.addElement=function(a,y,E){return a=this.Ud(a,y,E),this.yd!==null?this.yd.appendChild(a):this.yd=a,this.ad=a};function Hf(a,y,E,x){y==="fill"?av(a,E):y==="stroke"&&i1(a,E),x!==null&&(a=x.ha,E.transform="matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")")}function av(a,y){a.fillStyle instanceof af?y.fill=sv(a,a.fillStyle,!0):/^rgba\(/.test(a.fillStyle)?(a=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.fillStyle),y.fill="rgb("+a[1]+","+a[2]+","+a[3]+")",y["fill-opacity"]=a[4]):y.fill=a.fillStyle}function n1(a,y,E){E=E?"fill":"stroke",a.fillStyle instanceof af?y.setAttributeNS(null,"fill",sv(a,a.fillStyle,!0)):/^rgba\(/.test(a.fillStyle)?(a=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.fillStyle),y.setAttributeNS(null,E,"rgb("+a[1]+","+a[2]+","+a[3]+")"),y.setAttributeNS(null,E+"-opacity",a[4])):y.setAttributeNS(null,E,a.fillStyle)}function i1(a,y){if(a.strokeStyle instanceof af)y.stroke=sv(a,a.strokeStyle,!1);else if(/^rgba\(/.test(a.strokeStyle)){var E=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.strokeStyle);y.stroke="rgb("+E[1]+","+E[2]+","+E[3]+")",y["stroke-opacity"]=E[4]}else y.stroke=a.strokeStyle;y["stroke-width"]=a.lineWidth,y["stroke-linecap"]=a.lineCap,y["stroke-linejoin"]=a.lineJoin,y["stroke-miterlimit"]=a.miterLimit,a.Ct&&(y["stroke-dasharray"]=a.Yg.toString(),y["stroke-dashoffset"]=a.uj)}function sv(a,y,E){var x="";if(x=a.Hl!==null?a.Hl.getAttribute(E?"fill":"stroke"):null,x!==null&&x.indexOf("GRAD")!==-1?(x=x.split("#")[1].slice(0,-1),E=a.svg.getElementById(x),E!==null&&E.remove()):x="GRAD"+mo++,y.type==="linear")E=a.Ud("linearGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,id:x,gradientUnits:"userSpaceOnUse"});else if(y.type==="radial")E=a.Ud("radialGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,r1:y.r1,r2:y.r2,id:x});else throw Error("invalid gradient");var b=y.gx;y=b.length;for(var z=[],ee=0;ee<y;ee++){var re=b[ee],oe=re.color;re={offset:re.offset,"stop-color":oe},/^rgba\(/.test(oe)&&(oe=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(oe),re["stop-color"]="rgb("+oe[1]+","+oe[2]+","+oe[3]+")",re["stop-opacity"]=oe[4]),z.push(re)}for(z.sort(function(ce,he){return ce.offset>he.offset?1:-1}),b=0;b<y;b++)E.appendChild(a.Ud("stop",z[b]));return a.svg.appendChild(E),"url(#"+x+")"}Ce.addPath=function(a,y,E){for(var x=[],b=0;b<a.length;b++){var z=vi(a[b]),ee=[z.shift()];if(ee[0]==="A")ee.push(z.shift()+","+z.shift(),z.shift(),z.shift()+","+z.shift(),z.shift()+","+z.shift());else for(;z.length;)ee.push(z.shift()+","+z.shift());x.push(ee.join(" "))}if(x=x.join(" "),a=this.Yl,a.clipPath)0<this.nh.length&&this.nh[this.nh.length-1].setAttributeNS(null,"clip-path",'path("'+x+'")');else if(a.d=x,Hf(this,"",a,y),this.Hl!==null)if(y=this.Hl,y.nodeName!=="g")for(var re in a)re!=="transform"&&y.setAttributeNS(null,re,a[re]);else{re=y.getElementsByTagName("path");for(var oe in a)oe!=="transform"&&re[E].setAttributeNS(null,oe,a[oe])}else this.addElement("path",a)};function ep(a,y,E,x,b,z,ee){var re=new Ih;re.ha=[y,E,x,b,z,ee],y={},Hf(a,"g",y,re),re=a.addElement("g",y),a.nh.push(re)}function gm(a,y){var E={};return y&&(E.class=y),y=a.addElement("g",E),a.nh.push(y),y}Ce.Ev=function(a,y,E){this.Ar=a,this.Br=y,this.Vg=E};function Ic(a){a.Il=!1,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0}function Kc(a){a.Il=!0,a.shadowOffsetX=a.Ar,a.shadowOffsetY=a.Br,a.shadowBlur=a.Vg}Ce.js=function(a,y){this.Ct=!0,this.Yg=a,this.uj=y},Ce.fs=function(){this.Ct=!1},Ce.Vc=function(){},Ce.Wx=function(){},Al.prototype.rotate=function(a){this.rb.rotate(57.2958*a,0,0)},Al.prototype.getImageData=function(){return null},Al.prototype.measureText=function(){return null};function pm(a,y){y=y.getAttribute("fill"),y!==null&&(y=y.split("#"),y.length!==1&&(y=a.svg.getElementById(y[1].slice(0,-1)),y!==null&&a.svg.innerHTML.match(new RegExp(y.id,"g")).length===1&&y.remove()))}Al.prototype.Hs=function(a){a.svg!==null&&a.svg.parentNode===this.Nj&&a.svg.remove()},Al.className="SVGContext",Qt.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new gc(this,Rn.document));var y=new gc(this,Rn.document,!0);a===void 0&&(a=new ji);var E=this;return qh(this,function(x,b){return x=um(E,x,"SVG",y),x=x!==null?x.svg:null,typeof b=="function"?(b(x),null):x},a)},Qt.prototype.makeSvg=Qt.prototype.Cs,Qt.prototype.av=function(a){return this.Cs(a)},Qt.prototype.makeSVG=Qt.prototype.av;function vu(a,y,E,x){this.ownerDocument=y=y===void 0?Rn.document:y,this.hs=null,y=y.createElement("canvas"),y.tabIndex=0,this.Oa=y,this.context=new kh(y,E,x),y.H=a}vu.prototype.resize=function(a,y,E,x){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=E+"px",this.style.height=x+"px",!0):!1},vu.prototype.toDataURL=function(a,y){return this.Oa.toDataURL(a,y)},vu.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},vu.prototype.focus=function(){this.Oa.focus()},vu.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},It.Object.defineProperties(vu.prototype,{width:{get:function(){return this.Oa.width},set:function(a){this.Oa.width=a}},height:{get:function(){return this.Oa.height},set:function(a){this.Oa.height=a}},style:{get:function(){return this.Oa.style}}}),vu.className="CanvasSurface";function kh(a,y,E){this.Z=a.getContext?a.getContext("2d",y):null,this.Z===null&&pt("Browser does not support HTML Canvas Element"),this.ct=this.et=this.dt="",this.Hm=!1,this.Vg=this.Br=this.Ar=0,this.Il=!1,this.El=new ir,this.isTemporary=!!E}Ce=kh.prototype,Ce.Wx=function(a){this.Z.imageSmoothingEnabled=a},Ce.arc=function(a,y,E,x,b,z){this.Z.arc(a,y,E,x,b,z)},Ce.beginPath=function(){this.Z.beginPath()},Ce.Se=function(){},Ce.bezierCurveTo=function(a,y,E,x,b,z){this.Z.bezierCurveTo(a,y,E,x,b,z)},Ce.clearRect=function(a,y,E,x){this.yc(),this.Z.clearRect(a,y,E,x)},Ce.clip=function(){this.Z.clip()},Ce.closePath=function(){this.Z.closePath()},Ce.createLinearGradient=function(a,y,E,x){return this.Z.createLinearGradient(a,y,E,x)},Ce.createPattern=function(a,y){return this.Z.createPattern(a,y)},Ce.createRadialGradient=function(a,y,E,x,b,z){return this.Z.createRadialGradient(a,y,E,x,b,z)},Ce.drawImage=function(a,y,E,x,b,z,ee,re,oe){x===void 0?this.Z.drawImage(a,y,E):this.Z.drawImage(a,y,E,x,b,z,ee,re,oe)},Ce.fill=function(a){this.Z.fill(a?"evenodd":"nonzero")},Ce.fillRect=function(a,y,E,x){this.Z.fillRect(a,y,E,x)},Ce.ox=function(a,y,E,x){this.Z.fillRect(a,y,E,x)},Ce.fillText=function(a,y,E){this.Z.fillText(a,y,E)},Ce.getImageData=function(a,y,E,x){return this.Z.getImageData(a,y,E,x)},Ce.lineTo=function(a,y){this.Z.lineTo(a,y)},Ce.measureText=function(a){return this.Z.measureText(a)},Ce.moveTo=function(a,y){this.Z.moveTo(a,y)},Ce.quadraticCurveTo=function(a,y,E,x){this.Z.quadraticCurveTo(a,y,E,x)},Ce.rect=function(a,y,E,x){this.Z.rect(a,y,E,x)},Ce.restore=function(){this.Z.restore()},Ce.save=function(){this.yc(),this.Z.save()},kh.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},Ce=kh.prototype,Ce.setTransform=function(a,y,E,x,b,z){this.El.setTransform(a,y,E,x,b,z)},Ce.scale=function(a,y){this.El.scale(a,y)},Ce.translate=function(a,y){this.El.translate(a,y)},Ce.stroke=function(){this.Z.stroke()},Ce.transform=function(a,y,E,x,b,z){if(a!==1||y!==0||E!==0||x!==1||b!==0||z!==0){var ee=this.El,re=ee.m11*a+ee.m21*y;a=ee.m12*a+ee.m22*y,y=ee.m11*E+ee.m21*x,E=ee.m12*E+ee.m22*x,ee.dx=ee.m11*b+ee.m21*z+ee.dx,ee.dy=ee.m12*b+ee.m22*z+ee.dy,ee.m11=re,ee.m12=a,ee.m21=y,ee.m22=E}},Ce.yc=function(){var a=this.El;this.Z.setTransform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy)},Ce.ng=function(a,y){if(a instanceof qr&&a.type===nu){var E=a.yk;a=a.ft,a>E?(this.scale(E/a,1),this.translate((a-E)/2,0)):E>a&&(this.scale(1,a/E),this.translate(0,(E-a)/2)),this.Hm?this.clip():this.fill(y),a>E?(this.translate(-(a-E)/2,0),this.scale(1/(E/a),1)):E>a&&(this.translate(0,-(E-a)/2),this.scale(1,1/(a/E)))}else this.Hm?this.clip():this.fill(y)},Ce.jk=function(){this.Hm||this.stroke()},Ce.Ev=function(a,y,E){this.Ar=a,this.Br=y,this.Vg=E},Ce.js=function(a,y){var E=this.Z;E.setLineDash!==void 0&&(E.setLineDash(a),E.lineDashOffset=y)},Ce.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(CE),a.lineDashOffset=0)},Ce.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},Ce.Hs=function(){},It.Object.defineProperties(kh.prototype,{fillStyle:{get:function(){return this.Z.fillStyle},set:function(a){this.ct!==a&&(this.ct=this.Z.fillStyle=a)}},font:{get:function(){return this.Z.font},set:function(a){this.dt!==a&&(this.dt=this.Z.font=a)}},globalAlpha:{get:function(){return this.Z.globalAlpha},set:function(a){this.Z.globalAlpha=a}},lineCap:{get:function(){return this.Z.lineCap},set:function(a){this.Z.lineCap=a}},lineDashOffset:{get:function(){return this.Z.lineDashOffset},set:function(a){this.Z.lineDashOffset=a}},lineJoin:{get:function(){return this.Z.lineJoin},set:function(a){this.Z.lineJoin=a}},lineWidth:{get:function(){return this.Z.lineWidth},set:function(a){this.Z.lineWidth=a}},miterLimit:{get:function(){return this.Z.miterLimit},set:function(a){this.Z.miterLimit=a}},shadowBlur:{get:function(){return this.Z.shadowBlur},set:function(a){this.Z.shadowBlur=a}},shadowColor:{get:function(){return this.Z.shadowColor},set:function(a){this.Z.shadowColor=a}},shadowOffsetX:{get:function(){return this.Z.shadowOffsetX},set:function(a){this.Z.shadowOffsetX=a}},shadowOffsetY:{get:function(){return this.Z.shadowOffsetY},set:function(a){this.Z.shadowOffsetY=a}},strokeStyle:{get:function(){return this.Z.strokeStyle},set:function(a){this.et!==a&&(this.et=this.Z.strokeStyle=a)}},textAlign:{get:function(){return this.Z.textAlign},set:function(a){this.Z.textAlign=a}},imageSmoothingEnabled:{get:function(){return this.Z.imageSmoothingEnabled},set:function(a){this.Z.imageSmoothingEnabled=a}},filter:{get:function(){return this.Z.filter},set:function(a){this.Z.filter=a===""?"none":a}},clipInsteadOfFill:{get:function(){return this.Hm},set:function(a){this.Hm=a}}});var CE=Object.freeze([]);kh.className="CanvasSurfaceContext";function tp(){this.F=this.o=this.u=this.j=0}tp.className="ColorNumbers";function qr(a,y){Wf||(fv(),Wf=!0),wr(this),this._isFrozen=!1,a===void 0?(this.na=vd,this.xk="black"):typeof a=="string"?(this.na=vd,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===Xc?(this.Qd=xr,this.Lk=Io):this.Lk=a===nu?this.Qd=ur:this.Qd=Pi,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}qr.prototype.copy=function(){var a=new qr;return a.na=this.na,a.xk=this.xk,a.Qd=this.Qd.J(),a.Lk=this.Lk.J(),a.Gr=this.Gr,a.Xp=this.Xp,this.we!==null&&(a.we=this.we.copy()),a.cr=this.cr,a},Ce=qr.prototype,Ce.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},Ce.ka=function(){return Object.isFrozen(this)&&pt("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},Ce.qb=function(a){a.classType===qr&&(this.type=a)},Ce.toString=function(){var a="Brush(";if(this.type===vd)a+=this.color;else if(a=this.type===Xc?a+"Linear ":this.type===nu?a+"Radial ":this.type===Zf?a+"Pattern ":a+"(unknown) ",a+=this.start+" "+this.end,this.colorStops!==null)for(var y=this.colorStops.iterator;y.next();)a+=" "+y.key+":"+y.value;return a+")"},Ce.addColorStop=function(a,y){return this._isFrozen&&yn(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&ii(a,"0 <= loc <= 1",qr,"addColorStop:loc"),this.we===null&&(this.we=new zi),this.we.add(a,y),this.na===vd&&(this.type=Xc),this.xe=null,this},Ce.Vz=function(a,y){if(this._isFrozen&&yn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Kf:y,this.type===vd)Qc(this.color),this.color=Yf(a,y);else if((this.type===Xc||this.type===nu)&&this.colorStops!==null)for(var E=this.colorStops.iterator;E.next();)Qc(E.value),this.addColorStop(E.key,Yf(a,y));return this};function r1(a,y,E){return y=y===void 0||typeof y!="number"?.2:y,E=E===void 0?Kf:E,Qc(a),Yf(y,E)}Ce.Wy=function(a,y){if(this._isFrozen&&yn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Kf:y,this.type===vd)Qc(this.color),this.color=Yf(-a,y);else if((this.type===Xc||this.type===nu)&&this.colorStops!==null)for(var E=this.colorStops.iterator;E.next();)Qc(E.value),this.addColorStop(E.key,Yf(-a,y));return this};function o1(a,y,E){return y=y===void 0||typeof y!="number"?.2:y,E=E===void 0?Kf:E,Qc(a),Yf(-y,E)}function lv(a,y,E){Qc(a),a=bo.j;var x=bo.u,b=bo.o,z=bo.F;return Qc(y),E===void 0&&(E=.5),"rgba("+Math.round((bo.j-a)*E+a)+", "+Math.round((bo.u-x)*E+x)+", "+Math.round((bo.o-b)*E+b)+", "+Math.round((bo.F-z)*E+z)+")"}Ce.Gx=function(){if(this.type===vd)return Gf(this.color);if((this.type===Xc||this.type===nu)&&this.colorStops!==null){var a=this.colorStops;if(this.type===nu)return Gf(a.first().value);if(a.get(.5)!==null)return Gf(a.get(.5));if(a.count===2)return a=a.Fa(),Gf(lv(a[0].value,a[1].value));for(var y=a.iterator,E=-1,x=-1,b=1,z=1;y.next();){var ee=y.key,re=Math.abs(.5-y.key);b>z&&re<b?(E=ee,b=re):z>=b&&re<z&&(x=ee,z=re)}return E>x&&(z=E,E=x,x=z,z=b),b=x-E,Gf(lv(a.get(E),a.get(x),1-z/b))}return!1};function Gf(a){return a?a instanceof qr?a.Gx():(Qc(a),128>(299*bo.j+587*bo.u+114*bo.o)/1e3):!1}function Yf(a,y){switch(y){case Kf:y=100*cv(bo.j);var E=100*cv(bo.u),x=100*cv(bo.o);return Us.j=.4124564*y+.3575761*E+.1804375*x,Us.u=.2126729*y+.7151522*E+.072175*x,Us.o=.0193339*y+.119192*E+.9503041*x,Us.F=bo.F,y=hv(Us.j/Vf[0]),E=hv(Us.u/Vf[1]),x=hv(Us.o/Vf[2]),kc.j=116*E-16,kc.u=500*(y-E),kc.o=200*(E-x),kc.F=Us.F,kc.j=Math.min(100,Math.max(0,kc.j+100*a)),a=(kc.j+16)/116,y=a-kc.o/200,Us.j=Vf[0]*a1(kc.u/500+a),Us.u=Vf[1]*(kc.j>mm*gv?Math.pow(a,3):kc.j/mm),Us.o=Vf[2]*a1(y),Us.F=kc.F,a=-.969266*Us.j+1.8760108*Us.u+.041556*Us.o,y=.0556434*Us.j+-.2040259*Us.u+1.0572252*Us.o,bo.j=255*dv((3.2404542*Us.j+-1.5371385*Us.u+-.4985314*Us.o)/100),bo.u=255*dv(a/100),bo.o=255*dv(y/100),bo.F=Us.F,bo.j=Math.round(bo.j),255<bo.j?bo.j=255:0>bo.j&&(bo.j=0),bo.u=Math.round(bo.u),255<bo.u?bo.u=255:0>bo.u&&(bo.u=0),bo.o=Math.round(bo.o),255<bo.o?bo.o=255:0>bo.o&&(bo.o=0),"rgba("+bo.j+", "+bo.u+", "+bo.o+", "+bo.F+")";case s1:return uv(),Hl.o=Math.min(100,Math.max(0,Hl.o+100*a)),"hsla("+Hl.j+", "+Hl.u+"%, "+Hl.o+"%, "+Hl.F+")";default:pt("Unknown color space: "+y)}}function Qc(a){Wf||(fv(),Wf=!0);var y=pv;if(y!==null){y.clearRect(0,0,1,1),y.fillStyle="#000000";var E=y.fillStyle;y.fillStyle=a,y.fillStyle!==E?(y.fillRect(0,0,1,1),a=y.getImageData(0,0,1,1).data,bo.j=a[0],bo.u=a[1],bo.o=a[2],bo.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,bo.j=0,bo.u=0,bo.o=0,bo.F=1)}}function uv(){var a=bo.j/255,y=bo.u/255,E=bo.o/255,x=Math.max(a,y,E),b=Math.min(a,y,E),z=x-b;if(b=(x+b)/2,z===0)var ee=a=0;else{switch(x){case a:ee=(y-E)/z%6;break;case y:ee=(E-a)/z+2;break;case E:ee=(a-y)/z+4}ee*=60,0>ee&&(ee+=360),a=z/(1-Math.abs(2*b-1))}Hl.j=Math.round(ee),Hl.u=Math.round(100*a),Hl.o=Math.round(100*b),Hl.F=bo.F}function cv(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function dv(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function hv(a){return a>gv?Math.pow(a,1/3):(mm*a+16)/116}function a1(a){var y=a*a*a;return y>gv?y:(116*a-16)/mm}function sf(a,y){typeof a!="string"&&(a instanceof qr||pt("Value for "+y+" must be a color string or a Brush, not "+a))}function fv(){pv=qo?new vu(null,void 0,{willReadFrequently:!0}).context:null}It.Object.defineProperties(qr.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&yn(this,a),this.na=a,this.start.Mc()&&(a===Xc?this.start=xr:a===nu&&(this.start=ur)),this.end.Mc()&&(a===Xc?this.end=Io:a===nu&&(this.end=ur)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&yn(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&yn(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&yn(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&yn(this,a),0>a&&ii(a,">= zero",qr,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&yn(this,a),0>a&&ii(a,">= zero",qr,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&yn(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&yn(this,a),this.cr=a,this.xe=null}}}),qr.prototype.isDark=qr.prototype.Gx,qr.prototype.darkenBy=qr.prototype.Wy,qr.prototype.lightenBy=qr.prototype.Vz,qr.prototype.addColorStop=qr.prototype.addColorStop;var gv=216/24389,mm=24389/27,Vf=[95.047,100,108.883],pv=null,bo=new tp,Hl=new tp,Us=new tp,kc=new tp,Wf=!1;qr.className="Brush";var vd;qr.Solid=vd=new en(qr,"Solid",0);var Xc;qr.Linear=Xc=new en(qr,"Linear",1);var nu;qr.Radial=nu=new en(qr,"Radial",2);var Zf;qr.Pattern=Zf=new en(qr,"Pattern",4);var Kf;qr.Lab=Kf=new en(qr,"Lab",5);var s1;qr.HSL=s1=new en(qr,"HSL",6),qr.randomColor=function(a,y){a===void 0&&(a=128),y===void 0&&(y=Math.max(a,255));var E=Math.abs(y-a);y=Math.floor(a+Math.random()*E).toString(16);var x=Math.floor(a+Math.random()*E).toString(16);return a=Math.floor(a+Math.random()*E).toString(16),2>y.length&&(y="0"+y),2>x.length&&(x="0"+x),2>a.length&&(a="0"+a),"#"+y+x+a},qr.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;Wf||(fv(),Wf=!0);var y=pv;if(y===null)return!0;y.fillStyle="#000000";var E=y.fillStyle;return y.fillStyle=a,y.fillStyle!==E?!0:(y.fillStyle="#FFFFFF",E=y.fillStyle,y.fillStyle=a,y.fillStyle!==E)},qr.lighten=function(a){return r1(a)},qr.lightenBy=r1,qr.darken=function(a){return o1(a)},qr.darkenBy=o1,qr.mix=lv,qr.isDark=Gf;function Na(){this.xa="Base"}Na.prototype.measure=function(){},Na.prototype.Yz=function(a,y,E,x,b){a.measure(y,E,x,b)},Na.prototype.arrange=function(){},Na.prototype.Ly=function(a,y,E,x,b,z){a.arrange(y,E,x,b,z)},Na.prototype.iA=function(a){a.Uj()},Na.prototype.gc=function(){},It.Object.defineProperties(Na.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return Vn}}}),Na.prototype.remeasureObject=Na.prototype.iA,Na.prototype.arrangeElement=Na.prototype.Ly,Na.prototype.measureElement=Na.prototype.Yz,Na.className="PanelLayout";function vm(){this.xa="Base"}Ut(vm,Na),vm.prototype.measure=function(a,y,E,x,b,z,ee){var re=x.length;a=Jc(a);for(var oe=0;oe<re;oe++){var ce=x[oe];if(ce.visible||ce===a){var he=ce.margin,ye=he.right+he.left;he=he.top+he.bottom,ce.measure(y,E,z,ee);var Te=ce.measuredBounds;ye=Math.max(Te.width+ye,0),he=Math.max(Te.height+he,0),Te=ce.position.x;var Ae=ce.position.y;isFinite(Te)||(Te=0),isFinite(Ae)||(Ae=0),ce instanceof pr&&ce.isGeometryPositioned&&(ce=ce.strokeWidth/2,Te-=ce,Ae-=ce),zo(b,Te,Ae,ye,he)}}},vm.prototype.arrange=function(a,y,E){var x=y.length,b=a.padding;for(a=E.x-b.left,E=E.y-b.top,b=0;b<x;b++){var z=y[b],ee=z.measuredBounds,re=z.margin,oe=z.position.x,ce=z.position.y;if(oe=isNaN(oe)?-a:oe-a,ce=isNaN(ce)?-E:ce-E,z instanceof pr&&z.isGeometryPositioned){var he=z.strokeWidth/2;oe-=he,ce-=he}z.visible&&z.arrange(oe+re.left,ce+re.top,ee.width,ee.height)}};function ym(){this.xa="Base"}Ut(ym,Na),ym.prototype.measure=function(a,y,E,x,b,z,ee){var re=x.length;y=Ni(),z=Jc(a);for(var oe=0;oe<re;oe++){var ce=x[oe];if(ce.visible||ce===z){var he=nl(ce,!1);if(he!==Dn&&he!==_i)y.push(ce);else{ce.measure(1/0,E,0,ee),he=ce.margin,ce=ce.measuredBounds;var ye=Math.max(ce.height+he.top+he.bottom,0);b.width+=Math.max(ce.width+he.right+he.left,0),b.height=Math.max(b.height,ye)}}}for(x=y.length,a.desiredSize.height?E=Math.min(a.desiredSize.height,a.maxSize.height):b.height!==0&&(E=Math.min(b.height,a.maxSize.height)),a=0;a<x;a++)oe=y[a],(oe.visible||oe===z)&&(he=oe.margin,re=he.right+he.left,he=he.top+he.bottom,oe.measure(1/0,E,0,ee),oe=oe.measuredBounds,he=Math.max(oe.height+he,0),b.width+=Math.max(oe.width+re,0),b.height=Math.max(b.height,he));hi(y)},ym.prototype.arrange=function(a,y,E){for(var x=y.length,b=a.padding,z=b.top,ee=a.isOpposite,re=ee?E.width:b.left,oe=0;oe<x;oe++){var ce=z,he=y[oe];if(he.visible){var ye=he.measuredBounds,Te=he.margin,Ae=Te.top+Te.bottom,ke=z+b.bottom,He=ye.height,dt=nl(he,!1);(isNaN(he.desiredSize.height)&&dt===Hn||dt===Wi)&&(He=Math.max(E.height-Ae-ke,0)),Ae=He+Ae+ke,ke=he.alignment,ke.Xb()&&(ke=a.defaultAlignment),ke.sb()||(ke=ur),ee&&(re-=ye.width+Te.left+Te.right),he.arrange(re+ke.offsetX+Te.left,ce+ke.offsetY+Te.top+(E.height*ke.y-Ae*ke.y),ye.width,He),ee||(re+=ye.width+Te.left+Te.right)}}};function Sm(){this.xa="Base"}Ut(Sm,Na),Sm.prototype.measure=function(a,y,E,x,b,z){var ee=x.length;E=Ni();for(var re=Jc(a),oe=0;oe<ee;oe++){var ce=x[oe];if(ce.visible||ce===re){var he=nl(ce,!1);if(he!==Dn&&he!==Wi)E.push(ce);else{var ye=ce.margin;he=ye.right+ye.left,ye=ye.top+ye.bottom,ce.measure(y,1/0,z,0),ce=ce.measuredBounds,ra(b,Math.max(b.width,Math.max(ce.width+he,0)),b.height+Math.max(ce.height+ye,0))}}}if(x=E.length,x!==0){for(a.desiredSize.width?y=Math.min(a.desiredSize.width,a.maxSize.width):b.width!==0&&(y=Math.min(b.width,a.maxSize.width)),a=0;a<x;a++)oe=E[a],(oe.visible||oe===re)&&(ce=oe.margin,ee=ce.right+ce.left,ce=ce.top+ce.bottom,oe.measure(y,1/0,z,0),oe=oe.measuredBounds,ce=Math.max(oe.height+ce,0),b.width=Math.max(b.width,Math.max(oe.width+ee,0)),b.height+=ce);hi(E)}},Sm.prototype.arrange=function(a,y,E){for(var x=y.length,b=a.padding,z=b.left,ee=a.isOpposite,re=ee?E.height:b.top,oe=0;oe<x;oe++){var ce=z,he=y[oe];if(he.visible){var ye=he.measuredBounds,Te=he.margin,Ae=Te.left+Te.right,ke=z+b.right,He=ye.width,dt=nl(he,!1);(isNaN(he.desiredSize.width)&&dt===Hn||dt===_i)&&(He=Math.max(E.width-Ae-ke,0)),Ae=He+Ae+ke,ke=he.alignment,ke.Xb()&&(ke=a.defaultAlignment),ke.sb()||(ke=ur),ee&&(re-=ye.height+Te.bottom+Te.top),he.arrange(ce+ke.offsetX+Te.left+(E.width*ke.x-Ae*ke.x),re+ke.offsetY+Te.top,He,ye.height),ee||(re+=ye.height+Te.bottom+Te.top)}}};function Em(){this.xa="Base"}Ut(Em,Na),Em.prototype.measure=function(a,y,E,x,b,z,ee){var re=x.length,oe=a.Pb(),ce=oe.margin,he=ce.right+ce.left,ye=ce.top+ce.bottom;oe.measure(y,E,z,ee);var Te=oe.measuredBounds;z=Te.width,ee=Te.height;var Ae=Math.max(z+he,0),ke=Math.max(ee+ye,0),He=a.isClipping,dt=hn.allocAt(-ce.left,-ce.top,Ae,ke),tt=hn.allocAt(0,0,z,ee);mv(oe,tt,!0),z=tt.width,ee=tt.height;for(var gt=!0,yt=Jc(a),bt=0;bt<re;bt++){var kt=x[bt];Te=y;var Kt=E;if(kt!==oe&&(kt.visible||kt===yt)){ce=kt.margin;var di=ce.left,Ai=ce.top;switch(Ae=ce.right+ce.left,ke=ce.top+ce.bottom,ce=nl(kt,!1),ce){case Hn:Te=z,Kt=ee,Ai=di=ke=Ae=0;break;case _i:Te=z,di=Ae=0;break;case Wi:Kt=ee,Ai=ke=0}kt.measure(Te,Kt,0,0),Te=kt.measuredBounds,Ae=Math.max(Te.width+Ae,0),ke=Math.max(Te.height+ke,0),ce=kt.alignment,ce.Xb()&&(ce=a.defaultAlignment),ce.sb()||(ce=ur);var xi=kt.alignmentFocus;if(xi.Xb()&&(xi=ur),Kt=null,kt instanceof Vn&&kt.$e!==""&&(Kt=kt.fb(kt.$e),Kt===kt&&(Kt=null)),di=tt.x-di,Ai=tt.y-Ai,Kt!==null){for(kt.arrange(0,0,Te.width,Te.height),Te=Kt.actualBounds,Te=lt.allocAt(Te.x+(xi.x*Te.width-xi.offsetX),Te.y+(xi.y*Te.height-xi.offsetY)),Kt=Kt.panel;Kt!==kt;)Kt.transform.Ga(Te),Kt=Kt.panel;di+=ce.x*z+ce.offsetX-Te.x,Ai+=ce.y*ee+ce.offsetY-Te.y,lt.free(Te)}else di+=ce.x*z+ce.offsetX-(xi.x*Te.width+xi.offsetX),Ai+=ce.y*ee+ce.offsetY-(xi.y*Te.height+xi.offsetY);gt?(gt=!1,b.h(di,Ai,Ae,ke)):zo(b,di,Ai,Ae,ke)}}switch(gt?b.assign(dt):He?b.Uu(tt.x,tt.y,tt.width,tt.height):zo(b,dt.x,dt.y,dt.width,dt.height),hn.free(dt),hn.free(tt),ce=oe.stretch,ce===sr&&(ce=nl(oe,!1)),ce){case Dn:return;case Hn:if(!isFinite(y)&&!isFinite(E))return;break;case _i:if(!isFinite(y))return;break;case Wi:if(!isFinite(E))return}for(Te=oe.measuredBounds,z=Te.width,ee=Te.height,Ae=Math.max(z+he,0),ke=Math.max(ee+ye,0),ce=oe.margin,tt=hn.allocAt(-ce.left,-ce.top,Ae,ke),mv(oe,tt,!0),z=tt.width,ee=tt.height,y=0;y<re;y++)E=x[y],E===oe||!E.visible&&E!==yt||(ce=E.margin,Ae=ce.right+ce.left,ke=ce.top+ce.bottom,Te=E.measuredBounds,Ae=Math.max(Te.width+Ae,0),ke=Math.max(Te.height+ke,0),he=E.alignment,he.Xb()&&(he=a.defaultAlignment),he.sb()||(he=ur),E=E.alignmentFocus,E.Xb()&&(E=ur),gt?(gt=!1,b.h(he.x*z+he.offsetX-(E.x*Te.width+E.offsetX)-ce.left,he.y*ee+he.offsetY-(E.y*Te.height+E.offsetY)-ce.top,Ae,ke)):zo(b,he.x*z+he.offsetX-(E.x*Te.width+E.offsetX)-ce.left,he.y*ee+he.offsetY-(E.y*Te.height+E.offsetY)-ce.top,Ae,ke));gt?b.assign(dt):He?b.Uu(tt.x,tt.y,tt.width,tt.height):zo(b,dt.x,dt.y,dt.width,dt.height),hn.free(tt)},Em.prototype.arrange=function(a,y,E){var x=y.length,b=a.Pb(),z=b.measuredBounds,ee=z.width,re=z.height,oe=a.padding;z=oe.left,oe=oe.top;var ce=z-E.x,he=oe-E.y;for(b.arrange(ce,he,ee,re),ee=hn.allocAt(0,0,ee,re),mv(b,ee,!1),re=0;re<x;re++){var ye=y[re];if(ye!==b){ce=ye.measuredBounds;var Te=ce.width,Ae=ce.height;he=ye.alignment,he.Xb()&&(he=a.defaultAlignment),he.sb()||(he=ur);var ke=ye.alignmentFocus;if(ke.Xb()&&(ke=ur),ce=null,ye instanceof Vn&&ye.$e!==""&&(ce=ye.fb(ye.$e),ce===ye&&(ce=null)),ce!==null){var He=ce.actualBounds;for(ke=lt.allocAt(He.x+(ke.x*He.width-ke.offsetX),He.y+(ke.y*He.height-ke.offsetY)),ce=ce.panel;ce!==ye;)ce.transform.Ga(ke),ce=ce.panel;ce=he.x*ee.width+he.offsetX-ke.x,he=he.y*ee.height+he.offsetY-ke.y,lt.free(ke)}else ce=he.x*ee.width+he.offsetX-(ke.x*Te+ke.offsetX),he=he.y*ee.height+he.offsetY-(ke.y*Ae+ke.offsetY);ce+=ee.x-E.x,he+=ee.y-E.y,ye.visible&&ye.arrange(z+ce,oe+he,Te,Ae)}}hn.free(ee)};function mv(a,y,E){var x=null;if(a instanceof Vn&&a.$e!==""&&(x=a.fb(a.$e),x===a&&(x=null)),x!==null)for(E&&a.arrange(0,0,y.width,y.height),y.assign(x.actualBounds),x=x.panel;x!==a;)x.transform.pp(y),x=x.panel}function xm(){this.xa="Base"}Ut(xm,Na),xm.prototype.measure=function(a,y,E,x,b,z,ee){var re=x.length,oe=a.Pb(),ce=oe.margin,he=y,ye=E,Te=ce.right+ce.left,Ae=ce.top+ce.bottom;oe.measure(y,E,z,ee),ce=oe.measuredBounds;var ke=0,He=null;oe instanceof pr&&(He=oe,ke=He.strokeWidth*He.scale);var dt=Math.max(ce.width+Te,0);ce=Math.max(ce.height+Ae,0);var tt=Ev(oe),gt=tt.x*dt+tt.offsetX;tt=tt.y*ce+tt.offsetY;var yt=xv(oe),bt=yt.x*dt+yt.offsetX;for(yt=yt.y*ce+yt.offsetY,isFinite(y)&&(he=Math.max(Math.abs(gt-bt)-ke,0)),isFinite(E)&&(ye=Math.max(Math.abs(tt-yt)-ke,0)),ke=ri.alloc(),ke.h(0,0),a=Jc(a),yt=0;yt<re;yt++)tt=x[yt],tt===oe||!tt.visible&&tt!==a||(ce=tt.margin,dt=ce.right+ce.left,gt=ce.top+ce.bottom,tt.measure(he,ye,0,0),ce=tt.measuredBounds,dt=Math.max(ce.width+dt,0),ce=Math.max(ce.height+gt,0),ke.h(Math.max(dt,ke.width),Math.max(ce,ke.height)));if(re===1)b.width=dt,b.height=ce,ri.free(ke);else{switch(tt=Ev(oe),yt=xv(oe),re=x=0,yt.x!==tt.x&&yt.y!==tt.y&&(x=ke.width/Math.abs(yt.x-tt.x),re=ke.height/Math.abs(yt.y-tt.y)),ri.free(ke),ke=0,He!==null&&(ke=He.strokeWidth*He.scale,Nv(He)===Ii&&(x=re=Math.max(x,re))),x+=Math.abs(tt.offsetX)+Math.abs(yt.offsetX)+ke,re+=Math.abs(tt.offsetY)+Math.abs(yt.offsetY)+ke,He=oe.stretch,He===sr&&(He=nl(oe,!1)),He){case Dn:ee=z=0;break;case Hn:isFinite(y)&&(x=y),isFinite(E)&&(re=E);break;case _i:isFinite(y)&&(x=y),ee=0;break;case Wi:z=0,isFinite(E)&&(re=E)}oe.Uj(),oe.measure(x,re,z,ee),b.width=oe.measuredBounds.width+Te,b.height=oe.measuredBounds.height+Ae}},xm.prototype.arrange=function(a,y){var E=y.length,x=a.Pb(),b=x.measuredBounds,z=hn.alloc();z.h(0,0,1,1);var ee=x.margin,re=ee.left;ee=ee.top;var oe=a.padding,ce=oe.left;oe=oe.top,x.arrange(ce+re,oe+ee,b.width,b.height);var he=Ev(x),ye=xv(x),Te=he.y*b.height+he.offsetY,Ae=ye.x*b.width+ye.offsetX;for(ye=ye.y*b.height+ye.offsetY,z.x=he.x*b.width+he.offsetX,z.y=Te,zo(z,Ae,ye,0,0),z.x+=re+ce,z.y+=ee+oe,b=0;b<E;b++)re=y[b],re!==x&&(ce=re.measuredBounds,ee=re.margin,oe=Math.max(ce.width+ee.right+ee.left,0),he=Math.max(ce.height+ee.top+ee.bottom,0),Te=re.alignment,Te.Xb()&&(Te=a.defaultAlignment),Te.sb()||(Te=ur),oe=z.width*Te.x+Te.offsetX-oe*Te.x+ee.left+z.x,ee=z.height*Te.y+Te.offsetY-he*Te.y+ee.top+z.y,re.visible&&(ca(z.x,z.y,z.width,z.height,oe,ee,ce.width,ce.height)?re.arrange(oe,ee,ce.width,ce.height):re.arrange(oe,ee,ce.width,ce.height,new hn(z.x,z.y,z.width,z.height))));hn.free(z)};function bm(){this.xa="Base",this.name="Table"}Ut(bm,Na),bm.prototype.measure=function(a,y,E,x,b){for(var z=x.length,ee=Ni(),re=Ni(),oe=0;oe<z;oe++){var ce=x[oe],he=ce instanceof Vn?ce:null;if(he!==null&&yd(he)&&ce.visible){re.push(he);for(var ye=he.O.s,Te=ye.length,Ae=0;Ae<Te;Ae++){var ke=ye[Ae];he.type===Vn.TableRow?ke.row=ce.row:he.type===Vn.TableColumn&&(ke.column=ce.column),ee.push(ke)}}else ee.push(ce)}z=ee.length,z===0&&(a.Fb(0),a.Eb(0));for(var He=[],dt=0;dt<z;dt++){var tt=ee[dt];tt.visible&&(ba(tt,!0),Lc(tt,!0),He[tt.row]||(He[tt.row]=[]),He[tt.row][tt.column]||(He[tt.row][tt.column]=[]),He[tt.row][tt.column].push(tt))}hi(ee);var gt=Ni(),yt=Ni(),bt=Ni(),kt={count:0},Kt={count:0},di=y,Ai=E,xi=a.rowDefs,Qn=a.colDefs,kn=null;z=xi.length;for(var rr=0;rr<z;rr++)kn=xi[rr],kn!==void 0&&(kn.actual=0);z=Qn.length;for(var qi=0;qi<z;qi++)kn=Qn[qi],kn!==void 0&&(kn.actual=0);for(var Gr=He.length,vo=0,Fa=0;Fa<Gr;Fa++)He[Fa]&&(vo=Math.max(vo,He[Fa].length));var Ua=Math.min(a.topIndex,Gr-1),Ls=Math.min(a.leftIndex,vo-1),Ba=0;Gr=He.length;for(var Md=Jc(a),fa=0;fa<Gr;fa++)if(He[fa]){vo=He[fa].length;var ec=a.Fb(fa);ec.actual=0;for(var Is=ec.oc=0;Is<vo;Is++)if(He[fa][Is]){var Pd=a.Eb(Is);gt[Is]===void 0&&(Pd.actual=0,Pd.oc=0,gt[Is]=!0);for(var Vl=He[fa][Is],xu=Vl.length,Ml=0;Ml<xu;Ml++){var gl=Vl[Ml];if(gl.visible||gl===Md){var ah=1<gl.rowSpan||1<gl.columnSpan;ah&&(fa<Ua||Is<Ls||yt.push(gl));var tc=gl.margin,vg=tc.right+tc.left,Pl=tc.top+tc.bottom,ks=Qu(gl,ec,Pd,!1),Hp=gl.desiredSize,Sf=!isNaN(Hp.height),vc=!isNaN(Hp.width)&&Sf;if(ah||ks===Dn||vc||fa<Ua||Is<Ls||(kt[Is]!==void 0||ks!==Hn&&ks!==_i||(kt[Is]=-1,kt.count++),Kt[fa]!==void 0||ks!==Hn&&ks!==Wi||(Kt[fa]=-1,Kt.count++),bt.push(gl)),gl.measure(1/0,1/0,0,0),!(fa<Ua||Is<Ls)){var pl=gl.measuredBounds,Uh=Math.max(pl.width+vg,0),Ll=Math.max(pl.height+Pl,0);if(gl.rowSpan===1&&(ks===Dn||ks===_i)){kn=a.Fb(fa);var sh=kn.Wc();Ba=Math.max(Ll-kn.actual,0),Ba+sh>Ai&&(Ba=Math.max(Ai-sh,0));var V0=kn.oa===0;kn.oc=kn.oc+Ba,kn.actual=kn.oa+Ba,Ai=Math.max(Ai-(Ba+(V0?sh:0)),0)}if(gl.columnSpan===1&&(ks===Dn||ks===Wi)){kn=a.Eb(Is);var Gp=kn.Wc();Ba=Math.max(Uh-kn.actual,0),Ba+Gp>di&&(Ba=Math.max(di-Gp,0));var Gy=kn.oa===0;kn.oc=kn.oc+Ba,kn.actual=kn.oa+Ba,di=Math.max(di-(Ba+(Gy?Gp:0)),0)}ah&&gl.Uj()}}}}}hi(gt);var Uc=0,ed=0;z=a.columnCount;for(var Ef=0;Ef<z;Ef++){var lh=Qn[Ef];lh!==void 0&&(Uc+=isNaN(lh.Hc)?lh.oc:lh.Hc,lh.oc!==0&&(Uc+=lh.Wc()))}z=a.rowCount;for(var yg=0;yg<z;yg++){var uh=xi[yg];uh!==void 0&&(ed+=isNaN(uh.Hc)?uh.oc:uh.Hc,uh.oc!==0&&(ed+=uh.Wc()))}di=Math.max(y-Uc,0);var Hc=Ai=Math.max(E-ed,0),Ld=di;z=bt.length;for(var ml=0;ml<z;ml++){var yc=bt[ml],W0=a.Fb(yc.row),td=a.Eb(yc.column),Sg=yc.measuredBounds,nc=yc.margin,Hh=nc.right+nc.left,Sc=nc.top+nc.bottom;kt[yc.column]=td.oc===0&&kt[yc.column]!==void 0?Math.max(Sg.width+Hh,kt[yc.column]):null,Kt[yc.row]=W0.oc===0&&Kt[yc.row]!==void 0?Math.max(Sg.height+Sc,Kt[yc.row]):null}var xf=0,Eg=0,zu;for(zu in Kt)zu!=="count"&&(xf+=Kt[zu]);for(zu in kt)zu!=="count"&&(Eg+=kt[zu]);for(var $a=ri.alloc(),Yp=0;Yp<z;Yp++){var Ks=bt[Yp];if(Ks.visible||Ks===Md){var ga=a.Fb(Ks.row),Qs=a.Eb(Ks.column),nd=0;isFinite(Qs.width)?nd=Qs.width:(isFinite(di)&&kt[Ks.column]!==null?Eg===0?nd=Qs.actual+di:nd=kt[Ks.column]/Eg*Ld:kt[Ks.column]!==null?nd=di:nd=Qs.actual||di,nd=Math.max(0,nd-Qs.Wc()));var Id=0;switch(isFinite(ga.height)?Id=ga.height:(isFinite(Ai)&&Kt[Ks.row]!==null?xf===0?Id=ga.actual+Ai:Id=Kt[Ks.row]/xf*Hc:Kt[Ks.row]!==null?Id=Ai:Id=ga.actual||Ai,Id=Math.max(0,Id-ga.Wc())),$a.h(Math.max(Qs.minimum,Math.min(nd,Qs.maximum)),Math.max(ga.minimum,Math.min(Id,ga.maximum))),ks=Qu(Ks,ga,Qs,!1),ks){case _i:$a.height=Math.max($a.height,ga.actual+Ai);break;case Wi:$a.width=Math.max($a.width,Qs.actual+di)}var Gh=Ks.margin,Yy=Gh.right+Gh.left,Z0=Gh.top+Gh.bottom;Ks.Uj(),Ks.measure($a.width,$a.height,Qs.minimum,ga.minimum);var xg=Ks.measuredBounds,Yh=Math.max(xg.width+Yy,0),bf=Math.max(xg.height+Z0,0);isFinite(di)&&(Yh=Math.min(Yh,$a.width)),isFinite(Ai)&&(bf=Math.min(bf,$a.height));var vl=0;vl=ga.actual,ga.actual=Math.max(ga.actual,bf),ga.oc=Math.max(ga.oc,bf),Ba=ga.actual-vl,Ai=Math.max(Ai-Ba,0),Kt[Ks.row]===null&&(Hc=Math.max(Hc-Ba,0)),vl=Qs.actual,Qs.actual=Math.max(Qs.actual,Yh),Qs.oc=Math.max(Qs.oc,Yh),Ba=Qs.actual-vl,di=Math.max(di-Ba,0),kt[Ks.column]===null&&(Ld=Math.max(Ld-Ba,0))}}hi(bt);var id=ri.alloc(),ic=Ni(),su=Ni();if(z=yt.length,z!==0){for(var ch=0;ch<Gr;ch++)if(He[ch]){vo=He[ch].length;var bg=a.Fb(ch);ic[ch]=bg.actual;for(var dh=0;dh<vo;dh++)if(He[ch][dh]){var K0=a.Eb(dh);su[dh]=K0.actual}}}for(var wg=0;wg<z;wg++){var ia=yt[wg];if(ia.visible||ia===Md){var Uu=a.Fb(ia.row),bu=a.Eb(ia.column);switch($a.h(Math.max(bu.minimum,Math.min(y,bu.maximum)),Math.max(Uu.minimum,Math.min(E,Uu.maximum))),ks=Qu(ia,Uu,bu,!1),ks){case Hn:su[bu.index]!==0&&($a.width=Math.min($a.width,su[bu.index])),ic[Uu.index]!==0&&($a.height=Math.min($a.height,ic[Uu.index]));break;case _i:su[bu.index]!==0&&($a.width=Math.min($a.width,su[bu.index]));break;case Wi:ic[Uu.index]!==0&&($a.height=Math.min($a.height,ic[Uu.index]))}isFinite(bu.width)&&($a.width=bu.width),isFinite(Uu.height)&&($a.height=Uu.height),id.h(0,0);for(var Q0=bu.minimum,Il=Uu.minimum,kd=1;kd<ia.rowSpan&&!(ia.row+kd>=a.rowCount);kd++)kn=a.Fb(ia.row+kd),Ba=0,Ba=ks===Hn||ks===Wi?Math.max(kn.minimum,ic[ia.row+kd]===0?kn.maximum:Math.min(ic[ia.row+kd],kn.maximum)):Math.max(kn.minimum,isNaN(kn.Hc)?kn.maximum:Math.min(kn.Hc,kn.maximum)),id.height+=Ba,Il+=kn.minimum;for(var wu=1;wu<ia.columnSpan&&!(ia.column+wu>=a.columnCount);wu++)kn=a.Eb(ia.column+wu),Ba=0,Ba=ks===Hn||ks===_i?Math.max(kn.minimum,su[ia.column+wu]===0?kn.maximum:Math.min(su[ia.column+wu],kn.maximum)):Math.max(kn.minimum,isNaN(kn.Hc)?kn.maximum:Math.min(kn.Hc,kn.maximum)),id.width+=Ba,Q0+=kn.minimum;$a.width+=id.width,$a.height+=id.height;var Tg=ia.margin,hh=Tg.right+Tg.left,Vp=Tg.top+Tg.bottom;ia.measure($a.width,$a.height,Q0,Il);for(var Ag=ia.measuredBounds,Ec=Math.max(Ag.width+hh,0),Vh=Math.max(Ag.height+Vp,0),fh=0,Cg=0;Cg<ia.rowSpan&&!(ia.row+Cg>=a.rowCount);Cg++)kn=a.Fb(ia.row+Cg),fh+=kn.total||0;if(fh<Vh){var Dd=Vh-fh,Gc=Vh-fh;if(ia.spanAllocation!==null)for(var Od=ia.spanAllocation,rd=0;rd<ia.rowSpan&&!(0>=Dd)&&!(ia.row+rd>=a.rowCount);rd++){kn=a.Fb(ia.row+rd);var Rd=kn.oa||0,Wh=Od(ia,kn,Gc);kn.actual=Math.min(kn.maximum,Rd+Wh),kn.oa!==Rd&&(Dd-=kn.oa-Rd)}for(;0<Dd;){var rc=kn.oa||0;if(isNaN(kn.height)&&kn.maximum>rc&&(kn.actual=Math.min(kn.maximum,rc+Dd),kn.oa!==rc&&(Dd-=kn.oa-rc)),kn.index===0)break;kn=a.Fb(kn.index-1)}}for(var wf=0,Fd=0;Fd<ia.columnSpan&&!(ia.column+Fd>=a.columnCount);Fd++)kn=a.Eb(ia.column+Fd),wf+=kn.total||0;if(wf<Ec){var Tf=Ec-wf,Vy=Ec-wf;if(ia.spanAllocation!==null)for(var od=ia.spanAllocation,Zh=0;Zh<ia.columnSpan&&!(0>=Tf)&&!(ia.column+Zh>=a.columnCount);Zh++){kn=a.Eb(ia.column+Zh);var Wp=kn.oa||0,Wy=od(ia,kn,Vy);kn.actual=Math.min(kn.maximum,Wp+Wy),kn.oa!==Wp&&(Tf-=kn.oa-Wp)}for(;0<Tf;){var X0=kn.oa||0;if(isNaN(kn.width)&&kn.maximum>X0&&(kn.actual=Math.min(kn.maximum,X0+Tf),kn.oa!==X0&&(Tf-=kn.oa-X0)),kn.index===0)break;kn=a.Eb(kn.index-1)}}}}hi(yt),ri.free(id),ri.free($a),ic!==void 0&&hi(ic),su!==void 0&&hi(su);var Af=0,Cf=0,J0=a.desiredSize,EE=a.maxSize;ks=nl(a,!0);var Zp=ed=Uc=0,Kp=0;z=a.columnCount;for(var q0=0;q0<z;q0++)Qn[q0]!==void 0&&(kn=a.Eb(q0),isFinite(kn.width)?(Zp+=kn.width,Zp+=kn.Wc()):km(kn)===op?(Zp+=kn.oa,Zp+=kn.Wc()):kn.oa!==0&&(Uc+=kn.oa,Uc+=kn.Wc()));isFinite(J0.width)?Af=Math.min(J0.width,EE.width):Af=ks!==Dn&&isFinite(y)?y:Uc,Af=Math.max(Af,a.minSize.width),Af=Math.max(Af-Zp,0);for(var sx=Uc===0?1:Math.max(Af/Uc,1),$0=0;$0<z;$0++)Qn[$0]!==void 0&&(kn=a.Eb($0),isFinite(kn.width)||km(kn)===op||(kn.actual=kn.oa*sx),kn.position=b.width,kn.oa!==0&&(b.width+=kn.oa,b.width+=kn.Wc()));z=a.rowCount;for(var ev=0;ev<z;ev++)xi[ev]!==void 0&&(kn=a.Fb(ev),isFinite(kn.height)?(Kp+=kn.height,Kp+=kn.Wc()):km(kn)===op?(Kp+=kn.oa,Kp+=kn.Wc()):kn.oa!==0&&(ed+=kn.oa,ed+=kn.Wc()));isFinite(J0.height)?Cf=Math.min(J0.height,EE.height):Cf=ks!==Dn&&isFinite(E)?E:ed,Cf=Math.max(Cf,a.minSize.height),Cf=Math.max(Cf-Kp,0);for(var lx=ed===0?1:Math.max(Cf/ed,1),tv=0;tv<z;tv++)xi[tv]!==void 0&&(kn=a.Fb(tv),isFinite(kn.height)||km(kn)===op||(kn.actual=kn.oa*lx),kn.position=b.height,kn.oa!==0&&(b.height+=kn.oa,b.height+=kn.Wc()));z=re.length;for(var Zy=0;Zy<z;Zy++){var Qp=re[Zy],Ky=0,Qy=0;Qp.type===Vn.TableRow?(Ky=b.width,kn=a.Fb(Qp.row),Qy=kn.actual):(kn=a.Eb(Qp.column),Ky=kn.actual,Qy=b.height),Qp.measuredBounds.h(0,0,Ky,Qy),ba(Qp,!1)}hi(re),a.inRowsCols=He},bm.prototype.arrange=function(a,y,E){var x=y.length,b=a.padding,z=b.left;b=b.top;var ee=a.inRowsCols;if(ee!==null){for(var re,oe,ce=ee.length,he=0,ye=0;ye<ce;ye++)ee[ye]&&(he=Math.max(he,ee[ye].length));oe=a.rowDefs,re=a.colDefs;var Te=ye=0,Ae=Math.min(a.topIndex,ce-1);if(0<oe.length){for(;Ae!==ce&&(oe[Ae]===void 0||oe[Ae].oa===0);)Ae++;Ae=Math.max(Math.min(Ae,ce-1),0),ye=-oe[Ae].position}var ke=Math.min(a.leftIndex,he-1);if(0<re.length){for(;ke!==he&&(re[ke]===void 0||re[ke].oa===0);)ke++;ke=Math.max(Math.min(ke,he-1),0),Te=-re[ke].position}for(var He=0,dt=0;He!==ce&&oe[He]===void 0;)He++;for(;dt!==ce&&re[dt]===void 0;)dt++;he=a.part,a.Fb(He),a.Eb(dt);for(var tt=0;tt<y.length;tt++){var gt=y[tt];if(gt instanceof Vn&&gt.visible&&yd(gt)){if(gt.type===Vn.TableRow){re=a.Fb(gt.row);var yt=a.Eb(dt)}else re=a.Fb(He),yt=a.Eb(gt.column);oe=re.position+ye+b,re.oa!==0&&(oe+=re.Io(Math.max(He,Ae))),re=yt.position+Te+z,yt.oa!==0&&(re+=yt.Io(Math.max(dt,ke))),yt=gt.measuredBounds,gt.Uk(),gt.actualBounds.ka();var bt=gt.actualBounds,kt=hn.allocAt(bt.x,bt.y,bt.width,bt.height);bt.x=gt.type===Vn.TableRow?z:re,bt.y=gt.type===Vn.TableColumn?b:oe,bt.width=yt.width,bt.height=yt.height,gt.actualBounds.freeze(),Lc(gt,!1),yl(kt,bt)||he===null||(he.oh(),gt.Pn(he)),hn.free(kt)}}for(tt=ri.alloc(),gt=0;gt<ce;gt++)if(ee[gt]){for(he=ee[gt].length,yt=a.Fb(gt),oe=yt.position+ye+b,yt.oa!==0&&(oe+=yt.Io(Math.max(He,Ae))),bt=0;bt<he;bt++)if(ee[gt][bt]){kt=a.Eb(bt),re=kt.position+Te+z,kt.oa!==0&&(re+=kt.Io(Math.max(dt,ke)));for(var Kt=ee[gt][bt],di=Kt.length,Ai=0;Ai<di;Ai++){var xi=Kt[Ai],Qn=xi.measuredBounds;tt.h(0,0);for(var kn=1;kn<xi.rowSpan&&!(gt+kn>=a.rowCount);kn++){var rr=a.Fb(gt+kn);rr.oa!==0&&(tt.height+=rr.total)}for(kn=1;kn<xi.columnSpan&&!(bt+kn>=a.columnCount);kn++)rr=a.Eb(bt+kn),rr.oa!==0&&(tt.width+=rr.total);var qi=kt.oa+tt.width,Gr=yt.oa+tt.height;kn=re,rr=oe;var vo=qi,Fa=Gr,Ua=re,Ls=oe,Ba=qi,Md=Gr;re+qi>E.width&&(Ba=Math.max(E.width-re,0)),oe+Gr>E.height&&(Md=Math.max(E.height-oe,0));var fa=xi.alignment;if(fa.Xb()){fa=a.defaultAlignment,fa.sb()||(fa=ur);var ec=fa.x,Is=fa.y,Pd=fa.offsetX;fa=fa.offsetY;var Vl=kt.alignment,xu=yt.alignment;Vl.sb()&&(ec=Vl.x,Pd=Vl.offsetX),xu.sb()&&(Is=xu.y,fa=xu.offsetY)}else ec=fa.x,Is=fa.y,Pd=fa.offsetX,fa=fa.offsetY;(isNaN(ec)||isNaN(Is))&&(Is=ec=.5,fa=Pd=0),Vl=Qn.width,xu=Qn.height;var Ml=xi.margin,gl=Ml.left+Ml.right,ah=Ml.top+Ml.bottom,tc=Qu(xi,yt,kt,!1);!isNaN(xi.desiredSize.width)||tc!==Hn&&tc!==_i||(Vl=Math.max(qi-gl,0)),!isNaN(xi.desiredSize.height)||tc!==Hn&&tc!==Wi||(xu=Math.max(Gr-ah,0)),qi=xi.maxSize,Gr=xi.minSize,Vl=Math.min(qi.width,Vl),xu=Math.min(qi.height,xu),Vl=Math.max(Gr.width,Vl),xu=Math.max(Gr.height,xu),qi=xu+ah,kn+=vo*ec-(Vl+gl)*ec+Pd+Ml.left,rr+=Fa*Is-qi*Is+fa+Ml.top,xi.visible&&(ca(Ua,Ls,Ba,Md,kn,rr,Qn.width,Qn.height)?xi.arrange(kn,rr,Vl,xu):xi.arrange(kn,rr,Vl,xu,new hn(Ua,Ls,Ba,Md)))}}}for(ri.free(tt),a=0;a<x;a++)E=y[a],z=E instanceof Vn?E:null,z!==null&&yd(z)&&(z=E.actualBounds,E.naturalBounds.ka(),E.naturalBounds.h(0,0,z.width,z.height),E.naturalBounds.freeze())}};function wm(){this.xa="Base"}Ut(wm,Na),wm.prototype.measure=function(){},wm.prototype.arrange=function(){};function Tm(){this.xa="Base"}Ut(Tm,Na),Tm.prototype.measure=function(){},Tm.prototype.arrange=function(){};function Am(){this.xa="Base"}Ut(Am,Na),Am.prototype.measure=function(a,y,E,x,b,z,ee){1<x.length&&pt("Viewbox Panel cannot contain more than one GraphObject."),x=x[0],x.Ca=1,x.Uj(),x.measure(1/0,1/0,z,ee);var re=x.measuredBounds,oe=x.margin,ce=oe.right+oe.left;if(oe=oe.top+oe.bottom,isFinite(y)||isFinite(E)){var he=x.scale,ye=re.width;re=re.height;var Te=Math.max(y-ce,0),Ae=Math.max(E-oe,0),ke=1;a.viewboxStretch===Ii?ye!==0&&re!==0&&(ke=Math.min(Te/ye,Ae/re)):ye!==0&&re!==0&&(ke=Math.max(Te/ye,Ae/re)),ke===0&&(ke=1e-4),x.Ca*=ke,he!==x.scale&&(ba(x,!0),x.measure(1/0,1/0,z,ee))}re=x.measuredBounds,b.width=isFinite(y)?y:Math.max(re.width+ce,0),b.height=isFinite(E)?E:Math.max(re.height+oe,0)},Am.prototype.arrange=function(a,y,E){y=y[0];var x=y.measuredBounds,b=y.margin,z=Math.max(x.width+(b.right+b.left),0);b=Math.max(x.height+(b.top+b.bottom),0);var ee=y.alignment;ee.Xb()&&(ee=a.defaultAlignment),ee.sb()||(ee=ur),y.arrange(E.width*ee.x-z*ee.x+ee.offsetX,E.height*ee.y-b*ee.y+ee.offsetY,x.width,x.height)};function np(){this.xa="Base"}Ut(np,Na),np.prototype.measure=function(){},np.prototype.arrange=function(){},np.prototype.gc=function(a,y,E){E=a.Df()*E.scale,0>=E&&(E=1);var x=a.gridCellSize,b=x.width;x=x.height;var z=a.naturalBounds,ee=a.actualBounds,re=z.width,oe=z.height,ce=Math.ceil(re/b),he=Math.ceil(oe/x),ye=a.gridOrigin,Te=ye.x;ye=ye.y,y.save(),y.beginPath(),y.rect(0,0,re,oe),y.clip(),y.Se();for(var Ae=[],ke=a.O.s,He=ke.length,dt=0;dt<He;dt++){var tt=ke[dt],gt=[];if(Ae.push(gt),tt.visible){var yt=tt.interval;if(!(0>yt)){tt=yv(tt.figure);for(var bt=0;bt<He;bt++)if(bt!==dt){var kt=ke[bt];kt.visible&&yv(kt.figure)===tt&&(kt=kt.interval,kt>yt&&gt.push(kt))}}}}for(ke=a.O.s,He=ke.length,dt=0;dt<He;dt++){var Kt=ke[dt];if(Kt.visible&&(gt=Kt.interval||1,tt=Math.abs(gt),!(2>b*tt*E))){if(yt=Kt.segmentIndex,(!isFinite(yt)||isNaN(yt))&&(yt=0),0>yt&&(yt=tt-Math.min(-yt,tt)),yt=Math.round(yt%tt),tt=Kt.opacity,bt=1,tt!==1){if(tt===0)continue;bt=y.globalAlpha,y.globalAlpha=bt*tt}kt=Ae[dt];var di=!1,Ai=Kt.strokeDashArray;if(Ai!==null&&(di=!0,y.js(Ai,Kt.strokeDashOffset)),Kt.figure==="LineV"&&Kt.stroke!==null&&0<Kt.strokeWidth){for(y.lineWidth=Kt.strokeWidth,ea(a,y,Kt.stroke,!1,!1,z,ee),y.beginPath(),Ai=Kt=Math.floor((Te-b)/b);Ai<=Kt+ce;Ai++){var xi=Ai*b+Te;0<=xi&&xi<=re&&Cm(Ai,gt,yt,kt)&&(y.moveTo(xi,0),y.lineTo(xi,oe))}y.stroke(),y.Se()}else if(Kt.figure==="LineH"&&Kt.stroke!==null&&0<Kt.strokeWidth){for(y.lineWidth=Kt.strokeWidth,ea(a,y,Kt.stroke,!1,!1,z,ee),y.beginPath(),Ai=Kt=Math.floor((ye-x)/x);Ai<=Kt+he;Ai++)xi=Ai*x+ye,0<=xi&&xi<=oe&&Cm(Ai,gt,yt,kt)&&(y.moveTo(0,xi),y.lineTo(re,xi));y.stroke(),y.Se()}else if(Kt.figure==="BarV"&&Kt.fill!==null)for(ea(a,y,Kt.fill,!0,!1,z,ee),Kt=Kt.width,isNaN(Kt)&&(Kt=b),xi=Ai=Math.floor((Te-b)/b);xi<=Ai+ce;xi++){var Qn=xi*b+Te;0<=Qn+Kt&&Qn<=re&&Cm(xi,gt,yt,kt)&&y.fillRect(Qn,0,Kt,oe)}else if(Kt.figure==="BarH"&&Kt.fill!==null)for(ea(a,y,Kt.fill,!0,!1,z,ee),Kt=Kt.height,isNaN(Kt)&&(Kt=x),xi=Ai=Math.floor((ye-x)/x);xi<=Ai+he;xi++)Qn=xi*x+ye,0<=Qn+Kt&&Qn<=oe&&Cm(xi,gt,yt,kt)&&y.fillRect(0,Qn,re,Kt);di&&y.fs(),tt!==1&&(y.globalAlpha=bt)}}y.restore(),y.Vc(!1)};function Cm(a,y,E,x){if(0>y)return a%y===E;if(a%y!==E)return!1;y=x.length;for(var b=0;b<y;b++)if(a%x[b]===E)return!1;return!0}function Nm(){this.xa="Base"}Ut(Nm,Na),Nm.prototype.measure=function(a,y,E,x,b){var z=x.length;if(a instanceof Ur||a instanceof Xn){var ee=null,re=null;if(a instanceof Xn&&(ee=a),a instanceof Ur&&(re=a,ee=re.adornedPart,a.j===null&&(a.j=[])),ee instanceof Xn){var oe=ee;if(z===0)ra(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var ce=a instanceof Ur?null:ee.path;y=ee.routeBounds,E=a.jg,E.h(0,0,y.width,y.height);var he=oe.points,ye=ee.pointsCount;re!==null?re.Ul(!1):ee!==null&&ee.Ul(!1),re=y.width;var Te=y.height,Ae=a.j;if(Ae.length=0,ce!==null){l1(a,re,Te,ce);var ke=ce.measuredBounds;E.ed(ke),Ae.push(ke)}ke=ir.alloc();for(var He=lt.alloc(),dt=lt.alloc(),tt=0;tt<z;tt++){var gt=x[tt];if(gt!==ce)if(gt.isPanelMain&&gt instanceof pr){l1(a,re,Te,gt);var yt=gt.measuredBounds;E.ed(yt),Ae.push(yt)}else if(2>ye)gt.measure(1/0,1/0,0,0),yt=gt.measuredBounds,E.ed(yt),Ae.push(yt);else{var bt=gt.segmentIndex,kt=gt.segmentFraction,Kt=gt.alignmentFocus;Kt.Mc()&&(Kt=ur);var di=gt.segmentOrientation,Ai=gt.segmentOffset;if(isNaN(bt)){var xi=oe.ua;yt=Ni(),xi.Qu(kt,yt);var Qn=lt.allocAt(yt[0],yt[1]);if(Qn.add(oe.i(0)),xi.type===Kn.j?Qn.offset(-xi.startX,-xi.startY):(xi=xi.figures.first(),xi!==null&&Qn.offset(-xi.startX,-xi.startY)),xi=yt[2],di!==Gs){var kn=oe.computeAngle(gt,di,xi);gt.Kb=kn}kn=Qn.x-y.x;var rr=Qn.y-y.y;lt.free(Qn),hi(yt)}else if(bt<-ye||bt>=ye)yt=lt.alloc(),oe.vg(),oe.computeMidPoint(yt),xi=oe.midAngle,di!==Gs&&(kn=oe.computeAngle(gt,di,xi),gt.Kb=kn),kn=yt.x-y.x,rr=yt.y-y.y,lt.free(yt);else{if(kn=0,0<=bt?(rr=he.M(bt),yt=bt<ye-1?he.M(bt+1):rr):(kn=ye+bt,rr=he.M(kn),yt=0<kn?he.M(kn-1):rr),rr.Xa(yt)){0<=bt?(xi=0<bt?he.M(bt-1):rr,kn=bt<ye-2?he.M(bt+2):yt):(xi=kn<ye-1?he.M(kn+1):rr,kn=1<kn?he.M(kn-2):yt),Qn=xi.Bf(rr);var qi=yt.Bf(kn);xi=Qn>qi+10?0<=bt?xi.ab(rr):rr.ab(xi):qi>Qn+10?0<=bt?yt.ab(kn):kn.ab(yt):0<=bt?xi.ab(kn):kn.ab(xi)}else xi=0<=bt?rr.ab(yt):yt.ab(rr);di!==Gs&&(kn=oe.computeAngle(gt,di,xi),gt.Kb=kn),kn=rr.x+(yt.x-rr.x)*kt-y.x,rr=rr.y+(yt.y-rr.y)*kt-y.y}gt.measure(1/0,1/0,0,0),yt=gt.measuredBounds,Qn=gt.naturalBounds;var Gr=0;gt instanceof pr&&(Gr=gt.strokeWidth),qi=Qn.width+Gr;var vo=Qn.height+Gr;ke.reset(),ke.translate(-yt.x,-yt.y),ke.scale(gt.scale,gt.scale),ke.rotate(di===Gs?gt.angle:xi,qi/2,vo/2),di!==pp&&di!==vp||ke.rotate(90,qi/2,vo/2),di!==mp&&di!==yp||ke.rotate(-90,qi/2,vo/2),di===i0&&(45<xi&&135>xi||225<xi&&315>xi)&&ke.rotate(-xi,qi/2,vo/2),Qn=new hn(0,0,qi,vo),He.xi(Qn,Kt),ke.Ga(He),Kt=-He.x+Gr/2*gt.scale,gt=-He.y+Gr/2*gt.scale,dt.assign(Ai),Gr=isNaN(Ai.x);var Fa=isNaN(Ai.y);if(Gr||Fa){qi=qi/2+3,vo=vo/2+3;var Ua=45<=xi&&135>=xi,Ls=225<=xi&&315>=xi;di===Gs&&(Ua||Ls)?(dt.x=Fa?qi:Ai.y,dt.y=Gr?vo:Ai.x,Ua?0<=bt||isNaN(bt)&&.5>kt||!Gr||(dt.y=-vo):Ls&&((0<=bt||isNaN(bt)&&.5>kt)&&Gr&&(dt.y=-vo),Fa&&(dt.x=-qi))):(Gr&&(dt.x=0<=bt||isNaN(bt)&&.5>kt?qi:-qi),Fa&&(dt.y=-vo),dt.rotate(xi))}else dt.rotate(xi);kn+=dt.x,rr+=dt.y,Qn.set(yt),Qn.h(kn+Kt,rr+gt,yt.width,yt.height),Ae.push(Qn),E.ed(Qn)}}if(ee!==null)for(x=ee.labelNodes;x.next();)x.value.measure(1/0,1/0);a.jg=E,a.position.h(y.x+E.x,y.y+E.y),ra(b,E.width||0,E.height||0),ir.free(ke),lt.free(He),lt.free(dt)}}}},Nm.prototype.arrange=function(a,y){var E=y.length;if(a instanceof Ur||a instanceof Xn){var x=a,b=null;a instanceof Ur&&(b=a,x=b.adornedPart);var z=a instanceof Ur?null:x.path,ee=a.j;if(ee.length!==0){var re=0;if(z!==null&&re<ee.length){var oe=ee[re];re++,z.arrange(oe.x-a.jg.x,oe.y-a.jg.y,oe.width,oe.height)}for(oe=0;oe<E;oe++){var ce=y[oe];if(ce!==z&&re<ee.length){var he=ee[re];re++,ce.arrange(he.x-a.jg.x,he.y-a.jg.y,he.width,he.height)}}}if(y=x.points,E=y.count,2<=E&&a instanceof Xn)for(z=a.labelNodes;z.next();){var ye=a;ee=z.value,re=ee.segmentIndex,oe=ee.segmentFraction;var Te=ee.alignmentFocus;if(ce=ee.segmentOrientation,he=ee.segmentOffset,isNaN(re)){var Ae=ye.ua,ke=Ni();Ae.Qu(oe,ke);var He=lt.allocAt(ke[0],ke[1]);He.add(ye.i(0)),Ae.type===Kn.j||(Ae=Ae.figures.first()),He.offset(-Ae.startX,-Ae.startY),Ae=ke[2],ce!==Gs&&(ye=ye.computeAngle(ee,ce,Ae),ee.angle=ye),ye=He.x;var dt=He.y;lt.free(He),hi(ke)}else if(re<-E||re>=E)ke=lt.alloc(),Ae=ye,dt=ke,Ae.vg(),Ae.computeMidPoint(dt),Ae=ye.midAngle,ce!==Gs&&(ye=ye.computeAngle(ee,ce,Ae),ee.angle=ye),ye=ke.x,dt=ke.y,lt.free(ke);else{if(He=0,0<=re?(ke=y.s[re],dt=re<E-1?y.s[re+1]:ke):(He=E+re,ke=y.s[He],dt=0<He?y.s[He-1]:ke),ke.Xa(dt)){0<=re?(Ae=0<re?y.s[re-1]:ke,He=re<E-2?y.s[re+2]:dt):(Ae=He<E-1?y.s[He+1]:ke,He=1<He?y.s[He-2]:dt);var tt=Ae.Bf(ke),gt=dt.Bf(He);Ae=tt>gt+10?0<=re?Ae.ab(ke):ke.ab(Ae):gt>tt+10?0<=re?dt.ab(He):He.ab(dt):0<=re?Ae.ab(He):He.ab(Ae)}else Ae=0<=re?ke.ab(dt):dt.ab(ke);ce!==Gs&&(ye=ye.computeAngle(ee,ce,Ae),ee.angle=ye),ye=ke.x+(dt.x-ke.x)*oe,dt=ke.y+(dt.y-ke.y)*oe}if(Te.ys())ee.location=new lt(ye,dt);else{Te.Mc()&&(Te=ur),ke=ir.alloc(),ke.reset(),ke.scale(ee.scale,ee.scale),ke.rotate(ee.angle,0,0);var yt=ee.naturalBounds;He=hn.allocAt(0,0,yt.width,yt.height),tt=lt.alloc(),tt.xi(He,Te),ke.Ga(tt),Te=-tt.x,gt=-tt.y;var bt=yt.width,kt=yt.height;yt=lt.alloc(),yt.assign(he);var Kt=isNaN(he.x),di=isNaN(he.y);if(Kt||di){bt=bt/2+3,kt=kt/2+3;var Ai=45<=Ae&&135>=Ae,xi=225<=Ae&&315>=Ae;ce===Gs&&(Ai||xi)?(yt.x=di?bt:he.y,yt.y=Kt?kt:he.x,Ai?0<=re||isNaN(re)&&.5>oe||!Kt||(yt.y=-kt):xi&&((0<=re||isNaN(re)&&.5>oe)&&Kt&&(yt.y=-kt),di&&(yt.x=-bt))):(Kt&&(yt.x=0<=re||isNaN(re)&&.5>oe?bt:-bt),di&&(yt.y=-kt),yt.rotate(Ae))}else yt.rotate(Ae);ye+=yt.x,dt+=yt.y,ke.pp(He),Te+=He.x,gt+=He.y,re=lt.allocAt(ye+Te,dt+gt),ee.move(re),lt.free(re),lt.free(yt),lt.free(tt),hn.free(He),ir.free(ke)}}b!==null?b.Ul(!1):x.Ul(!1),x=B1(a),a.location.h(a.position.x+x.x,a.position.y+x.y),lt.free(x)}};function l1(a,y,E,x){if(Ul(x)!==!1){var b=x.strokeWidth;b===0&&a instanceof Ur&&a.type===Vn.Link&&a.adornedObject instanceof pr&&(b=a.adornedObject.strokeWidth),b*=x.Ca,a instanceof Xn&&a.ua!==null?(a=a.geometry.bounds,x.Ge(a.x-b/2,a.y-b/2,a.width+b,a.height+b)):a instanceof Ur&&a.adornedPart.ua!==null?(a=a.adornedPart.ua.bounds,x.Ge(a.x-b/2,a.y-b/2,a.width+b,a.height+b)):x.Ge(-(b/2),-(b/2),y+b,E+b),b=x.desiredSize,b.w()||x.ua===null?x.dc.h(0,0,b.width,b.height):x.dc.assign(x.ua.bounds),ba(x,!1)}}function ip(){this.xa="Base"}Ut(ip,Na),ip.prototype.measure=function(a,y,E,x,b,z,ee){var re=a.Pb();a.graduatedBounds=[];var oe=re.margin,ce=oe.right+oe.left,he=oe.top+oe.bottom;re.measure(y,E,z,ee);var ye=re.measuredBounds,Te=new hn(-oe.left,-oe.top,Math.max(ye.width+ce,0),Math.max(ye.height+he,0));a.graduatedBounds.push(Te),b.assign(Te);for(var Ae=re.geometry,ke=re.strokeWidth,He=Ae.flattenedSegments,dt=Ae.flattenedLengths,tt=Ae.flattenedTotalLength,gt=He.length,yt=0,bt=0,kt=Ni(),Kt=0;Kt<gt;Kt++){var di=He[Kt],Ai=[];bt=yt=0;for(var xi=di.length,Qn=0;Qn<xi;Qn+=2){var kn=di[Qn],rr=di[Qn+1];if(Qn!==0){var qi=180*Math.atan2(rr-bt,kn-yt)/Math.PI;0>qi&&(qi+=360),Ai.push(qi)}yt=kn,bt=rr}kt.push(Ai)}if(a.graduatedIntervals===null){for(var Gr=[],vo=a.O.s,Fa=vo.length,Ua=0;Ua<Fa;Ua++){var Ls=vo[Ua],Ba=[];if(Gr.push(Ba),Ls.visible){var Md=Ls.interval;if(!(0>Md)){for(var fa=0;fa<Fa;fa++)if(fa!==Ua){var ec=vo[fa];if(ec.visible&&Ls.constructor===ec.constructor){var Is=ec.interval;Is>Md&&Ba.push(Is)}}}}}a.graduatedIntervals=Gr}var Pd=a.graduatedIntervals,Vl=a.O.s,xu=Vl.length,Ml=0,gl=0,ah=tt;a.graduatedMarks=[];for(var tc,vg=0;vg<xu;vg++){var Pl=Vl[vg];if(tc=[],Pl.visible&&Pl!==re){var ks=Math.abs(Pl.interval),Hp=a.graduatedTickUnit;if(!(2>Hp*ks*tt/a.graduatedRange&&Pl.graduatedSkip===null)){var Sf=dt[0][0],vc=0,pl=0;gl=tt*Pl.graduatedStart-1e-4,ah=tt*Pl.graduatedEnd+1e-4;var Uh=Hp*ks,Ll=a.graduatedTickBase;if(Ll<a.graduatedMin){var sh=(a.graduatedMin-Ll)/Uh;sh=sh%1===0?sh:Math.floor(sh+1),Ll+=sh*Uh}else Ll>a.graduatedMin+Uh&&(Ll-=Math.floor((Ll-a.graduatedMin)/Uh)*Uh);for(var V0=Pd[vg],Gp=Ll,Gy=1e-6*a.graduatedMax,Uc=1;Ll<=a.graduatedMax+Gy;Uc++){e:{for(var ed=V0.length,Ef=0;Ef<ed;Ef++){var lh=(Ll-a.graduatedTickBase)%(V0[Ef]*a.graduatedTickUnit),yg=1e-6*a.graduatedTickUnit;if(lh<yg&&lh>-yg){var uh=!1;break e}}uh=!0}if(uh&&(Ll>a.graduatedMax&&(Ll=a.graduatedMax),Pl.graduatedSkip===null||Pl instanceof So&&!Pl.graduatedSkip(Ll,Pl)||Pl instanceof pr&&!Pl.graduatedSkip(Ll,Pl))&&(Ml=(Ll-a.graduatedMin)*tt/a.graduatedRange,Ml>tt&&(Ml=tt),gl<=Ml&&Ml<=ah)){for(var Hc=kt[vc][pl],Ld=dt[vc][pl];vc<dt.length;){for(;Ml>Sf&&pl<dt[vc].length-1;)pl++,Hc=kt[vc][pl],Ld=dt[vc][pl],Sf+=Ld;if(Ml<=Sf)break;vc++,pl=0,Hc=kt[vc][pl],Ld=dt[vc][pl],Sf+=Ld}var ml=He[vc],yc=ml[2*pl],W0=ml[2*pl+1],td=(Ml-(Sf-Ld))/Ld,Sg=new lt(yc+(ml[2*pl+2]-yc)*td+ke/2-Ae.bounds.x,W0+(ml[2*pl+3]-W0)*td+ke/2-Ae.bounds.y);Sg.scale(re.scale,re.scale);e:{var nc=Hc,Hh=kt[vc];if(!(.5005>td&&.4995<td)){var Sc=nc;if(.5>td?0<pl?Sc=Hh[pl-1]:Bt.$(ml[0],ml[ml.length-2])&&Bt.$(ml[1],ml[ml.length-1])&&(Sc=Hh[Hh.length-1]):.5<td&&(pl+1<Hh.length?Sc=Hh[pl+1]:Bt.$(ml[0],ml[ml.length-2])&&Bt.$(ml[1],ml[ml.length-1])&&(Sc=Hh[0])),nc!==Sc){var xf=Math.abs(nc-Sc);if(180<xf&&(nc<Sc?nc+=360:Sc+=360,xf=Math.abs(nc-Sc)),5e-4>td||.9995<td){Hc=(nc+Sc)/2%360;break e}if(10>xf){var Eg=1-Math.abs(.5-td);Hc=(nc*Eg+Sc*(1-Eg))%360;break e}}}Hc=nc}if(Pl instanceof So){var zu="";Pl.graduatedFunction!==null?(zu=Pl.graduatedFunction(Ll,Pl),zu=zu!=null?zu.toString():""):zu=(+Ll.toFixed(2)).toString(),zu!==""&&tc.push({$l:Sg,angle:Hc,text:zu})}else tc.push({$l:Sg,angle:Hc})}Ll=Gp+Uc*Uh}}}a.graduatedMarks.push(tc)}hi(kt);var $a=a.graduatedMarks;if($a!==null)for(var Yp=x.length,Ks=0;Ks<Yp;Ks++){var ga=x[Ks],Qs=$a[Ks];if(ga.visible&&ga!==re&&Qs.length!==0){if(ga instanceof pr){var nd=a,Id=b,Gh=ga.alignmentFocus;Gh.Mc()&&(Gh=xr);var Yy=ga.angle;ga.Kb=0,ga.measure(1/0,1/0,0,0),ga.Kb=Yy;var Z0=ga.measuredBounds,xg=Z0.width,Yh=Z0.height,bf=hn.allocAt(0,0,xg,Yh),vl=lt.alloc();vl.xi(bf,Gh),hn.free(bf);for(var id=-vl.x,ic=-vl.y,su=new hn,ch=Qs.length,bg=0;bg<ch;bg++)for(var dh=Qs[bg],K0=dh.$l.x,wg=dh.$l.y,ia=dh.angle,Uu=0;4>Uu;Uu++){switch(Uu){case 0:vl.h(id,ic);break;case 1:vl.h(id+xg,ic);break;case 2:vl.h(id,ic+Yh);break;case 3:vl.h(id+xg,ic+Yh)}vl.rotate(ia+ga.angle),vl.offset(K0,wg),bg===0&&Uu===0?su.h(vl.x,vl.y,0,0):su.Ye(vl),vl.offset(-K0,-wg),vl.rotate(-ia-ga.angle)}lt.free(vl),nd.graduatedBounds!==null&&nd.graduatedBounds.push(su),zo(Id,su.x,su.y,su.width,su.height)}else if(ga instanceof So){var bu=a,Q0=b;bu.temporaryTextBlock===null&&(bu.temporaryTextBlock=new So);var Il=bu.temporaryTextBlock;w1(Il,ga);var kd=ga.alignmentFocus;kd.Mc()&&(kd=xr);for(var wu=ga.segmentOrientation,Tg=ga.segmentOffset,hh=new hn,Vp=0,Ag=0,Ec=0,Vh=0,fh=0,Cg=Qs.length,Dd=0;Dd<Cg;Dd++){var Gc=Qs[Dd];Vp=Gc.$l.x,Ag=Gc.$l.y,Ec=Gc.angle,fh=Vh=ga.angle,wu!==Gs&&(fh=wu===gp||wu===n0?Ec+ga.angle:Ec,Vh=Xn.computeAngle(wu,fh)),Il.Kb=Vh,Il.text=Gc.text||"",Il.measure(1/0,1/0,0,0);var Od=Il.measuredBounds,rd=Il.naturalBounds,Rd=rd.width,Wh=rd.height,rc=ir.alloc();rc.reset(),rc.translate(-Od.x,-Od.y),rc.scale(Il.scale,Il.scale),rc.rotate(fh,Rd/2,Wh/2),wu!==pp&&wu!==vp||rc.rotate(90,Rd/2,Wh/2),wu!==mp&&wu!==yp||rc.rotate(-90,Rd/2,Wh/2),wu===i0&&(45<Ec&&135>Ec||225<Ec&&315>Ec)&&rc.rotate(-Ec,Rd/2,Wh/2);var wf=hn.allocAt(0,0,Rd,Wh),Fd=lt.alloc();Fd.xi(wf,kd),rc.Ga(Fd);var Tf=-Fd.x,Vy=-Fd.y,od=lt.alloc();od.assign(Tg),isNaN(od.x)&&(od.x=Rd/2+3),isNaN(od.y)&&(od.y=-(Wh/2+3)),od.rotate(Ec),Vp+=od.x+Tf,Ag+=od.y+Vy;var Zh=new hn(Vp,Ag,Od.width,Od.height),Wp=new hn(Od.x,Od.y,Od.width,Od.height),Wy=new hn(rd.x,rd.y,rd.width,rd.height);Gc.Sz=Vh,Gc.lineCount=Il.lineCount,Gc.lines=[Il.Cb,Il.Ih,Il.df,Il.Le,Il.Qc,Il.Qb,Il.ze],Gc.actualBounds=Zh,Gc.measuredBounds=Wp,Gc.naturalBounds=Wy,Dd===0?hh.assign(Zh):hh.ed(Zh),lt.free(od),lt.free(Fd),hn.free(wf),ir.free(rc)}bu.graduatedBounds!==null&&bu.graduatedBounds.push(hh),zo(Q0,hh.x,hh.y,hh.width,hh.height)}ba(ga,!1)}}},ip.prototype.arrange=function(a,y,E){if(a.graduatedBounds!==null){var x=a.Pb(),b=a.graduatedMarks;if(b!==null){var z=a.graduatedBounds,ee=0,re=z[ee];ee++,x!==null&&x.arrange(re.x-E.x,re.y-E.y,re.width,re.height);for(var oe=y.length,ce=0;ce<oe;ce++){var he=y[ce];re=b[ce],he.visible&&he!==x&&re.length!==0&&(re=z[ee],ee++,he.arrange(re.x-E.x,re.y-E.y,re.width,re.height))}a.graduatedBounds=null}}},ip.prototype.gc=function(a,y,E){var x=E.$i;E.$i=!0;var b=a.naturalBounds,z=b.width,ee=b.height;b=y instanceof Al,y.save(),y.beginPath(),y.rect(-1,-1,z+1,ee+1),y.clip(),y.Se(),z=a.Pb(),z.gc(y,E),ee=a.Df()*E.scale,0>=ee&&(ee=1);for(var re=z.actualBounds,oe=a.O.s,ce=a.graduatedMarks,he=oe.length,ye=0;ye<he;ye++){var Te=oe[ye],Ae=ce[ye],ke=Ae.length;if(Te.visible&&Te!==z&&Ae.length!==0){if(Te instanceof pr){if(!(2>a.graduatedTickUnit*Te.interval*z.geometry.flattenedTotalLength/a.graduatedRange*ee&&Te.graduatedSkip===null)){var He=Te.measuredBounds,dt=Te.strokeWidth*Te.scale,tt=Te.alignmentFocus;tt.Mc()&&(tt=xr);for(var gt=0;gt<ke;gt++){var yt=Ae[gt].$l,bt=Ae[gt].angle,kt=tt,Kt=Te.Ab;Kt.reset(),Kt.translate(yt.x+re.x,yt.y+re.y),Kt.rotate(bt+Te.angle,0,0),Kt.translate(-He.width*kt.x+kt.offsetX+dt/2,-He.height*kt.y+kt.offsetY+dt/2),Kt.scale(Te.scale,Te.scale),mu(Te,!1),Te.wh.set(Te.Ab),Te.Kk=Te.scale,eu(Te,!1),Te.gc(y,E),b&&(a.svg.appendChild(Te.svg),Te.svg=null),Te.Ab.reset()}}}else if(Te instanceof So)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new So),He=a.temporaryTextBlock,w1(He,Te),dt=0;dt<ke;dt++)tt=Ae[dt],tt.actualBounds&&tt.measuredBounds&&tt.naturalBounds&&(He.ec=tt.text||"",He.Kb=tt.Sz||0,He.Gc=tt.lineCount||0,gt=tt.lines,gt!==void 0&&(He.Cb=gt[0],He.Ih=gt[1],He.df=gt[2],He.Le=gt[3],He.Qc=gt[4],He.Qb=gt[5],He.ze=gt[6]),tt.naturalBounds&&(He.dc=tt.naturalBounds),tt.actualBounds&&(gt=tt.actualBounds,He.arrange(gt.x,gt.y,gt.width,gt.height)),gt=tt.actualBounds,He.arrange(gt.x,gt.y,gt.width,gt.height),yt=tt.measuredBounds,tt=tt.naturalBounds,bt=He.Ab,bt.reset(),bt.translate(gt.x+re.x,gt.y+re.y),bt.translate(-yt.x,-yt.y),He.no(bt,tt.x,tt.y,tt.width,tt.height),mu(He,!1),He.wh.set(He.Ab),He.Kk=He.scale,eu(He,!1),He.Ng=Te.part,He.Me=Te.panel,He.gc(y,E),He.Me=null,He.Ng=null,b&&(a.svg.appendChild(He.svg),He.svg=null))}}E.$i=x,y.restore(),y.Vc(!0)};function Vn(a,y){if(Dt.call(this),this.na=null,a===void 0)this.na=Vn.Position;else if(typeof a=="string"){var E=Ou.I(a);E!==null&&(this.na=E)}else a instanceof Na?this.na=a:a&&(this.na=Vn.Position,y=a);this.na===null&&pt("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===Vn.Grid?1048576:0),this.O=new Fn,this.yb=is,this.Tm=Ca,this.Uf=sr,this.$g=null,this.$e="",this.jg=new hn(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=Ii,this.jn=Ao,this.kn=Go,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}Ut(Vn,Dt),Vn.prototype.cloneProtected=function(a){Dt.prototype.cloneProtected.call(this,a),a.na=this.na,a.yb=this.yb.J(),a.Tm=this.Tm.J(),a.Uf=this.Uf,a.$e=this.$e,a.jg.assign(this.jg),this.T!==null&&(a.T=this.T.copy(a)),a.xo=this.xo,a.jn=this.jn.J(),a.kn=this.kn.J(),this.ra!==null&&(a.ra=this.ra.copy()),a.ub=this.ub,a.zn=this.zn,a.Hh=this.Hh},Vn.prototype.Af=function(a){Dt.prototype.Af.call(this,a),a.O=this.O;for(var y=a.O.s,E=y.length,x=0;x<E;x++)y[x].Me=a;a.$g=null},Vn.prototype.copy=function(){var a=Dt.prototype.copy.call(this);if(a!==null){for(var y=this.O.s,E=y.length,x=0;x<E;x++){var b=y[x].copy();b.wi(a),b.Ng=null;var z=a.O,ee=z.count;if(z.Gb(ee,b),z=a.part,z!==null){z.Rh=null,b.portId!==null&&z instanceof pi&&(z.Te=!0);var re=a.diagram;re!==null&&re.undoManager.isUndoingRedoing||z.cb(Xo,"elements",a,null,b,null,ee)}}return a}return null},Ce=Vn.prototype,Ce.toString=function(){return"Panel("+this.type.name+")#"+Tr(this)},Ce.Pn=function(a){Dt.prototype.Pn.call(this,a);for(var y=this.O.s,E=y.length,x=0;x<E;x++)y[x].Pn(a)},Ce.hh=function(a,y){if(this.na===Vn.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===Vn.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===Vn.Table)if(a.yc(),a instanceof Al){var E=a.yd;a.yd=gm(a,"gojs-ts"),vv(this,a),a.nh.pop(),a.yd=E}else vv(this,a);(E=this.isClipping&&this.na===Vn.Spot)&&a.save();for(var x=this.Pb(),b=this.O.s,z=b.length,ee=0;ee<z;ee++){var re=b[ee];E&&re===x&&(a.clipInsteadOfFill=!0),re.gc(a,y),E&&re===x&&(a.clipInsteadOfFill=!1)}E&&(a.restore(),a.Vc(!0))}};function vv(a,y){y.lineCap="butt";var E=0<a.rowCount?a.rowDefs:null,x=0<a.columnCount?a.colDefs:null;E!==null&&Mm(a,y,!0,E,!0),x!==null&&Mm(a,y,!1,x,!0),E!==null&&u1(a,y,!0,E),x!==null&&u1(a,y,!1,x),E!==null&&Mm(a,y,!0,E,!1),x!==null&&Mm(a,y,!1,x,!1)}function u1(a,y,E,x){for(var b=x.length,z=a.actualBounds,ee=a.naturalBounds,re=!0,oe=0;oe<b;oe++){var ce=x[oe];if(ce!==void 0&&ce.actual!==0)if(re)re=!1;else{if(E){if(ce.position>ee.height)continue}else if(ce.position>ee.width)continue;var he=ce.separatorStrokeWidth;isNaN(he)&&(he=E?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var ye=ce.separatorStroke;if(ye===null&&(ye=E?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),he!==0&&ye!==null){ea(a,y,ye,!1,!1,ee,z),ye=!1;var Te=ce.separatorDashArray;Te===null&&(Te=E?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),Te!==null&&(ye=!0,y.js(Te,0)),y.beginPath(),Te=ce.position+he,E?Te>ee.height&&(he-=Te-ee.height):Te>ee.width&&(he-=Te-ee.width),ce=ce.position+he/2,y.lineWidth=he,he=a.yb,E?(ce+=he.top,Te=ee.width-he.right,y.moveTo(he.left,ce),y.lineTo(Te,ce)):(ce+=he.left,Te=ee.height-he.bottom,y.moveTo(ce,he.top),y.lineTo(ce,Te)),y.stroke(),y.Se(),ye&&y.fs()}}}}function Mm(a,y,E,x,b){for(var z=x.length,ee=a.actualBounds,re=a.naturalBounds,oe=c1(a,!0),ce=c1(a,!1),he=0;he<z;he++){var ye=x[he];if(ye!==void 0&&ye.background!==null&&ye.coversSeparators!==b&&ye.actual!==0){var Te=E?ee.height:ee.width;if(!(ye.position>Te)){var Ae=ye.Wc(),ke=ye.separatorStrokeWidth;isNaN(ke)&&(ke=E?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var He=ye.separatorStroke;He===null&&(He=E?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(He===null||ye.index===(E?oe:ce))&&(ke=0),Ae-=ke,ke=ye.position+ke,Ae+=ye.actual,ke+Ae>Te&&(Ae=Te-ke),0>=Ae||(Te=a.yb,ea(a,y,ye.background,!0,!1,re,ee),E?y.fillRect(Te.left,ke+Te.top,ee.width-(Te.left+Te.right),Ae):y.fillRect(ke+Te.left,Te.top,Ae,ee.height-(Te.top+Te.bottom)))}}}}function c1(a,y){for(var E=y?a.rowCount:a.columnCount,x=0;x<E;x++){var b=y?a.rowDefs[x]:a.colDefs[x];if(b!==void 0)return b.index}return 0}function yv(a){return a==="LineV"||a==="BarV"}Ce.lv=function(){for(var a=this.O.s,y=a.length,E=0;E<y;E++)a[E].lv();this.Uc=!0},Ce.kk=function(a,y,E){if(!Dt.prototype.kk.call(this,a,y,E))return!1;if(this.type===Vn.Table)E=this.svg.getElementsByClassName("gojs-ts"),E=E.length!==0?E[0]:null,E!==null&&(E.innerHTML=""),a.yd=E,vv(this,a),a.yd=null;else if(this.na===Vn.Grid||this.na===Vn.Graduated)return this.svg.innerHTML="",this.svg.remove(),!1;E=this.O.s;for(var x=E.length,b=0;b<x;b++)E[b].gc(a,y);return!0},Ce.nk=function(){return!0},Ce.$o=function(a,y,E,x){if(!this.isClipping)if(this.Dd()&&a.bk!==null){a=a.bk,y=this.O.s;for(var b=0,z=0,ee=0;ee<y.length;ee++)if(y[ee].Ed()){var re=y[ee].actualBounds;b=ee===0?re.x:Math.min(re.x,b),z=ee===0?re.y:Math.min(re.y,z)}x.setAttributeNS(null,"clip-path","path('M "+(a.x-E.x-b)+","+(a.y-E.y-z)+" l "+a.width+" 0 l 0 "+a.height+" l -"+a.width+" 0 z')")}else Dt.prototype.$o.call(this,a,y,E,x)},Ce.Sj=function(a,y,E,x,b){var z=this.se(),ee=this.transform,re=1/(ee.m11*ee.m22-ee.m12*ee.m21),oe=ee.m22*re,ce=-ee.m12*re,he=-ee.m21*re,ye=ee.m11*re,Te=re*(ee.m21*ee.dy-ee.m22*ee.dx),Ae=re*(ee.m12*ee.dx-ee.m11*ee.dy);if(this.areaBackground!==null)return ee=this.actualBounds,Bt.Ff(ee.left,ee.top,ee.right,ee.bottom,a,y,E,x,b);if(this.background!==null)return z=a*oe+y*he+Te,re=a*ce+y*ye+Ae,a=E*oe+x*he+Te,oe=E*ce+x*ye+Ae,b.h(0,0),E=this.naturalBounds,z=Bt.Ff(0,0,E.width,E.height,z,re,a,oe,b),b.transform(ee),z;z||(oe=1,he=ce=0,ye=1,Ae=Te=0),re=a*oe+y*he+Te,a=a*ce+y*ye+Ae,oe=E*oe+x*he+Te,E=E*ce+x*ye+Ae,b.h(oe,E),x=(oe-re)*(oe-re)+(E-a)*(E-a),ce=!1,ye=this.O.s,Ae=ye.length,he=lt.alloc(),Te=null,y=1/0;var ke=null,He=this.isClipping&&this.na===Vn.Spot;He&&(ke=lt.alloc(),Te=this.Pb(),(ce=Te.Sj(re,a,oe,E,ke))&&(y=(re-ke.x)*(re-ke.x)+(a-ke.y)*(a-ke.y)));for(var dt=0;dt<Ae;dt++){var tt=ye[dt];tt.visible&&tt!==Te&&tt.Sj(re,a,oe,E,he)&&(ce=!0,tt=(re-he.x)*(re-he.x)+(a-he.y)*(a-he.y),tt<x&&(x=tt,b.set(he)))}return He&&(y>x&&b.set(ke),lt.free(ke)),lt.free(he),z&&b.transform(ee),ce},Ce.Gj=function(){for(var a=this.O.s,y=a.length,E=0;E<y;E++)a[E].Gj();Dt.prototype.Gj.call(this)},Ce.v=function(a){if(!Ul(this)){Dt.prototype.v.call(this,a),a=null,(this.na===Vn.Auto||this.na===Vn.Link)&&(a=this.Pb());for(var y=this.O.s,E=y.length,x=0;x<E;x++){var b=y[x];if((b===a||b.isPanelMain)&&b.v(!0),!b.desiredSize.w()){var z=nl(b,!1);(b instanceof Hs||b instanceof Vn||b instanceof So||z!==Dn)&&b.v(!0)}}}},Ce.Uj=function(){if(!Ul(this)){ba(this,!0),Lc(this,!0);for(var a=this.O.s,y=a.length,E=0;E<y;E++)a[E].Uj()}},Ce.Uk=function(){if(!(this.l&2048)){mu(this,!0),eu(this,!0);for(var a=this.O.s,y=a.length,E=0;E<y;E++)a[E].Wu()}},Ce.Wu=function(){eu(this,!0);for(var a=this.O.s,y=a.length,E=0;E<y;E++)a[E].Wu()},Ce.Wl=function(a,y,E,x){var b=this.jg;b.h(0,0,0,0);var z=this.desiredSize,ee=this.minSize;E===void 0&&(E=ee.width,x=ee.height),E=Math.max(E,ee.width),x=Math.max(x,ee.height);var re=this.maxSize;isNaN(z.width)||(a=Math.min(z.width,re.width)),isNaN(z.height)||(y=Math.min(z.height,re.height)),a=Math.max(E,a),y=Math.max(x,y);var oe=this.yb;a=Math.max(a-oe.left-oe.right,0),y=Math.max(y-oe.top-oe.bottom,0);var ce=this.O.s;ce.length!==0&&this.na.measure(this,a,y,ce,b,E,x),a=b.width+oe.left+oe.right,oe=b.height+oe.top+oe.bottom,isFinite(z.width)&&(a=z.width),isFinite(z.height)&&(oe=z.height),a=Math.min(re.width,a),oe=Math.min(re.height,oe),a=Math.max(ee.width,a),oe=Math.max(ee.height,oe),a=Math.max(E,a),oe=Math.max(x,oe),ra(b,a,oe),ra(this.naturalBounds,a,oe),this.Ge(0,0,a,oe)},Ce.Pb=function(){if(this.$g===null){var a=this.O.s,y=a.length;if(y===0)return null;for(var E=0;E<y;E++){var x=a[E];if(x.isPanelMain===!0)return this.$g=x}this.$g=a[0]}return this.$g};function Jc(a){return a.part!==null?a.part.locationObject:null}Ce.eh=function(a,y,E,x){var b=this.O.s;if(this.actualBounds.h(a,y,E,x),b.length!==0){if(!this.desiredSize.w()){a=nl(this,!0);var z=this.measuredBounds;y=z.width,z=z.height;var ee=this.Kg,re=ee.left+ee.right;switch(ee=ee.top+ee.bottom,y===E&&z===x&&(a=Dn),a){case Dn:(y>E||z>x)&&(this.v(),this.measure(y>E?E:y,z>x?x:z,0,0));break;case Hn:this.v(!0),this.measure(E+re,x+ee,0,0);break;case _i:this.v(!0),this.measure(E+re,z+ee,0,0);break;case Wi:this.v(!0),this.measure(y+re,x+ee,0,0)}}this.na.arrange(this,b,this.jg)}},Ce.gh=function(a){var y=this.naturalBounds,E=Jc(this);if(ca(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var x=y.length,b=lt.allocAt(0,0);x--;){var z=y[x];if((z.visible||z===E)&&(Ar(b.set(a),z.transform),z.ca(b)))return lt.free(b),!0}return lt.free(b),!(this.Ma===null&&this.areaBackground===null)}return!1},Ce.ks=function(a){if(this.bindingId===a)return this;for(var y=this.O.s,E=y.length,x=0;x<E;x++){var b=y[x].ks(a);if(b!==null)return b}return null},Ce.qm=function(a,y){if(y(this,a),a instanceof Vn){a=a.O.s;for(var E=a.length,x=0;x<E;x++)this.qm(a[x],y)}};function Dh(a,y){d1(a,a,y)}function d1(a,y,E){E(y),y=y.O.s;for(var x=y.length,b=0;b<x;b++){var z=y[b];z instanceof Vn&&d1(a,z,E)}}function NE(a,y){h1(a,a,y)}function h1(a,y,E){if(E(y),y instanceof Vn){y=y.O.s;for(var x=y.length,b=0;b<x;b++)h1(a,y[b],E)}}Ce.Nl=function(a){return f1(this,this,a)};function f1(a,y,E){if(E(y))return y;if(y instanceof Vn){y=y.O.s;for(var x=y.length,b=0;b<x;b++){var z=f1(a,y[b],E);if(z!==null)return z}}return null}Ce.fb=function(a){if(this.name===a)return this;var y=this.O.s,E=y.length;this.Hh===null&&this.itemTemplateMap===null||(E=rp(this));for(var x=0;x<E;x++){var b=y[x];if(b instanceof Vn){var z=b.fb(a);if(z!==null)return z}if(b.name===a)return b}return null};function g1(a){a=a.O.s;for(var y=a.length,E=0,x=0;x<y;x++){var b=a[x];b instanceof Vn?E=Math.max(E,g1(b)):b instanceof pr&&(E=Math.max(E,b.ig/2*b.strokeMiterLimit*b.Df()))}return E}Ce.se=function(){return!(this.type===Vn.TableRow||this.type===Vn.TableColumn)};function yd(a){return a.type===Vn.TableRow||a.type===Vn.TableColumn}Ce.ic=function(a,y,E){if(this.pickable===!1||(y===void 0&&(y=null),E===void 0&&(E=null),zs(this)))return null;var x=this.naturalBounds,b=1/this.Df(),z=this.se(),ee=z?a:Ar(lt.allocAt(a.x,a.y),this.transform),re=this.diagram,oe=10,ce=5;if(re!==null&&(oe=re.Ql("extraTouchArea"),ce=oe/2),ca(-(ce*b),-(ce*b),x.width+oe*b,x.height+oe*b,ee.x,ee.y)){if(!this.isAtomic){b=this.O.s;var he=b.length;if(re=lt.alloc(),ce=(oe=this.isClipping&&this.na===Vn.Spot)?this.Pb():null,oe&&(ce.se()?Ar(re.set(a),ce.transform):re.set(a),!ce.ca(re)))return lt.free(re),z||lt.free(ee),null;for(var ye=Jc(this);he--;){var Te=b[he];if((Te.visible||Te===ye)&&(Te.se()?Ar(re.set(a),Te.transform):re.set(a),!oe||Te!==ce)){var Ae=null;if(Te instanceof Vn?Ae=Te.ic(re,y,E):Te.pickable===!0&&Te.ca(re)&&(Ae=Te),Ae!==null&&(y!==null&&(Ae=y(Ae)),Ae!==null&&(E===null||E(Ae))))return lt.free(re),z||lt.free(ee),Ae}}lt.free(re)}return this.background===null&&this.areaBackground===null?(z||lt.free(ee),null):(a=ca(0,0,x.width,x.height,ee.x,ee.y)?this:null,z||lt.free(ee),a)}return z||lt.free(ee),null},Ce.ji=function(a,y,E,x){if(this.pickable===!1)return!1;y===void 0&&(y=null),E===void 0&&(E=null);var b=this.naturalBounds,z=this.se(),ee=z?a:Ar(lt.allocAt(a.x,a.y),this.transform);if(b=ca(0,0,b.width,b.height,ee.x,ee.y),yd(this)||b){if(!this.isAtomic){for(var re=this.O.s,oe=re.length,ce=lt.alloc(),he=Jc(this);oe--;){var ye=re[oe];if(ye.visible||ye===he){ye.se()?Ar(ce.set(a),ye.transform):ce.set(a);var Te=ye;ye=ye instanceof Vn?ye:null,(ye!==null?ye.ji(ce,y,E,x):Te.ca(ce))&&Te.pickable!==!1&&(y!==null&&(Te=y(Te)),Te===null||E!==null&&!E(Te)||x.add(Te))}}lt.free(ce)}return z||lt.free(ee),b&&(this.background!==null||this.areaBackground!==null)}return z||lt.free(ee),!1},Ce.Cf=function(a,y,E,x,b,z){if(this.pickable===!1)return!1;y===void 0&&(y=null),E===void 0&&(E=null);var ee=z;if(z===void 0&&(ee=ir.alloc(),ee.reset()),ee.multiply(this.transform),this.fh(a,ee))return Sv(this,y,E,b),z===void 0&&ir.free(ee),!0;if(this.Yc(a,ee)){if(!this.isAtomic)for(var re=Jc(this),oe=this.O.s,ce=oe.length;ce--;){var he=oe[ce];if(he.visible||he===re){var ye=he.actualBounds,Te=this.naturalBounds;ye.x>Te.width||ye.y>Te.height||0>ye.x+ye.width||0>ye.y+ye.height||(ye=he,he=he instanceof Vn?he:null,Te=ir.alloc(),Te.set(ee),(he!==null?he.Cf(a,y,E,x,b,Te):Ra(ye,a,x,Te))&&(y!==null&&(ye=y(ye)),ye===null||E!==null&&!E(ye)||b.add(ye)),ir.free(Te))}}return z===void 0&&ir.free(ee),x}return z===void 0&&ir.free(ee),!1};function Sv(a,y,E,x){for(var b=a.O.s,z=b.length;z--;){var ee=b[z];if(ee.visible){var re=ee.actualBounds,oe=a.naturalBounds;re.x>oe.width||re.y>oe.height||0>re.x+re.width||0>re.y+re.height||(ee instanceof Vn&&Sv(ee,y,E,x),y!==null&&(ee=y(ee)),ee===null||E!==null&&!E(ee)||x.add(ee))}}}Ce.og=function(a,y,E,x,b,z){if(this.pickable===!1)return!1;E===void 0&&(E=null),x===void 0&&(x=null);var ee=this.naturalBounds,re=this.se(),oe=re?a:Ar(lt.allocAt(a.x,a.y),this.transform),ce=re?y:Ar(lt.allocAt(y.x,y.y),this.transform),he=oe.Bf(ce),ye=0<oe.x&&oe.x<ee.width&&0<oe.y&&oe.y<ee.height||kr(oe.x,oe.y,0,0,0,ee.height)<=he||kr(oe.x,oe.y,0,ee.height,ee.width,ee.height)<=he||kr(oe.x,oe.y,ee.width,ee.height,ee.width,0)<=he||kr(oe.x,oe.y,ee.width,0,0,0)<=he;if(ee=oe.zd(0,0)<=he&&oe.zd(0,ee.height)<=he&&oe.zd(ee.width,0)<=he&&oe.zd(ee.width,ee.height)<=he,re||(lt.free(oe),lt.free(ce)),ye){if(!this.isAtomic){oe=lt.alloc(),ce=lt.alloc(),he=Jc(this);for(var Te=this.O.s,Ae=Te.length;Ae--;){var ke=Te[Ae];if(ke.visible||ke===he){var He=ke.actualBounds,dt=this.naturalBounds;(!re||!(He.x>dt.width||He.y>dt.height||0>He.x+He.width||0>He.y+He.height))&&(ke.se()?(He=ke.transform,Ar(oe.set(a),He),Ar(ce.set(y),He)):(oe.set(a),ce.set(y)),He=ke,ke=ke instanceof Vn?ke:null,(ke!==null?ke.og(oe,ce,E,x,b,z):He.tx(oe,ce,b))&&(E!==null&&(He=E(He)),He===null||x!==null&&!x(He)||z.add(He)))}}lt.free(oe),lt.free(ce)}return b?ye:ee}return!1};function Ev(a){var y=null;return a instanceof pr&&(y=a.spot1,y===Ca&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=Ki),y}function xv(a){var y=null;return a instanceof pr&&(y=a.spot2,y===Ca&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=Wo),y}Ce.add=function(a){for(var y=[],E=0;E<arguments.length;++E)y[E]=arguments[E];for(E=0;E<y.length;E++)this.Gb(this.O.count,y[E]);return this},Ce.M=function(a){return this.O.M(a)},Ce.Gb=function(a,y){y instanceof Ui&&pt("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&pt("Cannot make a Panel contain itself: "+this.toString()),pt("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var E=y.panel;if(E!==null&&E!==this&&pt("Cannot add a GraphObject that already belongs to another Panel to this Panel: "+y.toString()+", already contained by "+E.toString()+", cannot be shared by this Panel: "+this.toString()),this.na!==Vn.Grid||y instanceof pr||pt("Can only add Shapes to a Grid Panel, not: "+y),this.na!==Vn.Graduated||y instanceof pr||y instanceof So||pt("Can only add Shapes or TextBlocks to a Graduated Panel, not: "+y),y.wi(this),y.Ng=null,this.itemArray!==null){var x=y.data;x!==null&&typeof x=="object"&&(this.ge===null&&(this.ge=new zi),this.ge.add(x,y))}var b=this.O;if(x=-1,E===this){for(var z=-1,ee=this.O.s,re=ee.length,oe=0;oe<re;oe++)if(ee[oe]===y){z=oe;break}if(z!==-1){if(z===a||z+1>=b.count&&a>=b.count)return;b.mb(z),x=z}else pt("element "+y.toString()+" has panel "+E.toString()+" but is not contained by it.")}(0>a||a>b.count)&&(a=b.count),b.Gb(a,y),(a===0||y.isPanelMain)&&(this.$g=null),Ul(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof Vn&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||Lm(this,y,!1),E=this.part,E!==null&&(E.Rh=null,E.ag=NaN,this.Te&&E instanceof pi&&(E.Te=!0),E.Te&&E instanceof pi&&(E.wc=null),b=this.diagram,b!==null&&b.undoManager.isUndoingRedoing||(x!==-1&&E.cb($o,"elements",this,y,null,x,null),E.cb(Xo,"elements",this,null,y,null,a)))};function bv(a,y){a.l=y?a.l|16777216:a.l&-16777217}Ce.remove=function(a){for(var y=this.O.s,E=y.length,x=-1,b=0;b<E;b++)if(y[b]===a){x=b;break}x!==-1&&this.pc(x,!0)},Ce.mb=function(a){0<=a&&this.pc(a,!0)},Ce.pc=function(a,y){var E=this.O,x=E.M(a);if(x.Ng=null,x.wi(null),this.ge!==null){var b=x.data;typeof b=="object"&&this.ge.remove(b)}E.mb(a),ba(this,!1),this.v(),this.$g===x&&(this.$g=null),this.graduatedIntervals=null;var z=this.part;z!==null&&(z.Rh=null,z.ag=NaN,z.Wb(),z instanceof pi&&(x instanceof Vn?x.qm(x,function(ee,re){Vv(z,re,y)}):Vv(z,x,y)),E=this.diagram,E!==null&&E.undoManager.isUndoingRedoing||z.cb($o,"elements",this,x,null,a,null))},Ce.Fb=function(a){0>a&&ii(a,">= 0",Vn,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var E=new wa;E.wi(this),E.isRow=!0,E.index=a,y[a]=E,this.cb(Xo,"rowdefs",this,null,E,null,a)}return y[a]},Ce.oA=function(a){if(0>a&&ii(a,">= 0",Vn,"removeRowDefinition:idx"),this.rowCount!==0){a=Math.round(a);var y=this.rowDefs,E=y[a];if(E){y[a]=void 0;for(var x=y.length-1;0<=x&&y[x--]===void 0;)y.length--;this.cb($o,"rowdefs",this,E,null,a,null),this.v()}}};function p1(a,y,E){var x=a.rowDefs;if(!(0>y)){if(x[y]=E instanceof wa?E:void 0,!E)for(y=x.length-1;0<=y&&x[y--]===void 0;)x.length--;a.v()}}Ce.Eb=function(a){0>a&&ii(a,">= 0",Vn,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var E=new wa;E.wi(this),E.isRow=!1,E.index=a,y[a]=E,this.cb(Xo,"coldefs",this,null,E,null,a)}return y[a]},Ce.jA=function(a){if(0>a&&ii(a,">= 0",Vn,"removeColumnDefinition:idx"),this.columnCount!==0){a=Math.round(a);var y=this.colDefs,E=y[a];if(E){y[a]=void 0;for(var x=y.length-1;0<=x&&y[x--]===void 0;)y.length--;this.cb($o,"coldefs",this,E,null,a,null),this.v()}}};function m1(a,y,E){var x=a.colDefs;if(!(0>y)){if(x[y]=E instanceof wa?E:void 0,!E)for(y=x.length-1;0<=y&&x[y--]===void 0;)x.length--;a.v()}}Ce.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&Im(y,a),this},Ce.Hy=function(a,y){return(a=this.Fb(a))&&Im(a,new wa(y)),this},Ce.By=function(a,y){return(a=this.Eb(a))&&Im(a,new wa(y)),this},Ce.nz=function(a){if(0>a||this.type!==Vn.Table||this.rowCount===0)return-1;for(var y=0,E=this.rowDefs,x=E.length,b=this.topIndex;b<x;b++){var z=E[b];if(z!==void 0&&(y+=z.total,a<y))break}return b},Ce.fz=function(a){if(0>a||this.type!==Vn.Table||this.columnCount===0)return-1;for(var y=0,E=this.colDefs,x=E.length,b=this.leftIndex;b<x;b++){var z=E[b];if(z!==void 0&&(y+=z.total,a<y))break}return b},Ce.Fz=function(a,y){if(y===void 0&&(y=new lt(NaN,NaN)),this.type!==Vn.Graduated)return y.h(NaN,NaN),y;a=Math.min(Math.max(a,this.graduatedMin),this.graduatedMax);var E=this.Pb();return E.geometry.Pu((a-this.graduatedMin)/this.graduatedRange,y),E.transform.Ga(y)},Ce.Gz=function(a){if(this.type!==Vn.Graduated)return NaN;var y=this.Pb();return y.transform.Cd(a),y.geometry.xx(a)*this.graduatedRange+this.graduatedMin};function v1(a){return a=a.allBindings,a!==null&&a._isFrozen}function yu(a){var y=a.allBindings;if(y===null)a.data!==null&&pt("Template cannot have .data be non-null: "+a),a.allBindings=y=new Fn;else if(y._isFrozen)return;var E=new Fn;bv(a,!1),a.qm(a,function(ce,he){he.th();var ye=he.localBindings;if(ye!==null)for(rf(he,!1),ye=ye.iterator;ye.next();){var Te=ye.value;Te.mode===Cp&&rf(he,!0);var Ae=Te.sourceName;Ae!==null&&(Ae==="/"&&bv(ce,!0),Ae=kS(Te,ce,he),Ae!==null&&(E.add(Ae),Ae.srcBindings===null&&(Ae.srcBindings=new Fn),Ae.srcBindings.add(Te))),y.add(Te)}if(he instanceof Vn&&he.type===Vn.Table){if(0<he.rowCount){for(ce=he.rowDefs,ye=ce.length,Te=0;Te<ye;Te++)if(Ae=ce[Te],Ae!==void 0&&Ae.be!==null)for(var ke=Ae.be.iterator;ke.next();){var He=ke.value;He.xd=Ae,He.to=2,He.wl=Ae.index,y.add(He)}}if(0<he.columnCount){for(he=he.colDefs,ce=he.length,ye=0;ye<ce;ye++)if(Te=he[ye],Te!==void 0&&Te.be!==null)for(Ae=Te.be.iterator;Ae.next();)ke=Ae.value,ke.xd=Te,ke.to=1,ke.wl=Te.index,y.add(ke)}}});for(var x=E.iterator;x.next();){var b=x.value;if(b.srcBindings!==null){rf(b,!0);for(var z=b.srcBindings.iterator;z.next();){var ee=z.value;b.localBindings===null&&(b.localBindings=new Fn),b.localBindings.add(ee)}}b.srcBindings=null}for(x=y.iterator;x.next();)if(b=x.value,z=b.xd,z!==null){b.xd=null;var re=b.targetProperty,oe=re.indexOf(".");0<oe&&z instanceof Vn&&(ee=re.substring(0,oe),re=re.substr(oe+1),oe=z.fb(ee),oe!==null?(z=oe,b.targetProperty=re):Ti('Warning: unable to find GraphObject named "'+ee+'" for Binding: '+b.toString())),z instanceof wa?(ee=Tr(z.panel),b.Ai=ee===void 0?-1:ee,z.panel.bindingId=b.Ai):z instanceof Dt?(ee=Tr(z),b.Ai=ee===void 0?-1:ee,z.bindingId=b.Ai):pt("Unknown type of binding target: "+z)}y.freeze(),a instanceof Ui&&a.Zc()&&a.Va()}Ce.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return NE(y,function(E){E instanceof Vn&&(E.allBindings=null,E.ub=null);var x=E.localBindings;x!==null&&(E.localBindings=null,x.each(function(b){E.bind(b.copy())})),x=E.animationTriggers,x!==null&&(E.animationTriggers=null,x.each(function(b){E.Jv(b.value.copy())}))}),a&&yu(y),y},Ce.La=function(a){var y=this.allBindings;if(y!==null)for(a===void 0&&(a=""),y=y.iterator;y.next();){var E=y.value,x=E.sourceProperty;if((a===""||x===""||x===a)&&(x=E.targetProperty,E.converter!==null||x!=="")){x=this.data;var b=E.sourceName;if(b!==null){if(b==="")x=this;else if(b==="/")x=this;else if(b===".")x=this;else if(b==="..")x=this;else if(x=this.fb(b),x===null)continue}else if(E.isToModel)if(x=this.diagram,x!==null)x=x.model.modelData;else continue;var z=this,ee=E.Ai;if(ee!==-1){if(z=this.ks(ee),z===null)continue}else E.xd!==null&&(z=E.xd);if(b==="/"?x=z.part:b==="."?x=z:b===".."&&(x=z.panel),b=E.to,b!==0){if(!(z instanceof Vn))continue;b===1?z=z.Eb(E.wl):b===2&&(z=z.Fb(E.wl))}z!==void 0&&E.Mv(z,x)}}},Ce.sx=function(a){return a==null||this.ge===null?null:this.ge.I(a)};function ME(a,y){a=a.O.s;for(var E=a.length,x=y.length,b=0,z=null;b<E&&(z=a[b],!(z instanceof Vn&&z.data!==null));)b++,z=a[b];if(E-b!==x)return!0;if(z===null)return 0<x;for(var ee=0;b<E&&ee<x;){if(z=a[b],!(z instanceof Vn)||z.data!==y[ee])return!0;b++,ee++}return!1}function rp(a){if(a.type===Vn.Spot||a.type===Vn.Auto)return Math.min(a.O.length,1);if(a.type===Vn.Link){a=a.O;for(var y=a.length,E=0;E<y;E++){var x=a.M(E);if(!(x instanceof pr&&x.isPanelMain))break}return E}return a.type===Vn.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof Vn&&yd(a))?1:0}Ce.mv=function(){for(var a=rp(this);this.O.length>a;)this.pc(this.O.length-1,!1);y1(this,this.itemArray)};function y1(a,y){var E=rp(a);if(y===null||y.length===0)for(;a.O.length>E;)a.pc(a.O.length-1,!1);else if(a.O.length<=E){E=y.length;for(var x=0;x<E;x++)Pm(a,y[x],x,!0)}else{x=E;for(var b=0;b<y.length;b++,x++){var z=y[b],ee=x<a.O.length?a.O.M(x):null;if(ee instanceof Vn){if(ee.data!==z){var re=Tv(a,ee.data),oe=Tv(a,z),ce=oe!==re;ce||(re=Av(a,re),ce=Av(a,oe)!==re),ce?(a.pc(x,!1),Pm(a,z,b,!1)):ee.data=z}}else Pm(a,z,b,!1)}for(;x<a.O.length;)a.pc(x,!1);a.$g=null,wv(a,E,0),Ul(a)||a.v(),a.graduatedIntervals=null,a.If()||Lm(a,a,!1),y=a.part,y!==null&&(y.Rh=null,y.ag=NaN,a.Te&&y instanceof pi&&(y.Te=!0),y.Te&&y instanceof pi&&(y.wc=null))}}function Pm(a,y,E,x){if(!(y==null||0>E)){var b=Tv(a,y);if(b=Av(a,b),b!==null){if(yu(b),b=b.copy(),b.l&16777216){var z=a.ih();z!==null&&bv(z,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new zi),a.ge.add(y,b)),z=E+rp(a),a.Gb(z,b),x&&(b.ub=y,wv(a,z,E),b.ub=null),b.data=y}}}function wv(a,y,E){for(a=a.O;y<a.length;){var x=a.M(y);if(x instanceof Vn){var b=y,z=E;x.type===Vn.TableRow?x.row=b:x.type===Vn.TableColumn&&(x.column=b),x.itemIndex=z}y++,E++}}function Tv(a,y){if(y===null)return"";if(a=a.itemCategoryProperty,typeof a=="function")a=a(y);else if(typeof a=="string"&&typeof y=="object"){if(a==="")return"";a=ua(y,a)}else return"";if(a===void 0)return"";if(typeof a=="string")return a;pt("Panel.getCategoryForItemData found a non-string category for "+y+": "+a)}function Av(a,y){var E=a.itemTemplateMap,x=null;return E!==null&&(x=E.I(y)),x===null&&(E!==null&&(x=E.I("")),x===null&&(S1||(S1=!0,Ti('No item template Panel found for category "'+y+'" on '+a),Ti(" Using default item template."),a=new Vn,y=new So,y.bind(new ha("text","",Yi)),a.add(y),E1=a),x=E1)),x}function Lm(a,y,E){var x=y.enabledChanged;if(x!==null&&x(y,E),y instanceof Vn){y=y.O.s,x=y.length;for(var b=0;b<x;b++){var z=y[b];E&&z instanceof Vn&&!z.isEnabled||Lm(a,z,E)}}}function pc(a,y){y.name=a,Ou.add(a,y)}It.Object.defineProperties(Vn.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===Vn.Grid,this.v(),this.g("type",y,a))}},elements:{get:function(){return this.O.iterator}},naturalBounds:{get:function(){return this.dc}},padding:{get:function(){return this.yb},set:function(a){typeof a=="number"?(0>a&&ii(a,">= 0",Vn,"padding"),a=new cr(a)):(0>a.left&&ii(a.left,">= 0",Vn,"padding:value.left"),0>a.right&&ii(a.right,">= 0",Vn,"padding:value.right"),0>a.top&&ii(a.top,">= 0",Vn,"padding:value.top"),0>a.bottom&&ii(a.bottom,">= 0",Vn,"padding:value.bottom"));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.v(),this.g("padding",y,a))}},defaultAlignment:{get:function(){return this.Tm},set:function(a){var y=this.Tm;y.D(a)||(this.Tm=a=a.J(),this.v(),this.g("defaultAlignment",y,a))}},defaultStretch:{get:function(){return this.Uf},set:function(a){var y=this.Uf;y!==a&&(this.Uf=a,this.v(),this.g("defaultStretch",y,a))}},defaultSeparatorPadding:{get:function(){return this.T!==null?this.T.Qp:is},set:function(a){typeof a=="number"&&(a=new cr(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new iu),this.T.Qp=a,this.v(),this.g("defaultSeparatorPadding",y,a))}},defaultRowSeparatorStroke:{get:function(){return this.T!==null?this.T.ia:null},set:function(a){var y=this.defaultRowSeparatorStroke;y!==a&&(a===null||typeof a=="string"||a instanceof qr)&&(a instanceof qr&&a.freeze(),this.T===null&&(this.T=new iu),this.T.ia=a,this.N(),this.g("defaultRowSeparatorStroke",y,a))}},defaultRowSeparatorStrokeWidth:{get:function(){return this.T!==null?this.T.Ha:1},set:function(a){var y=this.defaultRowSeparatorStrokeWidth;y!==a&&isFinite(a)&&0<=a&&(this.T===null&&(this.T=new iu),this.T.Ha=a,this.v(),this.g("defaultRowSeparatorStrokeWidth",y,a))}},defaultRowSeparatorDashArray:{get:function(){return this.T!==null?this.T.V:null},set:function(a){var y=this.defaultRowSeparatorDashArray;if(y!==a){if(a!==null){for(var E=a.length,x=0,b=0;b<E;b++){var z=a[b];typeof z=="number"&&0<=z&&isFinite(z)||pt("defaultRowSeparatorDashArray value "+z+" at index "+b+" must be a positive number or zero."),x+=z}if(x===0){if(y===null)return;a=null}}this.T===null&&(this.T=new iu),this.T.V=a,this.N(),this.g("defaultRowSeparatorDashArray",y,a)}}},defaultColumnSeparatorStroke:{get:function(){return this.T!==null?this.T.u:null},set:function(a){var y=this.defaultColumnSeparatorStroke;y!==a&&(a===null||typeof a=="string"||a instanceof qr)&&(a instanceof qr&&a.freeze(),this.T===null&&(this.T=new iu),this.T.u=a,this.N(),this.g("defaultColumnSeparatorStroke",y,a))}},defaultColumnSeparatorStrokeWidth:{get:function(){return this.T!==null?this.T.F:1},set:function(a){var y=this.defaultColumnSeparatorStrokeWidth;y!==a&&isFinite(a)&&0<=a&&(this.T===null&&(this.T=new iu),this.T.F=a,this.v(),this.g("defaultColumnSeparatorStrokeWidth",y,a))}},defaultColumnSeparatorDashArray:{get:function(){return this.T!==null?this.T.o:null},set:function(a){var y=this.defaultColumnSeparatorDashArray;if(y!==a){if(a!==null){for(var E=a.length,x=0,b=0;b<E;b++){var z=a[b];typeof z=="number"&&0<=z&&isFinite(z)||pt("defaultColumnSeparatorDashArray value "+z+" at index "+b+" must be a positive number or zero."),x+=z}if(x===0){if(y===null)return;a=null}}this.T===null&&(this.T=new iu),this.T.o=a,this.N(),this.g("defaultColumnSeparatorDashArray",y,a)}}},inRowsCols:{get:function(){return this.T!==null?this.T.nb:null},set:function(a){this.T===null&&(this.T=new iu),this.T.nb=a}},viewboxStretch:{get:function(){return this.xo},set:function(a){var y=this.xo;y!==a&&(this.xo=a,this.v(),this.g("viewboxStretch",y,a))}},gridCellSize:{get:function(){return this.jn},set:function(a){var y=this.jn;if(!y.D(a)){a.w()&&a.width!==0&&a.height!==0||pt("Invalid Panel.gridCellSize: "+a),this.jn=a.J();var E=this.diagram;E!==null&&this===E.grid&&hc(E),this.N(),this.g("gridCellSize",y,a)}}},gridOrigin:{get:function(){return this.kn},set:function(a){var y=this.kn;if(!y.D(a)){a.w()||pt("Invalid Panel.gridOrigin: "+a),this.kn=a.J();var E=this.diagram;E!==null&&this===E.grid&&hc(E),this.N(),this.g("gridOrigin",y,a)}}},graduatedMin:{get:function(){return this.ra!==null?this.ra.lq:0},set:function(a){var y=this.graduatedMin;y!==a&&(this.ra===null&&(this.ra=new qc),this.ra.lq=a,this.v(),this.g("graduatedMin",y,a),ns(this)&&(a=this.part,a!==null&&No(this,a,"graduatedRange")))}},graduatedMax:{get:function(){return this.ra!==null?this.ra.F:100},set:function(a){var y=this.graduatedMax;y!==a&&(this.ra===null&&(this.ra=new qc),this.ra.F=a,this.v(),this.g("graduatedMax",y,a),ns(this)&&(a=this.part,a!==null&&No(this,a,"graduatedRange")))}},graduatedRange:{get:function(){return this.graduatedMax-this.graduatedMin}},graduatedTickUnit:{get:function(){return this.ra!==null?this.ra.ia:10},set:function(a){var y=this.graduatedTickUnit;y!==a&&0<a&&(this.ra===null&&(this.ra=new qc),this.ra.ia=a,this.v(),this.g("graduatedTickUnit",y,a))}},graduatedTickBase:{get:function(){return this.ra!==null?this.ra.V:0},set:function(a){var y=this.graduatedTickBase;y!==a&&(this.ra===null&&(this.ra=new qc),this.ra.V=a,this.v(),this.g("graduatedTickBase",y,a))}},graduatedMarks:{get:function(){return this.ra!==null?this.ra.u:null},set:function(a){this.ra!==null?this.ra.u=a:a!==null&&(this.ra=new qc,this.ra.u=a)}},graduatedBounds:{get:function(){return this.ra!==null?this.ra.j:null},set:function(a){this.ra!==null?this.ra.j=a:a!==null&&(this.ra=new qc,this.ra.j=a)}},graduatedIntervals:{get:function(){return this.ra!==null?this.ra.o:null},set:function(a){this.ra!==null?this.ra.o=a:a!==null&&(this.ra=new qc,this.ra.o=a)}},temporaryTextBlock:{get:function(){return this.ra!==null?this.ra.Zh:null},set:function(a){this.ra!==null?this.ra.Zh=a:a!==null&&(this.ra=new qc,this.ra.Zh=a)}},panelLayoutState:{get:function(){return this.F},set:function(a){this.F=a}},Te:{get:function(){return(this.l&8388608)!==0},set:function(a){(this.l&8388608)!==0!==a&&(this.l^=8388608)}},rowDefs:{get:function(){return this.T===null&&(this.T=new iu),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new iu),this.T.Oc}},columnCount:{get:function(){return this.T===null?0:this.colDefs.length}},rowSizing:{get:function(){return this.T!==null?this.T.ob:Dm},set:function(a){var y=this.rowSizing;y!==a&&(this.T===null&&(this.T=new iu),this.T.ob=a,this.v(),this.g("rowSizing",y,a))}},columnSizing:{get:function(){return this.T!==null?this.T.j:Dm},set:function(a){var y=this.columnSizing;y!==a&&(this.T===null&&(this.T=new iu),this.T.j=a,this.v(),this.g("columnSizing",y,a))}},topIndex:{get:function(){return this.T!==null?this.T.Hb:0},set:function(a){var y=this.topIndex;y!==a&&((!isFinite(a)||0>a)&&pt("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new iu),this.T.Hb=a,this.v(),this.g("topIndex",y,a))}},leftIndex:{get:function(){return this.T!==null?this.T.hb:0},set:function(a){var y=this.leftIndex;y!==a&&((!isFinite(a)||0>a)&&pt("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new iu),this.T.hb=a,this.v(),this.g("leftIndex",y,a))}},data:{get:function(){return this.ub},set:function(a){var y=this.ub;if(y!==a){var E=this instanceof Ui&&!(this instanceof Ur);yu(this),this.ub=a;var x=this.diagram;x!==null&&(E?(E=x.partManager,this instanceof Xn?(y!==null&&E.bf.remove(y),a!==null&&E.bf.add(a,this)):this instanceof Ui&&(y!==null&&E.cf.remove(y),a!==null&&E.cf.add(a,this))):(E=this.panel,E!==null&&E.ge!==null&&(y!==null&&E.ge.remove(y),a!==null&&E.ge.add(a,this)))),this.g("data",y,a),x!==null&&x.undoManager.isUndoingRedoing||a!==null&&this.La()}}},itemIndex:{get:function(){return this.zn},set:function(a){var y=this.zn;y!==a&&(this.zn=a,this.g("itemIndex",y,a))}},allBindings:{get:function(){return this.A!==null?this.A.nb:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new of),this.A.nb=a)}},itemArray:{get:function(){return this.Hh},set:function(a){var y=this.Hh;if(y!==a||a!==null&&ME(this,a)){var E=this.diagram;y!==a&&(E!==null&&y!==null&&dy(E.partManager,this,E),this.Hh=a,E!==null&&a!==null&&cy(E.partManager,this)),this.g("itemArray",y,a),E!==null&&E.undoManager.isUndoingRedoing||y1(this,a)}}},itemTemplate:{get:function(){return this.itemTemplateMap===null?null:this.itemTemplateMap.I("")},set:function(a){if(this.itemTemplateMap===null){if(a===null)return;this.itemTemplateMap=new zi}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof Ui||a.isPanelMain)&&pt("Panel.itemTemplate must not be a Part or be Panel.isPanelMain: "+a),this.itemTemplateMap.add("",a),this.g("itemTemplate",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.mv())}},itemTemplateMap:{get:function(){return this.A!==null?this.A.Pc:null},set:function(a){var y=this.itemTemplateMap;if(y!==a){for(var E=a.iterator;E.next(););yr(this),this.A.Pc=a,this.g("itemTemplateMap",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.mv()}}},itemCategoryProperty:{get:function(){return this.A!==null?this.A.Oc:"category"},set:function(a){var y=this.itemCategoryProperty;y!==a&&(yr(this),this.A.Oc=a,this.g("itemCategoryProperty",y,a))}},isAtomic:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.g("isAtomic",y,a))}},isClipping:{get:function(){return(this.l&2097152)!==0},set:function(a){var y=(this.l&2097152)!==0;y!==a&&(this.l^=2097152,this instanceof or&&(this.tb=null),this.v(),this.g("isClipping",y,a))}},isOpposite:{get:function(){return(this.l&33554432)!==0},set:function(a){var y=(this.l&33554432)!==0;y!==a&&(this.l^=33554432,this.v(),this.g("isOpposite",y,a))}},isEnabled:{get:function(){return(this.l&4194304)!==0},set:function(a){var y=(this.l&4194304)!==0;if(y!==a){var E=this.panel===null||this.panel.If();this.l^=4194304,this.g("isEnabled",y,a),y=this.diagram,y!==null&&y.undoManager.isUndoingRedoing||E&&Lm(this,this,a)}}},alignmentFocusName:{get:function(){return this.$e},set:function(a){var y=this.$e;y!==a&&(this.$e=a,this.v(),this.g("alignmentFocusName",y,a))}}}),It.Object.defineProperties(Vn,{Position:{get:function(){return Ou.I("Position")}},Horizontal:{get:function(){return Ou.I("Horizontal")}},Vertical:{get:function(){return Ou.I("Vertical")}},Spot:{get:function(){return Ou.I("Spot")}},Auto:{get:function(){return Ou.I("Auto")}},Table:{get:function(){return Ou.I("Table")}},Viewbox:{get:function(){return Ou.I("Viewbox")}},TableRow:{get:function(){return Ou.I("TableRow")}},TableColumn:{get:function(){return Ou.I("TableColumn")}},Link:{get:function(){return Ou.I("Link")}},Grid:{get:function(){return Ou.I("Grid")}},Graduated:{get:function(){return Ou.I("Graduated")}}}),Vn.prototype.rebuildItemElements=Vn.prototype.mv,Vn.prototype.findItemPanelForData=Vn.prototype.sx,Vn.prototype.updateTargetBindings=Vn.prototype.La,Vn.prototype.copyTemplate=Vn.prototype.Uy,Vn.prototype.graduatedValueForPoint=Vn.prototype.Gz,Vn.prototype.graduatedPointForValue=Vn.prototype.Fz,Vn.prototype.findColumnForLocalX=Vn.prototype.fz,Vn.prototype.findRowForLocalY=Vn.prototype.nz,Vn.prototype.addColumnDefinition=Vn.prototype.By,Vn.prototype.addRowDefinition=Vn.prototype.Hy,Vn.prototype.addRowColumnDefinition=Vn.prototype.Gy,Vn.prototype.removeColumnDefinition=Vn.prototype.jA,Vn.prototype.getColumnDefinition=Vn.prototype.Eb,Vn.prototype.removeRowDefinition=Vn.prototype.oA,Vn.prototype.getRowDefinition=Vn.prototype.Fb,Vn.prototype.removeAt=Vn.prototype.mb,Vn.prototype.remove=Vn.prototype.remove,Vn.prototype.insertAt=Vn.prototype.Gb,Vn.prototype.elt=Vn.prototype.M,Vn.prototype.add=Vn.prototype.add,Vn.prototype.findObject=Vn.prototype.fb,Vn.prototype.findInVisualTree=Vn.prototype.Nl,Vn.prototype.walkVisualTreeFrom=Vn.prototype.qm,Vn.prototype.findMainElement=Vn.prototype.Pb;var S1=!1,E1=null,Ou=new zi;Vn.className="Panel",Vn.definePanelLayout=pc,pc("Position",new vm),pc("Vertical",new Sm),pc("Auto",new xm),pc("Link",new Nm);function qc(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}qc.prototype.copy=function(){var a=new qc;return a.lq=this.lq,a.F=this.F,a.ia=this.ia,a.V=this.V,a.u=this.u,a.j=this.j,a.o=this.o,a.Zh=this.Zh,a},qc.className="GradPanelSettings";function iu(){this.Pc=[],this.Oc=[],this.j=this.ob=Dm,this.hb=this.Hb=0,this.Qp=is,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}iu.prototype.copy=function(a){for(var y=new iu,E=this.Pc,x=E.length,b=y.Pc,z=0;z<x;z++)if(E[z]!==void 0){var ee=E[z].copy();ee.wi(a),b[z]=ee}for(E=this.Oc,x=E.length,b=y.Oc,z=0;z<x;z++)E[z]!==void 0&&(ee=E[z].copy(),ee.wi(a),b[z]=ee);return y.ob=this.ob,y.j=this.j,y.Hb=this.Hb,y.hb=this.hb,y.Qp=this.Qp.J(),y.Ha=this.Ha,y.ia=this.ia,y.V=this.V,y.F=this.F,y.u=this.u,y.o=this.o,y.nb=this.nb,y},iu.className="TablePanelSettings";function wa(a){wr(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=Ca,this.pa=this.oc=this.oa=0,this.be=null,this.oo=Cv,this.hg=sr,this.lo=this.dg=null,this.mo=NaN,this.Ma=this.tj=null,this.Pm=!1,a&&(Object.assign(this,a),a.column!==void 0?(this.isRow=!1,this.index=a.column):a.row!==void 0&&(this.isRow=!0,this.index=a.row))}wa.prototype.copy=function(){var a=new wa;return a.uq=this.uq,a.Za=this.Za,a.Hc=this.Hc,a.jj=this.jj,a.hj=this.hj,a.Jb=this.Jb,a.oa=this.oa,a.oc=this.oc,a.pa=this.pa,a.hg=this.hg,a.oo=this.oo,this.dg===null?a.dg=null:a.dg=this.dg.J(),a.lo=this.lo,a.mo=this.mo,a.tj=null,this.tj!==null&&(a.separatorDashArray=vi(this.separatorDashArray)),a.Ma=this.Ma,a.Pm=this.Pm,a.be=this.be,a};function Im(a,y){y.isRow?a.height=y.height:a.width=y.width,a.minimum=y.minimum,a.maximum=y.maximum,a.alignment=y.alignment,a.stretch=y.stretch,a.sizing=y.sizing,a.dg=y.separatorPadding===null?null:y.separatorPadding.J(),a.separatorStroke=y.separatorStroke,a.separatorStrokeWidth=y.separatorStrokeWidth,a.tj=null,y.separatorDashArray&&(a.tj=vi(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}Ce=wa.prototype,Ce.qb=function(a){a.classType===wa&&(this.sizing=a)},Ce.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+Tr(this)},Ce.wi=function(a){this.Me=a},Ce.Io=function(a){var y=0,E=this.Me;if(this.index!==a&&(a=this.separatorStroke,a===null&&E!==null&&(a=this.isRow?E.defaultRowSeparatorStroke:E.defaultColumnSeparatorStroke),a!==null&&(y=this.separatorStrokeWidth,isNaN(y)&&(E!==null?y=this.isRow?E.defaultRowSeparatorStrokeWidth:E.defaultColumnSeparatorStrokeWidth:y=0))),a=this.dg,a===null)if(E!==null)a=E.defaultSeparatorPadding;else return y;return y+(this.isRow?a.top:a.left)},Ce.Wc=function(){var a=0,y=this.Me,E=0,x=this.isRow;if(y!==null&&y.type===Vn.Table)for(var b=x?y.rowDefs.length:y.colDefs.length,z=0;z<b;z++){var ee=x?y.rowDefs[z]:y.colDefs[z];if(ee!==void 0&&ee.oa!==0){E=ee.index;break}}if(this.index!==E&&(E=this.separatorStroke,E===null&&y!==null&&(E=x?y.defaultRowSeparatorStroke:y.defaultColumnSeparatorStroke),E!==null&&(a=this.separatorStrokeWidth,isNaN(a)&&(y!==null?a=x?y.defaultRowSeparatorStrokeWidth:y.defaultColumnSeparatorStrokeWidth:a=0))),x=this.dg,x===null)if(y!==null)x=y.defaultSeparatorPadding;else return a;return a+(this.isRow?x.top+x.bottom:x.left+x.right)},Ce.Ob=function(a,y,E){var x=this.Me;if(x!==null&&(x.cb(wo,a,this,y,E,void 0,void 0),this.be!==null&&(y=x.diagram,y!==null&&!y.skipsModelSourceBindings&&(x=x.ih(),x!==null&&(y=x.data,y!==null)))))for(E=this.be.iterator;E.next();)E.value.sp(this,y,a,x)};function km(a){if(a.sizing===Cv){var y=a.Me;return a.isRow?y.rowSizing:y.columnSizing}return a.sizing}Ce.bind=function(a,y,E,x){var b=null;return typeof a=="string"?b=new ha(a,y,E,x):b=a,b.xd=this,a=this.panel,a!==null&&(y=a.ih(),y!==null&&v1(y)&&pt("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+b+" on "+a)),this.be===null&&(this.be=new Fn),this.be.add(b),this},It.Object.defineProperties(wa.prototype,{panel:{get:function(){return this.Me}},isRow:{get:function(){return this.uq},set:function(a){this.uq=a}},index:{get:function(){return this.Za},set:function(a){this.Za=a}},height:{get:function(){return this.Hc},set:function(a){var y=this.Hc;y!==a&&(0>a&&ii(a,">= 0",wa,"height"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("height",y,a))}},width:{get:function(){return this.Hc},set:function(a){var y=this.Hc;y!==a&&(0>a&&ii(a,">= 0",wa,"width"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("width",y,a))}},minimum:{get:function(){return this.jj},set:function(a){var y=this.jj;y!==a&&((0>a||!isFinite(a))&&ii(a,">= 0",wa,"minimum"),this.jj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("minimum",y,a))}},maximum:{get:function(){return this.hj},set:function(a){var y=this.hj;y!==a&&(0>a&&ii(a,">= 0",wa,"maximum"),this.hj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("maximum",y,a))}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(this.Jb=a.J(),this.panel!==null&&this.panel.v(),this.Ob("alignment",y,a))}},stretch:{get:function(){return this.hg},set:function(a){var y=this.hg;y!==a&&(this.hg=a,this.panel!==null&&this.panel.v(),this.Ob("stretch",y,a))}},separatorPadding:{get:function(){return this.dg},set:function(a){typeof a=="number"&&(a=new cr(a));var y=this.dg;a!==null&&y!==null&&y.D(a)||(a!==null&&(a=a.J()),this.dg=a,this.panel!==null&&this.panel.v(),this.Ob("separatorPadding",y,a))}},separatorStroke:{get:function(){return this.lo},set:function(a){var y=this.lo;y!==a&&(a!==null&&sf(a,"RowColumnDefinition.separatorStroke"),a instanceof qr&&a.freeze(),this.lo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStroke",y,a))}},separatorStrokeWidth:{get:function(){return this.mo},set:function(a){var y=this.mo;y!==a&&(this.mo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStrokeWidth",y,a))}},separatorDashArray:{get:function(){return this.tj},set:function(a){var y=this.tj;if(y!==a){if(a!==null){for(var E=a.length,x=0,b=0;b<E;b++){var z=a[b];typeof z=="number"&&0<=z&&isFinite(z)||pt("separatorDashArray value "+z+" at index "+b+" must be a positive number or zero."),x+=z}if(x===0){if(y===null)return;a=null}}this.tj=a,this.panel!==null&&this.panel.N(),this.Ob("separatorDashArray",y,a)}}},background:{get:function(){return this.Ma},set:function(a){var y=this.Ma;y!==a&&(a!==null&&sf(a,"RowColumnDefinition.background"),a instanceof qr&&a.freeze(),this.Ma=a,this.panel!==null&&this.panel.N(),this.Ob("background",y,a))}},coversSeparators:{get:function(){return this.Pm},set:function(a){var y=this.Pm;y!==a&&(this.Pm=a,this.panel!==null&&this.panel.N(),this.Ob("coversSeparators",y,a))}},sizing:{get:function(){return this.oo},set:function(a){var y=this.oo;y!==a&&(this.oo=a,this.panel!==null&&this.panel.v(),this.Ob("sizing",y,a))}},actual:{get:function(){return this.oa},set:function(a){this.oa=isNaN(this.Hc)?Math.max(Math.min(this.hj,a),this.jj):Math.max(Math.min(this.hj,this.Hc),this.jj)}},measured:{get:function(){return this.oc},set:function(a){this.oc=a}},total:{get:function(){return this.oa+this.Wc()}},position:{get:function(){return this.pa},set:function(a){this.pa=a}}}),wa.prototype.computeEffectiveSpacing=wa.prototype.Wc,wa.prototype.computeEffectiveSpacingTop=wa.prototype.Io;var Cv=new en(wa,"Default",0),op=new en(wa,"None",1),Dm=new en(wa,"ProportionalExtra",2);wa.className="RowColumnDefinition",wa.Default=Cv,wa.None=op,wa.ProportionalExtra=Dm;function pr(a,y){Dt.call(this),this.Rd=this.ua=null,this.an="None",this.xc=this.Ui="black",this.ig=1,this.Na=this.Yg=null,this.Vn=this.Un=NaN,this.fa=null,typeof a=="string"?this.figure=a:a&&Object.assign(this,a),y&&Object.assign(this,y)}Ut(pr,Dt),pr.prototype.cloneProtected=function(a){Dt.prototype.cloneProtected.call(this,a),a.ua=this.ua,a.Rd=this.Rd,a.an=this.an,a.Ui=this.Ui,a.xc=this.xc,a.ig=this.ig,this.Yg!==null&&(a.Yg=vi(this.Yg)),this.Na!==null&&(a.Na=this.Na.nc?this.Na:this.Na.copy()),a.Un=this.Un,a.Vn=this.Vn,this.fa!==null&&(a.fa=this.fa.copy())};function Oh(a){a.Na===null?a.Na=new Pv:a.Na.nc&&(a.Na=a.Na.copy())}Ce=pr.prototype,Ce.th=function(){Dt.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},Ce.qb=function(a){a===Dn||a===Ii||a===Mr||a===sr?this.geometryStretch=a:Dt.prototype.qb.call(this,a)},Ce.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+Tr(this)};function Qf(a,y,E,x){var b=E.length;if(!(4>b)){var z=x.measuredBounds,ee=Math.max(1,z.width);z=z.height;for(var re=E[0],oe=E[1],ce,he,ye,Te,Ae,ke,He=0,dt=Ni(),tt=2;tt<b;tt+=2)ce=E[tt],he=E[tt+1],ye=ce-re,re=he-oe,ye===0&&(ye=.001),Te=re/ye,Ae=Math.atan2(re,ye),ke=Math.sqrt(ye*ye+re*re),dt.push([ye,Ae,Te,ke]),He+=ke,re=ce,oe=he;re=E[0],oe=E[1],ye=x.measuredBounds.width,x instanceof pr&&(ye-=x.strokeWidth),1>ye&&(ye=1),b=E=ye,ce=ee/2,he=ce!==0,tt=0,ke=dt[tt],ye=ke[0],Ae=ke[1],Te=ke[2],ke=ke[3];for(var gt=0;.1<=He;){if(gt===0&&(he?(b=E,b-=ce,He-=ce,he=!1):b=E,b===0&&(b=1)),b>He){hi(dt);return}b>ke?(gt=b-ke,b=ke):gt=0;var yt=Math.sqrt(b*b/(1+Te*Te));if(0>ye&&(yt=-yt),re+=yt,oe+=Te*yt,a.translate(re,oe),a.rotate(Ae),a.translate(-(ee/2),-(z/2)),gt===0&&x.hh(a,y),a.translate(ee/2,z/2),a.rotate(-Ae),a.translate(-re,-oe),He-=b,ke-=b,gt!==0){if(tt++,tt===dt.length){hi(dt);return}ke=dt[tt],ye=ke[0],Ae=ke[1],Te=ke[2],ke=ke[3],b=gt}}hi(dt)}}Ce.hh=function(a,y){var E=this.xc,x=this.Ui;if(E!==null||x!==null){var b=this.ua;if(b!==null){a.yc();var z=this.actualBounds,ee=this.naturalBounds;x!==null&&ea(this,a,x,!0,!1,ee,z);var re=this.part,oe=this.ig;if(E===null||oe!==0||re===null||!this.isPanelMain&&re.Pb()!==this||(oe=re.type===Vn.Link&&re instanceof Ur&&re.category==="Selection"&&re.adornedObject instanceof pr&&re.adornedPart.Pb()===re.adornedObject?re.adornedObject.strokeWidth:0),oe===0&&(E=null),E!==null&&oe!==0&&(ea(this,a,E,!1,!1,ee,z),a.lineWidth=oe,a.lineJoin=this.strokeJoin,a.lineCap=this.strokeCap,a.miterLimit=this.strokeMiterLimit),z=!1,re&&y.Gf("drawShadows")&&(z=re.isShadowed),a.Il===!1&&(z=!1),re=!0,E===null||x!==null&&x!=="transparent"||(re=!1),ee=!1,oe=this.strokeDashArray,oe!==null&&(ee=!0,a.js(oe,this.strokeDashOffset)),b.type===Kn.j)a.beginPath(),a.moveTo(b.startX,b.startY),a.lineTo(b.endX,b.endY),E!==null&&a.jk(),a.Se();else if(b.type===Kn.u){var ce=b.startX;oe=b.startY;var he=b.endX,ye=b.endY;b=Math.min(ce,he);var Te=Math.min(oe,ye);ce=Math.abs(he-ce),oe=Math.abs(ye-oe),a.beginPath(),a.rect(b,Te,ce,oe),x!==null&&a.ng(x),E!==null&&(re&&z&&Ic(a),a.jk(),re&&z&&Kc(a)),a.Se()}else if(b.type===Kn.F)ce=b.startX,oe=b.startY,he=b.endX,ye=b.endY,b=Math.abs(he-ce)/2,Te=Math.abs(ye-oe)/2,ce=Math.min(ce,he)+b,oe=Math.min(oe,ye)+Te,a.beginPath(),a.moveTo(ce,oe-Te),a.bezierCurveTo(ce+Bt.wg*b,oe-Te,ce+b,oe-Bt.wg*Te,ce+b,oe),a.bezierCurveTo(ce+b,oe+Bt.wg*Te,ce+Bt.wg*b,oe+Te,ce,oe+Te),a.bezierCurveTo(ce-Bt.wg*b,oe+Te,ce-b,oe+Bt.wg*Te,ce-b,oe),a.bezierCurveTo(ce-b,oe-Bt.wg*Te,ce-Bt.wg*b,oe-Te,ce,oe-Te),a.closePath(),x!==null&&a.ng(x),E!==null&&(re&&z&&Ic(a),a.jk(),re&&z&&Kc(a)),a.Se();else if(b.type===Kn.o)for(b=b.figures,oe=b.length,Te=0;Te<oe;Te++){ce=b.s[Te],a.beginPath(),a.moveTo(ce.startX,ce.startY),he=ce.segments.s,ye=he.length;for(var Ae=null,ke=0;ke<ye;ke++){var He=he[ke];switch(He.type){case ko:a.moveTo(He.endX,He.endY);break;case po:a.lineTo(He.endX,He.endY);break;case ja:a.bezierCurveTo(He.point1X,He.point1Y,He.point2X,He.point2Y,He.endX,He.endY);break;case Os:a.quadraticCurveTo(He.point1X,He.point1Y,He.endX,He.endY);break;case ta:if(He.radiusX===He.radiusY){var dt=Math.PI/180;a.arc(He.point1X,He.point1Y,He.radiusX,He.startAngle*dt,(He.startAngle+He.sweepAngle)*dt,0>He.sweepAngle,Ae!==null?Ae.endX:ce.startX,Ae!==null?Ae.endY:ce.startY)}else if(Ae=os(He,ce),dt=Ae.length,dt===0)a.lineTo(He.centerX,He.centerY);else for(var tt=0;tt<dt;tt++){var gt=Ae[tt];tt===0&&a.lineTo(gt[0],gt[1]),a.bezierCurveTo(gt[2],gt[3],gt[4],gt[5],gt[6],gt[7])}break;case qs:if(tt=dt=0,Ae!==null&&Ae.type===ta){if(Ae=os(Ae,ce),gt=Ae.length,gt===0){a.lineTo(He.endX,He.endY);break}Ae=Ae[gt-1]||null,Ae!==null&&(dt=Ae[6],tt=Ae[7])}else dt=Ae!==null?Ae.endX:ce.startX,tt=Ae!==null?Ae.endY:ce.startY;if(Ae=As(He,ce,dt,tt),dt=Ae.length,dt===0){a.lineTo(He.endX,He.endY);break}for(tt=0;tt<dt;tt++)gt=Ae[tt],a.bezierCurveTo(gt[2],gt[3],gt[4],gt[5],gt[6],gt[7]);break;default:pt("Segment not of valid type: "+He.type)}He.isClosed&&a.closePath(),Ae=He}he=ce.isFilled,z?ce.isShadowed?(he===!0&&x!=="transparent"&&x!==null&&a.ng(x,ce.isEvenOdd),E!==null&&(he&&re&&Ic(a),a.jk(),he&&re&&Kc(a))):(Ic(a),he&&x!=="transparent"&&x!==null&&a.ng(x,ce.isEvenOdd),E!==null&&a.jk(),Kc(a)):(he&&x!==null&&a.ng(x,ce.isEvenOdd),E!==null&&a.jk()),a.Se(Te)}if(ee&&a.fs(),this.pathPattern!==null){if(E=this.pathPattern,E.measure(1/0,1/0),x=E.measuredBounds,E.arrange(0,0,x.width,x.height),z=this.geometry,a.save(),a.beginPath(),x=Ni(),z.type===Kn.j)x.push(z.startX),x.push(z.startY),x.push(z.endX),x.push(z.endY),Qf(a,y,x,E);else if(z.type===Kn.o)for(z=z.figures.iterator;z.next();){for(re=z.value,x.length=0,x.push(re.startX),x.push(re.startY),ee=re.startX,b=re.startY,oe=ee,Te=b,ce=re.segments.s,he=ce.length,ye=0;ye<he;ye++){switch(ke=ce[ye],ke.type){case ko:Qf(a,y,x,E),x.length=0,x.push(ke.endX),x.push(ke.endY),ee=ke.endX,b=ke.endY,oe=ee,Te=b;break;case po:x.push(ke.endX),x.push(ke.endY),ee=ke.endX,b=ke.endY;break;case ja:Bt.Qe(ee,b,ke.point1X,ke.point1Y,ke.point2X,ke.point2Y,ke.endX,ke.endY,.5,x),ee=ke.endX,b=ke.endY;break;case Os:Bt.ep(ee,b,ke.point1X,ke.point1Y,ke.endX,ke.endY,.5,x),ee=ke.endX,b=ke.endY;break;case ta:if(He=os(ke,re),Ae=He.length,Ae===0){x.push(ke.centerX),x.push(ke.centerY),ee=ke.centerX,b=ke.centerY;break}for(dt=0;dt<Ae;dt++)tt=He[dt],Bt.Qe(ee,b,tt[2],tt[3],tt[4],tt[5],tt[6],tt[7],.5,x),ee=tt[6],b=tt[7];break;case qs:if(He=As(ke,re,ee,b),Ae=He.length,Ae===0){x.push(ke.endX),x.push(ke.endY),ee=ke.endX,b=ke.endY;break}for(dt=0;dt<Ae;dt++)tt=He[dt],Bt.Qe(ee,b,tt[2],tt[3],tt[4],tt[5],tt[6],tt[7],.5,x),ee=tt[6],b=tt[7];break;default:pt("Segment not of valid type: "+ke.type)}ke.isClosed&&(x.push(oe),x.push(Te),Qf(a,y,x,E))}Qf(a,y,x,E)}else if(z.type===Kn.u)x.push(z.startX),x.push(z.startY),x.push(z.endX),x.push(z.startY),x.push(z.endX),x.push(z.endY),x.push(z.startX),x.push(z.endY),x.push(z.startX),x.push(z.startY),Qf(a,y,x,E);else if(z.type===Kn.F){if(b=new ma,b.startX=z.endX,b.startY=(z.startY+z.endY)/2,ee=new Br(ta),ee.startAngle=0,ee.sweepAngle=360,ee.centerX=(z.startX+z.endX)/2,ee.centerY=(z.startY+z.endY)/2,ee.radiusX=Math.abs(z.startX-z.endX)/2,ee.radiusY=Math.abs(z.startY-z.endY)/2,b.add(ee),z=os(ee,b),re=z.length,re===0)x.push(ee.centerX),x.push(ee.centerY);else for(ee=b.startX,b=b.startY,oe=0;oe<re;oe++)Te=z[oe],Bt.Qe(ee,b,Te[2],Te[3],Te[4],Te[5],Te[6],Te[7],.5,x),ee=Te[6],b=Te[7];Qf(a,y,x,E)}hi(x),a.restore(),a.Vc(!1)}}}},Ce.kk=function(a,y,E){return!Dt.prototype.kk.call(this,a,y,E)||this.xc===null&&this.Ui===null||this.ua===null||this.pathPattern!==null||this.geometry.figures.length!==this.svg.getElementsByTagName("path").length?!1:(a.Hl=this.svg,this.hh(a,y),a.Hl=null,!0)},Ce.nk=function(a){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:Dt.prototype.nk.call(this,a)},Ce.Dv=function(a,y){if(a.nodeName!=="g")a.setAttributeNS(null,"filter",y);else{a=a.getElementsByTagName("path");for(var E=0;E<a.length;E++)a[E].setAttributeNS(null,"filter",y)}},Ce.ga=function(a,y){if(y===void 0&&(y=new lt),a instanceof Yt){a.Mc()&&pt("getDocumentPoint Spot must be a real, specific Spot, not: "+a.toString());var E=this.naturalBounds,x=this.strokeWidth;y.h(a.x*(E.width+x)-x/2+E.x+a.offsetX,a.y*(E.height+x)-x/2+E.y+a.offsetY)}else y.set(a);return this.oe.Ga(y),y},Ce.mi=function(a){a===void 0&&(a=new hn);var y=this.naturalBounds,E=this.oe;y=hn.allocAt(y.x,y.y,y.width,y.height);var x=this.strokeWidth;return y.Bc(x/2,x/2),x=lt.allocAt(y.x,y.y).transform(E),a.h(x.x,x.y,0,0),x.h(y.right,y.y).transform(E),zo(a,x.x,x.y,0,0),x.h(y.right,y.bottom).transform(E),zo(a,x.x,x.y,0,0),x.h(y.x,y.bottom).transform(E),zo(a,x.x,x.y,0,0),hn.free(y),lt.free(x),a},Ce.gh=function(a,y){var E=this.geometry;if(E===null||this.fill===null&&this.stroke===null)return!1;var x=E.bounds,b=this.strokeWidth/2;E.type!==Kn.j||y||(b+=2);var z=hn.alloc();if(z.assign(x),z.Bc(b+2,b+2),!z.ca(a))return hn.free(z),!1;if(x=b+1e-4,E.type===Kn.j)return this.stroke===null||(x=(E.endX-E.startX)*(a.x-E.startX)+(E.endY-E.startY)*(a.y-E.startY),0>(E.startX-E.endX)*(a.x-E.endX)+(E.startY-E.endY)*(a.y-E.endY)||0>x)?!1:(hn.free(z),Bt.Yb(E.startX,E.startY,E.endX,E.endY,b,a.x,a.y));if(E.type===Kn.u){y=E.startX;var ee=E.startY,re=E.endX;if(E=E.endY,z.x=Math.min(y,re),z.y=Math.min(ee,E),z.width=Math.abs(re-y),z.height=Math.abs(E-ee),this.fill===null){if(z.Bc(-x,-x),z.ca(a))return hn.free(z),!1;z.Bc(x,x)}return this.stroke!==null&&z.Bc(b,b),a=z.ca(a),hn.free(z),a}if(E.type===Kn.F){ee=E.startX,b=E.startY,re=E.endX;var oe=E.endY;if(E=Math.min(ee,re),y=Math.min(b,oe),ee=Math.abs(re-ee)/2,b=Math.abs(oe-b)/2,E=a.x-(E+ee),y=a.y-(y+b),this.fill===null){if(ee-=x,b-=x,0>=ee||0>=b||1>=E*E/(ee*ee)+y*y/(b*b))return hn.free(z),!1;ee+=x,b+=x}return this.stroke!==null&&(ee+=x,b+=x),hn.free(z),0>=ee||0>=b?!1:1>=E*E/(ee*ee)+y*y/(b*b)}if(E.type===Kn.o)return hn.free(z),this.fill===null?sc(E,a.x,a.y,b):Js(E,a,b,1<this.strokeWidth,y);pt("Unknown Geometry type: "+E.type)},Ce.Wl=function(a,y,E,x){var b=this.desiredSize,z=this.ig;if(a=Math.max(a,0),y=Math.max(y,0),this.Rd!==null)var ee=this.geometry.bounds;else{var re=this.figure,oe=Mv[re];if(oe===void 0){var ce=Bt.Ze[re];typeof ce=="string"&&(ce=Bt.Ze[ce]),typeof ce=="function"?(oe=ce(null,100,100),Mv[re]=oe):pt("Unsupported Figure: "+re)}ee=oe.bounds}re=ee.width,oe=ee.height,ce=ee.width;var he=ee.height;switch(nl(this,!0)){case Dn:x=E=0;break;case Hn:ce=Math.max(a-z,0),he=Math.max(y-z,0);break;case _i:ce=Math.max(a-z,0),x=0;break;case Wi:E=0,he=Math.max(y-z,0)}isFinite(b.width)&&(ce=b.width),isFinite(b.height)&&(he=b.height);var ye=this.maxSize,Te=this.minSize;switch(E=Math.max(E-z,Te.width),x=Math.max(x-z,Te.height),ce=Math.min(ye.width,ce),he=Math.min(ye.height,he),ce=isFinite(ce)?Math.max(E,ce):Math.max(re,E),he=isFinite(he)?Math.max(x,he):Math.max(oe,x),E=Nv(this),E){case Dn:break;case Hn:re=ce,oe=he;break;case Ii:E=Math.min(ce/re,he/oe),isFinite(E)||(E=1),re*=E,oe*=E;break;default:pt(E+" is not a valid geometryStretch.")}this.Rd!==null?(re===0&&(re=.001),oe===0&&(oe=.001),E=this.Rd!==null?this.Rd:this.ua,ee=E.bounds,x=re/ee.width,ee=oe/ee.height,isFinite(x)||(x=1),isFinite(ee)||(ee=1),this.ua=x===1&&ee===1?E:E.copy().scale(x,ee)):this.ua!==null&&Bt.$(this.ua.Sk,a-z)&&Bt.$(this.ua.Rk,y-z)||(this.ua=pr.makeGeometry(this,re,oe)),ee=this.ua.bounds,a===1/0||y===1/0?this.Ge(ee.x-z/2,ee.y-z/2,a===0&&re===0?0:ee.width+z,y===0&&oe===0?0:ee.height+z):this.Ge(-(z/2),-(z/2),ce+z,he+z),b.w()?(ce=b.width,he=b.height,ce=Math.min(ye.width,ce),he=Math.min(ye.height,he),ce=Math.max(Te.width,ce),he=Math.max(Te.height,he),this.dc.h(0,0,ce,he)):this.dc.assign(ee)};function Nv(a){var y=a.geometryStretch;return a.Rd!==null?y===sr?Hn:y:y===sr?Mv[a.figure].defaultStretch:y}Ce.eh=function(a,y,E,x){Ps(this,a,y,E,x)},Ce.rs=function(a,y,E){return this.Sj(a.x,a.y,y.x,y.y,E)},Ce.Sj=function(a,y,E,x,b){var z=this.transform,ee=1/(z.m11*z.m22-z.m12*z.m21),re=z.m22*ee,oe=-z.m12*ee,ce=-z.m21*ee,he=z.m11*ee,ye=ee*(z.m21*z.dy-z.m22*z.dx),Te=ee*(z.m12*z.dx-z.m11*z.dy);z=a*re+y*ce+ye,ee=a*oe+y*he+Te,re=E*re+x*ce+ye,oe=E*oe+x*he+Te,ye=this.ig/2,ce=this.ua,ce===null&&(this.measure(1/0,1/0),ce=this.ua);var Ae=ce.bounds;if(he=!1,ce.type===Kn.j)if(1.5>=this.strokeWidth)he=Bt.Ve(ce.startX,ce.startY,ce.endX,ce.endY,z,ee,re,oe,b);else{if(ce.startX===ce.endX?(x=ye,he=0):(y=(ce.endY-ce.startY)/(ce.endX-ce.startX),he=ye/Math.sqrt(1+y*y),x=he*y),y=Ni(),a=new lt,Bt.Ve(ce.startX+x,ce.startY+he,ce.endX+x,ce.endY+he,z,ee,re,oe,a)&&y.push(a),a=new lt,Bt.Ve(ce.startX-x,ce.startY-he,ce.endX-x,ce.endY-he,z,ee,re,oe,a)&&y.push(a),a=new lt,Bt.Ve(ce.startX+x,ce.startY+he,ce.startX-x,ce.startY-he,z,ee,re,oe,a)&&y.push(a),a=new lt,Bt.Ve(ce.endX+x,ce.endY+he,ce.endX-x,ce.endY-he,z,ee,re,oe,a)&&y.push(a),re=y.length,re===0)return hi(y),!1;for(he=!0,oe=1/0,x=0;x<re;x++)a=y[x],E=(a.x-z)*(a.x-z)+(a.y-ee)*(a.y-ee),E<oe&&(oe=E,b.x=a.x,b.y=a.y);hi(y)}else if(ce.type===Kn.u)he=Bt.Ff(Ae.x-ye,Ae.y-ye,Ae.x+Ae.width+ye,Ae.y+Ae.height+ye,z,ee,re,oe,b);else if(ce.type===Kn.F){y=hn.allocAt(Ae.x,Ae.y,Ae.width,Ae.height).Bc(ye,ye);e:if(y.width===0)he=Bt.Ve(y.x,y.y,y.x,y.y+y.height,z,ee,re,oe,b);else if(y.height===0)he=Bt.Ve(y.x,y.y,y.x+y.width,y.y,z,ee,re,oe,b);else{if(a=y.width/2,ce=y.height/2,x=y.x+a,he=y.y+ce,E=9999,z!==re&&(E=(ee-oe)/(z-re)),9999>Math.abs(E)){if(oe=ee-he-E*(z-x),0>a*a*E*E+ce*ce-oe*oe){b.x=NaN,b.y=NaN,he=!1;break e}ye=Math.sqrt(a*a*E*E+ce*ce-oe*oe),re=(-(a*a*E*oe)+a*ce*ye)/(ce*ce+a*a*E*E)+x,a=(-(a*a*E*oe)-a*ce*ye)/(ce*ce+a*a*E*E)+x,ce=E*(re-x)+oe+he,oe=E*(a-x)+oe+he,Math.abs((z-re)*(z-re))+Math.abs((ee-ce)*(ee-ce))<Math.abs((z-a)*(z-a))+Math.abs((ee-oe)*(ee-oe))?(b.x=re,b.y=ce):(b.x=a,b.y=oe)}else{if(re=ce*ce,oe=z-x,re-=re/(a*a)*oe*oe,0>re){b.x=NaN,b.y=NaN,he=!1;break e}oe=Math.sqrt(re),re=he+oe,oe=he-oe,Math.abs(re-ee)<Math.abs(oe-ee)?(b.x=z,b.y=re):(b.x=z,b.y=oe)}he=!0}hn.free(y)}else if(ce.type===Kn.o){Te=lt.alloc();var ke=re-z,He=oe-ee,dt=ke*ke+He*He,tt=z,gt=ee;if(0<dt&&Ae.contains(tt,gt)&&(Te.x=tt,Te.y=gt,this.ca(Te)))for(ke!==0&&.5>Math.abs(ke)?(He*=.5/ke,ke=.5):He!==0&&.5>Math.abs(He)&&(ke*=.5/He,He=.5),tt-=ke,gt-=He;Ae.contains(tt,gt);)tt-=ke,gt-=He;for(b.x=re,b.y=oe,He=0;He<ce.figures.count;He++){var yt=ce.figures.s[He],bt=yt.isFilled?tt:z,kt=yt.isFilled?gt:ee,Kt=yt.segments;Ae=yt.startX,ke=yt.startY;for(var di=Ae,Ai=ke,xi=0;xi<Kt.count;xi++){var Qn=Kt.s[xi],kn=Qn.type,rr=Qn.endX,qi=Qn.endY,Gr=!1;switch(kn){case ko:di=rr,Ai=qi;break;case po:Gr=Rm(Ae,ke,rr,qi,bt,kt,re,oe,Te);break;case ja:Gr=Bt.Eo(Ae,ke,Qn.point1X,Qn.point1Y,Qn.point2X,Qn.point2Y,rr,qi,bt,kt,re,oe,.6,Te);break;case Os:Gr=Bt.Eo(Ae,ke,Ae+2/3*(Qn.point1X-Ae),ke+2/3*(Qn.point1Y-ke),rr+2/3*(Qn.point1X-rr),qi+2/3*(Qn.point1Y-qi),rr,qi,bt,kt,re,oe,.6,Te);break;case ta:case qs:kn=Qn.type===ta?os(Qn,yt):As(Qn,yt,Ae,ke);var vo=kn.length;if(vo===0){Gr=Rm(Ae,ke,Qn.type===ta?Qn.centerX:Qn.endX,Qn.type===ta?Qn.centerY:Qn.endY,bt,kt,re,oe,Te);break}for(qi=null,rr=0;rr<vo;rr++){if(qi=kn[rr],rr===0&&Rm(Ae,ke,qi[0],qi[1],bt,kt,re,oe,Te)){var Fa=Om(bt,kt,Te,dt,b);Fa<dt&&(dt=Fa,he=!0)}Bt.Eo(qi[0],qi[1],qi[2],qi[3],qi[4],qi[5],qi[6],qi[7],bt,kt,re,oe,.6,Te)&&(Fa=Om(bt,kt,Te,dt,b),Fa<dt&&(dt=Fa,he=!0))}rr=qi[6],qi=qi[7];break;default:pt("Unknown Segment type: "+kn)}Ae=rr,ke=qi,Gr&&(Gr=Om(bt,kt,Te,dt,b),Gr<dt&&(dt=Gr,he=!0)),Qn.isClosed&&(rr=di,qi=Ai,Rm(Ae,ke,rr,qi,bt,kt,re,oe,Te)&&(Qn=Om(bt,kt,Te,dt,b),Qn<dt&&(dt=Qn,he=!0)))}}z=E-a,ee=x-y,re=Math.sqrt(z*z+ee*ee),re!==0&&(z/=re,ee/=re),b.x-=z*ye,b.y-=ee*ye,lt.free(Te)}else pt("Unknown Geometry type: "+ce.type);return he?(this.transform.Ga(b),!0):!1};function Om(a,y,E,x,b){return a=E.x-a,y=E.y-y,y=a*a+y*y,y<x?(b.x=E.x,b.y=E.y,y):x}function Rm(a,y,E,x,b,z,ee,re,oe){if(Bt.$(a,E)&&Bt.$(y,x)||Bt.$(b,ee)&&Bt.$(z,re))return!1;var ce=!1,he=(b-ee)*(y-x)-(z-re)*(a-E);return he===0?!1:(oe.x=((b*re-z*ee)*(a-E)-(b-ee)*(a*x-y*E))/he,oe.y=((b*re-z*ee)*(y-x)-(z-re)*(a*x-y*E))/he,(a>E?a-E:E-a)<(y>x?y-x:x-y)?(a=y<x?y:x,y=y<x?x:y,(oe.y>a||Bt.$(oe.y,a))&&(oe.y<y||Bt.$(oe.y,y))&&(ce=!0)):(y=a<E?a:E,a=a<E?E:a,(oe.x>y||Bt.$(oe.x,y))&&(oe.x<a||Bt.$(oe.x,a))&&(ce=!0)),ce)}Ce.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var E=this.ua;E===null&&(this.measure(1/0,1/0),E=this.ua),E=E.bounds;var x=this.strokeWidth/2,b=!1,z=lt.alloc();return z.h(E.x-x,E.y-x),a.ca(y.Ga(z))&&(z.h(E.x-x,E.bottom+x),a.ca(y.Ga(z))&&(z.h(E.right+x,E.bottom+x),a.ca(y.Ga(z))&&(z.h(E.right+x,E.y-x),a.ca(y.Ga(z))&&(b=!0)))),lt.free(z),b},Ce.Yc=function(a,y){if(this.fh(a,y)||y===void 0&&(y=this.transform,a.Re(this.actualBounds)))return!0;var E=ir.alloc();E.set(y),E.Vj();var x=a.left,b=a.right,z=a.top;a=a.bottom;var ee=lt.alloc();if(ee.h(x,z),E.Ga(ee),this.gh(ee,!0)||(ee.h(b,z),E.Ga(ee),this.gh(ee,!0))||(ee.h(x,a),E.Ga(ee),this.gh(ee,!0))||(ee.h(b,a),E.Ga(ee),this.gh(ee,!0)))return lt.free(ee),!0;var re=lt.alloc(),oe=lt.alloc();return E.set(y),E.bv(this.transform),E.Vj(),re.x=b,re.y=z,re.transform(E),ee.x=x,ee.y=z,ee.transform(E),y=!1,Rh(this,ee,re,oe)?y=!0:(ee.x=b,ee.y=a,ee.transform(E),Rh(this,ee,re,oe)?y=!0:(re.x=x,re.y=a,re.transform(E),Rh(this,ee,re,oe)?y=!0:(ee.x=x,ee.y=z,ee.transform(E),Rh(this,ee,re,oe)&&(y=!0)))),lt.free(ee),ir.free(E),lt.free(re),lt.free(oe),y};function Rh(a,y,E,x){if(!a.rs(y,E,x))return!1;a=y.x,y=y.y;var b=E.x,z=E.y;return E=x.x,x=x.y,a===b?(y<z?(a=y,y=z):a=z,x>=a&&x<=y):(a<b?(x=a,a=b):x=b,E>=x&&E<=a)}Ce.tx=function(a,y,E){function x(dt,tt){for(var gt=dt.length,yt=0;yt<gt;yt+=2)if(tt.zd(dt[yt],dt[yt+1])>b)return!0;return!1}if(E&&this.fill!==null&&this.gh(a,!0))return!0;var b=a.Bf(y),z=b;if(1.5<this.strokeWidth&&(b=this.strokeWidth/2+Math.sqrt(b),b*=b),y=this.ua,y===null&&(this.measure(1/0,1/0),y=this.ua,y===null))return!1;if(!E){var ee=y.bounds,re=ee.x,oe=ee.y,ce=ee.x+ee.width;if(ee=ee.y+ee.height,Uo(a.x,a.y,re,oe)<=b&&Uo(a.x,a.y,ce,oe)<=b&&Uo(a.x,a.y,re,ee)<=b&&Uo(a.x,a.y,ce,ee)<=b)return!0}if(re=y.startX,oe=y.startY,ce=y.endX,ee=y.endY,y.type===Kn.j){if(E=(re-ce)*(a.x-ce)+(oe-ee)*(a.y-ee),kr(a.x,a.y,re,oe,ce,ee)<=(0<=(ce-re)*(a.x-re)+(ee-oe)*(a.y-oe)&&0<=E?b:z))return!0}else{if(y.type===Kn.u)return y=!1,E&&(y=kr(a.x,a.y,re,oe,re,ee)<=b||kr(a.x,a.y,re,oe,ce,oe)<=b||kr(a.x,a.y,ce,oe,ce,ee)<=b||kr(a.x,a.y,re,ee,ce,ee)<=b),y;if(y.type===Kn.F){y=a.x-(re+ce)/2,z=a.y-(oe+ee)/2;var he=Math.abs(ce-re)/2,ye=Math.abs(ee-oe)/2;if(he===0||ye===0)return kr(a.x,a.y,re,oe,ce,ee)<=b;if(E){if(a=Bt.$y(he,ye,y,z),a*a<=b)return!0}else return!(Uo(y,z,-he,0)>=b||Uo(y,z,0,-ye)>=b||Uo(y,z,0,ye)>=b||Uo(y,z,he,0)>=b)}else if(y.type===Kn.o){if(ce=y.bounds,z=ce.x,re=ce.y,oe=ce.x+ce.width,ce=ce.y+ce.height,a.x>oe&&a.x<z&&a.y>ce&&a.y<re&&kr(a.x,a.y,z,re,z,ce)>b&&kr(a.x,a.y,z,re,oe,re)>b&&kr(a.x,a.y,oe,ce,z,ce)>b&&kr(a.x,a.y,oe,ce,oe,re)>b)return!1;if(z=Math.sqrt(b),E){if(this.fill===null?sc(y,a.x,a.y,z):Js(y,a,z,!0,!1))return!0}else{for(E=y.figures,y=0;y<E.count;y++){if(z=E.s[y],ee=z.startX,he=z.startY,a.zd(ee,he)>b)return!1;for(re=z.segments.s,oe=re.length,ce=0;ce<oe;ce++)switch(ye=re[ce],ye.type){case ko:case po:if(ee=ye.endX,he=ye.endY,a.zd(ee,he)>b)return!1;break;case ja:var Te=Ni();if(Bt.Qe(ee,he,ye.point1X,ye.point1Y,ye.point2X,ye.point2Y,ye.endX,ye.endY,.8,Te),ee=x(Te,a),hi(Te),ee||(ee=ye.endX,he=ye.endY,a.zd(ee,he)>b))return!1;break;case Os:if(Te=Ni(),Bt.ep(ee,he,ye.point1X,ye.point1Y,ye.endX,ye.endY,.8,Te),ee=x(Te,a),hi(Te),ee||(ee=ye.endX,he=ye.endY,a.zd(ee,he)>b))return!1;break;case ta:case qs:Te=ye.type===ta?os(ye,z):As(ye,z,ee,he);var Ae=Te.length;if(Ae===0){if(ee=ye.type===ta?ye.centerX:ye.endX,he=ye.type===ta?ye.centerY:ye.endY,a.zd(ee,he)>b)return!1;break}ye=null;for(var ke=Ni(),He=0;He<Ae;He++)if(ye=Te[He],ke.length=0,Bt.Qe(ye[0],ye[1],ye[2],ye[3],ye[4],ye[5],ye[6],ye[7],.8,ke),x(ke,a))return hi(ke),!1;hi(ke),ye!==null&&(ee=ye[6],he=ye[7]);break;default:pt("Unknown Segment type: "+ye.type)}}return!0}}}return!1},Ce.qc=function(){this.ua=null},Ce.kq=function(){return this.ig};function x1(a){var y=a.diagram;y!==null&&y.undoManager.isUndoingRedoing||(a.segmentOrientation=gp,a.toArrow!=="None"?(a.segmentIndex=-1,a.alignmentFocus=_a):a.fromArrow!=="None"&&(a.segmentIndex=0,a.alignmentFocus=new Yt(1-_a.x,_a.y)))}pr.makeGeometry=function(a,y,E){if(a.toArrow!=="None")var x=Dc[a.toArrow];else a.fromArrow!=="None"?x=Dc[a.fromArrow]:(x=Bt.Ze[a.figure],typeof x=="string"&&(x=Bt.Ze[x]),x===void 0&&pt("Unknown Shape.figure: "+a.figure),x=x(a,y,E),x.Sk=y,x.Rk=E);if(x===null){var b=Bt.Ze.Rectangle;typeof b=="function"&&(x=b(a,y,E))}return x};function b1(a){var y=Dc[a];if(y===void 0){var E=a.toLowerCase();if(E==="none")return"None";if(y=Dc[E],y===void 0){var x=null,b;for(b in Bt.um)if(b.toLowerCase()===E){x=b;break}if(x!==null)return a=Kn.parse(Bt.um[x],!1),Dc[x]=a,E!==x&&(Dc[E]=x),x}}return typeof y=="string"?y:y instanceof Kn?a:null}It.Object.defineProperties(pr.prototype,{geometry:{get:function(){return this.ua!==null?this.ua:this.Rd},set:function(a){var y=this.ua,E=this.Rd;if(y!==a){a!==null?this.Rd=this.ua=a.freeze():this.Rd=this.ua=null;var x=this.part;x!==null&&(x.ag=NaN),this.v(),this.g("geometry",y||E,a),ns(this)&&(a=this.part,a!==null&&No(this,a,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(a){a=Kn.parse(a);var y=a.normalize();this.geometry=a,this.position=a=lt.allocAt(-y.x,-y.y),lt.free(a)}},isGeometryPositioned:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.v(),this.g("isGeometryPositioned",y,a))}},fill:{get:function(){return this.Ui},set:function(a){var y=this.Ui;y!==a&&(a!==null&&sf(a,"Shape.fill"),a instanceof qr&&a.freeze(),this.Ui=a,this.N(),this.g("fill",y,a))}},stroke:{get:function(){return this.xc},set:function(a){var y=this.xc;y!==a&&(a!==null&&sf(a,"Shape.stroke"),a instanceof qr&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},strokeWidth:{get:function(){return this.ig},set:function(a){var y=this.ig;if(y!==a)if(0<=a){this.ig=a,this.v();var E=this.part;E!==null&&(E.ag=NaN),this.g("strokeWidth",y,a)}else ii(a,"value >= 0",pr,"strokeWidth:value")}},strokeCap:{get:function(){return this.Na!==null?this.Na.Hr:"butt"},set:function(a){var y=this.strokeCap;y!==a&&(typeof a!="string"||a!=="butt"&&a!=="round"&&a!=="square"?ii(a,'"butt", "round", or "square"',pr,"strokeCap"):(Oh(this),this.Na.Hr=a,this.N(),this.g("strokeCap",y,a)))}},strokeJoin:{get:function(){return this.Na!==null?this.Na.Ir:"miter"},set:function(a){var y=this.strokeJoin;y!==a&&(typeof a!="string"||a!=="miter"&&a!=="bevel"&&a!=="round"?ii(a,'"miter", "bevel", or "round"',pr,"strokeJoin"):(Oh(this),this.Na.Ir=a,this.N(),this.g("strokeJoin",y,a)))}},strokeMiterLimit:{get:function(){return this.Na!==null?this.Na.Jr:10},set:function(a){var y=this.strokeMiterLimit;if(y!==a&&1<=a){Oh(this),this.Na.Jr=a,this.N();var E=this.part;E!==null&&(E.ag=NaN),this.g("strokeMiterLimit",y,a)}}},strokeDashArray:{get:function(){return this.Yg},set:function(a){var y=this.Yg;if(y!==a){if(a!==null){for(var E=a.length,x=0,b=0;b<E;b++){var z=a[b];0<=z&&isFinite(z)||pt("strokeDashArray:value "+z+" at index "+b+" must be a positive number or zero."),x+=z}if(x===0){if(y===null)return;a=null}}this.Yg=a,this.N(),this.g("strokeDashArray",y,a)}}},strokeDashOffset:{get:function(){return this.Na!==null?this.Na.uj:0},set:function(a){var y=this.strokeDashOffset;y!==a&&0<=a&&(Oh(this),this.Na.uj=a,this.N(),this.g("strokeDashOffset",y,a))}},figure:{get:function(){return this.an},set:function(a){var y=this.an;if(y!==a){var E=Bt.Ze[a];typeof E=="function"?E=a:(E=Bt.Ze[a.toLowerCase()])||pt("Unknown Shape.figure: "+a),y!==E&&(a=this.part,a!==null&&(a.ag=NaN),this.an=E,this.Rd=null,this.qc(),this.v(),this.g("figure",y,E))}}},toArrow:{get:function(){return this.Ua!==null?this.Ua.V:"None"},set:function(a){var y=this.toArrow;if(a===!0?a="Standard":a===!1&&(a=""),y!==a){var E=b1(a);E===null?pt("Unknown Shape.toArrow: "+a):y!==E&&(this.Ua===null&&(this.Ua=new Wd),this.Ua.V=E,this.Rd=null,this.qc(),this.v(),x1(this),this.g("toArrow",y,E))}}},fromArrow:{get:function(){return this.Ua!==null?this.Ua.j:"None"},set:function(a){var y=this.fromArrow;if(a===!0?a="Standard":a===!1&&(a=""),y!==a){var E=b1(a);E===null?pt("Unknown Shape.fromArrow: "+a):y!==E&&(this.Ua===null&&(this.Ua=new Wd),this.Ua.j=E,this.Rd=null,this.qc(),this.v(),x1(this),this.g("fromArrow",y,E))}}},spot1:{get:function(){return this.Na!==null?this.Na.fg:Ca},set:function(a){var y=this.spot1;y.D(a)||(a=a.J(),Oh(this),this.Na.fg=a,this.v(),this.g("spot1",y,a))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:Ca},set:function(a){var y=this.spot2;y.D(a)||(a=a.J(),Oh(this),this.Na.gg=a,this.v(),this.g("spot2",y,a))}},parameter1:{get:function(){return this.Un},set:function(a){var y=this.Un;y!==a&&(this.Un=a,this.qc(),this.v(),this.g("parameter1",y,a))}},parameter2:{get:function(){return this.Vn},set:function(a){var y=this.Vn;y!==a&&(this.Vn=a,this.qc(),this.v(),this.g("parameter2",y,a))}},naturalBounds:{get:function(){return this.dc}},pathPattern:{get:function(){return this.Na!==null?this.Na.br:null},set:function(a){var y=this.pathPattern;y!==a&&(Oh(this),this.Na.br=a,this.N(),this.g("pathPattern",y,a))}},geometryStretch:{get:function(){return this.Na!==null?this.Na.jq:sr},set:function(a){var y=this.geometryStretch;y!==a&&(Oh(this),this.Na.jq=a,this.v(),this.g("geometryStretch",y,a))}},interval:{get:function(){return this.fa!==null?this.fa.Tk:1},set:function(a){var y=this.interval;if(a=Math.round(a),y!==a&&a!==0&&isFinite(a)){this.fa===null&&(this.fa=new Oc),this.fa.Tk=a;var E=this.diagram;E!==null&&this.panel===E.grid&&hc(E),this.v(),E=this.panel,E!==null&&(E.graduatedIntervals=null),this.g("interval",y,a)}}},graduatedStart:{get:function(){return this.fa!==null?this.fa.u:0},set:function(a){var y=this.graduatedStart;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new Oc),this.fa.u=a,this.v(),this.g("graduatedStart",y,a))}},graduatedEnd:{get:function(){return this.fa!==null?this.fa.j:1},set:function(a){var y=this.graduatedEnd;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new Oc),this.fa.j=a,this.v(),this.g("graduatedEnd",y,a))}},graduatedSkip:{get:function(){return this.fa!==null?this.fa.o:null},set:function(a){var y=this.graduatedSkip;y!==a&&(this.fa===null&&(this.fa=new Oc),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}}}),pr.prototype.intersectsRect=pr.prototype.Yc,pr.prototype.containedInRect=pr.prototype.fh,pr.prototype.getNearestIntersectionPoint=pr.prototype.rs,pr.prototype.getDocumentBounds=pr.prototype.mi,pr.prototype.getDocumentPoint=pr.prototype.ga;var Dc=new ji,Mv=new ji;pr.className="Shape",pr.getFigureGenerators=function(){var a=new zi,y;for(y in Bt.Ze)y!==y.toLowerCase()&&a.add(y,Bt.Ze[y]);return a.freeze(),a},pr.defineFigureGenerator=function(a,y){var E=a.toLowerCase(),x=Bt.Ze;x[a]=y,x[E]=a},pr.getArrowheadGeometries=function(){var a=new zi;for(x in Bt.um)if(Dc[x]===void 0){var y=Kn.parse(Bt.um[x],!1);Dc[x]=y,y=x.toLowerCase(),y!==x&&(Dc[y]=x)}for(var E in Dc)if(E!==E.toLowerCase()){var x=Dc[E];x instanceof Kn&&a.add(E,x)}return a.freeze(),a},pr.defineArrowheadGeometry=function(a,y){var E=null;typeof y=="string"?E=Kn.parse(y,!1):E=y,y=a.toLowerCase(),y!=="none"&&a!==y||pt("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+a);var x=Dc;x[a]=E,x[y]=a};function Pv(){this.nc=!1,this.Hr="butt",this.Ir="miter",this.Jr=10,this.uj=0,this.br=null,this.jq=sr,this.gg=this.fg=Ca}Pv.prototype.copy=function(){var a=new Pv;return a.Hr=this.Hr,a.Ir=this.Ir,a.Jr=this.Jr,a.uj=this.uj,a.br=this.br,a.jq=this.jq,a.fg=this.fg.J(),a.gg=this.gg.J(),a};function So(a,y){return Dt.call(this),zm||(il=qo?new vu(null).context:null,zm=!0),this.l|=2097152,this.ec="",this.xc="black",this.Ae="13px sans-serif",this.Lq=this.Cb=this.Gc=0,this.da=this.fa=this.Gm=null,this.Ih=0,this.df=null,this.Le=0,this.ze=this.Qb=this.Qc=null,typeof a=="string"?this.text=a:a&&Object.assign(this,a),y&&Object.assign(this,y),this}Ut(So,Dt),So.prototype.cloneProtected=function(a){Dt.prototype.cloneProtected.call(this,a),a.ec=this.ec,a.xc=this.xc,a.Ae=this.Ae,a.Gc=this.Gc,a.Cb=this.Cb,a.Lq=this.Lq,a.Gm=this.Gm,this.fa!==null&&(a.fa=this.fa.copy()),this.da!==null&&(a.da=this.da.nc?this.da:this.da.copy()),a.Ih=this.Ih,a.df=this.df,a.Le=this.Le,a.Qc=this.Qc,a.Qb=this.Qb,a.ze=this.ze};function mc(a){a.da===null?a.da=new Fv:a.da.nc&&(a.da=a.da.copy())}Ce=So.prototype,Ce.th=function(){Dt.prototype.th.call(this),this.da!==null&&(this.da.nc=!0)};function w1(a,y){a.l=y.l|6144,a.pb=y.opacity,a.Ma=y.background,a.areaBackground=y.areaBackground,a.jd=y.desiredSize.J(),a.minSize=y.minSize.J(),a.maxSize=y.maxSize.J(),y.Lb!==null?a.Lb=y.Lb.copy():a.Lb=null,a.Ca=y.scale,a.Kb=y.angle,a.stretch=y.stretch,a.Kg=y.margin.J(),a.Jb=y.alignment.J(),a.sk=y.alignmentFocus.J(),a.segmentFraction=y.segmentFraction,a.segmentOffset=y.segmentOffset.J(),a.segmentOrientation=y.segmentOrientation,y.tb!==null&&(a.tb=y.tb.copy()),a.shadowVisible=y.shadowVisible,a.ec=y.ec,a.xc=y.xc,a.Ae=y.Ae,a.fa!==null&&(a.fa=y.fa.copy()),y.da!==null&&(a.da=y.da.nc?y.da:y.da.copy()),a.Ih=y.Ih}Ce.qb=function(a){a.classType===So?this.wrap=a:Dt.prototype.qb.call(this,a)},Ce.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},Ce.v=function(){Dt.prototype.v.call(this)},Ce.hh=function(a,y){if(this.xc!==null&&this.ec.length!==0&&this.Ae!==null){var E=this.naturalBounds,x=this.actualBounds,b=E.width,z=E.height,ee=sp(this),re=a.textAlign=this.textAlign,oe=y.tn;re==="start"?re=oe?"right":"left":re==="end"&&(re=oe?"left":"right"),oe=this.isUnderline;var ce=this.isStrikethrough;ea(this,a,this.xc,!0,!1,E,x),(oe||ce)&&ea(this,a,this.xc,!1,!1,E,x),x=0,E=!1;var he=this.oe,ye=he.dx-(ee*he.m21+he.dx);he=he.dy-(ee*he.m22+he.dy);var Te=y.scale;switch(8>(ye*ye+he*he)*Te*Te&&(E=!0),y.ib!==a&&(E=!1),y.ib instanceof Al&&(E=!1),y.Gf("textGreeking")===!1&&(E=!1),y=this.spacingAbove,ye=this.spacingBelow,this.flip){case Fr:a.translate(b,0),a.scale(-1,1);break;case Er:a.translate(0,z),a.scale(1,-1);break;case oo:a.translate(b,z),a.scale(-1,-1)}if(a.yc(),he=this.Gc,Te=(y+ee+ye)*he,z>Te&&(x=this.verticalAlignment,x=x.y*z-x.y*Te+x.offsetY),he===1&&this.ze!==null)ye=this.Cb,ye>b&&(ye=b),this.Oj(this.ze,a,0,x+y,b,ee,ye,E,re,oe,ce);else if(this.Qc!==null&&this.Qb!==null)for(Te=0;Te<he;Te++){var Ae=this.Qc[Te];Ae>b&&(Ae=b),x+=y,this.Oj(this.Qb[Te],a,0,x,b,ee,Ae,E,re,oe,ce),x+=ee+ye}switch(this.flip){case Fr:a.scale(-1,1),a.translate(-b,0);break;case Er:a.scale(1,-1),a.translate(0,-z);break;case oo:a.scale(-1,-1),a.translate(-b,-z)}}},Ce.Oj=function(a,y,E,x,b,z,ee,re,oe,ce,he){var ye=0;if(re)oe==="left"?ye=0:oe==="right"?ye=b-ee:oe==="center"&&(ye=(b-ee)/2),y.fillRect(E+ye,x+.25*z,ee,1);else{if(oe==="left"?ye=0:oe==="right"?ye=b:oe==="center"&&(ye=b/2),b=Fm!==null?Fm(this,z):.75*z,y.fillText(a,E+ye,x+b),a=z/20|0,a===0&&(a=1),oe==="right"?ye-=ee:oe==="center"&&(ye-=ee/2),ce){re=Bm!==null?Bm(this,z):.8*z,oe=E+ye,ce=x+re,b=E+ye+ee,re=x+re;var Te=a;y.beginPath(),y.lineWidth=Te,y.moveTo(oe,ce),y.lineTo(b,re),y.stroke(),y.Se(),y instanceof Al&&y.ad.classList.add("gojs-td")}he&&(he=x+z-z/2.2|0,a%2!==0&&(he+=.5),x=E+ye,z=he,E=E+ye+ee,ee=he,ye=a,y.beginPath(),y.lineWidth=ye,y.moveTo(x,z),y.lineTo(E,ee),y.stroke(),y.Se(),y instanceof Al&&y.ad.classList.add("gojs-td"))}},Ce.kk=function(a,y,E){if(!Dt.prototype.kk.call(this,a,y,E))return!1;if(ea(this,a,this.xc,!0,!1,this.naturalBounds,this.actualBounds),E){if(this.svg.getElementsByTagName("text").length===0)return!0;for(y=this.svg.getElementsByClassName("gojs-td"),E=0;E<y.length;E++)n1(a,y[E],!1)}else y=this.svg,y.innerHTML=this.text,n1(a,y,!0);return!0},Ce.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:Dt.prototype.nk.call(this,a)},Ce.Dv=function(a,y){if(a.nodeName!=="g")a.setAttributeNS(null,"filter",y);else{a=a.getElementsByTagName("text");for(var E=0;E<a.length;E++)a[E].setAttributeNS(null,"filter",y)}},Ce.Wl=function(a,y,E,x){var b=this.Gc;this.Ih=a,this.l&=-16777217;var z=this.Ae;il!==null&&L1!==z&&(L1=il.font=z),this.Cb=this.Le=0,this.ze=this.Qb=this.Qc=this.df=null;var ee;if(isNaN(this.desiredSize.width)){if(z=this.ec.replace(/\r\n/g,`
`).replace(/\r/g,`
`),z.length===0)z=8;else if(this.isMultiline){for(var re=ee=0,oe=!1;!oe;){var ce=z.indexOf(`
`,re);ce===-1&&(ce=z.length,oe=!0),re=z.substr(re,ce-re),this.formatting===lp&&(re=re.trim()),ee=Math.max(ee,Ru(re)),re=ce+1}z=ee}else ee=z.indexOf(`
`,0),0<=ee&&(z=z.substr(0,ee)),z=Ru(z);z=Math.min(z,a/this.scale)}else z=this.desiredSize.width;if(this.panel!==null&&(z=Math.min(z,this.panel.maxSize.width)),ee=A1(this,z),isNaN(this.desiredSize.height)?ee=Math.min(ee,y/this.scale):ee=this.desiredSize.height,oe=ee,this.Cb!==0&&this.Qc!==null&&this.Qb!==null&&this.overflow===_m&&(y=this.Ae,y=this.overflow===_m?T1(y):0,ce=this.spacingAbove+this.spacingBelow,ce=Math.max(0,sp(this)+ce),oe=Math.min(this.maxLines-1,Math.max(Math.floor(oe/ce+.01)-1,0)),!(oe+1>=this.Qb.length))){for(this.l|=16777216,ce=this.Qb[oe],y=Math.max(1,a-y);Ru(ce)>y&&1<ce.length;)ce=ce.substr(0,ce.length-1);ce+=up,y=Ru(ce),this.Qb[oe]=ce,this.Qb=this.Qb.slice(0,oe+1),this.Qc[oe]=y,this.Qc=this.Qc.slice(0,oe+1),this.Le=this.Qb.length,this.Cb=Math.max(this.Cb,y),this.Gc=this.Le,this.Gc===1&&(this.ze=this.Qb[0])}(this.wrap===C1||isNaN(this.desiredSize.width))&&(z=isNaN(a)?this.Cb:Math.min(a,this.Cb)),z=Math.max(E,z),ee=Math.max(x,ee),ra(this.dc,z,ee),this.Ge(0,0,z,ee),this.svg!==null&&b!==this.Gc&&(this.Uc=!0)},Ce.eh=function(a,y,E,x){Ps(this,a,y,E,x)};function ap(a,y,E){a.ze===null?(a.ze=y,a.Cb=E):((a.Qb===null||a.Qc===null)&&(a.Qb=[],a.Qc=[],a.Qb.push(a.ze),a.Qc.push(a.Cb)),a.Qb.push(y),a.Qc.push(E),a.Qb.length>a.maxLines&&(a.l|=16777216))}function Lv(a,y,E,x){var b=a.formatting===lp;b&&(y=y.trim());var z=0,ee=a.Ae,re=a.spacingAbove+a.spacingBelow;re=Math.max(0,sp(a)+re);var oe=a.overflow===_m?T1(ee):0;if(a.Gc>=a.maxLines)x!==null&&x.h(0,re);else if(ee=y,a.wrap===Iv){a.Le=1;var ce=Ru(y);if(oe===0||ce<=E)a.Cb=Math.max(a.Cb,ce),ap(a,y,a.Cb),x!==null&&x.h(ce,re);else{for(z=Xf(a,ee),ee=ee.substr(z.length),y=Xf(a,ee),ce=Ru(z+y);0<y.length&&ce<=E;)z+=y,ee=ee.substr(y.length),y=Xf(a,ee),ce=z+y,b&&(ce=ce.trim()),ce=Ru(ce);for(b&&(y=y.trim()),z+=y,E=Math.max(1,E-oe);Ru(z)>E&&1<z.length;)z=z.substr(0,z.length-1);a.l|=16777216,z+=up;var he=Ru(z);a.Cb=he,ap(a,z,he),x!==null&&x.h(he,re)}}else{for(oe=0,ee.length===0&&(oe=1,ap(a,ee,0));0<ee.length;){for(y=Xf(a,ee),ee=ee.substr(y.length);Ru(y)>E;){var ye=1;for(ce=Ru(y.substr(0,ye)),he=0;ce<=E;)ye++,he=ce,ce=Ru(y.substr(0,ye));if(ye===1){var Te=ce;z=Math.max(z,ce)}else Te=he,z=Math.max(z,he);if(ye--,1>ye&&(ye=1),ap(a,y.substr(0,ye),Te),oe++,y=y.substr(ye),a.Gc+oe>a.maxLines)break}for(he=Xf(a,ee),ce=Ru(y+he);0<he.length&&ce<=E;)y+=he,ee=ee.substr(he.length),he=Xf(a,ee),ce=y+he,b&&(ce=ce.trim()),ce=Ru(ce);if(b&&(y=y.trim()),y!==""&&(y[y.length-1]==="\xAD"&&(y=y.substring(0,y.length-1)+"\u2010"),he.length===0?(ye=ce,z=Math.max(z,ce)):(ye=he=Ru(y),z=Math.max(z,he)),ap(a,y,ye),oe++,a.Gc+oe>a.maxLines))break}a.Le=Math.min(a.maxLines,oe),a.Cb=Math.max(a.Cb,z),x!==null&&x.h(a.Cb,re*a.Le)}}function Xf(a,y){if(a.wrap===N1)return y.substr(0,1);for(var E=y.length,x=0,b=PE;x<E&&!b.test(y.charAt(x));)x++;for(a.formatting===M1&&(E=Math.min(E,x+1));x<E&&b.test(y.charAt(x));)x++;return x>=y.length?y:y.substr(0,x)}function Ru(a){return il===null?8*a.length:il.measureText(a).width}function sp(a){if(a.df!==null)return a.df;var y=a.Ae;if(il===null){var E=16;return a.df=E}return Ov[y]!==void 0&&5e3>P1?E=Ov[y]:(E=1.3*il.measureText("M").width,Ov[y]=E,P1++),a.df=E}function T1(a){if(il===null)return 6;if(jm[a]!==void 0&&5e3>Rv)var y=jm[a];else y=il.measureText(up).width,jm[a]=y,Rv++;return y}function A1(a,y){var E=a.ec.replace(/\r\n/g,`
`).replace(/\r/g,`
`),x=a.spacingAbove+a.spacingBelow;if(x=Math.max(0,sp(a)+x),E.length===0)return a.Cb=0,a.Gc=1,x;if(!a.isMultiline){var b=E.indexOf(`
`,0);0<=b&&(E=E.substr(0,b))}b=0;for(var z=a.Gc=0,ee,re=!1;!re;){if(ee=E.indexOf(`
`,z),ee===-1&&(ee=E.length,re=!0),z<=ee){if(z=E.substr(z,ee-z),a.wrap!==Iv){a.Le=0;var oe=ri.alloc();Lv(a,z,y,oe),b+=oe.height,ri.free(oe),a.Gc+=a.Le}else Lv(a,z,y,null),b+=x,a.Gc++;a.Gc===a.maxLines&&(re=!0)}z=ee+1}return a.Lq=b}It.Object.defineProperties(So.prototype,{font:{get:function(){return this.Ae},set:function(a){var y=this.Ae;y!==a&&(this.Ae=a,this.df=null,this.v(),this.g("font",y,a))}},text:{get:function(){return this.ec},set:function(a){var y=this.ec;a!=null?a=a.toString():a="",y!==a&&(this.ec=a,this.v(),this.g("text",y,a),this.Uc=!0)}},textAlign:{get:function(){return this.da!==null?this.da.Or:"start"},set:function(a){var y=this.textAlign;y===a||a!=="start"&&a!=="end"&&a!=="left"&&a!=="right"&&a!=="center"||(mc(this),this.da.Or=a,this.N(),this.g("textAlign",y,a))}},flip:{get:function(){return this.da!==null?this.da.Xf:Dn},set:function(a){var y=this.flip;y!==a&&(mc(this),this.da.Xf=a,this.N(),this.g("flip",y,a))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:oc},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),mc(this),this.da.Yr=a,js(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=ri.alloc();Lv(this,this.ec,999999,a);var y=a.width;ri.free(a),a=A1(this,y);var E=this.desiredSize;isNaN(E.width)||(y=E.width),isNaN(E.height)||(a=E.height),ra(this.dc,y,a)}return this.dc}},isMultiline:{get:function(){return(this.l&2097152)!==0},set:function(a){var y=(this.l&2097152)!==0;y!==a&&(this.l^=2097152,this.v(),this.g("isMultiline",y,a))}},isUnderline:{get:function(){return(this.l&4194304)!==0},set:function(a){var y=(this.l&4194304)!==0;y!==a&&(this.l^=4194304,this.Uc=!0,this.N(),this.g("isUnderline",y,a))}},isStrikethrough:{get:function(){return(this.l&8388608)!==0},set:function(a){var y=(this.l&8388608)!==0;y!==a&&(this.l^=8388608,this.Uc=!0,this.N(),this.g("isStrikethrough",y,a))}},wrap:{get:function(){return this.da!==null?this.da.$r:kv},set:function(a){var y=this.wrap;y!==a&&(mc(this),this.da.$r=a,this.v(),this.g("wrap",y,a))}},overflow:{get:function(){return this.da!==null?this.da.$q:Dv},set:function(a){var y=this.overflow;y!==a&&(mc(this),this.da.$q=a,this.v(),this.g("overflow",y,a))}},isOverflowed:{get:function(){return(this.l&16777216)!==0}},stroke:{get:function(){return this.xc},set:function(a){var y=this.xc;y!==a&&(a!==null&&sf(a,"TextBlock.stroke"),a instanceof qr&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return sp(this)}},editable:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.g("editable",y,a))}},textEditor:{get:function(){return this.da!==null?this.da.Qr:null},set:function(a){var y=this.textEditor;y!==a&&(mc(this),this.da.Qr=a,this.g("textEditor",y,a))}},errorFunction:{get:function(){return this.da!==null?this.da.Hd:null},set:function(a){var y=this.errorFunction;y!==a&&(mc(this),this.da.Hd=a,this.g("errorFunction",y,a))}},interval:{get:function(){return this.fa!==null?this.fa.Tk:1},set:function(a){var y=this.interval;if(a=Math.round(a),y!==a&&a!==0&&isFinite(a)){this.fa===null&&(this.fa=new Oc),this.fa.Tk=a,this.v();var E=this.panel;E!==null&&(E.graduatedIntervals=null),this.g("interval",y,a)}}},graduatedStart:{get:function(){return this.fa!==null?this.fa.u:0},set:function(a){var y=this.graduatedStart;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new Oc),this.fa.u=a,this.v(),this.g("graduatedStart",y,a))}},graduatedEnd:{get:function(){return this.fa!==null?this.fa.j:1},set:function(a){var y=this.graduatedEnd;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new Oc),this.fa.j=a,this.v(),this.g("graduatedEnd",y,a))}},graduatedFunction:{get:function(){return this.fa!==null?this.fa.F:null},set:function(a){var y=this.graduatedFunction;y!==a&&(this.fa===null&&(this.fa=new Oc),this.fa.F=a,this.v(),this.g("graduatedFunction",y,a))}},graduatedSkip:{get:function(){return this.fa!==null?this.fa.o:null},set:function(a){var y=this.graduatedSkip;y!==a&&(this.fa===null&&(this.fa=new Oc),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}},textValidation:{get:function(){return this.da!==null?this.da.vj:null},set:function(a){var y=this.textValidation;y!==a&&(mc(this),this.da.vj=a,this.g("textValidation",y,a))}},textEdited:{get:function(){return this.da!==null?this.da.Pr:null},set:function(a){var y=this.textEdited;y!==a&&(mc(this),this.da.Pr=a,this.g("textEdited",y,a))}},spacingAbove:{get:function(){return this.da!==null?this.da.Dr:0},set:function(a){var y=this.spacingAbove;y!==a&&(mc(this),this.da.Dr=a,this.v(),this.g("spacingAbove",y,a))}},spacingBelow:{get:function(){return this.da!==null?this.da.Er:0},set:function(a){var y=this.spacingBelow;y!==a&&(mc(this),this.da.Er=a,this.v(),this.g("spacingBelow",y,a))}},formatting:{get:function(){return this.da!==null?this.da.gq:lp},set:function(a){var y=this.formatting;y!==a&&(mc(this),this.da.gq=a,this.v(),this.g("formatting",y,a))}},maxLines:{get:function(){return this.da!==null?this.da.Jq:1/0},set:function(a){var y=this.maxLines;y!==a&&(a=Math.floor(a),0>=a&&ii(a,"> 0",So,"maxLines"),mc(this),this.da.Jq=a,this.v(),this.g("maxLines",y,a))}},metrics:{get:function(){return{arrSize:this.Qc!==null?this.Qc:[this.Cb],arrText:this.Qb!==null?this.Qb:[this.ze],maxLineWidth:this.Cb,fontHeight:this.df}}},choices:{get:function(){return this.Gm},set:function(a){var y=this.Gm;y!==a&&(this.Gm=a,this.g("choices",y,a))}}});var Fm=null,Bm=null,Iv=new en(So,"None",0),C1=new en(So,"WrapFit",1),kv=new en(So,"WrapDesiredSize",2),N1=new en(So,"WrapBreakAll",3),Dv=new en(So,"OverflowClip",0),_m=new en(So,"OverflowEllipsis",1),lp=new en(So,"FormatTrim",0),M1=new en(So,"FormatNone",0),PE=/[ \u200b\u00ad]/,Ov=new ji,P1=0,jm=new ji,Rv=0,up="...",L1="",il=null,zm=!1;So.className="TextBlock";function Fv(){this.nc=!1,this.Hd=null,this.Xf=Dn,this.gq=lp,this.Jq=1/0,this.$q=Dv,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=oc,this.$r=kv}Fv.prototype.copy=function(){var a=new Fv;return a.Hd=this.Hd,a.Xf=this.Xf,a.gq=this.gq,a.Jq=this.Jq,a.$q=this.$q,a.Dr=this.Dr,a.Er=this.Er,a.Or=this.Or,a.Pr=this.Pr,a.Qr=this.Qr,a.vj=this.vj,a.Yr=this.Yr,a.$r=this.$r,a},So.getEllipsis=function(){return up},So.setEllipsis=function(a){up=a,jm=new ji,Rv=0},So.getBaseline=function(){return Fm},So.setBaseline=function(a){Fm=a},So.getUnderline=function(){return Bm},So.setUnderline=function(a){Bm=a},So.isValidFont=function(a){if(zm||(il=qo?new vu(null).context:null,zm=!0),il===null)return!0;var y=il.font;if(a===y||a==="10px sans-serif")return!0;il.font="10px sans-serif",il.font=a;var E=il.font;if(E!=="10px sans-serif")return il.font=y,!0;il.font="19px serif";var x=il.font;return il.font=a,E=il.font,il.font=y,E!==x},So.FormatNone=M1,So.FormatTrim=lp,So.None=Iv,So.OverflowClip=Dv,So.OverflowEllipsis=_m,So.WrapBreakAll=N1,So.WrapDesiredSize=kv,So.WrapFit=C1;function Oc(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}Oc.prototype.copy=function(){var a=new Oc;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},Oc.className="GradElementSettings";function rl(a,y){Dt.call(this),this.Eg=null,this.qo="",this.Xg=Xs,this.Nk=Hn,this.Zg=this.Hd=null,this.Mk=ur,this.Xf=Dn,this.vl=null,this.qn=!1,this.en=!0,this.al=!1,this.bt=this.rl=null,typeof a=="string"?this.source=a:a&&Object.assign(this,a),y&&Object.assign(this,y)}var Jf;Ut(rl,Dt),rl.prototype.cloneProtected=function(a){Dt.prototype.cloneProtected.call(this,a),a.qo=this.qo,a.element=this.Eg,a.Xg=this.Xg.J(),a.Nk=this.Nk,a.Xf=this.Xf,a.Hd=this.Hd,a.Zg=this.Zg,a.Mk=this.Mk.J(),a.en=this.en,a.rl=this.rl},rl.prototype.qb=function(a){a===Dn||a===Ii||a===Mr?this.imageStretch=a:Dt.prototype.qb.call(this,a)},rl.prototype.toString=function(){return"Picture("+this.source+")#"+Tr(this)};function qf(a){a===void 0&&(a=""),a!==""?Jf[a]&&(delete Jf[a],Um--):(Jf=new ji,Um=0)}function I1(a,y){y.qy||(y.Fq=function(E){y.sq=!0,y.ln=!1;var x=y.Bg.copy();if(x!=null){for(x=x.iterator;x.next();){var b=x.value;b.N();var z=y.getAttribute("src")||"",ee=b.Og.I(z);if(ee!==null)for(var re=ee.length,oe=0;oe<re;oe++)z=ee[oe],b.Xn.add(z),z.Uc=!0,b.$b(),y.hn&&(y.eu===void 0&&(y.eu=E),z.Zg!==null&&z.Zg(z,E))}y.Bg.clear()}a.desiredSize.w()||(ba(a,!1),a.v())},y.Yp=function(E){y.ln=E;var x=y.Bg.copy();if(x!=null){for(x=x.iterator;x.next();){var b=x.value,z=y.getAttribute("src")||"",ee=b.Og.I(z);if(ee!==null){b=ee.length,z=Ni();for(var re=0;re<b;re++)z.push(ee[re]);if(y.hn)for(re=0;re<b;re++)ee=z[re],ee.Hd!==null&&ee.Hd(ee,E);hi(z)}}y.Bg.clear()}},y.addEventListener("load",y.Fq),y.addEventListener("error",y.Yp),y.qy=!0)}rl.prototype.hA=function(){if(this.source!==""){qf(this.source);var a=this.source;this.source="",this.source=a}},rl.prototype.redraw=function(){this.N(),this.Uc=!0},rl.prototype.hh=function(a,y){var E=this.Eg;if(E!==null){var x=E.getAttribute("src");if(!(E instanceof HTMLImageElement&&(x===null||x==="")||E.ln instanceof Event&&a instanceof kh)){var b=a instanceof Al;x=this.naturalBounds;var z=0,ee=0,re=this.qn,oe=re?+E.width:E.naturalWidth;if(re=re?+E.height:E.naturalHeight,oe===void 0&&E.videoWidth&&(oe=E.videoWidth),re===void 0&&E.videoHeight&&(re=E.videoHeight),oe=oe||x.width,re=re||x.height,oe!==0&&re!==0){var ce=oe,he=re;this.sourceRect.w()&&(z=this.Xg.x,ee=this.Xg.y,oe=this.Xg.width,re=this.Xg.height);var ye=oe,Te=re,Ae=this.Nk,ke=this.Mk;switch(Ae){case Dn:if(this.sourceRect.w())break;ye>=x.width&&(z=z+ke.offsetX+(ye*ke.x-x.width*ke.x)),Te>=x.height&&(ee=ee+ke.offsetY+(Te*ke.y-x.height*ke.y)),oe=Math.min(x.width,ye),re=Math.min(x.height,Te);break;case Hn:ye=x.width,Te=x.height;break;case Ii:case Mr:Ae===Ii?(Ae=Math.min(x.height/Te,x.width/ye),ye*=Ae,Te*=Ae):Ae===Mr&&(Ae=Math.max(x.height/Te,x.width/ye),ye*=Ae,Te*=Ae,ye>=x.width&&(z=(z+ke.offsetX+(ye*ke.x-x.width*ke.x)/ye)*oe),Te>=x.height&&(ee=(ee+ke.offsetY+(Te*ke.y-x.height*ke.y)/Te)*re),oe*=1/(ye/x.width),re*=1/(Te/x.height),ye=x.width,Te=x.height)}Ae=this.Df()*y.scale;var He=ye*Ae*Te*Ae,dt=oe*re/He,tt=E.__goCache;Ae=null;var gt=LE;if(!b){if(E.sq&&tt!==void 0&&4<He&&dt>gt*gt)for(tt.gi===null&&(D1(tt,4,ce,he,E),D1(tt,16,ce,he,E)),b=tt.gi,ce=b.length,he=0;he<ce&&b[he].ratio*b[he].ratio<dt;he++)Ae=b[he];if(!y.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{b=new vu(null).context;try{b.drawImage(this.Eg,0,0)}catch(yt){this.en=!1}try{b.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(yt){this.vl=!0}}if(this.vl)return}}switch(b=ye<x.width?ke.offsetX+(x.width*ke.x-ye*ke.x):0,ke=Te<x.height?ke.offsetY+(x.height*ke.y-Te*ke.y):0,this.flip){case Fr:a.translate(Math.min(x.width,ye),0),a.scale(-1,1);break;case Er:a.translate(0,Math.min(x.height,Te)),a.scale(1,-1);break;case oo:a.translate(Math.min(x.width,ye),Math.min(x.height,Te)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&&tt!==void 0&&Ae!==null&&Ae.ratio!==1){a.save(),y=Ae.ratio;try{a.drawImage(Ae.source,z/y,ee/y,Math.min(Ae.source.width,oe/y),Math.min(Ae.source.height,re/y),b,ke,Math.min(x.width,ye),Math.min(x.height,Te)),a instanceof Al&&(this.bt=[z/y,ee/y,Math.min(Ae.source.width,oe/y),Math.min(Ae.source.height,re/y),b,ke,Math.min(x.width,ye),Math.min(x.height,Te)])}catch(yt){this.en=!1}a.restore()}else try{a.drawImage(E,z,ee,oe,re,b,ke,Math.min(x.width,ye),Math.min(x.height,Te)),a instanceof Al&&(this.bt=[z,ee,oe,re,b,ke,Math.min(x.width,ye),Math.min(x.height,Te)])}catch(yt){this.en=!1}switch(this.flip){case Fr:a.scale(-1,1),a.translate(-Math.min(x.width,ye),0);break;case Er:a.scale(1,-1),a.translate(0,-Math.min(x.height,Te));break;case oo:a.scale(-1,-1),a.translate(-Math.min(x.width,ye),-Math.min(x.height,Te))}}}}},rl.prototype.Wl=function(a,y,E,x){var b=this.desiredSize,z=nl(this,!0),ee=this.Eg,re=this.qn,oe=0,ce=0;(re||!this.al&&ee&&ee.complete)&&(this.al=!0),ee===null?(isFinite(b.width)||(a=0),isFinite(b.height)||(y=0)):(oe=re?+ee.width:ee.naturalWidth,ce=re?+ee.height:ee.naturalHeight),isFinite(b.width)||z===Hn||z===_i?(isFinite(a)||(this.sourceRect.w()?a=this.sourceRect.width:ee!==null&&(a=oe)),E=0):ee!==null&&this.al!==!1&&(a=this.sourceRect.w()?this.sourceRect.width:oe),isFinite(b.height)||z===Hn||z===Wi?(isFinite(y)||(this.sourceRect.w()?y=this.sourceRect.height:ee!==null&&(y=ce)),x=0):ee!==null&&this.al!==!1&&(y=this.sourceRect.w()?this.sourceRect.height:ce),isFinite(b.width)&&(a=b.width),isFinite(b.height)&&(y=b.height),b=this.maxSize,z=this.minSize,E=Math.max(E||0,z.width),x=Math.max(x||0,z.height),a=Math.min(b.width,a),y=Math.min(b.height,y),a=Math.max(E,a),y=Math.max(x,y),ee===null||ee.complete||(isFinite(a)||(a=0),isFinite(y)||(y=0)),ra(this.dc,a,y),this.Ge(0,0,a,y)},rl.prototype.eh=function(a,y,E,x){Ps(this,a,y,E,x)},It.Object.defineProperties(rl.prototype,{element:{get:function(){return this.Eg},set:function(a){var y=this.Eg;if(this.Uc=!0,y!==a){this.qn=a instanceof HTMLCanvasElement;var E=a instanceof HTMLImageElement;a===null||E||a instanceof HTMLVideoElement||this.qn||pt("Picture.element must be an instance of Image, Canvas, or Video, not: "+a);var x=this.diagram;x!==null&&Hg(x,this),this.Eg=a,a!==null&&E&&a.Bg===void 0&&(a.Bg=new In),x!==null&&E&&Gd(x,this),a!==null&&(this.qn||a.complete===!0?(a.hn&&(a.ln instanceof Event&&this.Hd!==null?this.Hd(this,a.ln):a.sq===!0&&!a.ln&&this.Zg!==null&&a.eu&&this.Zg(this,a.eu)),a.sq=!0,this.desiredSize.w()||(ba(this,!1),this.v())):E&&I1(this,a)),this.g("element",y,a),this.N()}}},source:{get:function(){return this.qo},set:function(a){var y=this.qo;if(y!==a){this.Uc=!0,this.qo=a;var E=Jf;if(qo){var x=null;if(E[a]!==void 0)x=E[a];else if(a!==""){30<Um&&(qf(),E=Jf),x=li("img"),x.hn=!0,I1(this,x);var b=this.rl;b!==null&&(x.crossOrigin=b(this)),x.src=a,E[a]=x,Um++}this.element=x,x!==null&&x.__goCache===void 0&&(x.__goCache=new k1),this.v(),this.N()}this.g("source",y,a)}}},sourceCrossOrigin:{get:function(){return this.rl},set:function(a){if(this.rl!==a&&(this.rl=a,this.element!==null)){var y=this.element.getAttribute("src");a===null&&typeof y=="string"?this.element.crossOrigin=null:a!==null&&(this.element.crossOrigin=a(this)),this.element.src=y}}},sourceRect:{get:function(){return this.Xg},set:function(a){var y=this.Xg;y.D(a)||(this.Xg=a=a.J(),this.N(),this.g("sourceRect",y,a))}},imageStretch:{get:function(){return this.Nk},set:function(a){var y=this.Nk;y!==a&&(this.Nk=a,this.N(),this.g("imageStretch",y,a))}},flip:{get:function(){return this.Xf},set:function(a){var y=this.Xf;y!==a&&(this.Xf=a,this.N(),this.g("flip",y,a))}},imageAlignment:{get:function(){return this.Mk},set:function(a){var y=this.Mk;y.D(a)||(this.Mk=a=a.J(),this.N(),this.g("imageAlignment",y,a))}},errorFunction:{get:function(){return this.Hd},set:function(a){var y=this.Hd;y!==a&&(this.Hd=a,this.g("errorFunction",y,a))}},successFunction:{get:function(){return this.Zg},set:function(a){var y=this.Zg;y!==a&&(this.Zg=a,this.g("successFunction",y,a))}},naturalBounds:{get:function(){return this.dc}}}),rl.prototype.redraw=rl.prototype.redraw,rl.prototype.reloadSource=rl.prototype.hA;var Um=0,LE=4;rl.className="Picture",Jf=new ji,rl.clearCache=qf;function k1(){this.gi=null}function D1(a,y,E,x,b){a.gi===null&&(a.gi=[]);var z=new vu(null),ee=z.context,re=1/y;z.width=E/y,z.height=x/y,z.width!==0&&z.height!==0&&(y=new O1(z.Oa,y),E=1,0<a.gi.length&&(E=a.gi[a.gi.length-1],b=E.source,E=E.ratio),ee.setTransform(re*E,0,0,re*E,0,0),ee.yc(),ee.drawImage(b,0,0),a.gi.push(y))}k1.className="PictureCacheArray";function O1(a,y){this.source=a,this.ratio=y}O1.className="PictureCacheInstance";function $f(){this.os=new Kn,this.mc=null}$f.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new Kn,this.mc=null};function eg(a,y,E,x,b,z){a.mc=new ma,a.mc.startX=y,a.mc.startY=E,a.mc.isFilled=x,a.mc.isEvenOdd=z||!1,a.os.figures.add(a.mc),b!==void 0&&(a.mc.isShadowed=b)}function IE(a){var y=a.mc.segments.length;0<y&&a.mc.segments.M(y-1).close()}$f.prototype.moveTo=function(a,y,E){E===void 0&&(E=!1);var x=new Br(ko);x.endX=a,x.endY=y,E&&x.close(),this.mc.segments.add(x)},$f.prototype.lineTo=function(a,y,E){E===void 0&&(E=!1);var x=new Br(po);x.endX=a,x.endY=y,E&&x.close(),this.mc.segments.add(x)};function Sd(a,y,E,x,b,z,ee){var re;re===void 0&&(re=!1);var oe=new Br(ja);oe.point1X=y,oe.point1Y=E,oe.point2X=x,oe.point2Y=b,oe.endX=z,oe.endY=ee,re&&oe.close(),a.mc.segments.add(oe)}function Hm(a,y,E,x,b){var z;z===void 0&&(z=!1);var ee=new Br(Os);ee.point1X=y,ee.point1Y=E,ee.endX=x,ee.endY=b,z&&ee.close(),a.mc.segments.add(ee)}$f.prototype.arcTo=function(a,y,E,x,b,z,ee){z===void 0&&(z=0),ee===void 0&&(ee=!1);var re=new Br(ta);re.startAngle=a,re.sweepAngle=y,re.centerX=E,re.centerY=x,re.radiusX=b,re.radiusY=z!==0?z:b,ee&&re.close(),this.mc.segments.add(re)};function kE(a,y,E,x,b,z,ee,re){var oe;oe===void 0&&(oe=!1),y=new Br(qs,ee,re,y,E,x,b,z),oe&&y.close(),a.mc.segments.add(y)}function R1(a){var y=Gm;return y!==null?(Gm=null,y.reset(a),y):(y=new $f,y.reset(a),y)}var Gm=null;$f.className="StreamGeometryContext";function ws(a,y){var E=a.toLowerCase(),x=Bt.Ze;x[a]=y,x[E]=a}ws("Rectangle",function(a,y,E){a="r"+y+","+E;var x=Bt.Mf[a];return x!==void 0||(x=new Kn(Kn.u),x.endX=y,x.endY=E,Bt.Nf<Bt.vm&&(Bt.Mf[a]=x,Bt.Nf++)),x}),ws("Square",function(a,y,E){a="s"+y+","+E;var x=Bt.Mf[a];return x!==void 0||(x=new Kn(Kn.u),x.endX=y,x.endY=E,x.defaultStretch=Ii,Bt.Nf<Bt.vm&&(Bt.Mf[a]=x,Bt.Nf++)),x}),ws("RoundedRectangle",function(a,y,E){a=a?a.parameter1:NaN,(isNaN(a)||0>a)&&(a=5),a=Math.min(a,y/3),a=Math.min(a,E/3);var x="rr"+y+","+E+","+a,b=Bt.Mf[x];if(b!==void 0)return b;var z=a*Bt.wg;return b=new Kn().add(new ma(a,0,!0).add(new Br(po,y-a,0)).add(new Br(ja,y,a,y-z,0,y,z)).add(new Br(po,y,E-a)).add(new Br(ja,y-a,E,y,E-z,y-z,E)).add(new Br(po,a,E)).add(new Br(ja,0,E-a,z,E,0,E-z)).add(new Br(po,0,a)).add(new Br(ja,a,0,0,z,z,0).close())),1<z&&(b.spot1=new Yt(0,0,z,z),b.spot2=new Yt(1,1,-z,-z)),Bt.Nf<Bt.vm&&(Bt.Mf[x]=b,Bt.Nf++),b}),ws("Border","RoundedRectangle"),ws("Ellipse",function(a,y,E){a="e"+y+","+E;var x=Bt.Mf[a];return x!==void 0||(x=new Kn(Kn.F),x.endX=y,x.endY=E,x.spot1=Yo,x.spot2=xo,Bt.Nf<Bt.vm&&(Bt.Mf[a]=x,Bt.Nf++)),x}),ws("Circle",function(a,y,E){a="c"+y+","+E;var x=Bt.Mf[a];return x!==void 0||(x=new Kn(Kn.F),x.endX=y,x.endY=E,x.spot1=Yo,x.spot2=xo,x.defaultStretch=Ii,Bt.Nf<Bt.vm&&(Bt.Mf[a]=x,Bt.Nf++)),x}),ws("TriangleRight",function(a,y,E){return new Kn().add(new ma(0,0).add(new Br(po,y,.5*E)).add(new Br(po,0,E).close())).pm(0,.25,.5,.75)}),ws("TriangleDown",function(a,y,E){return new Kn().add(new ma(0,0).add(new Br(po,y,0)).add(new Br(po,.5*y,E).close())).pm(.25,0,.75,.5)}),ws("TriangleLeft",function(a,y,E){return new Kn().add(new ma(y,E).add(new Br(po,0,.5*E)).add(new Br(po,y,0).close())).pm(.5,.25,1,.75)}),ws("TriangleUp",function(a,y,E){return new Kn().add(new ma(y,E).add(new Br(po,0,E)).add(new Br(po,.5*y,0).close())).pm(.25,.5,.75,1)}),ws("Triangle","TriangleUp"),ws("Diamond",function(a,y,E){return new Kn().add(new ma(.5*y,0).add(new Br(po,0,.5*E)).add(new Br(po,.5*y,E)).add(new Br(po,y,.5*E).close())).pm(.25,.25,.75,.75)}),ws("LineH",function(a,y,E){return a=new Kn(Kn.j),a.startX=0,a.startY=E/2,a.endX=y,a.endY=E/2,a}),ws("LineV",function(a,y,E){return a=new Kn(Kn.j),a.startX=y/2,a.startY=0,a.endX=y/2,a.endY=E,a}),ws("None","Rectangle"),ws("BarH","Rectangle"),ws("BarV","Rectangle"),ws("MinusLine","LineH"),ws("PlusLine",function(a,y,E){return new Kn().add(new ma(0,E/2,!1).add(new Br(po,y,E/2)).add(new Br(ko,y/2,0)).add(new Br(po,y/2,E)))}),ws("XLine",function(a,y,E){return new Kn().add(new ma(0,E,!1).add(new Br(po,y,0)).add(new Br(ko,0,0)).add(new Br(po,y,E)))}),ws("LineRight",function(a,y,E){return new Kn().add(new ma(.25*y,0,!1).add(new Br(po,.75*y,.5*E)).add(new Br(po,.25*y,E)))}),ws("LineDown",function(a,y,E){return new Kn().add(new ma(0,.25*E,!1).add(new Br(po,.5*y,.75*E)).add(new Br(po,y,.25*E)))}),ws("LineLeft",function(a,y,E){return new Kn().add(new ma(.75*y,0,!1).add(new Br(po,.25*y,.5*E)).add(new Br(po,.75*y,E)))}),ws("LineUp",function(a,y,E){return new Kn().add(new ma(0,.75*E,!1).add(new Br(po,.5*y,.25*E)).add(new Br(po,y,.75*E)))}),Bt.um={"":"",Standard:"F1 m 0,0 l 8,4 -8,4 2,-4 z",Backward:"F1 m 8,0 l -2,4 2,4 -8,-4 z",Triangle:"F1 m 0,0 l 8,4.62 -8,4.62 z",BackwardTriangle:"F1 m 8,4 l 0,4 -8,-4 8,-4 0,4 z",Boomerang:"F1 m 0,0 l 8,4 -8,4 4,-4 -4,-4 z",BackwardBoomerang:"F1 m 8,0 l -8,4 8,4 -4,-4 4,-4 z",SidewaysV:"m 0,0 l 8,4 -8,4 0,-1 6,-3 -6,-3 0,-1 z",BackwardV:"m 8,0 l -8,4 8,4 0,-1 -6,-3 6,-3 0,-1 z",OpenTriangle:"m 0,0 l 8,4 -8,4",BackwardOpenTriangle:"m 8,0 l -8,4 8,4",OpenTriangleLine:"m 0,0 l 8,4 -8,4 m 8.5,0 l 0,-8",BackwardOpenTriangleLine:"m 8,0 l -8,4 8,4 m -8.5,0 l 0,-8",OpenTriangleTop:"m 0,0 l 8,4 m 0,4",BackwardOpenTriangleTop:"m 8,0 l -8,4 m 0,4",OpenTriangleBottom:"m 0,8 l 8,-4",BackwardOpenTriangleBottom:"m 0,4 l 8,4",HalfTriangleTop:"F1 m 0,0 l 0,4 8,0 z m 0,8",BackwardHalfTriangleTop:"F1 m 8,0 l 0,4 -8,0 z m 0,8",HalfTriangleBottom:"F1 m 0,4 l 0,4 8,-4 z",BackwardHalfTriangleBottom:"F1 m 8,4 l 0,4 -8,-4 z",ForwardSemiCircle:"m 4,0 b 270 180 0 4 4",BackwardSemiCircle:"m 4,8 b 90 180 0 -4 4",Feather:"m 0,0 l 3,4 -3,4",BackwardFeather:"m 3,0 l -3,4 3,4",DoubleFeathers:"m 0,0 l 3,4 -3,4 m 3,-8 l 3,4 -3,4",BackwardDoubleFeathers:"m 3,0 l -3,4 3,4 m 3,-8 l -3,4 3,4",TripleFeathers:"m 0,0 l 3,4 -3,4 m 3,-8 l 3,4 -3,4 m 3,-8 l 3,4 -3,4",BackwardTripleFeathers:"m 3,0 l -3,4 3,4 m 3,-8 l -3,4 3,4 m 3,-8 l -3,4 3,4",ForwardSlash:"m 0,8 l 5,-8",BackSlash:"m 0,0 l 5,8",DoubleForwardSlash:"m 0,8 l 4,-8 m -2,8 l 4,-8",DoubleBackSlash:"m 0,0 l 4,8 m -2,-8 l 4,8",TripleForwardSlash:"m 0,8 l 4,-8 m -2,8 l 4,-8 m -2,8 l 4,-8",TripleBackSlash:"m 0,0 l 4,8 m -2,-8 l 4,8 m -2,-8 l 4,8",Fork:"m 0,4 l 8,0 m -8,0 l 8,-4 m -8,4 l 8,4",BackwardFork:"m 8,4 l -8,0 m 8,0 l -8,-4 m 8,4 l -8,4",LineFork:"m 0,0 l 0,8 m 0,-4 l 8,0 m -8,0 l 8,-4 m -8,4 l 8,4",BackwardLineFork:"m 8,4 l -8,0 m 8,0 l -8,-4 m 8,4 l -8,4 m 8,-8 l 0,8",CircleFork:"F1 m 6,4 b 0 360 -3 0 3 z m 0,0 l 6,0 m -6,0 l 6,-4 m -6,4 l 6,4",BackwardCircleFork:"F1 m 0,4 l 6,0 m -6,-4 l 6,4 m -6,4 l 6,-4 m 6,0 b 0 360 -3 0 3",CircleLineFork:"F1 m 6,4 b 0 360 -3 0 3 z m 1,-4 l 0,8 m 0,-4 l 6,0 m -6,0 l 6,-4 m -6,4 l 6,4",BackwardCircleLineFork:"F1 m 0,4 l 6,0 m -6,-4 l 6,4 m -6,4 l 6,-4 m 0,-4 l 0,8 m 7,-4 b 0 360 -3 0 3",Circle:"F1 m 8,4 b 0 360 -4 0 4 z",Block:"F1 m 0,0 l 0,8 8,0 0,-8 z",StretchedDiamond:"F1 m 0,3 l 5,-3 5,3 -5,3 -5,-3 z",Diamond:"F1 m 0,4 l 4,-4 4,4 -4,4 -4,-4 z",Chevron:"F1 m 0,0 l 5,0 3,4 -3,4 -5,0 3,-4 -3,-4 z",StretchedChevron:"F1 m 0,0 l 8,0 3,4 -3,4 -8,0 3,-4 -3,-4 z",NormalArrow:"F1 m 0,2 l 4,0 0,-2 4,4 -4,4 0,-2 -4,0 z",X:"m 0,0 l 8,8 m 0,-8 l -8,8",TailedNormalArrow:"F1 m 0,0 l 2,0 1,2 3,0 0,-2 2,4 -2,4 0,-2 -3,0 -1,2 -2,0 1,-4 -1,-4 z",DoubleTriangle:"F1 m 0,0 l 4,4 -4,4 0,-8 z m 4,0 l 4,4 -4,4 0,-8 z",BigEndArrow:"F1 m 0,0 l 5,2 0,-2 3,4 -3,4 0,-2 -5,2 0,-8 z",ConcaveTailArrow:"F1 m 0,2 h 4 v -2 l 4,4 -4,4 v -2 h -4 l 2,-2 -2,-2 z",RoundedTriangle:"F1 m 0,1 a 1,1 0 0 1 1,-1 l 7,3 a 0.5,1 0 0 1 0,2 l -7,3 a 1,1 0 0 1 -1,-1 l 0,-6 z",SimpleArrow:"F1 m 1,2 l -1,-2 2,0 1,2 -1,2 -2,0 1,-2 5,0 0,-2 2,2 -2,2 0,-2 z",AccelerationArrow:"F1 m 0,0 l 0,8 0.2,0 0,-8 -0.2,0 z m 2,0 l 0,8 1,0 0,-8 -1,0 z m 3,0 l 2,0 2,4 -2,4 -2,0 0,-8 z",BoxArrow:"F1 m 0,0 l 4,0 0,2 2,0 0,-2 2,4 -2,4 0,-2 -2,0 0,2 -4,0 0,-8 z",TriangleLine:"F1 m 8,4 l -8,-4 0,8 8,-4 z m 0.5,4 l 0,-8",CircleEndedArrow:"F1 m 10,4 l -2,-3 0,2 -2,0 0,2 2,0 0,2 2,-3 z m -4,0 b 0 360 -3 0 3 z",DynamicWidthArrow:"F1 m 0,3 l 2,0 2,-1 2,-2 2,4 -2,4 -2,-2 -2,-1 -2,0 0,-2 z",EquilibriumArrow:"m 0,3 l 8,0 -3,-3 m 3,5 l -8,0 3,3",FastForward:"F1 m 0,0 l 3.5,4 0,-4 3.5,4 0,-4 1,0 0,8 -1,0 0,-4 -3.5,4 0,-4 -3.5,4 0,-8 z",Kite:"F1 m 0,4 l 2,-4 6,4 -6,4 -2,-4 z",HalfArrowTop:"F1 m 0,0 l 4,4 4,0 -8,-4 z m 0,8",HalfArrowBottom:"F1 m 0,8 l 4,-4 4,0 -8,4 z",OpposingDirectionDoubleArrow:"F1 m 0,4 l 2,-4 0,2 4,0 0,-2 2,4 -2,4 0,-2 -4,0 0,2 -2,-4 z",PartialDoubleTriangle:"F1 m 0,0 4,3 0,-3 4,4 -4,4 0,-3 -4,3 0,-8 z",LineCircle:"F1 m 0,0 l 0,8 m 7 -4 b 0 360 -3 0 3 z",DoubleLineCircle:"F1 m 0,0 l 0,8 m 2,-8 l 0,8 m 7 -4 b 0 360 -3 0 3 z",TripleLineCircle:"F1 m 0,0 l 0,8 m 2,-8 l 0,8 m 2,-8 l 0,8 m 7 -4 b 0 360 -3 0 3 z",CircleLine:"F1 m 6 4 b 0 360 -3 0 3 z m 1,-4 l 0,8",DiamondCircle:"F1 m 8,4 l -4,4 -4,-4 4,-4 4,4 m 8,0 b 0 360 -4 0 4 z",PlusCircle:"F1 m 8,4 b 0 360 -4 0 4 l -8 0 z m -4 -4 l 0 8",OpenRightTriangleTop:"m 8,0 l 0,4 -8,0 m 0,4",OpenRightTriangleBottom:"m 8,8 l 0,-4 -8,0",Line:"m 0,0 l 0,8",DoubleLine:"m 0,0 l 0,8 m 2,0 l 0,-8",TripleLine:"m 0,0 l 0,8 m 2,0 l 0,-8 m 2,0 l 0,8",PentagonArrow:"F1 m 8,4 l -4,-4 -4,0 0,8 4,0 4,-4 z"};function Bv(){this.nc=!1,this.tr=this.Kp=this.zq=null,this.vr="",this.fr=this.oq=this.ur=null,this.hr="",this.gr=Po,this.ir=null,this.jr="",this.lr=Ca,this.Gq="",this.Hq=Ki,this.Pq=Lr,this.Kq=zr,this.Up=null,this.Cq=127,this.zr=$r,this.yr="gray",this.Vg=4}Bv.prototype.copy=function(){var a=new Bv;return a.zq=this.zq,a.Kp=this.Kp,a.tr=this.tr,a.vr=this.vr,a.ur=this.ur,a.oq=this.oq,a.fr=this.fr,a.hr=this.hr,a.gr=this.gr.J(),a.ir=this.ir,a.jr=this.jr,a.lr=this.lr.J(),a.Gq=this.Gq,a.Hq=this.Hq.J(),a.Pq=this.Pq.J(),a.Kq=this.Kq.J(),a.Up=this.Up,a.Cq=this.Cq,a.zr=this.zr.J(),a.yr=this.yr,a.Vg=this.Vg,a};function Ui(a,y){a===void 0||a instanceof Na||typeof a=="string"?Vn.call(this,a):(Vn.call(this),a&&(y=a)),this.G=2408959,this.Tf="",this.P=null,this.Jg="",this.Qf=this.Ug=null,this.ec="",this.Ah=this.Ig=null,this.ke=new lt(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new hn,this.Rh=null,this.ag=NaN,y&&Object.assign(this,y)}Ut(Ui,Vn),Ui.prototype.cloneProtected=function(a){Vn.prototype.cloneProtected.call(this,a),a.G=this.G&-4097|49152,a.Tf=this.Tf,this.P!==null&&(a.P=this.P.nc?this.P:this.P.copy()),a.Jg=this.Jg,a.Qf=null,a.ec=this.ec,a.ke.assign(this.ke),a.Ao=this.Ao},Ce=Ui.prototype,Ce.Af=function(a){Vn.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},Ce.toString=function(){var a=Pn(this.constructor)+"#"+Tr(this);return this.data!==null&&(a+="("+Yi(this.data)+")"),a};function ol(a){a.P===null?a.P=new Bv:a.P.nc&&(a.P=a.P.copy())}Ce.th=function(){Vn.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},Ce.gk=function(a,y,E,x,b,z,ee){var re=this.diagram;re!==null&&(a===Xo&&y==="elements"?b instanceof Vn?Dh(b,function(oe){cy(re.partManager,oe),Ah(re,oe)}):Gd(re,b):a===$o&&y==="elements"&&(b instanceof Vn?Dh(b,function(oe){dy(re.partManager,oe,re)}):Hg(re,b)),re.cb(a,y,E,x,b,z,ee))},Ce.La=function(a){if(Vn.prototype.La.call(this,a),this.data!==null){for(var y=this.O.s,E=y.length,x=0;x<E;x++){var b=y[x];b instanceof Vn&&Dh(b,function(z){z.data!==null&&z.La()})}for(y=this.adornments;y.next();)y.value.La(a)}},Ui.prototype.updateRelationshipsFromData=function(){var a;this.data!==null&&((a=this.diagram)===null||a===void 0||a.partManager.updateRelationshipsFromData(this))},Ui.prototype.Pj=function(a){var y=this.Qf;return y===null?null:y.I(a)},Ui.prototype.bh=function(a,y){if(y!==null){var E=null,x=this.Qf;if(x!==null&&(E=x.I(a)),E!==y){if(E!==null){var b=E.diagram;b!==null&&b.remove(E)}x===null&&(this.Qf=x=new zi),y.Tf!==a&&(y.category=a),x.add(a,y),a=this.diagram,a!==null&&(a.add(y),a=y.adornedObject,a!==null&&(a=a.ih(),a!==null&&(y.data=a.data)))}}},Ui.prototype.Jf=function(a){var y=this.Qf;if(y!==null){var E=y.I(a);if(E!==null){var x=E.diagram;x!==null&&x.remove(E)}y.remove(a),y.count===0&&(this.Qf=null)}},Ui.prototype.Ej=function(){var a=this.Qf;if(a!==null){var y=Ni();for(a=a.iterator;a.next();)y.push(a.key);a=y.length;for(var E=0;E<a;E++)this.Jf(y[E]);hi(y)}},Ui.prototype.updateAdornments=function(){var a=this.diagram;if(a!==null){for(var y=this.adornments;y.next();){var E=y.value;E.v(),E.placeholder&&E.placeholder.v()}e:{if(this.isSelected&&this.selectionAdorned&&(y=this.selectionObject,y!==null&&this.actualBounds.w()&&this.isVisible()&&y.Ed()&&y.actualBounds.w())){if(E=this.Pj("Selection"),E===null){if(E=this.selectionAdornmentTemplate,E===null&&(E=this.ph()?a.linkSelectionAdornmentTemplate:this instanceof or?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(E instanceof Ur))break e;yu(E),E=E.copy(),E!==null&&(this.ph()&&this.selectionObject===this.path&&(E.type=Vn.Link),E.adornedObject=y)}if(E!==null){E.type===Vn.Link&&E.v(),this.bh("Selection",E);break e}}this.Jf("Selection")}for(DE(this,a),y=this.adornments;y.next();)y.value.La()}},Ui.prototype.Wb=function(){var a=this.diagram;a!==null&&(a.vd=!0,!(this.G&16384)&&(this.G|=16384))};function _v(a){a.G&16384&&(a.updateAdornments(),a.G&=-16385)}function DE(a,y){y.toolManager.mouseDownTools.each(function(E){E.isEnabled&&E.updateAdornments(a)}),y.toolManager.updateAdornments(a)}function Ym(a){if(Zd(a)===!1){zv(a,!0),a.Uk();var y=a.diagram;y!==null&&(y.De.add(a),y.$b())}}function F1(a){if(a.G|=2097152,Zd(a)!==!1){var y=a.position,E=a.location;E.w()&&y.w()||j1(a,y,E),E=a.Ib;var x=hn.alloc().assign(E);E.ka(),E.x=y.x,E.y=y.y,E.freeze(),a.Xl(x,E),hn.free(x),zv(a,!1)}}Ui.prototype.Ge=function(a,y,E,x){var b=this.uc;b.h(a,y,E,x),this.Lb===null&&(this.Lb=new ir);var z=this.Lb;z.reset(),this.no(z,a,y,E,x),this.Lb=z,z.ws()||z.pp(b)},Ui.prototype.no=function(a,y,E,x,b){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=ur;this.locationSpot.sb()&&(z=this.locationSpot);var ee=lt.alloc();if(this.locationObject!==this)for(y=this.locationObject,E=y.naturalBounds,ee.yi(E.x,E.y,E.width,E.height,z),y.Lb!==null&&y.Lb.Ga(ee),ee.offset(-y.measuredBounds.x,-y.measuredBounds.y),z=y.panel;z!==null&&z!==this;)z.Lb!==null&&z.Lb.Ga(ee),ee.offset(-z.measuredBounds.x,-z.measuredBounds.y),z=z.panel;else ee.yi(y,E,x,b,z);a.rotate(this.Kb,ee.x,ee.y),lt.free(ee)}},Ui.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},Ui.prototype.moveTo=function(a,y,E){a=lt.allocAt(a,y),this.move(a,E),lt.free(a)},Ui.prototype.isVisible=function(){if(!this.visible)return!1;var a=this.layer;if(a!==null){if(!a.visible)return!1;if(a=a.diagram,a!==null&&a.animationManager.fv(this))return!0}return a=this.containingGroup,!!(a===null||a.isSubGraphExpanded&&a.isVisible())},Ui.prototype.Zb=function(a){var y=this.diagram;a?(this.C(4),this.Wb(),y!==null&&y.De.add(this)):(this.C(8),this.Ej()),this.oh(),y!==null&&(y.Ya(),y.N())},Ui.prototype.fb=function(a){if(this.name===a)return this;var y=this.Rh;if(y===null&&(this.Rh=y=new zi),y.I(a)!==null)return y.I(a);var E=Vn.prototype.fb.call(this,a);return E!==null?(y.set(a,E),E):(y.set(a,null),null)};function Ed(a,y,E,x){x===void 0&&(x=new lt),E=E.Mc()?ur:E;var b=y.naturalBounds;if(x.h(b.width*E.x+E.offsetX,b.height*E.y+E.offsetY),y===null||y===a)return x;for(y.transform.Ga(x),y=y.panel;y!==null&&y!==a;)y.transform.Ga(x),y=y.panel;return a.Lb!==null&&a.Lb.Ga(x),x.offset(-a.uc.x,-a.uc.y),x}Ui.prototype.mi=function(a){return a===void 0&&(a=new hn),a.assign(this.actualBounds)},Ui.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function B1(a){var y=lt.alloc(),E=a.locationObject,x=E.naturalBounds,b=E instanceof pr?E.strokeWidth:0;if(y.yi(0,0,x.width+b,x.height+b,a.locationSpot),E!==a)for(y.offset(-b/2,-b/2),E.transform.Ga(y),E=E.panel;E!==null&&E!==a;)E.transform.Ga(y),E=E.panel;return a.Lb!==null&&a.Lb.Ga(y),y.offset(-a.uc.x,-a.uc.y),y}function Fh(a,y){var E=a.py;isNaN(a.ag)&&(a.ag=g1(a));var x=a.ag,b=2*x;if(!a.isShadowed)return E.h(y.x-1-x,y.y-1-x,y.width+2+b,y.height+2+b),E;x=y.x,b=y.y;var z=y.width;y=y.height;var ee=a.shadowBlur;return a=a.shadowOffset,z+=ee,y+=ee,x-=ee/2,b-=ee/2,0<a.x?z+=a.x:(x+=a.x,z-=a.x),0<a.y?y+=a.y:(b+=a.y,y-=a.y),E.h(x-1,b-1,z+2,y+2),E}Ui.prototype.arrange=function(){if(zs(this)===!1)F1(this);else{Lc(this,!1);var a=this.Ib,y=hn.alloc();y.assign(a);var E=Kd(this);this.eh(0,0,this.uc.width,this.uc.height);var x=this.position;j1(this,x,this.location),a.ka(),a.x=x.x,a.y=x.y,a.freeze(),this.Xl(y,a),y.D(a)?this.Fd(E):!this.Zc()||Bt.B(y.width,a.width)&&Bt.B(y.height,a.height)||0<=this.vw&&this.C(16),hn.free(y),zv(this,!1)}},Ce=Ui.prototype,Ce.Xl=function(a,y){var E=this.diagram;if(E!==null){var x=!1;if(E.Zi===!1&&a.w()){var b=hn.alloc();b.assign(E.documentBounds),b.Fv(E.padding),a.x>b.x&&a.y>b.y&&a.right<b.right&&a.bottom<b.bottom&&y.x>b.x&&y.y>b.y&&y.right<b.right&&y.bottom<b.bottom&&(x=!0),hn.free(b)}!(this.G&65536)&&a.D(y)||H1(this,x,E),E.N(),!a.w()&&!y.w()||yl(a,y)||(this instanceof pi&&!E.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},Ce.zv=function(a,y,E){if(this.ph()||!a.w())return!1;var x=this.diagram;return x!==null&&_1(this,x,a,y,E),this.pa=a,this.G&=-2097153,!this.ke.w()||x!==null&&!x.animationManager.isTicking&&x.undoManager.isUndoingRedoing||(x=this.ke,this.ke=new lt(x.x+(a.x-y),x.y+(a.y-E)),this.g("location",x,this.ke.copy())),Zd(this)===!1&&zs(this)===!1&&(Ym(this),F1(this)),!0};function _1(a,y,E,x,b){y===null||a instanceof Ur||(y=y.animationManager,y.zb&&fu(y,a,new lt(x,b),E))}Ce.mm=function(a,y,E){var x=this.ke,b=this.pa;if(E){if(x.x===a&&x.y===y)return;Zd(this)||zs(this)?b.h(NaN,NaN):b.h(b.x+a-x.x,b.y+y-x.y),x.h(a,y)}else{if(b.x===a&&b.y===y)return;x.h(x.x+a-b.x,x.y+y-b.y),b.h(a,y)}Ym(this)},Ce.Av=function(){this.G&=-2097153,Ym(this)};function j1(a,y,E){var x=B1(a),b=a.diagram,z=E.w(),ee=y.w();z&&ee?a.G&2097152?z1(a,y,E,b,x):U1(a,y,E,b,x):z?z1(a,y,E,b,x):ee&&U1(a,y,E,b,x),a.G|=2097152,lt.free(x),a.Uk()}function z1(a,y,E,x,b){var z=y.x,ee=y.y;y.h(E.x-b.x,E.y-b.y),x!==null&&(E=x.animationManager,(x=E.defaultAnimation.isAnimating)||!E.zb||a instanceof Ur||fu(E,a,new lt(z,ee),y),x||y.x===z&&y.y===ee||a.g("position",new lt(z,ee),y.copy()))}function U1(a,y,E,x,b){var z=E.copy();E.h(y.x+b.x,y.y+b.y),E.D(z)||x===null||a.g("location",z,E.copy())}function H1(a,y,E){Uv(a,!1),a instanceof pi&&fd(E,a),a.layer.isTemporary||y||E.Ya(),y=a.Ib;var x=E.viewportBounds;x.w()?Kd(a)?(An(y,x)||a.Fd(!1),a.updateAdornments()):a.isVisible()&&y.Yc(x)?(a.Fd(!0),a.updateAdornments()):a.Wb():E.vd=!0}Ce.si=function(){return!0},Ce.Zc=function(){return!0},Ce.ph=function(){return!1},Ce.Dd=function(){return!0};function jv(a,y,E,x){y.constructor===a.constructor||V1||(V1=!0,Ti('Should not change the class of the Part when changing category from "'+E+'" to "'+x+'"'),Ti(" Old class: "+Pn(a.constructor)+", new class: "+Pn(y.constructor)+", part: "+a.toString())),a.Ej();var b=a.data;E=a.layerName;var z=a.isSelected,ee=a.isHighlighted,re=!0,oe=!0,ce=!1;a instanceof pi&&(re=a.isTreeLeaf,oe=a.isTreeExpanded,ce=a.wasTreeExpanded),y.Af(a),y.cloneProtected(a),a.Tf=x,a.svg!==null&&(a.svg.remove(),a.svg=null,a.Uc=!0),a.v(),a.N(),y=a.diagram,x=!0,y!==null&&(x=y.skipsUndoManager,y.skipsUndoManager=!0),a.ub=b,a.G=z?a.G|4096:a.G&-4097,a.G=ee?a.G|524288:a.G&-524289,a instanceof pi&&(a.U=re?a.U|4:a.U&-5,a.U=oe?a.U|1:a.U&-2,a.U=ce?a.U|2:a.U&-3),b!==null&&a.La(),b=a.layerName,b!==E&&(a.Jg=E,a.layerName=b),y!==null&&(y.skipsUndoManager=x),a.Zc()&&a.C(64)}Ui.prototype.canCopy=function(){if(!this.copyable)return!1;var a=this.layer;return a===null?!0:a.allowCopy?(a=a.diagram,a===null?!0:!!a.allowCopy):!1},Ui.prototype.canDelete=function(){if(!this.deletable)return!1;var a=this.layer;return a===null?!0:a.allowDelete?(a=a.diagram,a===null?!0:!!a.allowDelete):!1},Ui.prototype.canEdit=function(){if(!this.textEditable)return!1;var a=this.layer;return a===null?!0:a.allowTextEdit?(a=a.diagram,a===null?!0:!!a.allowTextEdit):!1},Ui.prototype.canGroup=function(){if(!this.groupable)return!1;var a=this.layer;return a===null?!0:a.allowGroup?(a=a.diagram,a===null?!0:!!a.allowGroup):!1},Ui.prototype.canMove=function(){if(!this.movable)return!1;var a=this.layer;return a===null?!0:a.allowMove?(a=a.diagram,a===null?!0:!!a.allowMove):!1},Ui.prototype.canReshape=function(){if(!this.reshapable)return!1;var a=this.layer;return a===null?!0:a.allowReshape?(a=a.diagram,a===null?!0:!!a.allowReshape):!1},Ui.prototype.canResize=function(){if(!this.resizable)return!1;var a=this.layer;return a===null?!0:a.allowResize?(a=a.diagram,a===null?!0:!!a.allowResize):!1},Ui.prototype.canRotate=function(){if(!this.rotatable)return!1;var a=this.layer;return a===null?!0:a.allowRotate?(a=a.diagram,a===null?!0:!!a.allowRotate):!1},Ui.prototype.canSelect=function(){if(!this.selectable)return!1;var a=this.layer;return a===null?!0:a.allowSelect?(a=a.diagram,a===null?!0:!!a.allowSelect):!1};function Zd(a){return(a.G&32768)!==0}function zv(a,y){a.G=y?a.G|32768:a.G&-32769}function Uv(a,y){a.G=y?a.G|65536:a.G&-65537}function Kd(a){return(a.G&131072)!==0}Ce=Ui.prototype,Ce.Fd=function(a){this.G=a?this.G|131072:this.G&-131073};function Vm(a,y){a.G=y?a.G|1048576:a.G&-1048577}Ce.oh=function(){var a=this.containingGroup;a!==null&&(a.v(),a.placeholder!==null&&a.placeholder.v(),a.Bd())},Ce.N=function(){var a=this.diagram;a!==null&&!zs(this)&&!Zd(this)&&this.isVisible()&&this.Ib.w()&&a.N(Fh(this,this.Ib))},Ce.v=function(){Vn.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof pi&&this.labeledLink!==null&&js(this.labeledLink),a.$b(!0))},Ce.Vo=function(a){a||(a=this.Ah,a!==null&&Zv(a,this))},Ce.Wo=function(a){a||(a=this.Ah,a!==null&&Kv(a,this))},Ce.Lj=function(){var a=this.data;if(a!==null){var y=this.diagram;y!==null&&(y=y.model,y!==null&&y.cm(a))}},Ce.oz=function(){return Hv(this,this)};function Hv(a,y){var E=y.containingGroup;return E!==null?1+Hv(a,E):y instanceof pi&&(y=y.labeledLink,y!==null)?Hv(a,y):0}Ce.sz=function(){return G1(this,this)};function G1(a,y){var E=y.containingGroup;return E!==null||y instanceof pi&&(E=y.labeledLink,E!==null)?G1(a,E):y}Ce.Td=function(a){return a instanceof or?Gv(this,this,a):!1};function Gv(a,y,E){if(y===E||E===null)return!1;var x=y.containingGroup;return x===null||x!==E&&!Gv(a,x,E)?y instanceof pi&&(y=y.labeledLink,y!==null)?Gv(a,y,E):!1:!0}Ce.px=function(a){if(a===null)return null;if(this===a)return this.containingGroup;for(var y=this;y!==null;){if(y instanceof or&&Vm(y,!0),y instanceof pi){var E=y.labeledLink;E!==null&&(y=E)}y=y.containingGroup}for(E=null,y=a;y!==null;){if(y.G&1048576){E=y;break}y instanceof pi&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof or&&Vm(y,!1),y instanceof pi&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup;return E},Ui.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var a=this.layer;return!(a!==null&&a.isTemporary||this instanceof pi&&this.isLinkLabel)},Ui.prototype.C=function(a){if(a===void 0&&(a=16777215),this.isLayoutPositioned&&a&this.layoutConditions){var y=this.layer;y!==null&&y.isTemporary||this instanceof pi&&this.isLinkLabel?y=!1:(y=this.diagram,y=!(y!==null&&y.undoManager.isUndoingRedoing))}else y=!1;if(y)if(y=this.Ah,y!==null){var E=y.layout;E!==null?E.C():y.C(a)}else a=this.diagram,a!==null&&(a=a.layout,a!==null&&a.C())};function Y1(a){return a.isVisible()?(a=a.layer,!(a!==null&&a.isTemporary)):!1}function Qd(a,y,E,x,b,z){if(z===void 0&&(z=null),!(a.contains(y)||z!==null&&!z(y)||y instanceof Ur)){if(a.add(y),y instanceof pi){if(E&&y instanceof or)for(var ee=y.memberParts;ee.next();)Qd(a,ee.value,E,x,b,z);if(b!==!1)for(ee=y.linksConnected;ee.next();){var re=ee.value;if(!a.contains(re)){var oe=re.fromNode,ce=re.toNode;oe=oe===null||a.contains(oe),ce=ce===null||a.contains(ce),(b?oe&&ce:oe||ce)&&Qd(a,re,E,x,b,z)}}if(1<x)for(y=y.Ou();y.next();)Qd(a,y.value,E,x-1,b,z)}else if(y instanceof Xn)for(y=y.labelNodes;y.next();)Qd(a,y.value,E,x,b,z)}}It.Object.defineProperties(Ui.prototype,{key:{get:function(){var a=this.diagram;if(a!==null)return a.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?Sr:this.Qf.iteratorValues}},layer:{get:function(){return this.Ig}},diagram:{get:function(){var a=this.Ig;return a==null?null:a.diagram}},layerName:{get:function(){return this.Jg},set:function(a){var y=this.Jg;if(y!==a){var E=this.diagram;if((E===null||E.Qj(a)!==null&&!E.partManager.addsToTemporaryLayer)&&(this.Jg=a,E!==null&&E.Ya(),this.g("layerName",y,a),y=this.layer,y!==null&&y.name!==a&&(E=y.diagram,E!==null&&(a=E.Qj(a),a!==null&&a!==y)))){var x=y.pc(-1,this,!0);if(0<=x&&E.cb($o,"parts",y,this,null,x,!0),x=a.oi(99999999,this,!0),y.visible!==a.visible&&this.Zb(a.visible),0<=x&&E.cb(Xo,"parts",a,null,this,!0,x),x=this.layerChanged,x!==null){var b=E.aa;E.aa=!0,x(this,y,a),E.aa=b}}}}},layerChanged:{get:function(){return this.P!==null?this.P.zq:null},set:function(a){var y=this.layerChanged;y!==a&&(ol(this),this.P.zq=a,this.g("layerChanged",y,a))}},zOrder:{get:function(){return this.Ao},set:function(a){var y=this.Ao;if(y!==a){this.Ao=a;var E=this.layer;E!==null&&Mf(E,-1,this),this.g("zOrder",y,a),a=this.diagram,a!==null&&a.N()}}},locationObject:{get:function(){if(this.nf===null){var a=this.locationObjectName;a!==""?(a=this.fb(a),a!==null?this.nf=a:this.nf=this):this instanceof Ur?this.type!==Vn.Link&&this.placeholder!==null?this.nf=this.placeholder:this.nf=this:this.nf=this}return this.nf.visible?this.nf:this}},minLocation:{get:function(){return this.P!==null?this.P.Pq:Lr},set:function(a){var y=this.minLocation;y.D(a)||(a=a.J(),ol(this),this.P.Pq=a,this.g("minLocation",y,a))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:zr},set:function(a){var y=this.maxLocation;y.D(a)||(a=a.J(),ol(this),this.P.Kq=a,this.g("maxLocation",y,a))}},locationObjectName:{get:function(){return this.P!==null?this.P.Gq:""},set:function(a){var y=this.locationObjectName;y!==a&&(ol(this),this.P.Gq=a,this.nf=null,this.v(),this.g("locationObjectName",y,a))}},locationSpot:{get:function(){return this.P!==null?this.P.Hq:Ki},set:function(a){var y=this.locationSpot;y.D(a)||(a=a.J(),ol(this),this.P.Hq=a,this.v(),this.g("locationSpot",y,a))}},location:{get:function(){return this.ke},set:function(a){var y=a.x,E=a.y,x=this.ke;if(!(x.x===y||isNaN(x.x)&&isNaN(y))||!(x.y===E||isNaN(x.y)&&isNaN(E))){if(a=a.copy(),y=a,this.ph())y=!1;else{if(this.ke=y,this.G|=2097152,zs(this)===!1&&(Ym(this),E=this.pa,E.w())){var b=this.diagram;if(b===null||b.animationManager.isTicking||!b.undoManager.isUndoingRedoing){var z=E.copy();E.h(E.x+(y.x-x.x),E.y+(y.y-x.y)),_1(this,b,E,z.x,z.y),this.g("position",z,E.copy())}}y=!0}y&&this.g("location",x,a.copy())}}},category:{get:function(){return this.Tf},set:function(a){var y=this.Tf;if(y!==a){this.svg!==null&&(this.svg.remove(),this.Uc=!0);var E=this.diagram,x=this.data,b=null;if(E!==null&&x!==null&&!(this instanceof Ur)){var z=E.model.undoManager;z.isEnabled&&!z.isUndoingRedoing&&(b=this.clone(),b.O.addAll(this.O))}this.Tf=a,this.g("category",y,a),E===null||x===null||this instanceof Ur?this instanceof Ur&&(b=this.adornedPart,b!==null&&(a=b.Qf,a!==null&&a.remove(y),b.bh(this.category,this))):(z=E.model,z.undoManager.isUndoingRedoing||(this.ph()?(E.partManager.setLinkCategoryForData(x,a),E=E.partManager.findLinkTemplateForCategory(a),E!==null&&(yu(E),E=E.copy(),E!==null&&jv(this,E,y,a))):(z!==null&&z.jm(x,a),E=mS(E.partManager,x,a),E!==null&&(yu(E),E=E.copy(),E===null||E instanceof Xn||(x=this.location.copy(),jv(this,E,y,a),this.location.w()||(this.location=x)))),b!==null&&(y=this.clone(),y.O.addAll(this.O),this.g("self",b,y))))}}},self:{get:function(){return this},set:function(a){jv(this,a,this.category,a.category)}},copyable:{get:function(){return(this.G&1)!==0},set:function(a){var y=(this.G&1)!==0;y!==a&&(this.G^=1,this.g("copyable",y,a))}},deletable:{get:function(){return(this.G&2)!==0},set:function(a){var y=(this.G&2)!==0;y!==a&&(this.G^=2,this.g("deletable",y,a))}},textEditable:{get:function(){return(this.G&4)!==0},set:function(a){var y=(this.G&4)!==0;y!==a&&(this.G^=4,this.g("textEditable",y,a),this.Wb())}},groupable:{get:function(){return(this.G&8)!==0},set:function(a){var y=(this.G&8)!==0;y!==a&&(this.G^=8,this.g("groupable",y,a))}},movable:{get:function(){return(this.G&16)!==0},set:function(a){var y=(this.G&16)!==0;y!==a&&(this.G^=16,this.g("movable",y,a))}},selectionAdorned:{get:function(){return(this.G&32)!==0},set:function(a){var y=(this.G&32)!==0;y!==a&&(this.G^=32,this.g("selectionAdorned",y,a),this.Wb())}},isInDocumentBounds:{get:function(){return(this.G&64)!==0},set:function(a){var y=(this.G&64)!==0;if(y!==a){this.G^=64;var E=this.diagram;E!==null&&E.Ya(),this.g("isInDocumentBounds",y,a)}}},isLayoutPositioned:{get:function(){return(this.G&128)!==0},set:function(a){var y=(this.G&128)!==0;y!==a&&(this.G^=128,this.g("isLayoutPositioned",y,a),this.C(a?4:8))}},selectable:{get:function(){return(this.G&256)!==0},set:function(a){var y=(this.G&256)!==0;y!==a&&(this.G^=256,this.g("selectable",y,a),this.Wb())}},reshapable:{get:function(){return(this.G&512)!==0},set:function(a){var y=(this.G&512)!==0;y!==a&&(this.G^=512,this.g("reshapable",y,a),this.Wb())}},resizable:{get:function(){return(this.G&1024)!==0},set:function(a){var y=(this.G&1024)!==0;y!==a&&(this.G^=1024,this.g("resizable",y,a),this.Wb())}},rotatable:{get:function(){return(this.G&2048)!==0},set:function(a){var y=(this.G&2048)!==0;y!==a&&(this.G^=2048,this.g("rotatable",y,a),this.Wb())}},isSelected:{get:function(){return(this.G&4096)!==0},set:function(a){var y=(this.G&4096)!==0;if(y!==a){var E=this.diagram;if(!a||this.canSelect()&&!(E!==null&&E.selection.count>=E.maxSelectionCount)){this.G^=4096;var x=!1;if(E!==null){x=E.skipsUndoManager,E.skipsUndoManager=!0;var b=E.selection;b.ka(),a?b.add(this):b.remove(this),b.freeze()}this.g("isSelected",y,a),this.Wb(),a=this.selectionChanged,a!==null&&a(this),E!==null&&(E.$b(),E.skipsUndoManager=x)}}}},isHighlighted:{get:function(){return(this.G&524288)!==0},set:function(a){var y=(this.G&524288)!==0;if(y!==a){this.G^=524288;var E=this.diagram;E!==null&&(E=E.highlighteds,E.ka(),a?E.add(this):E.remove(this),E.freeze()),this.g("isHighlighted",y,a),this.N(),a=this.highlightedChanged,a!==null&&a(this)}}},isShadowed:{get:function(){return(this.G&8192)!==0},set:function(a){var y=(this.G&8192)!==0;y!==a&&(this.G^=8192,this.Uc=!0,this.g("isShadowed",y,a),this.N())}},isAnimated:{get:function(){return(this.G&262144)!==0},set:function(a){var y=(this.G&262144)!==0;y!==a&&(this.G^=262144,this.g("isAnimated",y,a))}},highlightedChanged:{get:function(){return this.P!==null?this.P.oq:null},set:function(a){var y=this.highlightedChanged;y!==a&&(ol(this),this.P.oq=a,this.g("highlightedChanged",y,a))}},selectionObjectName:{get:function(){return this.P!==null?this.P.vr:""},set:function(a){var y=this.selectionObjectName;y!==a&&(ol(this),this.P.vr=a,this.Ug=null,this.g("selectionObjectName",y,a))}},selectionAdornmentTemplate:{get:function(){return this.P!==null?this.P.tr:null},set:function(a){var y=this.selectionAdornmentTemplate;y!==a&&(ol(this),this.P.tr=a,this.g("selectionAdornmentTemplate",y,a))}},selectionObject:{get:function(){if(this.Ug===null){var a=this.selectionObjectName;a!==null&&a!==""?(a=this.fb(a),a!==null?this.Ug=a:this.Ug=this):this instanceof Xn?(a=this.path,a!==null?this.Ug=a:this.Ug=this):this.Ug=this}return this.Ug}},selectionChanged:{get:function(){return this.P!==null?this.P.ur:null},set:function(a){var y=this.selectionChanged;y!==a&&(ol(this),this.P.ur=a,this.g("selectionChanged",y,a))}},resizeAdornmentTemplate:{get:function(){return this.P!==null?this.P.fr:null},set:function(a){var y=this.resizeAdornmentTemplate;y!==a&&(ol(this),this.P.fr=a,this.g("resizeAdornmentTemplate",y,a))}},resizeObjectName:{get:function(){return this.P!==null?this.P.hr:""},set:function(a){var y=this.resizeObjectName;y!==a&&(ol(this),this.P.hr=a,this.g("resizeObjectName",y,a))}},resizeObject:{get:function(){var a=this.resizeObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},resizeCellSize:{get:function(){return this.P!==null?this.P.gr:Po},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),ol(this),this.P.gr=a,this.g("resizeCellSize",y,a))}},rotateAdornmentTemplate:{get:function(){return this.P!==null?this.P.ir:null},set:function(a){var y=this.rotateAdornmentTemplate;y!==a&&(ol(this),this.P.ir=a,this.g("rotateAdornmentTemplate",y,a))}},rotateObjectName:{get:function(){return this.P!==null?this.P.jr:""},set:function(a){var y=this.rotateObjectName;y!==a&&(ol(this),this.P.jr=a,this.g("rotateObjectName",y,a))}},rotateObject:{get:function(){var a=this.rotateObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},rotationSpot:{get:function(){return this.P!==null?this.P.lr:Ca},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),ol(this),this.P.lr=a,this.g("rotationSpot",y,a))}},text:{get:function(){return this.ec},set:function(a){var y=this.ec;y!==a&&(this.ec=a,this.g("text",y,a))}},containingGroup:{get:function(){return this.Ah},set:function(a){if(this.Zc()){var y=this.Ah;if(y!==a){a===null||this!==a&&!a.Td(this)||(this===a&&pt("Cannot make a Group a member of itself: "+this.toString()),pt("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var E=this.diagram;if(y!==null?Kv(y,this):this instanceof or&&E!==null&&E.ai.remove(this),this.Ah=a,a!==null?Zv(a,this):this instanceof or&&E!==null&&E.ai.add(this),this.C(1),E!==null&&E.aa){var x=this.data,b=E.model;if(x!==null&&b.Xj()){var z=b.wa(a!==null?a.data:null);b.mp(x,z)}}if(x=this.containingGroupChanged,x!==null&&(b=!0,E!==null&&(b=E.aa,E.aa=!0),x(this,y,a),E!==null&&(E.aa=b)),this instanceof or){for(E=new In,Qd(E,this,!0,0,!0),E=E.iterator;E.next();)if(x=E.value,x instanceof pi)for(x=x.linksConnected;x.next();)tg(x.value)}if(this instanceof pi){for(E=this.linksConnected;E.next();)tg(E.value);E=this.labeledLink,E!==null&&tg(E)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&Mf(y,-1,a))}}else pt("cannot set the Part.containingGroup of a Link or Adornment")}},containingGroupChanged:{get:function(){return this.P!==null?this.P.Kp:null},set:function(a){var y=this.containingGroupChanged;y!==a&&(ol(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof pi&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(ol(this),this.P.Cq=a,this.g("layoutConditions",y,a))}},dragComputation:{get:function(){return this.P!==null?this.P.Up:null},set:function(a){var y=this.dragComputation;y!==a&&(ol(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:$r},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),ol(this),this.P.zr=a,this.N(),this.g("shadowOffset",y,a))}},shadowColor:{get:function(){return this.P!==null?this.P.yr:"gray"},set:function(a){var y=this.shadowColor;y!==a&&(ol(this),this.P.yr=a,this.N(),this.g("shadowColor",y,a))}},shadowBlur:{get:function(){return this.P!==null?this.P.Vg:4},set:function(a){var y=this.shadowBlur;y!==a&&(ol(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),Ui.prototype.invalidateLayout=Ui.prototype.C,Ui.prototype.findCommonContainingGroup=Ui.prototype.px,Ui.prototype.isMemberOf=Ui.prototype.Td,Ui.prototype.findTopLevelPart=Ui.prototype.sz,Ui.prototype.findSubGraphLevel=Ui.prototype.oz,Ui.prototype.ensureBounds=Ui.prototype.Va,Ui.prototype.getDocumentBounds=Ui.prototype.mi,Ui.prototype.findObject=Ui.prototype.fb,Ui.prototype.moveTo=Ui.prototype.moveTo,Ui.prototype.invalidateAdornments=Ui.prototype.Wb,Ui.prototype.clearAdornments=Ui.prototype.Ej,Ui.prototype.removeAdornment=Ui.prototype.Jf,Ui.prototype.addAdornment=Ui.prototype.bh,Ui.prototype.findAdornment=Ui.prototype.Pj,Ui.prototype.updateTargetBindings=Ui.prototype.La;var V1=!1;Ui.className="Part",Ui.LayoutNone=0,Ui.LayoutAdded=1,Ui.LayoutRemoved=2,Ui.LayoutShown=4,Ui.LayoutHidden=8,Ui.LayoutNodeSized=16,Ui.LayoutGroupLayout=32,Ui.LayoutNodeReplaced=64,Ui.LayoutStandard=127,Ui.LayoutAll=16777215;function Ur(a,y){a===void 0||a instanceof Na||typeof a=="string"?Ui.call(this,a):(Ui.call(this),a&&(y=a)),this.G&=-257,this.Jg="Adornment",this.ue=null,this.Aw=0,this.Uw=!1,this.j=this.$a=null,y&&Object.assign(this,y)}Ut(Ur,Ui),Ur.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},Ur.prototype.updateRelationshipsFromData=function(){},Ur.prototype.Ul=function(a){var y=this.adornedObject,E=y==null?void 0:y.part;if(E instanceof Xn&&y instanceof pr){y=E.path,E.Ul(a),a=y.geometry,E=this.O.s,y=E.length;for(var x=0;x<y;x++){var b=E[x];b.isPanelMain&&b instanceof pr&&(b.ua=a)}}},Ur.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!zs(a))},Ur.prototype.Zc=function(){return!1},Ur.prototype.gk=function(a,y,E,x,b,z,ee){if(a===Xo&&y==="elements"){if(b instanceof Hs)this.$a===null&&(this.$a=b);else if(b instanceof Vn){var re=b.Nl(function(oe){return oe instanceof Hs});re instanceof Hs&&this.$a===null&&(this.$a=re)}}else a===$o&&y==="elements"&&this.$a!==null&&(x===this.$a?this.$a=null:x instanceof Vn&&this.$a.rg(x)&&(this.$a=null));Ui.prototype.gk.call(this,a,y,E,x,b,z,ee)},Ur.prototype.updateAdornments=function(){},Ur.prototype.Lj=function(){},It.Object.defineProperties(Ur.prototype,{placeholder:{get:function(){return this.$a}},adornedObject:{get:function(){return this.ue},set:function(a){var y=this.adornedPart,E=null;a!==null&&(E=a.part),y===null||a!==null&&y===E||y.Jf(this.category),this.ue=a,E!==null&&E.bh(this.category,this)}},adornedPart:{get:function(){var a=this.ue;return a!==null?a.part:null}},containingGroup:{get:function(){return null}}}),Ur.className="Adornment";function Yv(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=Kr,this.er=Km,this.Kr=this.ij=this.Nq=this.Mq=null}Yv.prototype.copy=function(){var a=new Yv;return a.Dq=this.Dq,a.Eq=this.Eq,a.gj=this.gj,a.Vr=this.Vr,a.yp=this.yp.J(),a.er=this.er,a.Mq=this.Mq,a.Nq=this.Nq,a.ij=this.ij,a.Kr=this.Kr,a};function pi(a,y){a===void 0||a instanceof Na||typeof a=="string"?Ui.call(this,a):(Ui.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new Fn,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}Ut(pi,Ui),pi.prototype.cloneProtected=function(a){Ui.prototype.cloneProtected.call(this,a),a.U=this.U,this.Ba!==null&&(a.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},Ce=pi.prototype,Ce.Af=function(a){Ui.prototype.Af.call(this,a),a.Bd(),a.af=this.af,a.wc=null};function xd(a){a.Ba===null?a.Ba=new Yv:a.Ba.nc&&(a.Ba=a.Ba.copy())}Ce.th=function(){Ui.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function W1(a,y){y!==null&&(a.af===null&&(a.af=new In),a.af.add(y))}function Z1(a,y,E,x){if(y===null||a.af===null)return null;for(var b=a.af.iterator;b.next();){var z=b.value;if(z.Ds===a&&z.cv===y&&z.Ox===E&&z.Px===x||z.Ds===y&&z.cv===a&&z.Ox===x&&z.Px===E)return z}return null}Ce.Lz=function(a,y,E){y==null&&(y=""),E==null&&(E=""),a=Z1(this,a,y,E),a!==null&&a.Sl()},Ce.gk=function(a,y,E,x,b,z,ee){a===Xo&&y==="elements"?this.wc=null:a===$o&&y==="elements"&&(this.wc=null),Ui.prototype.gk.call(this,a,y,E,x,b,z,ee)},Ce.Bd=function(a){for(var y=this.linksConnected;y.next();){var E=y.value;a!==void 0&&a.contains(E)||(Cl(E.fromPort),Cl(E.toPort),E.bb())}};function K1(a,y){for(a=a.linksConnected;a.next();){var E=a.value;(E.fromPort===y||E.toPort===y)&&(Cl(E.fromPort),Cl(E.toPort),E.bb())}}function Cl(a){if(a!==null){var y=a.Zn;y!==null&&y.Sl(),a=a.part,y=a.containingGroup,y===null||a.isVisible()||Cl(y.port)}}Ce.si=function(){return!0},pi.prototype.getAvoidableRect=function(a){return a.set(this.actualBounds),a.Co(this.avoidableMargin),a},pi.prototype.findVisibleNode=function(){for(var a=this;a!==null&&!a.isVisible();)a=a.containingGroup;return a},pi.prototype.isVisible=function(){if(!Ui.prototype.isVisible.call(this))return!1;var a=!0,y=pd,E=this.diagram;if(E!==null&&(a=E.isTreePathToChildren,y=E.treeCollapsePolicy),y===pd){if(a=this.pg(),a!==null&&!a.isTreeExpanded)return!1}else if(y===xa){if(a=a?this.Oo():this.Po(),0<a.count&&a.all(function(x){return!x.isTreeExpanded}))return!1}else if(y===zf&&(a=a?this.Oo():this.Po(),0<a.count&&a.any(function(x){return!x.isTreeExpanded})))return!1;return a=this.labeledLink,a!==null?a.isVisible():!0},pi.prototype.Zb=function(a){Ui.prototype.Zb.call(this,a);for(var y=this.linksConnected;y.next();){var E=y.value;if(a&&this.containingGroup!==null){var x=E.To(this);x===null||x.Td(this.containingGroup)||E.bb()}E.Zb(a)}},pi.prototype.qx=function(){var a=new In,y=new In;return Q1(this,this,a,y),y.iterator};function Q1(a,y,E,x){if(y!==null&&!E.has(y)){E.add(y);var b=!0,z=a.diagram;z!==null&&(b=z.isTreePathToChildren),y.linksConnected.each(function(ee){ee.isTreeLink?(b?ee.fromNode===y:ee.toNode===y)&&Q1(a,b?ee.toNode:ee.fromNode,E,x):x.add(ee)})}}pi.prototype.findLinksConnected=function(a){if(a===void 0&&(a=null),a===null)return this.jb.iterator;var y=new mr(this.jb),E=this;return y.predicate=function(x){return x.fromNode===E&&x.fromPortId===a||x.toNode===E&&x.toPortId===a},y},Ce=pi.prototype,Ce.Mo=function(a){a===void 0&&(a=null);var y=new mr(this.jb),E=this;return y.predicate=function(x){return x.fromNode!==E?!1:a===null?!0:x.fromPortId===a},y},Ce.Sd=function(a){a===void 0&&(a=null);var y=new mr(this.jb),E=this;return y.predicate=function(x){return x.toNode!==E?!1:a===null?!0:x.toPortId===a},y},Ce.Mu=function(a){a===void 0&&(a=null);for(var y=null,E=null,x=this.jb.iterator;x.next();){var b=x.value;b.fromNode===this?(a===null||b.fromPortId===a)&&(b=b.toNode,y!==null?y.add(b):E!==null&&E!==b?(y=new In,y.add(E),y.add(b)):E=b):b.toNode!==this||a!==null&&b.toPortId!==a||(b=b.fromNode,y!==null?y.add(b):E!==null&&E!==b?(y=new In,y.add(E),y.add(b)):E=b)}return y!==null?y.iterator:E!==null?new gr(E):Sr},Ce.Po=function(a){a===void 0&&(a=null);for(var y=null,E=null,x=this.jb.iterator;x.next();){var b=x.value;b.fromNode!==this||a!==null&&b.fromPortId!==a||(b=b.toNode,y!==null?y.add(b):E!==null&&E!==b?(y=new In,y.add(E),y.add(b)):E=b)}return y!==null?y.iterator:E!==null?new gr(E):Sr},Ce.Oo=function(a){a===void 0&&(a=null);for(var y=null,E=null,x=this.jb.iterator;x.next();){var b=x.value;b.toNode!==this||a!==null&&b.toPortId!==a||(b=b.fromNode,y!==null?y.add(b):E!==null&&E!==b?(y=new In,y.add(E),y.add(b)):E=b)}return y!==null?y.iterator:E!==null?new gr(E):Sr},Ce.jz=function(a,y,E){y===void 0&&(y=null),E===void 0&&(E=null);var x=new mr(this.jb),b=this;return x.predicate=function(z){return!((z.fromNode!==b||z.toNode!==a||y!==null&&z.fromPortId!==y||E!==null&&z.toPortId!==E)&&(z.fromNode!==a||z.toNode!==b||E!==null&&z.fromPortId!==E||y!==null&&z.toPortId!==y))},x},Ce.kz=function(a,y,E){y===void 0&&(y=null),E===void 0&&(E=null);var x=new mr(this.jb),b=this;return x.predicate=function(z){return!(z.fromNode!==b||z.toNode!==a||y!==null&&z.fromPortId!==y||E!==null&&z.toPortId!==E)},x};function Wm(a,y,E){Cl(E);var x=a.jb.contains(y);if(x||a.jb.add(y),!x||y.fromNode===y.toNode){var b=a.linkConnected;if(b!==null){var z=!0,ee=a.diagram;ee!==null&&(z=ee.aa,ee.aa=!0),b(a,y,E),ee!==null&&(ee.aa=z)}}!x&&y.isTreeLink&&(E=y.fromNode,y=y.toNode,E!==null&&y!==null&&E!==y&&(x=!0,a=a.diagram,a!==null&&(x=a.isTreePathToChildren),b=x?y:E,z=x?E:y,b.ci||(b.ci=z),!z.isTreeLeaf||a!==null&&a.undoManager.isUndoingRedoing||(x?E===z&&(z.isTreeLeaf=!1):y===z&&(z.isTreeLeaf=!1))))}function Zm(a,y,E){Cl(E);var x=a.jb.remove(y),b=null;if(x||y.toNode===y.fromNode){var z=a.linkDisconnected;if(b=a.diagram,z!==null){var ee=!0;b!==null&&(ee=b.aa,b.aa=!0),z(a,y,E),b!==null&&(b.aa=ee)}}x&&y.isTreeLink&&(E=!0,b!==null&&(E=b.isTreePathToChildren),a=E?y.toNode:y.fromNode,y=E?y.fromNode:y.toNode,a!==null&&(a.ci=!1),y===null||y.isTreeLeaf||(y.jb.count===0?(y.ci=null,b!==null&&b.undoManager.isUndoingRedoing||(y.isTreeLeaf=!0)):cp(y)))}function cp(a){if(a.ci=!1,a.jb.count!==0){var y=!0,E=a.diagram;if(E===null||!E.undoManager.isUndoingRedoing){for(E!==null&&(y=E.isTreePathToChildren),E=a.jb.iterator;E.next();){var x=E.value;if(x.isTreeLink){if(y){if(x.fromNode===a){a.isTreeLeaf=!1;return}}else if(x.toNode===a){a.isTreeLeaf=!1;return}}}a.isTreeLeaf=!0}}}pi.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},Ce=pi.prototype,Ce.Vo=function(a){Ui.prototype.Vo.call(this,a),a||(cp(this),a=this.Yk,a!==null&&rS(a,this))},Ce.Wo=function(a){Ui.prototype.Wo.call(this,a),a||(a=this.Yk,a!==null&&a.wd!==null&&(a.wd.remove(this),a.v()))},Ce.Lj=function(){if(0<this.jb.count){var a=this.diagram;if(a!==null)for(var y=a.commandHandler!==null?a.commandHandler.deletesConnectedLinks:!0,E=this.jb.copy().iterator;E.next();){var x=E.value;y?a.remove(x):(x.fromNode===this&&(x.fromNode=null),x.toNode===this&&(x.toNode=null))}}this.labeledLink=null,Ui.prototype.Lj.call(this)},Ce.ns=function(a){if(this.wc===null){if(a===""&&this.Te===!1)return this;X1(this)}var y=this.wc.I(a);return y!==null||a!==""&&(y=this.wc.I(""),y!==null)?y:this};function X1(a){a.wc===null?a.wc=new zi:a.wc.clear(),a.qm(a,function(y,E){J1(y,E)}),a.wc.count===0&&a.wc.add("",a)}function J1(a,y){var E=y.portId;E!==null&&a.wc!==null&&a.wc.add(E,y)}function Vv(a,y,E){var x=y.portId;if(x!==null&&(a.wc!==null&&a.wc.remove(x),y=a.diagram,y!==null&&E)){for(E=null,a=a.findLinksConnected(x);a.next();)x=a.value,E===null&&(E=Ni()),E.push(x);if(E!==null){for(a=0;a<E.length;a++)y.remove(E[a]);hi(E)}}}Ce.Nz=function(a){if(a===null||a===this)return!1;var y=!0,E=this.diagram;if(E!==null&&(y=E.isTreePathToChildren),E=this,y)for(;E!==a;){y=null;for(var x=E.jb.iterator;x.next();){var b=x.value;if(b.isTreeLink&&(y=b.fromNode,y!==E&&y!==this))break}if(y===this||y===null||y===E)return!1;E=y}else for(;E!==a;){for(y=null,x=E.jb.iterator;x.next()&&(b=x.value,!b.isTreeLink||(y=b.toNode,y===E||y===this)););if(y===this||y===null||y===E)return!1;E=y}return!0},Ce.xz=function(){var a=!0,y=this.diagram;if(y!==null&&(a=y.isTreePathToChildren),y=this,a)for(;;){a=null;for(var E=y.jb.iterator;E.next();){var x=E.value;if(x.isTreeLink&&(a=x.fromNode,a!==y&&a!==this))break}if(a===this)return this;if(a===null||a===y)return y;y=a}else for(;;){for(a=null,E=y.jb.iterator;E.next()&&(x=E.value,!x.isTreeLink||(a=x.toNode,a===y||a===this)););if(a===this)return this;if(a===null||a===y)return y;y=a}},Ce.gz=function(a){if(a===null)return null;if(this===a)return this;for(var y=this;y!==null;)Vm(y,!0),y=y.pg();var E=null;for(y=a;y!==null;){if(y.G&1048576){E=y;break}y=y.pg()}for(y=this;y!==null;)Vm(y,!1),y=y.pg();return E},Ce.kh=function(){var a=!0,y=this.diagram;if(y!==null&&(a=y.isTreePathToChildren),y=this.jb.iterator,a){for(;y.next();)if(a=y.value,a.isTreeLink&&a.fromNode!==this)return a}else for(;y.next();)if(a=y.value,a.isTreeLink&&a.toNode!==this)return a;return null},Ce.pg=function(){var a=this.ci;if(a===null)return null;if(a instanceof pi)return a;a=this.diagram,a=a!==null?a.isTreePathToChildren:!0;for(var y=this.jb.iterator;y.next();){var E=y.value;if(E.isTreeLink&&(E=a?E.fromNode:E.toNode,E!==this))return this.ci=E}return this.ci=null},Ce.vz=function(){function a(E,x){x.add(E);var b=E.kh();b!==null&&(x.add(b),E=E.pg(),E!==null&&a(E,x))}var y=new In;return a(this,y),y},Ce.uz=function(){return q1(this,this)};function q1(a,y){return y=y.pg(),y===null?0:1+q1(a,y)}Ce.Qo=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren),y=new mr(this.jb);var E=this;return y.predicate=a?function(x){return!!(x.isTreeLink&&x.fromNode===E)}:function(x){return!!(x.isTreeLink&&x.toNode===E)},y},Ce.Ou=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren);var E=y=null,x=this.jb.iterator;if(a)for(;x.next();)a=x.value,a.isTreeLink&&a.fromNode===this&&(a=a.toNode,y!==null?y.add(a):E!==null&&E!==a?(y=new Fn,y.add(E),y.add(a)):E=a);else for(;x.next();)a=x.value,a.isTreeLink&&a.toNode===this&&(a=a.fromNode,y!==null?y.add(a):E!==null&&E!==a?(y=new Fn,y.add(E),y.add(a)):E=a);return y!==null?y.iterator:E!==null?new gr(E):Sr},Ce.wz=function(a){a===void 0&&(a=1/0);var y=new In;return Qd(y,this,!1,a,!0),y},pi.prototype.collapseTree=function(a){a===void 0&&(a=1),1>a&&(a=1);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var E=new In;E.add(this),$1(this,E,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===pd),y.Ue=!1}};function $1(a,y,E,x,b,z,ee){if(1<x)for(var re=E?a.Mo():a.Sd();re.next();){var oe=re.value;oe.isTreeLink&&(oe=oe.To(a),oe===null||oe===a||y.contains(oe)||(y.add(oe),$1(oe,y,E,x-1,b,z,ee)))}else eS(a,y,E,b,z,ee)}function eS(a,y,E,x,b,z){for(var ee=b===a?!0:a.isTreeExpanded,re=E?a.Mo():a.Sd(),oe={};re.next();){var ce=re.value;if(ce.isTreeLink&&(ce=ce.To(a),ce!==null&&ce!==a)){var he=y.contains(ce);if(he||y.add(ce),ee){var ye=E?ce.Oo():ce.Po();oe.uv=a,ye.all(function(Te){return function(Ae){return Ae===Te.uv||!Ae.isTreeExpanded}}(oe))&&x.Aj(ce,b),ce.oh(),ce.Zb(!1)}ce.isTreeExpanded&&(ce.wasTreeExpanded=ce.isTreeExpanded,he||eS(ce,y,E,x,b,z))}oe={uv:oe.uv}}a.isTreeExpanded=!1}pi.prototype.expandTree=function(a){a===void 0&&(a=2),2>a&&(a=2);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var E=new In;E.add(this),tS(this,E,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===pd),y.Ue=!1}};function tS(a,y,E,x,b,z,ee){for(var re=z===a?!1:a.isTreeExpanded,oe=E?a.Mo():a.Sd(),ce={};oe.next();){var he=oe.value;if(he.isTreeLink&&(re||he.fd||he.bb(),he=he.To(a),he!==null&&he!==a&&!y.contains(he))){if(y.add(he),!re){he.Zb(!0),he.oh();var ye=E?he.Oo():he.Po();ce.vv=a,ye.all(function(Te){return function(Ae){return Ae===Te.vv||!Ae.isTreeExpanded}}(ce))&&b.Cj(he,z)}(2<x||he.wasTreeExpanded)&&(he.wasTreeExpanded=!1,tS(he,y,E,x-1,b,z,ee))}ce={vv:ce.vv}}a.isTreeExpanded=!0}It.Object.defineProperties(pi.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:Km},set:function(a){var y=this.portSpreading;y!==a&&(xd(this),this.Ba.er=a,this.g("portSpreading",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.Bd())}},avoidable:{get:function(){return(this.U&8)!==0},set:function(a){var y=(this.U&8)!==0;if(y!==a){this.U^=8;var E=this.diagram;E!==null&&fd(E,this),this.g("avoidable",y,a)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:Kr},set:function(a){typeof a=="number"&&(a=new cr(a));var y=this.avoidableMargin;if(!y.D(a)){a=a.J(),xd(this),this.Ba.yp=a;var E=this.diagram;E!==null&&fd(E,this),this.g("avoidableMargin",y,a)}}},linksConnected:{get:function(){return this.jb.iterator}},linkConnected:{get:function(){return this.Ba!==null?this.Ba.Dq:null},set:function(a){var y=this.linkConnected;y!==a&&(xd(this),this.Ba.Dq=a,this.g("linkConnected",y,a))}},linkDisconnected:{get:function(){return this.Ba!==null?this.Ba.Eq:null},set:function(a){var y=this.linkDisconnected;y!==a&&(xd(this),this.Ba.Eq=a,this.g("linkDisconnected",y,a))}},linkValidation:{get:function(){return this.Ba!==null?this.Ba.gj:null},set:function(a){var y=this.linkValidation;y!==a&&(xd(this),this.Ba.gj=a,this.g("linkValidation",y,a))}},isLinkLabel:{get:function(){return this.Yk!==null}},labeledLink:{get:function(){return this.Yk},set:function(a){var y=this.Yk;if(y!==a){var E=this.diagram,x=this.data;if(y!==null){if(y.wd!==null&&(y.wd.remove(this),y.v()),E!==null&&x!==null&&!E.undoManager.isUndoingRedoing){var b=y.data,z=E.model;if(b!==null&&z.ri()){var ee=z.wa(x);ee!==void 0&&z.Qx(b,ee)}}this.containingGroup=null}this.Yk=a,a!==null&&(rS(a,this),E===null||x===null||E.undoManager.isUndoingRedoing||(b=a.data,E=E.model,b!==null&&E.ri()&&(x=E.wa(x),x!==void 0&&E.Bu(b,x))),this.containingGroup=a.containingGroup),js(this),this.g("labeledLink",y,a)}}},port:{get:function(){return this.ns("")}},ports:{get:function(){return this.wc===null&&X1(this),this.wc.iteratorValues}},isTreeExpanded:{get:function(){return(this.U&1)!==0},set:function(a){var y=(this.U&1)!==0;if(y!==a){this.U^=1;var E=this.diagram;if(this.g("isTreeExpanded",y,a),y=this.treeExpandedChanged,y!==null){var x=!0;E!==null&&(x=E.aa,E.aa=!0),y(this),E!==null&&(E.aa=x)}E!==null&&E.undoManager.isUndoingRedoing?this.Zb(a):a?this.expandTree():this.collapseTree()}}},wasTreeExpanded:{get:function(){return(this.U&2)!==0},set:function(a){var y=(this.U&2)!==0;y!==a&&(this.U^=2,this.g("wasTreeExpanded",y,a))}},treeExpandedChanged:{get:function(){return this.Ba!==null?this.Ba.Vr:null},set:function(a){var y=this.treeExpandedChanged;y!==a&&(xd(this),this.Ba.Vr=a,this.g("treeExpandedChanged",y,a))}},isTreeLeaf:{get:function(){return(this.U&4)!==0},set:function(a){var y=(this.U&4)!==0;y!==a&&(this.U^=4,this.g("isTreeLeaf",y,a))}}}),pi.prototype.expandTree=pi.prototype.expandTree,pi.prototype.collapseTree=pi.prototype.collapseTree,pi.prototype.findTreeParts=pi.prototype.wz,pi.prototype.findTreeChildrenNodes=pi.prototype.Ou,pi.prototype.findTreeChildrenLinks=pi.prototype.Qo,pi.prototype.findTreeLevel=pi.prototype.uz,pi.prototype.findTreeParentChain=pi.prototype.vz,pi.prototype.findTreeParentNode=pi.prototype.pg,pi.prototype.findTreeParentLink=pi.prototype.kh,pi.prototype.findCommonTreeParent=pi.prototype.gz,pi.prototype.findTreeRoot=pi.prototype.xz,pi.prototype.isInTreeOf=pi.prototype.Nz,pi.prototype.findPort=pi.prototype.ns,pi.prototype.findLinksTo=pi.prototype.kz,pi.prototype.findLinksBetween=pi.prototype.jz,pi.prototype.findNodesInto=pi.prototype.Oo,pi.prototype.findNodesOutOf=pi.prototype.Po,pi.prototype.findNodesConnected=pi.prototype.Mu,pi.prototype.findLinksInto=pi.prototype.Sd,pi.prototype.findLinksOutOf=pi.prototype.Mo,pi.prototype.findExternalTreeLinksConnected=pi.prototype.qx,pi.prototype.invalidateConnectedLinks=pi.prototype.Bd,pi.prototype.invalidateLinkBundle=pi.prototype.Lz;var OE=new en(pi,"SpreadingNone",10),Km=new en(pi,"SpreadingEvenly",11),Wv=new en(pi,"SpreadingPacked",12);pi.className="Node",pi.SpreadingNone=OE,pi.SpreadingEvenly=Km,pi.SpreadingPacked=Wv;function or(a,y){a===void 0||a instanceof Na||typeof a=="string"?pi.call(this,a):(pi.call(this),a&&(y=a)),this.U|=4608,this.Gn=new In,this.$a=null,this.Sc=new _o,this.Sc.group=this,this.gl=new In,this.tb=this.$p=null,y&&Object.assign(this,y)}Ut(or,pi),or.prototype.cloneProtected=function(a){pi.prototype.cloneProtected.call(this,a),this.U=this.U&-32769;var y=a.Nl(function(E){return E instanceof Hs});y instanceof Hs?a.$a=y:a.$a=null,this.Sc!==null?(a.Sc=this.Sc.copy(),a.Sc.group=a):(a.Sc!==null&&(a.Sc.group=null),a.Sc=null),this.tb!==null&&(a.tb=this.tb.copy())},Ce=or.prototype,Ce.Af=function(a){pi.prototype.Af.call(this,a);var y=a.Rj();for(a=a.memberParts;a.next();){var E=a.value;if(E.v(),E.C(8),E.Ej(),E instanceof pi)E.Bd(y);else if(E instanceof Xn)for(E=E.labelNodes;E.next();)E.value.Bd(y)}},Ce.gk=function(a,y,E,x,b,z,ee){if(a===Xo&&y==="elements"){if(b instanceof Hs)this.$a===null?this.$a=b:this.$a!==b&&pt("Cannot insert a second Placeholder into the visual tree of a Group.");else if(b instanceof Vn){var re=b.Nl(function(oe){return oe instanceof Hs});re instanceof Hs&&(this.$a===null?this.$a=re:this.$a!==re&&pt("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===$o&&y==="elements"&&this.$a!==null&&(x===this.$a?this.$a=null:x instanceof Vn&&this.$a.rg(x)&&(this.$a=null));pi.prototype.gk.call(this,a,y,E,x,b,z,ee)},Ce.Xl=function(a,y){pi.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==Vn.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof Vn&&(a=a.Pb()),this.tb===null&&(this.tb=new hn),a.mi(this.tb),a instanceof pr&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},Ce.eh=function(a,y,E,x){this.nf=this.$a,pi.prototype.eh.call(this,a,y,E,x)},Ce.Va=function(){var a=this;a.isSubGraphExpanded&&this.memberParts.each(function(y){!a.computesBoundsIncludingLinks&&y instanceof Xn||y.Va()}),pi.prototype.Va.call(this)},Ce.si=function(){if(!pi.prototype.si.call(this))return!1;for(var a=this.memberParts;a.next();){var y=a.value;if(y instanceof pi){if(y.isVisible()&&zs(y))return!1}else if(y instanceof Xn&&y.isVisible()&&zs(y)&&y.fromNode!==this&&y.toNode!==this)return!1}return!0};function Zv(a,y){if(a.Gn.add(y)){y instanceof or&&a.gl.add(y);var E=a.memberAdded;if(E!==null){var x=!0,b=a.diagram;b!==null&&(x=b.aa,b.aa=!0),E(a,y),b!==null&&(b.aa=x)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!1)}y instanceof Xn&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function Kv(a,y){if(a.Gn.remove(y)){y instanceof or&&a.gl.remove(y);var E=a.memberRemoved;if(E!==null){var x=!0,b=a.diagram;b!==null&&(x=b.aa,b.aa=!0),E(a,y),b!==null&&(b.aa=x)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!0)}y instanceof Xn&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}Ce.Lj=function(){if(0<this.Gn.count){var a=this.diagram;if(a!==null)for(var y=this.Gn.copy().iterator;y.next();)a.remove(y.value)}pi.prototype.Lj.call(this)},or.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=ln(a).iterator;a.next();)if(!y.isValidMember(this,a.value))return!1;return!0},or.prototype.addMembers=function(a,y){var E=this.diagram;if(E===null)return!1;E=E.commandHandler;var x=!0;for(a=ln(a).iterator;a.next();){var b=a.value;!y||E.isValidMember(this,b)?b.containingGroup=this:x=!1}return x},or.prototype.canUngroup=function(){if(!this.ungroupable)return!1;var a=this.layer;return a===null||!a.allowUngroup?!1:(a=a.diagram,!!(a===null||a.allowUngroup))},Ce=or.prototype,Ce.Bd=function(a){var y=(this.U&65536)!==0;if(pi.prototype.Bd.call(this,a),!y)for(!(this.U&65536)&&(this.U=this.U^65536),y=this.Lu();y.next();){var E=y.value;if(a===void 0||!a.contains(E)){var x=E.fromNode;x!==null&&x!==this&&x.Td(this)&&!x.isVisible()?(Cl(E.fromPort),Cl(E.toPort),E.bb()):(x=E.toNode,x!==null&&x!==this&&x.Td(this)&&!x.isVisible()&&(Cl(E.fromPort),Cl(E.toPort),E.bb()))}}},Ce.Lu=function(){var a=this.diagram!==null&&this.diagram.Pw;if(a&&this.$p!==null)return this.$p.iterator;var y=this.Rj();y.add(this);for(var E=new In,x=y.iterator;x.next();){var b=x.value;if(b instanceof pi)for(b=b.linksConnected;b.next();){var z=b.value;y.contains(z)||E.add(z)}}return a&&(this.$p=E),E.iterator},Ce.iz=function(){var a=this.Rj();a.add(this);for(var y=new In,E=a.iterator;E.next();){var x=E.value;if(x instanceof pi)for(x=x.linksConnected;x.next();){var b=x.value,z=b.fromNode;z===null||a.contains(z)&&z!==this||y.add(z),b=b.toNode,b===null||a.contains(b)&&b!==this||y.add(b)}}return y.iterator},Ce.hz=function(){function a(E,x){E!==null&&(x.add(E),a(E.containingGroup,x))}var y=new In;return a(this,y),y},Ce.Rj=function(){var a=new In;return Qd(a,this,!0,0,!0),a.remove(this),a},Ce.Zb=function(a){pi.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},or.prototype.collapseSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();nS(this,y,a,this),a.Ue=!1}};function nS(a,y,E,x){for(var b=a.memberParts;b.next();){var z=b.value;if(z.Zb(!1),z instanceof or&&z.isSubGraphExpanded&&(z.wasSubGraphExpanded=z.isSubGraphExpanded,nS(z,y,E,x)),z instanceof pi)z.Bd(y),E.Aj(z,x);else if(z instanceof Xn)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!1}or.prototype.expandSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();iS(this,y,a,this),a.Ue=!1}};function iS(a,y,E,x){for(var b=a.memberParts;b.next();){var z=b.value;if(z.Zb(!0),z instanceof or&&z.wasSubGraphExpanded&&(z.wasSubGraphExpanded=!1,iS(z,y,E,x)),z instanceof pi)z.Bd(y),E.Cj(z,x);else if(z instanceof Xn)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!0}or.prototype.move=function(a,y){y===void 0&&(y=!1);var E=y?this.location:this.position,x=E.x;E=E.y;var b=a.x,z=a.y;if(!(x===b||isNaN(x)&&isNaN(b))||!(E===z||isNaN(E)&&isNaN(z))){for(x=b-(isNaN(x)?0:x),E=z-(isNaN(E)?0:E),z=lt.alloc(),pi.prototype.move.call(this,a,y),a=new In,y=this.Rj().iterator;y.next();)b=y.value,b instanceof Xn&&(b.suspendsRouting&&a.add(b),b.fd||b.fromNode!==this&&b.toNode!==this)&&(b.suspendsRouting=!0);for(y.reset();y.next();)if(b=y.value,!(b.ph()||b instanceof pi&&b.isLinkLabel)){var ee=b.position,re=b.location;ee.w()?(z.x=ee.x+x,z.y=ee.y+E,b.position=z):re.w()&&(z.x=re.x+x,z.y=re.y+E,b.location=z)}for(y.reset();y.next();)b=y.value,b instanceof Xn&&(b.suspendsRouting=a.contains(b),b.fd||b.fromNode!==this&&b.toNode!==this)&&(ee=b.position,z.x=ee.x+x,z.y=ee.y+E,z.w()?b.move(z):b.bb(),Xv(b)&&b.bb());lt.free(z)}},It.Object.defineProperties(or.prototype,{placeholder:{get:function(){return this.$a}},computesBoundsAfterDrag:{get:function(){return(this.U&2048)!==0},set:function(a){var y=(this.U&2048)!==0;y!==a&&(this.U^=2048,this.g("computesBoundsAfterDrag",y,a))}},computesBoundsIncludingLinks:{get:function(){return(this.U&4096)!==0},set:function(a){var y=(this.U&4096)!==0;y!==a&&(this.U^=4096,this.g("computesBoundsIncludingLinks",y,a))}},computesBoundsIncludingLocation:{get:function(){return(this.U&8192)!==0},set:function(a){var y=(this.U&8192)!==0;y!==a&&(this.U^=8192,this.g("computesBoundsIncludingLocation",y,a))}},handlesDragDropForMembers:{get:function(){return(this.U&16384)!==0},set:function(a){var y=(this.U&16384)!==0;y!==a&&(this.U^=16384,this.g("handlesDragDropForMembers",y,a))}},memberParts:{get:function(){return this.Gn.iterator}},layout:{get:function(){return this.Sc},set:function(a){var y=this.Sc;if(y!==a){a!==null&&a.diagram!==null&&a.diagram.layout===a&&pt("A layout cannot be both the Diagram.layout and a Group.layout: "+a),y!==null&&(y.diagram=null,y.group=null),this.Sc=a;var E=this.diagram;a!==null&&(a.diagram=E,a.group=this),E!==null&&(E.xh=!0),this.g("layout",y,a),E!==null&&E.$b()}}},memberAdded:{get:function(){return this.Ba!==null?this.Ba.Mq:null},set:function(a){var y=this.memberAdded;y!==a&&(xd(this),this.Ba.Mq=a,this.g("memberAdded",y,a))}},memberRemoved:{get:function(){return this.Ba!==null?this.Ba.Nq:null},set:function(a){var y=this.memberRemoved;y!==a&&(xd(this),this.Ba.Nq=a,this.g("memberRemoved",y,a))}},memberValidation:{get:function(){return this.Ba!==null?this.Ba.ij:null},set:function(a){var y=this.memberValidation;y!==a&&(xd(this),this.Ba.ij=a,this.g("memberValidation",y,a))}},ungroupable:{get:function(){return(this.U&256)!==0},set:function(a){var y=(this.U&256)!==0;y!==a&&(this.U^=256,this.g("ungroupable",y,a))}},isSubGraphExpanded:{get:function(){return(this.U&512)!==0},set:function(a){var y=(this.U&512)!==0;if(y!==a){this.U^=512;var E=this.diagram;if(this.g("isSubGraphExpanded",y,a),y=this.subGraphExpandedChanged,y!==null){var x=!0;E!==null&&(x=E.aa,E.aa=!0),y(this),E!==null&&(E.aa=x)}E!==null&&E.undoManager.isUndoingRedoing?(this.$a!==null&&this.$a.v(),this.memberParts.each(function(b){b.updateAdornments()})):a?this.expandSubGraph():this.collapseSubGraph()}}},wasSubGraphExpanded:{get:function(){return(this.U&1024)!==0},set:function(a){var y=(this.U&1024)!==0;y!==a&&(this.U^=1024,this.g("wasSubGraphExpanded",y,a))}},subGraphExpandedChanged:{get:function(){return this.Ba!==null?this.Ba.Kr:null},set:function(a){var y=this.subGraphExpandedChanged;y!==a&&(xd(this),this.Ba.Kr=a,this.g("subGraphExpandedChanged",y,a))}},rh:{get:function(){return(this.U&32768)!==0},set:function(a){(this.U&32768)!==0!==a&&(this.U^=32768)}}}),or.prototype.expandSubGraph=or.prototype.expandSubGraph,or.prototype.collapseSubGraph=or.prototype.collapseSubGraph,or.prototype.findSubGraphParts=or.prototype.Rj,or.prototype.findContainingGroupChain=or.prototype.hz,or.prototype.findExternalNodesConnected=or.prototype.iz,or.prototype.findExternalLinksConnected=or.prototype.Lu,or.prototype.ensureBounds=or.prototype.Va,or.className="Group";function Hs(a){Dt.call(this),this.yb=is,this.ko=new hn(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}Ut(Hs,Dt),Hs.prototype.cloneProtected=function(a){Dt.prototype.cloneProtected.call(this,a),a.yb=this.yb.J(),a.ko=this.ko.copy()},Hs.prototype.gh=function(a){if(this.background===null&&this.areaBackground===null)return!1;var y=this.naturalBounds;return ca(0,0,y.width,y.height,a.x,a.y)},Hs.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof or||a instanceof Ur)||pt("Placeholder is not inside a Group or Adornment."),a instanceof or){var y=this.computeBorder(this.ko),E=this.minSize,x=this.dc;for(ra(x,(isFinite(E.width)?Math.max(E.width,y.width):y.width)||0,(isFinite(E.height)?Math.max(E.height,y.height):y.height)||0),this.Ge(0,0,x.width,x.height),x=a.memberParts,E=!1;x.next();)if(x.value.isVisible()){E=!0;break}x=a.diagram,!E||x===null||x.animationManager.Xu(a)||isNaN(y.x)||isNaN(y.y)||(E=lt.alloc(),E.xi(y,a.locationSpot),E.D(a.location)||(a.location=E),lt.free(E))}else{y=this.dc,E=this.yb,x=E.left+E.right;var b=E.top+E.bottom,z=a.adornedObject;a.angle=z.li();var ee=0;z instanceof pr&&(ee=z.strokeWidth);var re=z.Df(),oe=z.naturalBounds,ce=(oe.width+ee)*re;ee=(oe.height+ee)*re,a.type!==Vn.Link&&(re=z.ga(a.category==="Selection"?Ki:a.locationSpot,lt.alloc()),a.location=re,lt.free(re)),isNaN(ce)||isNaN(ee)?(a=z.ga(Ki,lt.alloc()),ce=hn.allocAt(a.x,a.y,0,0),ce.Ye(z.ga(Wo,a)),ce.Ye(z.ga(Qr,a)),ce.Ye(z.ga(Jo,a)),ra(y,ce.width+x||0,ce.height+b||0),this.Ge(-E.left,-E.top,y.width,y.height),lt.free(a),hn.free(ce)):(ra(y,ce+x||0,ee+b||0),this.Ge(-E.left,-E.top,y.width,y.height))}},Hs.prototype.eh=function(a,y,E,x){this.actualBounds.h(a,y,E,x)},Hs.prototype.computeBorder=function(a){var y=this.part,E=y.diagram,x=E===null||!E.animationManager.isAnimating;if(E!==null&&y instanceof or&&!y.layer.isTemporary&&y.computesBoundsAfterDrag&&this.ko.w()){var b=E.toolManager.findTool("Dragging");if(b===E.currentTool&&(E=b.computeBorder(y,this.ko,a),E!==null))return E}E=hn.alloc(),b=this.computeMemberBounds(E);var z=this.yb;return y instanceof or&&!y.isSubGraphExpanded?a.h(b.x-z.left,b.y-z.top,0,0):a.h(b.x-z.left,b.y-z.top,Math.max(b.width+z.left+z.right,0),Math.max(b.height+z.top+z.bottom,0)),hn.free(E),x&&y instanceof or&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},Hs.prototype.computeMemberBounds=function(a){if(!(this.part instanceof or))return a.h(0,0,0,0),a;for(var y=this.part,E=1/0,x=1/0,b=-1/0,z=-1/0,ee=y.memberParts;ee.next();){var re=ee.value;if(re.isVisible()){if(re instanceof Xn&&(!y.computesBoundsIncludingLinks||Ul(re)||re.fromNode===y||re.toNode===y))continue;re=re.actualBounds,re.left<E&&(E=re.left),re.top<x&&(x=re.top),re.right>b&&(b=re.right),re.bottom>z&&(z=re.bottom)}}return isFinite(E)&&isFinite(x)?a.h(E,x,b-E,z-x):(y=y.location,a.h(y.x,y.y,0,0)),a},It.Object.defineProperties(Hs.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new cr(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),Hs.className="Placeholder";function Xn(a){Ui.call(this,Vn.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=Gs,this.Om=0,this.Qm=Gs,this.Rm=NaN,this.qj=$v,this.po=.5,this.wd=null,this.Nb=new Fn().freeze(),this.Tg=this.Mg=null,this.ml=new hn,this.ua=new Kn,this.u=this.o=this.Sf=this.Wf=null,this.su=new lt,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}Ut(Xn,Ui),Xn.prototype.cloneProtected=function(a){Ui.prototype.cloneProtected.call(this,a),a.Qa=this.Qa&-113,a.ff=this.ff,a.gn=this.gn,a.vf=this.vf,a.uo=this.uo,a.qk=this.qk,a.Om=this.Om,a.Qm=this.Qm,a.Rm=this.Rm,a.qj=this.qj,a.po=this.po,this.ba!==null&&(a.ba=this.ba.copy())},Ce=Xn.prototype,Ce.Af=function(a){Ui.prototype.Af.call(this,a),this.ff=a.ff,this.vf=a.vf,a.Mg=null,a.bb(),a.Sf=this.Sf;var y=a.fromPort;y!==null&&Cl(y),a=a.toPort,a!==null&&Cl(a)},Ce.qb=function(a){a.classType===Xn?(a.value&2)===2?this.routing=a:a===Gl||a===wd||a===ig?this.curve=a:a===fp||a===e0||a===t0?this.adjusting=a:a!==$v&&a!==Gs&&pt("Unknown Link enum value for a Link property: "+a):Ui.prototype.qb.call(this,a)},Ce.Xc=function(){this.ba===null&&(this.ba=new $g)},Ce.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),zs(a)||Zd(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),zs(a)||Zd(a)))},Ce.zv=function(){return!1},Ce.Av=function(){},Ce.Zc=function(){return!1},Xn.prototype.computeAngle=function(a,y,E){return Xn.computeAngle(y,E)},Xn.computeAngle=function(a,y){switch(a){default:case Gs:a=0;break;case gp:a=y;break;case pp:a=y+90;break;case mp:a=y-90;break;case ey:a=y+180;break;case n0:a=Bt.bp(y),90<a&&270>a&&(a-=180);break;case vp:a=Bt.bp(y+90),90<a&&270>a&&(a-=180);break;case yp:a=Bt.bp(y-90),90<a&&270>a&&(a-=180);break;case i0:if(a=Bt.bp(y),45<a&&135>a||225<a&&315>a)return 0;90<a&&270>a&&(a-=180)}return Bt.bp(a)};function tg(a){var y=a.fromNode,E=a.toNode,x=null;if(y!==null?x=E!==null?y.px(E):y.containingGroup:E!==null?x=E.containingGroup:x=null,y=x,E=a.Ah,E!==y){E!==null&&Kv(E,a),a.Ah=y,y!==null&&Zv(y,a);var b=a.containingGroupChanged;if(b!==null){var z=!0,ee=a.diagram;ee!==null&&(z=ee.aa,ee.aa=!0),b(a,E,y),ee!==null&&(ee.aa=z)}!a.fd||a.Lw!==E&&a.Mw!==E||a.bb()}if(a.isLabeledLink)for(a=a.labelNodes;a.next();)a.value.containingGroup=x}Ce=Xn.prototype,Ce.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&Ui.prototype.oh.call(this)},Ce.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},Ce.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function rS(a,y){a.wd===null&&(a.wd=new In),a.wd.add(y),a.v()}Ce.Vo=function(a){if(Ui.prototype.Vo.call(this,a),Bh(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Wm(a,this,y));var E=this.uf;if(E!==null){var x=this.toPort;E===a&&x===y||Wm(E,this,x)}dp(this)}},Ce.Wo=function(a){if(Ui.prototype.Wo.call(this,a),Bh(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Zm(a,this,y));var E=this.uf;if(E!==null){var x=this.toPort;E===a&&x===y||Zm(E,this,x)}hp(this)}},Ce.Lj=function(){if(this.fd=!0,this.wd!==null){var a=this.diagram;if(a!==null)for(var y=this.wd.copy().iterator;y.next();)a.remove(y.value)}this.data!==null&&(a=this.diagram,a!==null&&a.partManager.removeDataForLink(this))},Xn.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},Xn.prototype.move=function(a,y){var E=y?this.location:this.position,x=E.x;isNaN(x)&&(x=0);var b=E.y;for(isNaN(b)&&(b=0),x=a.x-x,b=a.y-b,y===!0?Ui.prototype.move.call(this,a,!1):(a=lt.allocAt(E.x+x,E.y+b),Ui.prototype.move.call(this,a,!1),lt.free(a)),bd(this,x,b),a=this.labelNodes;a.next();)y=a.value,E=y.position,y.moveTo(E.x+x,E.y+b)},Xn.prototype.canRelinkFrom=function(){if(!this.relinkableFrom)return!1;var a=this.layer;return a===null?!0:a.allowRelink?(a=a.diagram,!!(a===null||a.allowRelink)):!1},Xn.prototype.canRelinkTo=function(){if(!this.relinkableTo)return!1;var a=this.layer;return a===null?!0:a.allowRelink?(a=a.diagram,!!(a===null||a.allowRelink)):!1},Xn.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(fo),a;if(y===1)return a.assign(this.i(0)),a;if(y===2){var E=this.i(0),x=this.i(1);return a.h((E.x+x.x)/2,(E.y+x.y)/2),a}if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===Gl))return this.ua.Pu(.5,a),a.add(this.i(0)),E=this.ua.figures.first(),a.offset(-E.startX,-E.startY),a;if(this.computeCurve()===Gl){if(y===3){E=this.i(0),x=this.i(1);var b=this.i(2);return Bt.ax(E.x,E.y,x.x,x.y,x.x,x.y,b.x,b.y,a),a}if(x=(y-1)/3|0,E=3*(x/2|0),x%2===1){x=this.i(E),b=this.i(E+1);var z=this.i(E+2);E=this.i(E+3),Bt.ax(x.x,x.y,b.x,b.y,z.x,z.y,E.x,E.y,a)}else a.assign(this.i(E));return a}var ee=this.flattenedLengths;for(E=this.flattenedTotalLength,b=z=x=0;x<E/2&&z<y&&(b=ee[z],!(x+b>E/2));)x+=b,z++;return y=this.i(z),z=this.i(z+1),1>Math.abs(y.x-z.x)?y.y>z.y?a.h(y.x,y.y-(E/2-x)):a.h(y.x,y.y+(E/2-x)):1>Math.abs(y.y-z.y)?y.x>z.x?a.h(y.x-(E/2-x),y.y):a.h(y.x+(E/2-x),y.y):(E=(E/2-x)/b,a.h(y.x+E*(z.x-y.x),y.y+E*(z.y-y.y))),a},Xn.prototype.computeMidAngle=function(){var a=this.pointsCount;if(2>a)return NaN;if(a===2)return this.i(0).ab(this.i(1));if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===Gl))return this.ua.wx(.5);if(this.computeCurve()===Gl&&4<=a){var y=(a-1)/3|0,E=3*(y/2|0);if(y%2===1){E=Math.floor(E),a=this.i(E),y=this.i(E+1);var x=this.i(E+2);return E=this.i(E+3),Bt.My(a.x,a.y,y.x,y.y,x.x,x.y,E.x,E.y)}if(0<E&&E+1<a)return this.i(E-1).ab(this.i(E+1))}y=this.flattenedLengths,x=this.flattenedTotalLength;var b=0;E=0;for(var z;b<x/2&&E<a&&(z=y[E],!(b+z>x/2));)b+=z,E++;if(y=this.i(E),x=this.i(E+1),1>Math.abs(y.x-x.x)&&1>Math.abs(y.y-x.y)){if(0<E&&E+2<a)return this.i(E-1).ab(this.i(E+2))}else{if(1>Math.abs(y.x-x.x))return y.y>x.y?270:90;if(1>Math.abs(y.y-x.y))return y.x>x.x?180:0}return y.ab(x)},Ce=Xn.prototype,Ce.i=function(a){return this.Nb.s[a]},Ce.dd=function(a,y){this.Nb.cd(a,y)},Ce.L=function(a,y,E){this.Nb.cd(a,new lt(y,E))},Ce.Kz=function(a,y){this.Nb.Gb(a,y)},Ce.m=function(a,y,E){this.Nb.Gb(a,new lt(y,E))},Ce.ne=function(a){this.Nb.add(a)},Ce.yf=function(a,y){this.Nb.add(new lt(a,y))},Ce.pv=function(a){this.Nb.mb(a)},Ce.Fj=function(){this.Nb.clear()};function bd(a,y,E){if(y!==0||E!==0)if(a.pointsCount===0)a.defaultFromPoint&&a.defaultFromPoint.offset(y,E),a.defaultToPoint&&a.defaultToPoint.offset(y,E);else{for(var x=a.fd,b=new Fn,z=a.Nb.iterator;z.next();){var ee=z.value;b.add(new lt(ee.x+y,ee.y+E).freeze())}b.freeze(),z=a.Nb,a.Nb=b,ee=a.diagram,isNaN(y)||isNaN(E)||ee!==null&&ee.animationManager.zb?a.v():(a.ke.h(a.ke.x+y,a.ke.y+E),a.pa.h(a.pa.x+y,a.pa.y+E),js(a)),x?Qm(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),ee!==null&&ee.animationManager.zb&&ue(ee.animationManager,a,b),a.g("points",z,b)}}Ce.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},Ce.zf=function(){if(this.Mg!==null){for(var a=this.Mg,y=this.Nb,E=1/0,x=1/0,b=a.s,z=b.length,ee=0;ee<z;ee++){var re=b[ee];E=Math.min(re.x,E),x=Math.min(re.y,x)}re=ee=1/0;for(var oe=y.s,ce=oe.length,he=0;he<ce;he++){var ye=oe[he];ee=Math.min(ye.x,ee),re=Math.min(ye.y,re),ye.freeze()}if(y.freeze(),ce===z){for(z=0;z<ce;z++)if(he=b[z],ye=oe[z],he.x-E!==ye.x-ee||he.y-x!==ye.y-re){this.qc();break}}else this.qc();this.Mg=null,E=this.diagram,E!==null&&E.animationManager.zb&&ue(E.animationManager,this,y),Qm(this),this.g("points",a,y)}},Ce.rv=function(){this.Mg!==null&&(this.Nb=this.Mg,this.Mg=null)};function Qm(a){a.Nb.count===0?a.fd=!1:(a.fd=!0,a.cq=null,a.vt=NaN,a.defaultFromPoint=a.i(0),a.defaultToPoint=a.i(a.pointsCount-1),$m(a,!1))}Ce.bb=function(){if(!this.suspendsRouting){var a=this.diagram;if(a){if(a.As.contains(this)||a.undoManager.isUndoingRedoing||(a=a.animationManager,a.isTicking&&!a.isAnimating))return;this.Tg===null||a.isTicking||(this.Tg=null)}a=this.path,a!==null&&(this.fd=!1,this.v(),a.v())}},Ce.vg=function(){if(!this.fd&&!this.computingPoints){var a=!0;try{this.computingPoints=!0,this.uh(),a=this.computePoints()}catch(y){this.computingPoints=!1,this.rv()}finally{this.computingPoints=!1,a?this.zf():this.rv()}}},Xn.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?(cf||(cf=new pi,cf.desiredSize=Ji,cf.Va()),this.defaultFromPoint&&(cf.location=this.defaultFromPoint,cf.Va(),y=a=cf)):y=this.fromPort,y!==null&&!a.isVisible()){var E=a.findVisibleNode();E!==null&&E!==a?(a=E,y=E.port):a=E}if(this.Lw=a,a===null||!a.location.w())return!1;for(;!(y===null||y.actualBounds.w()&&y.Ed());)y=y.panel;if(y===null)return!1;var x=this.toNode,b=null;if(x===null?(df||(df=new pi,df.desiredSize=Ji,df.Va()),this.defaultToPoint&&(df.location=this.defaultToPoint,df.Va(),b=x=df)):b=this.toPort,b===null||x.isVisible()||(E=x.findVisibleNode(),E!==null&&E!==x?(x=E,b=E.port):x=E),this.Mw=x,x===null||!x.location.w())return!1;for(;!(b===null||b.actualBounds.w()&&b.Ed());)b=b.panel;if(b===null)return!1;var z=this.pointsCount,ee=this.computeSpot(!0,y);E=this.computeSpot(!1,b);var re=ng(ee),oe=ng(E),ce=y===b&&y!==null,he=this.isOrthogonal,ye=this.curve===Gl;this.Wf=ce&&!he?ye=!0:!1;var Te=this.computeAdjusting()===Gs||ce;if(!he&&!ce&&re&&oe){if(re=!1,!Te&&3<=z&&(Te=this.getLinkPoint(a,y,ee,!0,!1,x,b),oe=this.getLinkPoint(x,b,E,!1,!1,a,y),re=this.adjustPoints(0,Te,z-1,oe))&&(Te=this.getLinkPoint(a,y,ee,!0,!1,x,b),oe=this.getLinkPoint(x,b,E,!1,!1,a,y),this.adjustPoints(0,Te,z-1,oe)),!re)if(this.Fj(),ye){z=this.getLinkPoint(a,y,ee,!0,!1,x,b),Te=this.getLinkPoint(x,b,E,!1,!1,a,y),re=Te.x-z.x,oe=Te.y-z.y,ce=this.computeCurviness(),ye=he=0;var Ae=z.x+re/3,ke=z.y+oe/3,He=Ae,dt=ke;Bt.B(oe,0)?dt=0<re?dt-ce:dt+ce:(he=-re/oe,ye=Math.sqrt(ce*ce/(he*he+1)),0>ce&&(ye=-ye),He=(0>oe?-1:1)*ye+Ae,dt=he*(He-Ae)+ke),Ae=z.x+2*re/3,ke=z.y+2*oe/3;var tt=Ae,gt=ke;Bt.B(oe,0)?gt=0<re?gt-ce:gt+ce:(tt=(0>oe?-1:1)*ye+Ae,gt=he*(tt-Ae)+ke),this.Fj(),this.ne(z),this.yf(He,dt),this.yf(tt,gt),this.ne(Te),this.dd(0,this.getLinkPoint(a,y,ee,!0,!1,x,b)),this.dd(3,this.getLinkPoint(x,b,E,!1,!1,a,y))}else z=x,Te=b,x=this.getLinkPoint(a,y,ee,!0,!1,z,Te),b=this.getLinkPoint(z,Te,E,!1,!1,a,y),this.hasCurviness()?(Te=b.x-x.x,E=b.y-x.y,ee=this.computeCurviness(),a=x.x+Te/2,y=x.y+E/2,z=a,re=y,Bt.B(E,0)?re=0<Te?re-ee:re+ee:(Te=-Te/E,z=Math.sqrt(ee*ee/(Te*Te+1)),0>ee&&(z=-z),z=(0>E?-1:1)*z+a,re=Te*(z-a)+y),this.ne(x),this.yf(z,re),this.ne(b)):(this.ne(x),this.ne(b),re=hn.alloc(),y.mi(re),oe=re.ca(b),Te.mi(re),ce=re.ca(x),(oe||ce)&&(ee=y.ga(Jm(ee),new lt),this.dd(0,this.getLinkPointFromPoint(a,y,ee,b,!0,ee)),E=Te.ga(Jm(E),new lt),this.dd(1,this.getLinkPointFromPoint(z,Te,E,x,!1,E))),hn.free(re))}else{ye=this.isAvoiding,Te&&(he&&ye||ce)&&this.Fj();var yt=ce?this.computeCurviness():0;ye=this.getLinkPoint(a,y,ee,!0,he,x,b),Ae=He=ke=0,(he||!re||ce)&&(dt=this.computeEndSegmentLength(a,y,ee,!0),Ae=this.getLinkDirection(a,y,ye,ee,!0,he,x,b),ce&&(re||ee.D(E)||!he&&ee.x+E.x===1&&ee.y+E.y===1)&&(Ae-=he?90:30,0>yt&&(Ae-=180)),0>Ae?Ae+=360:360<=Ae&&(Ae-=360),ce&&(dt+=Math.abs(yt)*(he?1:2)),Ae===0?ke=dt:Ae===90?He=dt:Ae===180?ke=-dt:Ae===270?He=-dt:(ke=dt*Math.cos(Ae*Math.PI/180),He=dt*Math.sin(Ae*Math.PI/180)),ee.Mc()&&ce&&(dt=y.ga(ur,lt.alloc()),tt=lt.allocAt(dt.x+1e3*ke,dt.y+1e3*He),this.getLinkPointFromPoint(a,y,dt,tt,!0,ye),lt.free(dt),lt.free(tt))),dt=this.getLinkPoint(x,b,E,!1,he,a,y);var bt=gt=tt=0;if(he||!oe||ce){var kt=this.computeEndSegmentLength(x,b,E,!1);bt=this.getLinkDirection(x,b,dt,E,!1,he,a,y),ce&&(oe||ee.D(E)||!he&&ee.x+E.x===1&&ee.y+E.y===1)&&(bt+=he?0:30,0>yt&&(bt+=180)),0>bt?bt+=360:360<=bt&&(bt-=360),ce&&(kt+=Math.abs(yt)*(he?1:2)),bt===0?tt=kt:bt===90?gt=kt:bt===180?tt=-kt:bt===270?gt=-kt:(tt=kt*Math.cos(bt*Math.PI/180),gt=kt*Math.sin(bt*Math.PI/180)),E.Mc()&&ce&&(E=b.ga(ur,lt.alloc()),ee=lt.allocAt(E.x+1e3*tt,E.y+1e3*gt),this.getLinkPointFromPoint(x,b,E,ee,!1,dt),lt.free(E),lt.free(ee))}E=ye,(he||!re||ce)&&(E=new lt(ye.x+ke,ye.y+He)),ee=dt,(he||!oe||ce)&&(ee=new lt(dt.x+tt,dt.y+gt)),!Te&&!he&&re&&3<z&&this.adjustPoints(0,ye,z-2,ee)?this.dd(z-1,dt):!Te&&!he&&oe&&3<z&&this.adjustPoints(1,E,z-1,dt)?this.dd(0,ye):!Te&&(he?6<=z:4<z)&&this.adjustPoints(1,E,z-2,ee)?(this.dd(0,ye),this.dd(z-1,dt)):(this.Fj(),this.ne(ye),(he||!re||ce)&&this.ne(E),he&&this.addOrthoPoints(E,Ae,ee,bt,a,x),(he||!oe||ce)&&this.ne(ee),this.ne(dt))}return!0};function Qv(a,y){return Math.abs(y.x-a.x)>Math.abs(y.y-a.y)?(y.x>=a.x?y.x=a.x+9e9:y.x=a.x-9e9,y.y=a.y):(y.y>=a.y?y.y=a.y+9e9:y.y=a.y-9e9,y.x=a.x),y}Xn.prototype.getLinkPointFromPoint=function(a,y,E,x,b,z){if(z===void 0&&(z=new lt),a===null||y===null)return z.assign(E),z;if(a.isVisible()||(b=a.findVisibleNode(),b!==null&&b!==a&&(y=b.port)),a=null,b=y.panel,b===null||b.se()||(b=b.panel),b===null){b=x.x,x=x.y;var ee=E.x;E=E.y}else{a=b.oe,b=1/(a.m11*a.m22-a.m12*a.m21),ee=a.m22*b;var re=-a.m12*b,oe=-a.m21*b,ce=a.m11*b,he=b*(a.m21*a.dy-a.m22*a.dx),ye=b*(a.m12*a.dx-a.m11*a.dy);b=x.x*ee+x.y*oe+he,x=x.x*re+x.y*ce+ye,ee=E.x*ee+E.y*oe+he,E=E.x*re+E.y*ce+ye}return y.Sj(b,x,ee,E,z),a!==null&&z.transform(a),z};function Xm(a,y){var E=y.Zn;return E===null&&(E=new hf,E.port=y,E.node=y.part,y.Zn=E),hS(E,a)}Xn.prototype.getLinkPoint=function(a,y,E,x,b,z,ee,re){if(re===void 0&&(re=new lt),E.sb()&&!ng(E))return y.ga(E,re),re;if(E.$c()){var oe=Xm(this,y);if(oe!==null){if(re.assign(oe.Zo),b&&this.routing===aS){var ce=Xm(this,ee);if(ce!==null&&oe.Gl<ce.Gl){oe=lt.alloc(),ce=lt.alloc();var he=new hn(y.ga(Ki,oe),y.ga(Wo,ce)),ye=this.computeSpot(!x,ee);a=this.getLinkPoint(z,ee,ye,!x,b,a,y,ce),(E.Hf(ms)||E.Hf(Zo))&&a.y>=he.y&&a.y<=he.y+he.height?re.y=a.y:(E.Hf(oa)||E.Hf(Aa))&&a.x>=he.x&&a.x<=he.x+he.width&&(re.x=a.x),lt.free(oe),lt.free(ce)}}return re}}return E=y.ga(Jm(E),lt.alloc()),this.pointsCount>(b?6:2)?(ee=x?this.i(1):this.i(this.pointsCount-2),b&&(ee=Qv(E,ee.copy()))):(oe=this.computeSpot(!x,ee),z=lt.alloc(),ee=ee.ga(Jm(oe),z),b&&(ee=Qv(E,ee)),lt.free(z)),this.getLinkPointFromPoint(a,y,E,ee,x,re),lt.free(E),re},Xn.prototype.getLinkDirection=function(a,y,E,x,b,z,ee,re){e:if(x.sb())var oe=x.x>x.y?x.x>1-x.y?0:x.x<1-x.y?270:315:x.x<x.y?x.x>1-x.y?90:x.x<1-x.y?180:135:.5>x.x?225:.5<x.x?45:0;else{if(x.$c()&&(oe=Xm(this,y),oe!==null))switch(oe.Nc){case 1:oe=270;break e;case 2:oe=180;break e;default:case 4:oe=0;break e;case 8:oe=90;break e}oe=y.ga(ur,lt.alloc()),this.pointsCount>(z?6:2)?(re=b?this.i(1):this.i(this.pointsCount-2),re=z?Qv(oe,re.copy()):E):(E=lt.alloc(),re=re.ga(ur,E),lt.free(E)),E=Math.abs(re.x-oe.x)>Math.abs(re.y-oe.y)?re.x>=oe.x?0:180:re.y>=oe.y?90:270,lt.free(oe),oe=E}return x.Mc()&&ee.Td(a)&&(oe+=180,360<=oe&&(oe-=360)),ng(x)||(a=y.li(),a===0)||(45<=a&&135>a?oe+=90:135<=a&&225>a?oe+=180:225<=a&&315>a&&(oe+=270),360<=oe&&(oe-=360)),oe},Xn.prototype.computeEndSegmentLength=function(a,y,E,x){return y!==null&&E.$c()&&(a=Xm(this,y),a!==null)?a.Ju:(a=x?this.fromEndSegmentLength:this.toEndSegmentLength,y!==null&&isNaN(a)&&(a=x?y.fromEndSegmentLength:y.toEndSegmentLength),isNaN(a)&&(a=10),a)},Xn.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=ur:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===Ca?Pi:y)):(a=y||this.toPort,a===null?a=ur:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===Ca?Pi:y)),a};function ng(a){return a===Pi||a.x===.5&&a.y===.5}function Jm(a){return a.x===.5&&a.y===.5?a:ur}Xn.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==Gs&&4<this.pointsCount?this.computeMidPoint(new lt):(a=y.Zn,a=a!==null?hS(a,this):null,a!==null?a.Zo:y.ga(ur))},Xn.prototype.computeShortLength=function(a){if(a){if(a=this.fromShortLength,isNaN(a)){var y=this.fromPort;y!==null&&(a=y.fromShortLength)}return isNaN(a)?0:a}return a=this.toShortLength,isNaN(a)&&(y=this.toPort,y!==null&&(a=y.toShortLength)),isNaN(a)?0:a},Xn.prototype.Cf=function(a,y,E,x,b,z){if(this.pickable===!1)return!1;y===void 0&&(y=null),E===void 0&&(E=null);var ee=z;if(z===void 0&&(ee=ir.alloc(),ee.reset()),ee.multiply(this.transform),this.fh(a,ee))return Sv(this,y,E,b),z===void 0&&ir.free(ee),!0;if(this.Yc(a,ee)){var re=!1;if(!this.isAtomic)for(var oe=this.O.s,ce=oe.length;ce--;){var he=oe[ce];if(he.visible||he===this.locationObject){var ye=he.actualBounds,Te=this.naturalBounds;if(!(ye.x>Te.width||ye.y>Te.height||0>ye.x+ye.width||0>ye.y+ye.height)){if(ye=ir.alloc(),ye.set(ee),he instanceof Vn)re=he.Cf(a,y,E,x,b,ye);else if(this.path===he){if(he instanceof pr)if(re=a,Te=x,he.pickable===!1)re=!1;else if(ye.multiply(he.transform),Te)e:{var Ae=re,ke=ye;if(he.fh(Ae,ke))re=!0;else{if(ke===void 0&&(ke=he.transform,Ae.Re(he.actualBounds))){re=!0;break e}re=Ae.left,Te=Ae.right;var He=Ae.top;Ae=Ae.bottom;var dt=lt.alloc(),tt=lt.alloc(),gt=lt.alloc(),yt=ir.alloc();yt.set(ke),yt.bv(he.transform),yt.Vj(),tt.x=Te,tt.y=He,tt.transform(yt),dt.x=re,dt.y=He,dt.transform(yt),ke=!1,Rh(he,dt,tt,gt)?ke=!0:(dt.x=Te,dt.y=Ae,dt.transform(yt),Rh(he,dt,tt,gt)?ke=!0:(tt.x=re,tt.y=Ae,tt.transform(yt),Rh(he,dt,tt,gt)?ke=!0:(dt.x=re,dt.y=He,dt.transform(yt),Rh(he,dt,tt,gt)&&(ke=!0)))),ir.free(yt),lt.free(dt),lt.free(tt),lt.free(gt),re=ke}}else re=he.fh(re,ye)}else re=Ra(he,a,x,ye);re&&(Te=he,y!==null&&(Te=y(he)),Te&&(E===null||E(Te))&&b.add(Te)),ir.free(ye)}}}return z===void 0&&ir.free(ee),re||this.background!==null||this.areaBackground!==null}return z===void 0&&ir.free(ee),!1},Xn.prototype.computeCurve=function(){if(this.Wf===null){var a=this.fromPort,y=this.isOrthogonal;this.Wf=a!==null&&a===this.toPort&&!y}return this.Wf?Gl:this.curve},Xn.prototype.computeCorner=function(){if(this.curve===Gl)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},Xn.prototype.findMidLabel=function(){for(var a=this.path,y=this.O.s,E=y.length,x=0;x<E;x++){var b=y[x];if(b!==a&&!b.isPanelMain&&(b.segmentIndex===-1/0||isNaN(b.segmentIndex)))return b}for(a=this.labelNodes;a.next();)if(y=a.value,y.segmentIndex===-1/0||isNaN(y.segmentIndex))return y;return null},Xn.prototype.computeSpacing=function(){if(!this.isVisible())return 0;var a=lS;a=Math.max(a,this.computeThickness());var y=this.fromPort,E=this.toPort;if(y!==null&&E!==null){var x=this.findMidLabel();if(x!==null){var b=x.naturalBounds,z=x.margin,ee=isNaN(b.width)?30:b.width*x.scale+z.left+z.right;b=isNaN(b.height)?14:b.height*x.scale+z.top+z.bottom,x=x.segmentOrientation,x===gp||x===n0||x===ey?a=Math.max(a,b):x===mp||x===yp||x===pp||x===vp?a=Math.max(a,ee):(y=y.ga(ur).ab(E.ga(ur))/180*Math.PI,a=Math.max(a,Math.abs(Math.sin(y)*ee)+Math.abs(Math.cos(y)*b)+1)),this.curve===Gl&&(a*=1.333)}}return a},Xn.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var E=a[y];E.computeAdjusting()===Gs&&E.bb()}},Xn.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=sS;var y=this.Sf;if(y!==null){for(var E=Ni(),x=0,b=y.links,z=0;z<b.length;z++){var ee=b[z].computeSpacing();E.push(ee),x+=ee}for(x=-x/2,z=0;z<b.length;z++){if(b[z]===this){a=x+E[z]/2;break}x+=E[z]}y.Ds===this.fromNode&&(a=-a),hi(E)}}return a},Xn.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},Xn.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},Xn.prototype.adjustPoints=function(a,y,E,x){var b=this.computeAdjusting();if(this.isOrthogonal){if(b===e0)return!1;b===t0&&(b=fp)}switch(b){case e0:var z=this.i(a),ee=this.i(E);if(!z.Xa(y)||!ee.Xa(x)){b=z.x,z=z.y;var re=ee.x-b,oe=ee.y-z,ce=Math.sqrt(re*re+oe*oe);if(!Bt.$(ce,0)){if(Bt.$(re,0))var he=0>oe?-Math.PI/2:Math.PI/2;else he=Math.atan(oe/Math.abs(re)),0>re&&(he=Math.PI-he);ee=y.x;var ye=y.y;re=x.x-ee;var Te=x.y-ye;for(oe=Math.sqrt(re*re+Te*Te),Bt.$(re,0)?Te=0>Te?-Math.PI/2:Math.PI/2:(Te=Math.atan(Te/Math.abs(re)),0>re&&(Te=Math.PI-Te)),ce=oe/ce,he=Te-he,this.dd(a,y),a+=1;a<E;a++)y=this.i(a),re=y.x-b,oe=y.y-z,y=Math.sqrt(re*re+oe*oe),Bt.$(y,0)||(Bt.$(re,0)?oe=0>oe?-Math.PI/2:Math.PI/2:(oe=Math.atan(oe/Math.abs(re)),0>re&&(oe=Math.PI-oe)),re=oe+he,y*=ce,this.L(a,ee+y*Math.cos(re),ye+y*Math.sin(re)));this.dd(E,x)}}return!0;case t0:if(z=this.i(a),ye=this.i(E),!z.Xa(y)||!ye.Xa(x)){b=z.x,z=z.y,ee=ye.x,ye=ye.y,ce=(ee-b)*(ee-b)+(ye-z)*(ye-z),re=y.x,he=y.y,oe=x.x,Te=x.y;var Ae=1;if(oe-re!==0){var ke=(Te-he)/(oe-re);Ae=Math.sqrt(1+1/(ke*ke))}else ke=9e9;for(this.dd(a,y),a+=1;a<E;a++){y=this.i(a);var He=y.x,dt=y.y,tt=.5;ce!==0&&(tt=((b-He)*(b-ee)+(z-dt)*(z-ye))/ce);var gt=b+tt*(ee-b),yt=z+tt*(ye-z);y=Math.sqrt((He-gt)*(He-gt)+(dt-yt)*(dt-yt)),dt<ke*(He-gt)+yt&&(y=-y),0<ke&&(y=-y),He=re+tt*(oe-re),tt=he+tt*(Te-he),ke!==0?(y=He+y/Ae,this.L(a,y,tt-(y-He)/ke)):this.L(a,He,tt+y)}this.dd(E,x)}return!0;case fp:e:{if(this.isOrthogonal&&(b=this.i(a),z=this.i(a+1),ee=this.i(a+2),re=z.x,he=z.y,ye=re,ce=he,Bt.B(b.y,z.y)?Bt.B(z.x,ee.x)?he=y.y:Bt.B(z.y,ee.y)&&(re=y.x):Bt.B(b.x,z.x)&&(Bt.B(z.y,ee.y)?re=y.x:Bt.B(z.x,ee.x)&&(he=y.y)),this.L(a+1,re,he),b=this.i(E),z=this.i(E-1),ee=this.i(E-2),re=z.x,he=z.y,oe=re,Te=he,Bt.B(b.y,z.y)?Bt.B(z.x,ee.x)?he=x.y:Bt.B(z.y,ee.y)&&(re=x.x):Bt.B(b.x,z.x)&&(Bt.B(z.y,ee.y)?re=x.x:Bt.B(z.x,ee.x)&&(he=x.y)),this.L(E-1,re,he),Xv(this))){this.L(a+1,ye,ce),this.L(E-1,oe,Te),E=!1;break e}this.dd(a,y),this.dd(E,x),E=!0}return E;default:return!1}},Xn.prototype.addOrthoPoints=function(a,y,E,x,b,z){0>y?y+=360:360<=y&&(y-=360),0>x?x+=360:360<=x&&(x-=360);var ee=x;y=315<=y||45>y?0:45<=y&&135>y?90:135<=y&&225>y?180:270,x=315<=x||45>x?0:45<=x&&135>x?90:135<=x&&225>x?180:270;var re=b.actualBounds.copy(),oe=z.actualBounds.copy();if(re.w()&&oe.w()){re.Bc(Sp,Sp),oe.Bc(Sp,Sp),re.Ye(a),oe.Ye(E);var ce=lt.alloc(),he=lt.alloc();y===0?E.x>a.x||x===270&&E.y<a.y&&oe.right>a.x||x===90&&E.y>a.y&&oe.right>a.x?(ce.h(E.x,a.y),he.h(E.x,(a.y+E.y)/2),x===180?(ce.x=this.computeMidOrthoPosition(a.x,a.y,E.x,E.y,!1),he.x=ce.x,he.y=E.y):x===270&&E.y<a.y||x===90&&E.y>a.y?(ce.x=a.x<oe.left?this.computeMidOrthoPosition(a.x,a.y,oe.left,E.y,!1):a.x<oe.right&&(x===270&&a.y<oe.top||x===90&&a.y>oe.bottom)?this.computeMidOrthoPosition(a.x,a.y,E.x,E.y,!1):oe.right,he.x=ce.x,he.y=E.y):x===0&&a.x<oe.left&&a.y>oe.top&&a.y<oe.bottom&&(ce.x=a.x,ce.y=a.y<E.y?Math.min(E.y,oe.top):Math.max(E.y,oe.bottom),he.y=ce.y)):(ce.h(a.x,E.y),he.h((a.x+E.x)/2,E.y),(x===180||x===90&&E.y<re.top||x===270&&E.y>re.bottom)&&(x===180&&(oe.ca(a)||re.ca(E))?ce.y=this.computeMidOrthoPosition(a.x,a.y,E.x,E.y,!0):E.y<a.y&&(x===180||x===90)?ce.y=this.computeMidOrthoPosition(a.x,re.top,E.x,Math.max(E.y,oe.bottom),!0):E.y>a.y&&(x===180||x===270)&&(ce.y=this.computeMidOrthoPosition(a.x,re.bottom,E.x,Math.min(E.y,oe.top),!0)),he.x=E.x,he.y=ce.y),ce.y>re.top&&ce.y<re.bottom&&(E.x>=re.left&&E.x<=a.x||a.x<=oe.right&&a.x>=E.x?(x===90||x===270)&&(ce.h(Math.max((a.x+E.x)/2,a.x),a.y),he.h(ce.x,E.y)):(ce.y=x===270||(x===0||x===180)&&E.y<a.y?Math.min(E.y,x===0?re.top:Math.min(re.top,oe.top)):Math.max(E.y,x===0?re.bottom:Math.max(re.bottom,oe.bottom)),he.x=E.x,he.y=ce.y))):y===180?E.x<a.x||x===270&&E.y<a.y&&oe.left<a.x||x===90&&E.y>a.y&&oe.left<a.x?(ce.h(E.x,a.y),he.h(E.x,(a.y+E.y)/2),x===0?(ce.x=this.computeMidOrthoPosition(a.x,a.y,E.x,E.y,!1),he.x=ce.x,he.y=E.y):x===270&&E.y<a.y||x===90&&E.y>a.y?(ce.x=a.x>oe.right?this.computeMidOrthoPosition(a.x,a.y,oe.right,E.y,!1):a.x>oe.left&&(x===270&&a.y<oe.top||x===90&&a.y>oe.bottom)?this.computeMidOrthoPosition(a.x,a.y,E.x,E.y,!1):oe.left,he.x=ce.x,he.y=E.y):x===180&&a.x>oe.right&&a.y>oe.top&&a.y<oe.bottom&&(ce.x=a.x,ce.y=a.y<E.y?Math.min(E.y,oe.top):Math.max(E.y,oe.bottom),he.y=ce.y)):(ce.h(a.x,E.y),he.h((a.x+E.x)/2,E.y),(x===0||x===90&&E.y<re.top||x===270&&E.y>re.bottom)&&(x===0&&(oe.ca(a)||re.ca(E))?ce.y=this.computeMidOrthoPosition(a.x,a.y,E.x,E.y,!0):E.y<a.y&&(x===0||x===90)?ce.y=this.computeMidOrthoPosition(a.x,re.top,E.x,Math.max(E.y,oe.bottom),!0):E.y>a.y&&(x===0||x===270)&&(ce.y=this.computeMidOrthoPosition(a.x,re.bottom,E.x,Math.min(E.y,oe.top),!0)),he.x=E.x,he.y=ce.y),ce.y>re.top&&ce.y<re.bottom&&(E.x<=re.right&&E.x>=a.x||a.x>=oe.left&&a.x<=E.x?(x===90||x===270)&&(ce.h(Math.min((a.x+E.x)/2,a.x),a.y),he.h(ce.x,E.y)):(ce.y=x===270||(x===0||x===180)&&E.y<a.y?Math.min(E.y,x===180?re.top:Math.min(re.top,oe.top)):Math.max(E.y,x===180?re.bottom:Math.max(re.bottom,oe.bottom)),he.x=E.x,he.y=ce.y))):y===90?E.y>a.y||x===180&&E.x<a.x&&oe.bottom>a.y||x===0&&E.x>a.x&&oe.bottom>a.y?(ce.h(a.x,E.y),he.h((a.x+E.x)/2,E.y),x===270?(ce.y=this.computeMidOrthoPosition(a.x,a.y,E.x,E.y,!0),he.x=E.x,he.y=ce.y):x===180&&E.x<a.x||x===0&&E.x>a.x?(ce.y=a.y<oe.top?this.computeMidOrthoPosition(a.x,a.y,E.x,oe.top,!0):a.y<oe.bottom&&(x===180&&a.x<oe.left||x===0&&a.x>oe.right)?this.computeMidOrthoPosition(a.x,a.y,E.x,E.y,!0):oe.bottom,he.x=E.x,he.y=ce.y):x===90&&a.y<oe.top&&a.x>oe.left&&a.x<oe.right&&(ce.x=a.x<E.x?Math.min(E.x,oe.left):Math.max(E.x,oe.right),ce.y=a.y,he.x=ce.x)):(ce.h(E.x,a.y),he.h(E.x,(a.y+E.y)/2),(x===270||x===0&&E.x<re.left||x===180&&E.x>re.right)&&(x===270&&(oe.ca(a)||re.ca(E))?ce.x=this.computeMidOrthoPosition(a.x,a.y,E.x,E.y,!1):E.x<a.x&&(x===270||x===0)?ce.x=this.computeMidOrthoPosition(re.left,a.y,Math.max(E.x,oe.right),E.y,!1):E.x>a.x&&(x===270||x===180)&&(ce.x=this.computeMidOrthoPosition(re.right,a.y,Math.min(E.x,oe.left),E.y,!1)),he.x=ce.x,he.y=E.y),ce.x>re.left&&ce.x<re.right&&(E.y>=re.top&&E.y<=a.y||a.y<=oe.bottom&&a.y>=E.y?(x===0||x===180)&&(ce.h(a.x,Math.max((a.y+E.y)/2,a.y)),he.h(E.x,ce.y)):(ce.x=x===180||(x===90||x===270)&&E.x<a.x?Math.min(E.x,x===90?re.left:Math.min(re.left,oe.left)):Math.max(E.x,x===90?re.right:Math.max(re.right,oe.right)),he.x=ce.x,he.y=E.y))):E.y<a.y||x===180&&E.x<a.x&&oe.top<a.y||x===0&&E.x>a.x&&oe.top<a.y?(ce.h(a.x,E.y),he.h((a.x+E.x)/2,E.y),x===90?(ce.y=this.computeMidOrthoPosition(a.x,a.y,E.x,E.y,!0),he.x=E.x,he.y=ce.y):x===180&&E.x<a.x||x===0&&E.x>=a.x?(ce.y=a.y>oe.bottom?this.computeMidOrthoPosition(a.x,a.y,E.x,oe.bottom,!0):a.y>oe.top&&(x===180&&a.x<oe.left||x===0&&a.x>oe.right)?this.computeMidOrthoPosition(a.x,a.y,E.x,E.y,!0):oe.top,he.x=E.x,he.y=ce.y):x===270&&a.y>oe.bottom&&a.x>oe.left&&a.x<oe.right&&(ce.x=a.x<E.x?Math.min(E.x,oe.left):Math.max(E.x,oe.right),ce.y=a.y,he.x=ce.x)):(ce.h(E.x,a.y),he.h(E.x,(a.y+E.y)/2),(x===90||x===0&&E.x<re.left||x===180&&E.x>re.right)&&(x===90&&(oe.ca(a)||re.ca(E))?ce.x=this.computeMidOrthoPosition(a.x,a.y,E.x,E.y,!1):E.x<a.x&&(x===90||x===0)?ce.x=this.computeMidOrthoPosition(re.left,a.y,Math.max(E.x,oe.right),E.y,!1):E.x>a.x&&(x===90||x===180)&&(ce.x=this.computeMidOrthoPosition(re.right,a.y,Math.min(E.x,oe.left),E.y,!1)),he.x=ce.x,he.y=E.y),ce.x>re.left&&ce.x<re.right&&(E.y<=re.bottom&&E.y>=a.y||a.y>=oe.top&&a.y<=E.y?(x===0||x===180)&&(ce.h(a.x,Math.min((a.y+E.y)/2,a.y)),he.h(E.x,ce.y)):(ce.x=x===180||(x===90||x===270)&&E.x<a.x?Math.min(E.x,x===270?re.left:Math.min(re.left,oe.left)):Math.max(E.x,x===270?re.right:Math.max(re.right,oe.right)),he.x=ce.x,he.y=E.y)));var ye=E;if(this.isAvoiding){var Te=this.diagram;if(Te===null||b===z||this.layer.isTemporary||!Ff(Te)||re.ca(ye)&&!z.Td(b)||oe.ca(a)&&!b.Td(z))y=!1;else{var Ae=Bf(Te,!0,this.containingGroup,null);if(this.segmentIndex!==17&&Ae.Yj(Math.min(a.x,ce.x),Math.min(a.y,ce.y),Math.abs(a.x-ce.x),Math.abs(a.y-ce.y))&&Ae.Yj(Math.min(ce.x,he.x),Math.min(ce.y,he.y),Math.abs(ce.x-he.x),Math.abs(ce.y-he.y))&&Ae.Yj(Math.min(he.x,ye.x),Math.min(he.y,ye.y),Math.abs(he.x-ye.x),Math.abs(he.y-ye.y)))y=!1;else{b=a,z=ye;var ke=E=null;if(Te.isVirtualized){Te=Ae.bounds.copy(),Te.Bc(-Ae.Ho,-Ae.Go);var He=lt.alloc();rg(Ae,a.x,a.y)||(Bt.Ff(Te.x,Te.y,Te.x+Te.width,Te.y+Te.height,a.x,a.y,ce.x,ce.y,He)?(E=a=He.copy(),y=He.ab(ce)):Bt.Ff(Te.x,Te.y,Te.x+Te.width,Te.y+Te.height,ce.x,ce.y,he.x,he.y,He)?(E=a=He.copy(),y=He.ab(he)):Bt.Ff(Te.x,Te.y,Te.x+Te.width,Te.y+Te.height,he.x,he.y,ye.x,ye.y,He)&&(E=a=He.copy(),y=He.ab(ye))),rg(Ae,ye.x,ye.y)||(Bt.Ff(Te.x,Te.y,Te.x+Te.width,Te.y+Te.height,ye.x,ye.y,he.x,he.y,He)?(ke=ye=He.copy(),x=he.ab(He)):Bt.Ff(Te.x,Te.y,Te.x+Te.width,Te.y+Te.height,he.x,he.y,ce.x,ce.y,He)?(ke=ye=He.copy(),x=ce.ab(He)):Bt.Ff(Te.x,Te.y,Te.x+Te.width,Te.y+Te.height,ce.x,ce.y,a.x,a.y,He)&&(ke=ye=He.copy(),x=a.ab(He))),lt.free(He)}re=re.copy().ed(oe),re.Bc(Ae.Ho*Ae.Os,Ae.Go*Ae.Os),cS(Ae,a,y,ye,x,re,!0),oe=Rc(Ae,ye.x,ye.y),!Ae.abort&&oe>=og&&(uS(Ae),re.Bc(Ae.Ho*Ae.Hx,Ae.Go*Ae.Ix),cS(Ae,a,y,ye,x,re,!1),oe=Rc(Ae,ye.x,ye.y)),!Ae.abort&&oe<og&&Rc(Ae,ye.x,ye.y)!==Td?(Jv(this,Ae,ye.x,ye.y,x,!0,ee),re=this.i(2),4>this.pointsCount?(y===0||y===180?(re.x=a.x,re.y=ye.y):(re.x=ye.x,re.y=a.y),this.L(2,re.x,re.y),this.m(3,re.x,re.y)):(ee=this.i(3),y===0||y===180?Bt.B(re.x,ee.x)?(re=y===0?Math.max(re.x,a.x):Math.min(re.x,a.x),this.L(2,re,a.y),this.L(3,re,ee.y)):Bt.B(re.y,ee.y)?(Math.abs(a.y-re.y)<=Ae.Go/2&&(this.L(2,re.x,a.y),this.L(3,ee.x,a.y)),this.m(2,re.x,a.y)):this.L(2,a.x,re.y):(y===90||y===270)&&(Bt.B(re.y,ee.y)?(re=y===90?Math.max(re.y,a.y):Math.min(re.y,a.y),this.L(2,a.x,re),this.L(3,ee.x,re)):Bt.B(re.x,ee.x)?(Math.abs(a.x-re.x)<=Ae.Ho/2&&(this.L(2,a.x,re.y),this.L(3,a.x,ee.y)),this.m(2,a.x,re.y)):this.L(2,re.x,a.y))),E!==null&&(a=this.i(1),ee=this.i(2),a.x!==ee.x&&a.y!==ee.y?y===0||y===180?this.m(2,a.x,ee.y):this.m(2,ee.x,a.y):y===0||y===180?this.m(2,b.x,E.y):this.m(2,E.x,b.y)),ke!==null&&(x===0||x===180?this.yf(z.x,ke.y):this.yf(ke.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(ce.copy()),this.ne(he.copy())),lt.free(ce),lt.free(he)}},Xn.prototype.computeMidOrthoPosition=function(a,y,E,x,b){var z=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(z=this.computeCurviness()),b?(y+x)/2+z:(a+E)/2+z};function Xv(a){if(a.diagram===null||!a.isAvoiding||!Ff(a.diagram))return!1;var y=a.points.s,E=y.length;if(4>E)return!1;a=Bf(a.diagram,!0,a.containingGroup,null);for(var x=1;x<E-2;x++){var b=y[x],z=y[x+1];if(!a.Yj(Math.min(b.x,z.x),Math.min(b.y,z.y),Math.abs(b.x-z.x),Math.abs(b.y-z.y)))return!0}return!1}function Jv(a,y,E,x,b,z,ee){var re=y.Ho,oe=y.Go,ce=Rc(y,E,x),he=E,ye=x;for(b===0?he+=re:b===90?ye+=oe:b===180?he-=re:ye-=oe,b!==ee&&ce>_h&&Rc(y,he,ye)!==ce-1&&(Rc(y,E-re,x)===ce-1?(b=180,he=E-re,ye=x):Rc(y,E+re,x)===ce-1?(b=0,he=E+re,ye=x):Rc(y,E,x-oe)===ce-1?(b=270,he=E,ye=x-oe):Rc(y,E,x+oe)===ce-1&&(b=90,he=E,ye=x+oe));ce>_h&&Rc(y,he,ye)===ce-1;)E=he,x=ye,b===0?he+=re:b===90?ye+=oe:b===180?he-=re:ye-=oe,--ce;z?ce>_h&&(b===180||b===0?E=Math.floor(E/re)*re+re/2:(b===90||b===270)&&(x=Math.floor(x/oe)*oe+oe/2)):(E=Math.floor(E/re)*re+re/2,x=Math.floor(x/oe)*oe+oe/2),ce>_h&&(z=b,ee=E,he=x,b===0?(z=90,he+=oe):b===90?(z=180,ee-=re):b===180?(z=270,he-=oe):b===270&&(z=0,ee+=re),Rc(y,ee,he)===ce-1?Jv(a,y,ee,he,z,!1,z):(ee=E,he=x,b===0?(z=270,he-=oe):b===90?(z=0,ee+=re):b===180?(z=90,he+=oe):b===270&&(z=180,ee-=re),Rc(y,ee,he)===ce-1&&Jv(a,y,ee,he,z,!1,z))),a.yf(E,x)}Xn.prototype.ez=function(a){var y=a.x;a=a.y;for(var E=this.i(0),x=this.i(1),b=kr(y,a,E.x,E.y,x.x,x.y),z=0,ee=1;ee<this.pointsCount-1;ee++){E=this.i(ee+1);var re=kr(y,a,x.x,x.y,E.x,E.y);x=E,re<b&&(z=ee,b=re)}return z},Xn.prototype.qc=function(){this.lk=!1,this.v()},Xn.prototype.Ul=function(a){if(!(!a&&(this.fd===!1||(a=this.Pb(),this.lk&&(a===null||a.geometry!==null))))&&(2>this.pointsCount?this.lk=!0:this.ua=this.makeGeometry(),a=this.path,a!==null)){a.ua=this.ua;for(var y=this.O.s,E=y.length,x=0;x<E;x++){var b=y[x];b!==a&&b.isPanelMain&&b instanceof pr&&(b.ua=this.ua)}}},Xn.prototype.makeGeometry=function(){var a=this.ua,y=this.pointsCount,E=!1,x=this.diagram;x!==null&&Bh(this)&&x.Eh.contains(this)&&(this.ml.width!==0||this.ml.height!==0)&&(x.animationManager.isAnimating||x.currentTool!==x.toolManager)&&(E=!0);var b=this.i(0).copy(),z=b.copy();x=this.Nb.s;var ee=this.computeCurve();if(ee===Gl&&3<=y&&!Bt.$(this.smoothness,0))if(y===3){var re=this.i(1);x=Math.min(b.x,re.x);var oe=Math.min(b.y,re.y);re=this.i(2),x=Math.min(x,re.x),oe=Math.min(oe,re.y)}else{if(this.isOrthogonal)for(oe=0;oe<y;oe++)re=x[oe],z.x=Math.min(re.x,z.x),z.y=Math.min(re.y,z.y);else for(x=3;x<y;x+=3)x+3>=y&&(x=y-1),oe=this.i(x),z.x=Math.min(oe.x,z.x),z.y=Math.min(oe.y,z.y);x=z.x,oe=z.y}else{for(oe=0;oe<y;oe++)re=x[oe],z.x=Math.min(re.x,z.x),z.y=Math.min(re.y,z.y);x=z.x,oe=z.y}if(x-=this.su.x,oe-=this.su.y,b.x-=x,b.y-=oe,y!==2||Bh(this)){if(a.type=Kn.o,re=R1(a),this.computeShortLength(!0)!==0&&(b=lf(this,b,!0,z)),eg(re,b.x,b.y,!1),ee===Gl&&3<=y&&!Bt.$(this.smoothness,0))if(y===3)E=this.i(1),y=E.x-x,E=E.y-oe,b=this.i(2).copy(),b.x-=x,b.y-=oe,this.computeShortLength(!1)!==0&&(b=lf(this,b,!1,z)),Sd(re,y,E,y,E,b.x,b.y);else if(this.isOrthogonal){y=lt.allocAt(x,oe),E=lt.alloc(),E.assign(this.i(1)),z=lt.allocAt(x,oe),b=lt.allocAt(x,oe),ee=this.i(0);for(var ce,he=this.smoothness/3,ye=1;ye<this.pointsCount-1;ye++){ce=this.i(ye);var Te=ee,Ae=ce,ke=this.i(qv(this,ce,ye,!1));if((!Bt.$(Te.x,Ae.x)||!Bt.$(Ae.x,ke.x))&&(!Bt.$(Te.y,Ae.y)||!Bt.$(Ae.y,ke.y))){var He=he;isNaN(He)&&(He=this.smoothness/3);var dt=Te.x;Te=Te.y;var tt=Ae.x;Ae=Ae.y;var gt=ke.x;ke=ke.y;var yt=He*qm(dt,Te,tt,Ae);He*=qm(tt,Ae,gt,ke),Bt.$(Te,Ae)&&Bt.$(tt,gt)&&(tt>dt?ke>Ae?(z.x=tt-yt,z.y=Ae-yt,b.x=tt+He,b.y=Ae+He):(z.x=tt-yt,z.y=Ae+yt,b.x=tt+He,b.y=Ae-He):ke>Ae?(z.x=tt+yt,z.y=Ae-yt,b.x=tt-He,b.y=Ae+He):(z.x=tt+yt,z.y=Ae+yt,b.x=tt-He,b.y=Ae-He)),Bt.$(dt,tt)&&Bt.$(Ae,ke)&&(Ae>Te?(gt>tt?(z.x=tt-yt,z.y=Ae-yt,b.x=tt+He):(z.x=tt+yt,z.y=Ae-yt,b.x=tt-He),b.y=Ae+He):(gt>tt?(z.x=tt-yt,z.y=Ae+yt,b.x=tt+He):(z.x=tt+yt,z.y=Ae+yt,b.x=tt-He),b.y=Ae-He)),(Bt.$(dt,tt)&&Bt.$(tt,gt)||Bt.$(Te,Ae)&&Bt.$(Ae,ke))&&(dt=.5*(dt+gt),Te=.5*(Te+ke),z.x=dt,z.y=Te,b.x=dt,b.y=Te),(ye===1||ye===2&&Bt.$(ee.x,this.i(0).x)&&Bt.$(ee.y,this.i(0).y))&&(E.x=.5*(ee.x+ce.x),E.y=.5*(ee.y+ce.y)),Sd(re,E.x-x,E.y-oe,z.x-x,z.y-oe,ce.x-x,ce.y-oe),y.set(z),E.set(b),ee=ce}}ce=ee.x,ee=ee.y,he=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(he=lf(this,he.copy(),!1,Go)),ce=.5*(ce+he.x),ee=.5*(ee+he.y),Sd(re,b.x-x,b.y-oe,ce-x,ee-oe,he.x-x,he.y-oe),lt.free(y),lt.free(E),lt.free(z),lt.free(b)}else for(E=3;E<y;E+=3)z=this.i(E-2),E+3>=y&&(E=y-1),b=this.i(E-1),ee=this.i(E),E===y-1&&this.computeShortLength(!1)!==0&&(ee=lf(this,ee.copy(),!1,Go)),Sd(re,z.x-x,z.y-oe,b.x-x,b.y-oe,ee.x-x,ee.y-oe);else{for(z=lt.alloc(),z.assign(this.i(0)),b=lt.alloc(),b.assign(z),ee=this.computeCorner(),ye=1,ce=0;ye<y;){if(ye=qv(this,z,ye,1<ye),he=this.i(ye),ye>=y-1){if(!z.D(he))this.computeShortLength(!1)!==0&&(he=lf(this,he.copy(),!1,Go)),uf(this,re,-x,-oe,z,he,E);else if(ce===0)for(ye=1;ye<y;)b.assign(z),he=this.i(ye++),uf(this,re,-x,-oe,z,he,E),z.assign(he);break}if(ce=qv(this,he,ye+1,ye<y-3),ye=-x,dt=-oe,Te=he,tt=this.i(ce),He=E,Bt.B(z.y,Te.y)&&Bt.B(Te.x,tt.x))if(ke=Math.min(ee,Math.abs(Te.x-b.x)/2),ke=yt=Math.min(ke,Math.abs(tt.y-Te.y)/2),Bt.B(ke,0))uf(this,re,ye,dt,z,Te,He),z.assign(Te);else{var bt=Te.x,kt=Te.y;Ae=bt,gt=kt,Te.x>z.x?bt=Te.x-ke:bt=Te.x+ke,tt.y>Te.y?gt=Te.y+yt:gt=Te.y-yt,tt=lt.allocAt(bt,kt),uf(this,re,ye,dt,z,tt,He),lt.free(tt),Hm(re,Te.x+ye,Te.y+dt,Ae+ye,gt+dt),z.h(Ae,gt)}else Bt.B(z.x,Te.x)&&Bt.B(Te.y,tt.y)?(ke=Math.min(ee,Math.abs(Te.y-b.y)/2),ke=yt=Math.min(ke,Math.abs(tt.x-Te.x)/2),Bt.B(yt,0)?(uf(this,re,ye,dt,z,Te,He),z.assign(Te)):(bt=Te.x,kt=Te.y,Ae=bt,gt=kt,Te.y>z.y?kt=Te.y-ke:kt=Te.y+ke,tt.x>Te.x?Ae=Te.x+yt:Ae=Te.x-yt,tt=lt.allocAt(bt,kt),uf(this,re,ye,dt,z,tt,He),lt.free(tt),Hm(re,Te.x+ye,Te.y+dt,Ae+ye,gt+dt),z.h(Ae,gt))):(uf(this,re,ye,dt,z,Te,He),z.assign(Te));b.assign(he),ye=ce}lt.free(z)}Gm=re}else re=this.i(1).copy(),re.x-=x,re.y-=oe,this.computeShortLength(!0)!==0&&(b=lf(this,b,!0,z)),this.computeShortLength(!1)!==0&&(re=lf(this,re,!1,z)),a.type=Kn.j,a.startX=b.x,a.startY=b.y,a.endX=re.x,a.endY=re.y;return this.lk=!0,a};function qm(a,y,E,x){return a=E-a,isNaN(a)||a===1/0||a===-1/0?NaN:(0>a&&(a=-a),y=x-y,isNaN(y)||y===1/0||y===-1/0?NaN:(0>y&&(y=-y),Bt.$(a,0)?y:Bt.$(y,0)?a:Math.sqrt(a*a+y*y)))}function lf(a,y,E,x){var b=a.pointsCount;if(2>b)return y;if(E){var z=a.i(1);if(E=z.x-x.x,z=z.y-x.y,x=qm(y.x,y.y,E,z),x===0)return y;b=b===2?.5*x:x,a=a.computeShortLength(!0),a>b&&(a=b),b=a*(z-y.y)/x,y.x+=a*(E-y.x)/x,y.y+=b}else{if(z=a.i(b-2),E=z.x-x.x,z=z.y-x.y,x=qm(y.x,y.y,E,z),x===0)return y;b=b===2?.5*x:x,a=a.computeShortLength(!1),a>b&&(a=b),b=a*(y.y-z)/x,y.x-=a*(y.x-E)/x,y.y-=b}return y}function qv(a,y,E,x){for(var b=a.pointsCount,z=y;Bt.$(y.x,z.x)&&Bt.$(y.y,z.y);){if(E>=b)return b-1;z=a.i(E++)}if(!Bt.$(y.x,z.x)&&!Bt.$(y.y,z.y))return E-1;for(var ee=z;Bt.$(y.x,z.x)&&Bt.$(z.x,ee.x)&&(!x||(y.y>=z.y?z.y>=ee.y:z.y<=ee.y))||Bt.$(y.y,z.y)&&Bt.$(z.y,ee.y)&&(!x||(y.x>=z.x?z.x>=ee.x:z.x<=ee.x));){if(E>=b)return b-1;ee=a.i(E++)}return E-2}Xn.prototype.computeJumpLength=function(){return 10};function uf(a,y,E,x,b,z,ee){if(!ee&&Bh(a)){ee=a.computeJumpLength();var re=ee/2,oe=[],ce=0;if(a.isVisible()&&(ce=RE(a,b,z,oe)),0<ce){if(Bt.B(b.y,z.y))if(b.x<z.x)for(var he=0;he<ce;){var ye=Math.max(b.x,Math.min(oe[he++]-re,z.x-ee));y.lineTo(ye+E,z.y+x);for(var Te=ye+E,Ae=Math.min(ye+ee,z.x);he<ce&&(ye=oe[he],ye<Ae+ee);)he++,Ae=Math.min(ye+re,z.x);ye=z.y-ee+x,Ae+=E;var ke=z.y+x;a.curve===wd?eg(y,Ae,ke,!1):Sd(y,Te,ye,Ae,ye,Ae,ke)}else for(--ce;0<=ce;){for(he=Math.min(b.x,Math.max(oe[ce--]+re,z.x+ee)),y.lineTo(he+E,z.y+x),Te=he+E,ye=Math.max(he-ee,z.x);0<=ce&&(he=oe[ce],he>ye-ee);)ce--,ye=Math.max(he-re,z.x);he=z.y-ee+x,ye+=E,Ae=z.y+x,a.curve===wd?eg(y,ye,Ae,!1):Sd(y,Te,he,ye,he,ye,Ae)}else if(Bt.B(b.x,z.x))if(b.y<z.y)for(he=0;he<ce;){for(ye=Math.max(b.y,Math.min(oe[he++]-re,z.y-ee)),y.lineTo(z.x+E,ye+x),Te=ye+x,ye=Math.min(ye+ee,z.y);he<ce&&(Ae=oe[he],Ae<ye+ee);)he++,ye=Math.min(Ae+re,z.y);Ae=z.x-ee+E,ke=z.x+E,ye+=x,a.curve===wd?eg(y,ke,ye,!1):Sd(y,Ae,Te,Ae,ye,ke,ye)}else for(--ce;0<=ce;){for(he=Math.min(b.y,Math.max(oe[ce--]+re,z.y+ee)),y.lineTo(z.x+E,he+x),Te=he+x,he=Math.max(he-ee,z.y);0<=ce&&(ye=oe[ce],ye>he-ee);)ce--,he=Math.max(ye-re,z.y);ye=z.x-ee+E,Ae=z.x+E,he+=x,a.curve===wd?eg(y,Ae,he,!1):Sd(y,ye,Te,ye,he,Ae,he)}}}y.lineTo(z.x+E,z.y+x)}function RE(a,y,E,x){var b=a.diagram;if(b===null||y.D(E))return 0;for(b=b.layers;b.next();){var z=b.value;if(z!==null&&z.visible){z=z.Pa.s;for(var ee=z.length,re=0;re<ee;re++){var oe=z[re];if(oe instanceof Xn){if(oe===a)return 0<x.length&&x.sort(function(he,ye){return he-ye}),x.length;if(oe.isVisible()&&Bh(oe)){var ce=oe.routeBounds;ce.w()&&a.routeBounds.Yc(ce)&&!a.usesSamePort(oe)&&(ce=oe.path,ce!==null&&ce.Ed()&&FE(y,E,x,oe))}}}}}return 0<x.length&&x.sort(function(he,ye){return he-ye}),x.length}function FE(a,y,E,x){for(var b=Bt.B(a.y,y.y),z=x.pointsCount,ee=x.i(0),re=lt.alloc(),oe=1;oe<z;oe++){var ce=x.i(oe);if(oe<z-1){var he=x.i(oe+1);if(ee.y===ce.y&&ce.y===he.y){if(ce.x>ee.x&&he.x>=ce.x||ce.x<ee.x&&he.x<=ce.x)continue}else if(ee.x===ce.x&&ce.x===he.x&&(ce.y>ee.y&&he.y>=ce.y||ce.y<ee.y&&he.y<=ce.y))continue}e:{he=a.x;var ye=a.y,Te=y.x,Ae=y.y,ke=ee.x;ee=ee.y;var He=ce.x,dt=ce.y;if(Bt.B(he,Te)){if(!Bt.B(ye,Ae)&&Bt.B(ee,dt)&&Math.min(ye,Ae)<ee&&Math.max(ye,Ae)>ee&&Math.min(ke,He)<he&&Math.max(ke,He)>he&&!Bt.B(ke,He)){re.x=he,re.y=ee,he=!0;break e}}else if(Bt.B(ye,Ae)&&Bt.B(ke,He)&&Math.min(he,Te)<ke&&Math.max(he,Te)>ke&&Math.min(ee,dt)<ye&&Math.max(ee,dt)>ye&&!Bt.B(ee,dt)){re.x=ke,re.y=ye,he=!0;break e}re.x=0,re.y=0,he=!1}he&&(b?E.push(re.x):E.push(re.y)),ee=ce}lt.free(re)}function Bh(a){return a=a.curve,a===ig||a===wd}function $m(a,y){(y||Bh(a))&&(y=a.diagram,y===null||y.animationManager.isTicking||y.Eh.contains(a)||a.ml.width===0&&a.ml.height===0||y.Eh.add(a,a.ml.copy()))}Xn.prototype.Xo=function(a){var y=this.layer;if(y!==null&&y.visible&&!y.isTemporary){var E=y.diagram;if(E!==null&&!E.animationManager.isTicking){var x=!1;for(E=E.layers;E.next();){var b=E.value;if(b.visible){if(b===y){x=!0;var z=!1;b=b.Pa.s;for(var ee=b.length,re=0;re<ee;re++){var oe=b[re];oe instanceof Xn&&(oe===this?z=!0:z&&oS(this,oe,a))}}else if(x)for(z=b.Pa.s,b=z.length,ee=0;ee<b;ee++)re=z[ee],re instanceof Xn&&oS(this,re,a)}}}}};function oS(a,y,E){if(y!==null&&y.lk&&y.fd&&Bh(y)){var x=y.routeBounds;x.w()&&(a.routeBounds.Yc(x)||E.Yc(x))&&(a.usesSamePort(y)||y.qc())}}Xn.prototype.usesSamePort=function(a){var y=this.pointsCount,E=a.pointsCount;if(0<y&&0<E){var x=this.i(0),b=a.i(0);if(x.Xa(b)||(y=this.i(y-1),a=a.i(E-1),y.Xa(a)||x.Xa(a)||y.Xa(b)))return!0}else if(this.fromNode===a.fromNode||this.toNode===a.toNode||this.fromNode===a.toNode||this.toNode===a.fromNode)return!0;return!1},Xn.prototype.isVisible=function(){if(!Ui.prototype.isVisible.call(this))return!1;var a=this.containingGroup,y=!0,E=this.diagram;if(E!==null&&(y=E.isTreePathToChildren),E=this.fromNode,E!==null){if(this.isTreeLink&&y&&!E.isTreeExpanded)return!1;if(E===a)return!0;for(var x=E;x!==null;){if(x.labeledLink===this)return!0;x=x.containingGroup}if(E=E.findVisibleNode(),E===null||E===a)return!1}if(E=this.toNode,E!==null){if(this.isTreeLink&&!y&&!E.isTreeExpanded)return!1;if(E===a)return!0;for(y=E;y!==null;){if(y.labeledLink===this)return!0;y=y.containingGroup}if(y=E.findVisibleNode(),y===null||y===a)return!1}return!0},Xn.prototype.Zb=function(a){if(Ui.prototype.Zb.call(this,a),a&&$m(this,!1),this.Sf!==null&&this.Sf.Sl(),this.wd!==null)for(var y=this.wd.iterator;y.next();)y.value.Zb(a)},Xn.prototype.computeAdjusting=function(){return this.isAvoiding&&this.diagram!==null&&this.diagram.animationManager.defaultAnimation.isAnimating?fp:this.qk};function dp(a){var y=a.ef;if(y!==null){var E=a.uf;if(E!==null&&isNaN(a.curviness)){for(var x=a.ff,b=a.vf,z=a=null,ee=y.jb.s,re=ee.length,oe=0;oe<re;oe++){var ce=ee[oe];(ce.ef===y&&ce.ff===x&&ce.uf===E&&ce.vf===b||ce.ef===E&&ce.ff===b&&ce.uf===y&&ce.vf===x)&&(z===null?z=ce:(a===null&&(a=[],a.push(z)),a.push(ce)))}if(a!==null){for(z=Z1(y,E,x,b),z===null&&(z=new r0(y,x,E,b),W1(y,z),W1(E,z)),z.links=a,y=0;y<a.length;y++)a[y].Sf=z;z.Sl()}}}}function hp(a){var y=a.Sf;y!==null&&isNaN(a.curviness)&&(a.Sf=null,a=y.links.indexOf(a),0<=a&&(_e(y.links,a),y.Sl()))}Xn.prototype.ph=function(){return!0},It.Object.defineProperties(Xn.prototype,{fromNode:{get:function(){return this.ef},set:function(a){var y=this.ef;if(y!==a){var E=this.fromPort;y!==null&&(this.uf!==y&&Zm(y,this,E),hp(this),this.C(2)),this.ef=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var x=this.diagram;x!==null&&x.aa&&x.partManager.setFromNodeForLink(this,a,y);var b=this.fromPort,z=this.fromPortChanged;if(z!==null){var ee=!0;x!==null&&(ee=x.aa,x.aa=!0),z(this,E,b),x!==null&&(x.aa=ee)}a!==null&&(this.uf!==a&&Wm(a,this,b),dp(this),this.C(1)),this.g("fromNode",y,a),tg(this)}}},fromPortId:{get:function(){return this.ff},set:function(a){var y=this.ff;if(y!==a){var E=this.fromPort;E!==null&&Cl(E),hp(this),this.ff=a;var x=this.fromPort;x!==null&&Cl(x);var b=this.diagram;if(b!==null){var z=this.data,ee=b.model;z!==null&&ee.ri()&&ee.xv(z,a)}E!==x&&(this.Wf=null,this.bb(),z=this.fromPortChanged,z!==null&&(ee=!0,b!==null&&(ee=b.aa,b.aa=!0),z(this,E,x),b!==null&&(b.aa=ee))),dp(this),this.g("fromPortId",y,a)}}},fromPort:{get:function(){var a=this.ef;return a===null?null:a.ns(this.ff)}},fromPortChanged:{get:function(){return this.gn},set:function(a){var y=this.gn;y!==a&&(this.gn=a,this.g("fromPortChanged",y,a))}},toNode:{get:function(){return this.uf},set:function(a){var y=this.uf;if(y!==a){var E=this.toPort;y!==null&&(this.ef!==y&&Zm(y,this,E),hp(this),this.C(2)),this.uf=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var x=this.diagram;x!==null&&x.aa&&x.partManager.setToNodeForLink(this,a,y);var b=this.toPort,z=this.toPortChanged;if(z!==null){var ee=!0;x!==null&&(ee=x.aa,x.aa=!0),z(this,E,b),x!==null&&(x.aa=ee)}a!==null&&(this.ef!==a&&Wm(a,this,b),dp(this),this.C(1)),this.g("toNode",y,a),tg(this)}}},toPortId:{get:function(){return this.vf},set:function(a){var y=this.vf;if(y!==a){var E=this.toPort;E!==null&&Cl(E),hp(this),this.vf=a;var x=this.toPort;x!==null&&Cl(x);var b=this.diagram;if(b!==null){var z=this.data,ee=b.model;z!==null&&ee.ri()&&ee.Cv(z,a)}E!==x&&(this.Wf=null,this.bb(),z=this.toPortChanged,z!==null&&(ee=!0,b!==null&&(ee=b.aa,b.aa=!0),z(this,E,x),b!==null&&(b.aa=ee))),dp(this),this.g("toPortId",y,a)}}},toPort:{get:function(){var a=this.uf;return a===null?null:a.ns(this.vf)}},toPortChanged:{get:function(){return this.uo},set:function(a){var y=this.uo;y!==a&&(this.uo=a,this.g("toPortChanged",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:Ca},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),(y.$c()||a.$c())&&this.fromNode!==null&&Cl(this.fromPort),this.bb())}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:NaN},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&ii(a,">= 0",Xn,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),this.bb())}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:NaN},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.qc(),this.g("fromShortLength",y,a))}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:Ca},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),(y.$c()||a.$c())&&this.toNode!==null&&Cl(this.toPort),this.bb())}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:NaN},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&ii(a,">= 0",Xn,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),this.bb())}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:NaN},set:function(a){var y=this.toShortLength;y!==a&&(this.Xc(),this.ba.xj=a,this.qc(),this.g("toShortLength",y,a))}},isLabeledLink:{get:function(){return this.wd===null?!1:0<this.wd.count}},labelNodes:{get:function(){return this.wd===null?Sr:this.wd.iterator}},relinkableFrom:{get:function(){return(this.Qa&1)!==0},set:function(a){var y=(this.Qa&1)!==0;y!==a&&(this.Qa^=1,this.g("relinkableFrom",y,a),this.Wb())}},relinkableTo:{get:function(){return(this.Qa&2)!==0},set:function(a){var y=(this.Qa&2)!==0;y!==a&&(this.Qa^=2,this.g("relinkableTo",y,a),this.Wb())}},resegmentable:{get:function(){return(this.Qa&4)!==0},set:function(a){var y=(this.Qa&4)!==0;y!==a&&(this.Qa^=4,this.g("resegmentable",y,a),this.Wb())}},isTreeLink:{get:function(){return(this.Qa&8)!==0},set:function(a){var y=(this.Qa&8)!==0;y!==a&&(this.Qa^=8,this.g("isTreeLink",y,a),this.fromNode!==null&&cp(this.fromNode),this.toNode!==null&&cp(this.toNode))}},path:{get:function(){var a=this.Pb();return a instanceof pr?a:null}},routeBounds:{get:function(){this.vg();var a=this.ml,y=1/0,E=1/0,x=this.pointsCount;if(x===0)a.h(NaN,NaN,0,0);else{if(x===1)x=this.i(0),y=Math.min(x.x,y),E=Math.min(x.y,E),a.h(x.x,x.y,0,0);else if(x===2){x=this.i(0);var b=this.i(1);y=Math.min(x.x,b.x),E=Math.min(x.y,b.y),a.h(x.x,x.y,0,0),a.Ye(b)}else if(this.computeCurve()===Gl&&3<=x&&!this.isOrthogonal)if(b=this.i(0),y=b.x,E=b.y,a.h(y,E,0,0),x===3){x=this.i(1),y=Math.min(x.x,y),E=Math.min(x.y,E);var z=this.i(2);y=Math.min(z.x,y),E=Math.min(z.y,E),Bt.Dl(b.x,b.y,x.x,x.y,x.x,x.y,z.x,z.y,.5,a)}else for(z=3;z<x;z+=3){var ee=this.i(z-2);z+3>=x&&(z=x-1);var re=this.i(z-1),oe=this.i(z);Bt.Dl(b.x,b.y,ee.x,ee.y,re.x,re.y,oe.x,oe.y,.5,a),y=Math.min(oe.x,y),E=Math.min(oe.y,E),b=oe}else for(b=this.i(0),z=this.i(1),y=Math.min(b.x,z.x),E=Math.min(b.y,z.y),a.h(b.x,b.y,0,0),a.Ye(z),b=2;b<x;b++)z=this.i(b),y=Math.min(z.x,y),E=Math.min(z.y,E),a.Ye(z);this.su.h(y-a.x,E-a.y)}return a}},midPoint:{get:function(){return this.vg(),this.computeMidPoint(new lt)}},midAngle:{get:function(){return this.vg(),this.computeMidAngle()}},flattenedLengths:{get:function(){if(this.cq===null){this.fd||Qm(this);for(var a=this.cq=[],y=this.pointsCount,E=0;E<y-1;E++){var x=this.i(E),b=this.i(E+1);Bt.$(x.x,b.x)?(x=b.y-x.y,0>x&&(x=-x)):Bt.$(x.y,b.y)?(x=b.x-x.x,0>x&&(x=-x)):x=Math.sqrt(x.Bf(b)),a.push(x)}}return this.cq}},flattenedTotalLength:{get:function(){var a=this.vt;if(isNaN(a)){for(var y=this.flattenedLengths,E=y.length,x=a=0;x<E;x++)a+=y[x];this.vt=a}return a}},points:{get:function(){return this.Nb},set:function(a){var y=this.Nb;if(y!==a){var E=null;if(Array.isArray(a)){var x=a.length%2===0;if(x){for(var b=0;b<a.length;b++)if(typeof a[b]!="number"||isNaN(a[b])){x=!1;break}}if(x)for(E=new Fn,x=0;x<a.length/2;x++)b=new lt(a[2*x],a[2*x+1]).freeze(),E.add(b);else{for(x=!0,b=0;b<a.length;b++){var z=a[b];if(!zt(z)||typeof z.x!="number"||isNaN(z.x)||typeof z.y!="number"||isNaN(z.y)){x=!1;break}}if(x)for(E=new Fn,x=0;x<a.length;x++)b=a[x],E.add(new lt(b.x,b.y).freeze())}}else if(a instanceof Fn)for(E=a.copy(),a=E.iterator;a.next();)a.value.freeze();else pt("Link.points value is not an instance of List or Array: "+a);E.freeze(),this.Nb=E,this.qc(),Qm(this),a=this.diagram,a!==null&&(a.pi||a.undoManager.isUndoingRedoing||a.As.add(this),a.animationManager.zb&&ue(a.animationManager,this,E)),this.g("points",y,E)}}},pointsCount:{get:function(){return this.Nb.count}},fd:{get:function(){return(this.Qa&16)!==0},set:function(a){(this.Qa&16)!==0!==a&&(this.Qa^=16)}},suspendsRouting:{get:function(){return(this.Qa&32)!==0},set:function(a){(this.Qa&32)!==0!==a&&(this.Qa^=32)}},computingPoints:{get:function(){return(this.Qa&64)!==0},set:function(a){(this.Qa&64)!==0!==a&&(this.Qa^=64)}},defaultFromPoint:{get:function(){return this.o},set:function(a){this.o=a.copy()}},defaultToPoint:{get:function(){return this.u},set:function(a){this.u=a.copy()}},isOrthogonal:{get:function(){return(this.qj.value&2)===2}},isAvoiding:{get:function(){return(this.qj.value&4)===4}},lk:{get:function(){return(this.Qa&128)!==0},set:function(a){(this.Qa&128)!==0!==a&&(this.Qa^=128)}},geometry:{get:function(){if(!this.lk){if(this.vg(),2>this.pointsCount)return this.lk=!0,this.ua;this.ua=this.makeGeometry()}return this.ua}},firstPickIndex:{get:function(){return 2>=this.pointsCount?0:this.isOrthogonal||!ng(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!ng(this.computeSpot(!1))?a-2:a-1}},adjusting:{get:function(){return this.qk},set:function(a){var y=this.qk;y!==a&&(this.qk=a,this.g("adjusting",y,a))}},corner:{get:function(){return this.Om},set:function(a){var y=this.Om;y!==a&&(this.Om=a,this.qc(),this.g("corner",y,a))}},curve:{get:function(){return this.Qm},set:function(a){var y=this.Qm;y!==a&&(this.Qm=a,this.bb(),this.qc(),$m(this,y===wd||y===ig||a===wd||a===ig),this.g("curve",y,a))}},curviness:{get:function(){return this.Rm},set:function(a){var y=this.Rm;y!==a&&(this.Rm=a,this.bb(),this.qc(),this.g("curviness",y,a))}},routing:{get:function(){return this.qj},set:function(a){var y=this.qj;y!==a&&(this.qj=a,this.Wf=null,this.bb(),$m(this,(y.value&2)===2||(a.value&2)===2),this.g("routing",y,a))}},smoothness:{get:function(){return this.po},set:function(a){var y=this.po;y!==a&&(this.po=a,this.qc(),this.g("smoothness",y,a))}},key:{get:function(){var a=this.diagram;if(a!==null&&a.model.ri())return a.model.Ac(this.data)}}}),Xn.prototype.invalidateOtherJumpOvers=Xn.prototype.Xo,Xn.prototype.findClosestSegment=Xn.prototype.ez,Xn.prototype.updateRoute=Xn.prototype.vg,Xn.prototype.invalidateRoute=Xn.prototype.bb,Xn.prototype.rollbackRoute=Xn.prototype.rv,Xn.prototype.commitRoute=Xn.prototype.zf,Xn.prototype.startRoute=Xn.prototype.uh,Xn.prototype.clearPoints=Xn.prototype.Fj,Xn.prototype.removePoint=Xn.prototype.pv,Xn.prototype.addPointAt=Xn.prototype.yf,Xn.prototype.addPoint=Xn.prototype.ne,Xn.prototype.insertPointAt=Xn.prototype.m,Xn.prototype.insertPoint=Xn.prototype.Kz,Xn.prototype.setPointAt=Xn.prototype.L,Xn.prototype.setPoint=Xn.prototype.dd,Xn.prototype.getPoint=Xn.prototype.i,Xn.prototype.getOtherPort=Xn.prototype.Cz,Xn.prototype.getOtherNode=Xn.prototype.To;var cf=null,df=null,$v=new en(Xn,"Normal",1),BE=new en(Xn,"Orthogonal",2),_E=new en(Xn,"AvoidsNodes",6),aS=new en(Xn,"AvoidsNodesStraight",7),Gs=new en(Xn,"None",0),Gl=new en(Xn,"Bezier",9),wd=new en(Xn,"JumpGap",10),ig=new en(Xn,"JumpOver",11),fp=new en(Xn,"End",17),e0=new en(Xn,"Scale",18),t0=new en(Xn,"Stretch",19),gp=new en(Xn,"OrientAlong",21),pp=new en(Xn,"OrientPlus90",22),mp=new en(Xn,"OrientMinus90",23),ey=new en(Xn,"OrientOpposite",24),n0=new en(Xn,"OrientUpright",25),vp=new en(Xn,"OrientPlus90Upright",26),yp=new en(Xn,"OrientMinus90Upright",27),i0=new en(Xn,"OrientUpright45",28),sS=16,lS=14,Sp=8;Xn.className="Link",Xn.Normal=$v,Xn.Orthogonal=BE,Xn.AvoidsNodes=_E,Xn.AvoidsNodesStraight=aS,Xn.None=Gs,Xn.Bezier=Gl,Xn.JumpGap=wd,Xn.JumpOver=ig,Xn.End=fp,Xn.Scale=e0,Xn.Stretch=t0,Xn.OrientAlong=gp,Xn.OrientPlus90=pp,Xn.OrientMinus90=mp,Xn.OrientOpposite=ey,Xn.OrientUpright=n0,Xn.OrientPlus90Upright=vp,Xn.OrientMinus90Upright=yp,Xn.OrientUpright45=i0,Xn.EndSegmentStep=8,Xn.CurvinessStart=sS,Xn.SpacingMin=lS,Xn.OrthoShortCut=Sp;function r0(a,y,E,x){wr(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=E,this.Px=x,this.links=[]}r0.prototype.Sl=function(){if(!this.qq){var a=this.links;0<a.length&&(a=a[0].diagram,a!==null&&(a.ow.add(this),this.Fe=a.undoManager.isUndoingRedoing))}this.qq=!0},r0.prototype.Nv=function(){if(this.qq){this.qq=!1;var a=this.links;if(0<a.length){var y=a[0],E=y.diagram;E=E===null||E.pi&&!this.Fe,this.Fe=!1,y.arrangeBundledLinks(a,E),a.length===1&&(y.Sf=null,a.length=0)}a.length===0&&(a=this.Ds,this!==null&&a.af!==null&&a.af.remove(this),a=this.cv,this!==null&&a.af!==null&&a.af.remove(this))}},r0.className="LinkBundle";function Ep(a){wr(this),this.Yx=this.group=null,this.vs=!0,this.abort=!1,this.Od=this.Nd=1,this.Fn=this.En=-1,this.rc=a.width,this.sc=a.height,this.ac=null,this.ei=this.di=0,this.Os=11,this.Ix=this.Hx=22}Ep.prototype.initialize=function(a){if(!(0>=a.width||0>=a.height)){var y=a.y,E=a.x+a.width,x=a.y+a.height;if(this.Nd=Math.floor((a.x-this.rc)/this.rc)*this.rc,this.Od=Math.floor((y-this.sc)/this.sc)*this.sc,this.En=Math.ceil((E+2*this.rc)/this.rc)*this.rc,this.Fn=Math.ceil((x+2*this.sc)/this.sc)*this.sc,a=1+(Math.ceil((this.En-this.Nd)/this.rc)|0),y=1+(Math.ceil((this.Fn-this.Od)/this.sc)|0),this.ac===null||this.di<a-1||this.ei<y-1){for(E=[],x=0;x<=a;x++)E[x]=new Uint32Array(y);this.ac=E,this.di=a-1,this.ei=y-1}if(a=ty,this.ac!==null)for(y=0;y<=this.di;y++)if(E=this.ac[y],E.fill)E.fill(a);else for(x=0;x<=this.ei;x++)E[x]=a}};function rg(a,y,E){return a.Nd<=y&&y<=a.En&&a.Od<=E&&E<=a.Fn}function Rc(a,y,E){return rg(a,y,E)?(y-=a.Nd,y/=a.rc,E-=a.Od,E/=a.sc,a.ac[y|0][E|0]):ty}function uS(a){if(a.ac!==null)for(var y=0;y<=a.di;y++)for(var E=a.ac[y],x=0;x<=a.ei;x++)E[x]>=_h&&(E[x]=ty)}Ep.prototype.Yj=function(a,y,E,x){if(a>this.En||a+E<this.Nd||y>this.Fn||y+x<this.Od)return!0;a=(a-this.Nd)/this.rc|0,y=(y-this.Od)/this.sc|0,E=Math.max(0,E)/this.rc+1|0;var b=Math.max(0,x)/this.sc+1|0;if(0>a&&(E+=a,a=0),0>y&&(b+=y,y=0),0>E||0>b)return!0;for(x=Math.min(a+E-1,this.di)|0,E=Math.min(y+b-1,this.ei)|0;a<=x;a++){b=this.ac[a];for(var z=y;z<=E;z++)if(b[z]===Td)return!1}return!0};function Fc(a,y,E,x,b,z,ee,re,oe){if(!(y<z||y>ee||E<re||E>oe)){var ce=y|0,he=E|0,ye=a.ac[ce][he];if(ye>=_h&&ye<og)for(b?he+=x:ce+=x,ye+=1;z<=ce&&ce<=ee&&re<=he&&he<=oe&&!(ye>=a.ac[ce][he]);)a.ac[ce][he]=ye,ye+=1,b?he+=x:ce+=x;if(ce=b?he:ce,b)if(0<x)for(E+=x;E<ce;E+=x)Fc(a,y,E,1,!b,z,ee,re,oe),Fc(a,y,E,-1,!b,z,ee,re,oe);else for(E+=x;E>ce;E+=x)Fc(a,y,E,1,!b,z,ee,re,oe),Fc(a,y,E,-1,!b,z,ee,re,oe);else if(0<x)for(y+=x;y<ce;y+=x)Fc(a,y,E,1,!b,z,ee,re,oe),Fc(a,y,E,-1,!b,z,ee,re,oe);else for(y+=x;y>ce;y+=x)Fc(a,y,E,1,!b,z,ee,re,oe),Fc(a,y,E,-1,!b,z,ee,re,oe)}}function o0(a,y,E,x,b,z,ee,re,oe){y|=0,E|=0;var ce=Td,he=_h;for(a.ac[y][E]=he;ce===Td&&y>z&&y<ee&&E>re&&E<oe;)he+=1,a.ac[y][E]=he,b?E+=x:y+=x,ce=a.ac[y][E]}function a0(a,y,E,x,b,z,ee,re,oe){y|=0,E|=0;var ce=Td,he=og;for(a.ac[y][E]=he;ce===Td&&y>z&&y<ee&&E>re&&E<oe;)a.ac[y][E]=he,b?E+=x:y+=x,ce=a.ac[y][E]}function cS(a,y,E,x,b,z,ee){if(a.ac!==null){a.abort=!1;var re=y.x,oe=y.y;if(rg(a,re,oe)){re-=a.Nd,re/=a.rc,oe-=a.Od,oe/=a.sc;var ce=x.x,he=x.y;if(rg(a,ce,he))if(ce-=a.Nd,ce/=a.rc,he-=a.Od,he/=a.sc,1>=Math.abs(re-ce)&&1>=Math.abs(oe-he))a.abort=!0;else{var ye=z.x;x=z.y,y=z.x+z.width;var Te=z.y+z.height;ye-=a.Nd,ye/=a.rc,x-=a.Od,x/=a.sc,y-=a.Nd,y/=a.rc,Te-=a.Od,Te/=a.sc,z=Math.max(0,Math.min(a.di,ye|0)),y=Math.min(a.di,Math.max(0,y|0)),ye=Math.max(0,Math.min(a.ei,x|0)),Te=Math.min(a.ei,Math.max(0,Te|0)),x=a.ac,re|=0,oe|=0,ce|=0,he|=0;var Ae=E===0||E===90?1:-1;if(E=E===90||E===270,x[re][oe]===Td?(o0(a,re,oe,Ae,E,z,y,ye,Te),o0(a,re,oe,1,!E,z,y,ye,Te),o0(a,re,oe,-1,!E,z,y,ye,Te)):o0(a,re,oe,Ae,E,re,oe,re,oe),x[ce][he]===Td?(a0(a,ce,he,b===0||b===90?1:-1,b===90||b===270,z,y,ye,Te),a0(a,ce,he,1,!(b===90||b===270),z,y,ye,Te),a0(a,ce,he,-1,!(b===90||b===270),z,y,ye,Te)):a0(a,ce,he,Ae,E,ce,he,ce,he),E=Ni(),ee&&dS(a,ce,he,b,re,oe,E))for((E[0]!==ce||E[1]!==he)&&(E.unshift(he),E.unshift(ce)),(E[E.length-2]!==re||E[E.length-1]!==oe)&&(E.push(re),E.push(oe)),a=_h,b=E[E.length-2],ee=E[E.length-1],x[b][ee]=a++,z=E.length-4;0<=z;z-=2)for(b=E[z+2],ee=E[z+3],y=E[z],ce=E[z+1];y>b?b++:y<b?b--:ce>ee?ee++:ce<ee&&ee--,x[b][ee]=a++,b!==y||ee!==ce;);else Fc(a,re,oe,1,!1,z,y,ye,Te),Fc(a,re,oe,-1,!1,z,y,ye,Te),Fc(a,re,oe,1,!0,z,y,ye,Te),Fc(a,re,oe,-1,!0,z,y,ye,Te);hi(E)}}}}function dS(a,y,E,x,b,z,ee){for(var re=a.ac,oe=y,ce=E;;){if(oe===b&&ce===z)return!0;var he=oe,ye=ce;if(x===0)if(he<b)he++;else break;else if(x===90)if(ye<z)ye++;else break;else if(x===180)if(he>b)he--;else break;else if(ye>z)ye--;else break;var Te=re[he][ye];if(Te===0||Te===ny)break;oe=he,ce=ye}for(;;){if(he=x,ye=oe,Te=ce,x===0?Te<z?(he=90,Te++):Te>z&&(he=270,Te--):x===90?ye<b?(he=0,ye++):ye>b&&(he=180,ye--):x===180?Te<z?(he=90,Te++):Te>z&&(he=270,Te--):ye<b?(he=0,ye++):ye>b&&(he=180,ye--),ye=re[ye][Te],he!==x&&ye!==0&&ye!==ny){if(ee.push(oe),ee.push(ce),dS(a,oe,ce,he,b,z,ee))return!0;ee.pop(),ee.pop()}if(re[oe][ce]=ny,x===0){if(oe===y)return!1;oe--}else if(x===90){if(ce===E)return!1;ce--}else if(x===180){if(oe===y)return!1;oe++}else{if(ce===E)return!1;ce++}}}It.Object.defineProperties(Ep.prototype,{bounds:{get:function(){return new hn(this.Nd,this.Od,this.En-this.Nd,this.Fn-this.Od)}},Ho:{get:function(){return this.rc},set:function(a){0<a&&a!==this.rc&&(this.rc=a,this.initialize(this.bounds))}},Go:{get:function(){return this.sc},set:function(a){0<a&&a!==this.sc&&(this.sc=a,this.initialize(this.bounds))}}});var Td=0,_h=1,og=999999,ty=og+1,ny=og+2;Ep.className="PositionArray";function hf(){wr(this),this.port=this.node=null,this.pe=[],this.ap=!1}hf.prototype.toString=function(){for(var a=this.pe,y=this.node.toString()+" "+a.length.toString()+":",E=0;E<a.length;E++){var x=a[E];x!==null&&(y+=`
`+x.toString())}return y};function jE(a,y,E,x){switch(y=y.offsetY,y){case 8:return 90;case 2:return 180;case 1:return 270;case 4:return 0}switch(y){case 9:return 180<E?270:90;case 6:return 90<E&&270>=E?180:0}switch(a=180*Math.atan2(a.height,a.width)/Math.PI,y){case 3:return E>a&&E<=180+a?180:270;case 5:return E>180-a&&E<=360-a?270:0;case 12:return E>a&&E<=180+a?90:0;case 10:return E>180-a&&E<=360-a?180:90;case 7:return 90<E&&E<=180+a?180:E>180+a&&E<=360-a?270:0;case 13:return 180<E&&E<=360-a?270:E>a&&180>=E?90:0;case 14:return E>a&&E<=180-a?90:E>180-a&&270>=E?180:0;case 11:return E>180-a&&E<=180+a?180:E>180+a?270:90}return x&&y!==15&&(E-=15,0>E&&(E+=360)),E>a&&E<180-a?90:E>=180-a&&E<=180+a?180:E>180+a&&E<360-a?270:0}hf.prototype.Sl=function(){this.pe.length=0};function hS(a,y){var E=a.pe;if(E.length===0){e:if(!a.ap){E=a.ap,a.ap=!0;var x=null,b=a.node,z=b instanceof or?b:null;if(z===null||z.isSubGraphExpanded)var ee=b.isTreeExpanded?b.findLinksConnected(a.port.portId):b.qx();else{if(!z.actualBounds.w()){a.ap=E;break e}x=z,ee=x.Lu()}z=a.pe.length=0;var re=a.port.ga(Ki,lt.alloc()),oe=a.port.ga(Wo,lt.alloc());for(b=hn.allocAt(re.x,re.y,0,0),b.Ye(oe),lt.free(re),lt.free(oe),re=lt.allocAt(b.x+b.width/2,b.y+b.height/2),oe=a.port.li(),ee=ee.iterator;ee.next();){var ce=ee.value;if(ce.isVisible()&&ce.fromPort!==ce.toPort){var he=ce.fromPort===a.port||ce.fromNode!==null&&ce.fromNode.Td(x),ye=ce.computeSpot(he,a.port);if(ye.$c()&&(he=he?ce.toPort:ce.fromPort,he!==null)){var Te=he.part;if(Te!==null){var Ae=Te.findVisibleNode();Ae!==null&&Ae!==Te&&(Te=Ae,he=Te.port),he=ce.computeOtherPoint(Te,he),Te=re.ab(he),Te-=oe,0>Te?Te+=360:360<=Te&&(Te-=360),ye=jE(b,ye,Te,ce.isOrthogonal),ye===0?(ye=4,180<Te&&(Te-=360)):ye===90?(ye=8,270<Te&&(Te-=360)):ye===180?ye=2:(ye=1,90>Te&&(Te+=360)),Ae=a.pe[z],Ae===void 0?(Ae=new iy(ce,Te,ye),a.pe[z]=Ae):(Ae.link=ce,Ae.angle=Te,Ae.Nc=ye),Ae.hv.set(he),z++}}}}for(lt.free(re),a.pe.sort(hf.prototype.j),oe=a.pe.length,x=-1,z=re=0;z<oe;z++)ee=a.pe[z],ee!==void 0&&(ee.Nc!==x&&(x=ee.Nc,re=0),ee.Uo=re,re++);for(x=-1,re=0,z=oe-1;0<=z;z--)oe=a.pe[z],oe!==void 0&&(oe.Nc!==x&&(x=oe.Nc,re=oe.Uo+1),oe.Gl=re);if(z=a.pe,ye=a.port,x=a.node.portSpreading,re=lt.alloc(),oe=lt.alloc(),ee=lt.alloc(),ce=lt.alloc(),ye.ga(Ki,re),ye.ga(Qr,oe),ye.ga(Wo,ee),ye.ga(Jo,ce),Ae=Te=he=ye=0,x===Wv)for(var ke=0;ke<z.length;ke++){var He=z[ke];if(He!==null){var dt=He.link.computeThickness();switch(He.Nc){case 8:Te+=dt;break;case 2:Ae+=dt;break;case 1:ye+=dt;break;default:case 4:he+=dt}}}var tt=ke=0,gt=1,yt=He=0;for(dt=0;dt<z.length;dt++){var bt=z[dt];if(bt!==null){if(ke!==bt.Nc){switch(ke=bt.Nc,ke){case 8:var kt=ee;tt=ce;break;case 2:kt=ce,tt=re;break;case 1:kt=re,tt=oe;break;default:case 4:kt=oe,tt=ee}switch(He=tt.x-kt.x,yt=tt.y-kt.y,ke){case 8:Te>Math.abs(He)?(gt=Math.abs(He)/Te,Te=Math.abs(He)):gt=1;break;case 2:Ae>Math.abs(yt)?(gt=Math.abs(yt)/Ae,Ae=Math.abs(yt)):gt=1;break;case 1:ye>Math.abs(He)?(gt=Math.abs(He)/ye,ye=Math.abs(He)):gt=1;break;default:case 4:he>Math.abs(yt)?(gt=Math.abs(yt)/he,he=Math.abs(yt)):gt=1}tt=0}var Kt=bt.Zo;if(x===Wv){switch(bt=bt.link.computeThickness(),bt*=gt,Kt.set(kt),ke){case 8:Kt.x=kt.x+He/2+Te/2-tt-bt/2;break;case 2:Kt.y=kt.y+yt/2+Ae/2-tt-bt/2;break;case 1:Kt.x=kt.x+He/2-ye/2+tt+bt/2;break;default:case 4:Kt.y=kt.y+yt/2-he/2+tt+bt/2}tt+=bt}else{var di=.5;x===Km&&(di=(bt.Uo+1)/(bt.Gl+1)),Kt.x=kt.x+He*di,Kt.y=kt.y+yt*di}}}for(lt.free(re),lt.free(oe),lt.free(ee),lt.free(ce),kt=a.pe,z=0;z<kt.length;z++)x=kt[z],x!==null&&(x.Ju=a.computeEndSegmentLength(x));a.ap=E,hn.free(b)}E=a.pe}for(a=0;a<E.length;a++)if(b=E[a],b!==null&&b.link===y)return b;return null}hf.prototype.j=function(a,y){return a===y?0:a===null?-1:y===null?1:a.Nc<y.Nc?-1:a.Nc>y.Nc?1:a.angle<y.angle?-1:a.angle>y.angle?1:0},hf.prototype.computeEndSegmentLength=function(a){var y=a.link,E=y.computeEndSegmentLength(this.node,this.port,Pi,y.fromPort===this.port),x=a.Uo;if(0>x)return E;var b=a.Gl;if(1>=b||!y.isOrthogonal)return E;y=a.hv;var z=a.Zo;return(a.Nc===2||a.Nc===8)&&(x=b-1-x),((a=a.Nc===2||a.Nc===4)?y.y<z.y:y.x<z.x)?E+8*x:(a?y.y===z.y:y.x===z.x)?E:E+8*(b-1-x)},hf.className="Knot";function iy(a,y,E){this.link=a,this.angle=y,this.Nc=E,this.hv=new lt,this.Gl=this.Uo=0,this.Zo=new lt,this.Ju=0}iy.prototype.toString=function(){return this.link.toString()+" "+this.angle.toString()+" "+this.Nc.toString()+":"+this.Uo.toString()+"/"+this.Gl.toString()+" "+this.Zo.toString()+" "+this.Ju.toString()+" "+this.hv.toString()},iy.className="LinkInfo";function _o(a){wr(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new lt(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}_o.prototype.cloneProtected=function(a){a.sn=this.sn,a.Gh=this.Gh,a.yn=this.yn,a.Am.assign(this.Am),a.vn=this.vn,a.un=this.un,a.Em=this.Em,a.xn=!0},_o.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},_o.prototype.qb=function(){},_o.prototype.toString=function(){var a=Pn(this.constructor);return a+="(",this.group!==null&&(a+=" in "+this.group),this.diagram!==null&&(a+=" for "+this.diagram),a+")"},_o.prototype.C=function(){if(this.isValidLayout){var a=this.diagram;if(a!==null&&!a.undoManager.isUndoingRedoing){var y=a.animationManager;!y.isTicking&&(y.defaultAnimation.isAnimating&&y.Cc(),this.isOngoing&&a.pi||this.isInitial&&!a.pi)&&(this.isValidLayout=!1,a.$b())}}},_o.prototype.createNetwork=function(){return new Eo(this)},_o.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof Qt?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof or?y.lg(a.memberParts):y.lg(a.iterator),y},_o.prototype.updateParts=function(){this.isValidLayout=!0;var a=this.diagram;if(a===null&&this.network!==null)for(var y=this.network.vertexes.iterator;y.next();){var E=y.value.node;if(E!==null&&(a=E.diagram,a!==null))break}try{a!==null&&a.Ea("Layout"),this.commitLayout()}finally{a!==null&&a.eb("Layout")}},_o.prototype.commitLayout=function(){if(this.network!==null){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();if(this.isRouting)for(a=this.network.edges.iterator;a.next();)a.value.commit()}},_o.prototype.doLayout=function(a){var y=new In;a instanceof Qt?(Xd(this,y,a.nodes,!0,this.rh,!0,!1,!0),Xd(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof or?Xd(this,y,a.memberParts,!1,this.rh,!0,!1,!0):y.addAll(a.iterator),0<y.count&&(a=this.diagram,a!==null&&a.Ea("Layout"),this.doMinimalNoNetworkLayout(y),a!==null&&a.eb("Layout")),this.isValidLayout=!0},_o.prototype.doMinimalNoNetworkLayout=function(a){var y=Math.ceil(Math.sqrt(a.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var E=this.arrangementOrigin.x,x=E,b=this.arrangementOrigin.y,z=0,ee=0;for(a=a.iterator;a.next();){var re=a.value;xp(re);var oe=re.measuredBounds,ce=oe.width;oe=oe.height,re.moveTo(x,b),re instanceof or&&(re.rh=!1),x+=Math.max(ce,50)+20,ee=Math.max(ee,Math.max(oe,50)),z>=y-1?(z=0,x=E,b+=ee+20,ee=0):z++}},_o.prototype.doMinimalNetworkLayout=function(){var a=Math.ceil(Math.sqrt(this.network.vertexes.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);for(var y=this.arrangementOrigin.x,E=y,x=this.arrangementOrigin.y,b=0,z=0,ee=this.network.vertexes.iterator;ee.next();){var re=ee.value.node;if(!(re===null||re instanceof Xn)&&(xp(re),this.rh(re))){var oe=re.measuredBounds,ce=oe.width;oe=oe.height,re.moveTo(E,x),re instanceof or&&(re.rh=!1),E+=Math.max(ce,50)+20,z=Math.max(z,Math.max(oe,50)),b>=a-1?(b=0,E=y,x+=z+20,z=0):b++}}},_o.prototype.rh=function(a){return!!(!a.location.w()||a instanceof or&&a.rh)};function Xd(a,y,E,x,b,z,ee,re){for(E=E.iterator;E.next();){var oe=E.value;x&&!oe.isTopLevel||b!==null&&!b(oe)||!oe.canLayout()||(z&&oe instanceof pi?oe.isLinkLabel||(oe instanceof or&&oe.layout===null?Xd(a,y,oe.memberParts,!1,b,z,ee,re):(xp(oe),y.add(oe))):ee&&oe instanceof Xn?y.add(oe):!re||!oe.Zc()||oe instanceof pi||(xp(oe),y.add(oe)))}}function xp(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}_o.prototype.ni=function(a,y){var E=this.boundsComputation;return E!==null?(y||(y=new hn),E(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},_o.prototype.ex=function(a){var y=new In;return a instanceof Qt?(Xd(this,y,a.nodes,!0,null,!0,!0,!0),Xd(this,y,a.links,!0,null,!0,!0,!0),Xd(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof or?Xd(this,y,a.memberParts,!1,null,!0,!0,!0):Xd(this,y,a.iterator,!1,null,!0,!0,!0),y},_o.prototype.initialOrigin=function(a){var y=this.group;if(y!==null){var E=y.position.copy();return(isNaN(E.x)||isNaN(E.y))&&E.set(a),y=y.placeholder,y!==null&&(E=y.ga(Ki),(isNaN(E.x)||isNaN(E.y))&&E.set(a),a=y.padding,E.x+=a.left,E.y+=a.top),E}return a},It.Object.defineProperties(_o.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},group:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a,a!==null&&(this.H=a.diagram))}},isOngoing:{get:function(){return this.sn},set:function(a){this.sn!==a&&(this.sn=a)}},isInitial:{get:function(){return this.Gh},set:function(a){this.Gh=a,a||(this.xn=!0)}},isViewportSized:{get:function(){return this.yn},set:function(a){this.yn!==a&&(this.yn=a)&&this.C()}},isRouting:{get:function(){return this.vn},set:function(a){this.vn!==a&&(this.vn=a)}},isRealtime:{get:function(){return this.un},set:function(a){this.un!==a&&(this.un=a)}},isValidLayout:{get:function(){return this.xn},set:function(a){this.xn!==a&&(this.xn=a,a||(a=this.diagram,a!==null&&(a.xh=!0)))}},network:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a,a!==null&&(a.layout=this))}},boundsComputation:{get:function(){return this.Em},set:function(a){this.Em!==a&&(this.Em=a,this.C())}},arrangementOrigin:{get:function(){return this.Am},set:function(a){this.Am.D(a)||(this.Am.assign(a),this.C())}}}),_o.prototype.collectParts=_o.prototype.ex,_o.prototype.getLayoutBounds=_o.prototype.ni,_o.prototype.invalidateLayout=_o.prototype.C,_o.className="Layout";function Eo(a){wr(this),this.Sc=a,this.wf=new In,this.ye=new In,this.Es=new zi,this.zs=new zi}Eo.prototype.clear=function(){if(this.wf)for(var a=this.wf.iterator;a.next();)a.value.clear();if(this.ye)for(a=this.ye.iterator;a.next();)a.value.clear();this.wf=new In,this.ye=new In,this.Es=new zi,this.zs=new zi},Eo.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutNetwork"+(this.layout!==null?"("+this.layout.toString()+")":"");if(0>=a)return y;if(y+=" vertexes: "+this.wf.count+" edges: "+this.ye.count,1<a){for(var E=this.wf.iterator;E.next();)y+=`
`+E.value.toString(a-1);for(E=this.ye.iterator;E.next();)y+=`
`+E.value.toString(a-1)}return y},Eo.prototype.createVertex=function(){return new Ma(this)},Eo.prototype.createEdge=function(){return new Nl(this)},Eo.prototype.lg=function(a,y,E){if(a!==null){for(y===void 0&&(y=!1),E===void 0&&(E=null),E===null&&(E=function(ee){if(ee instanceof pi)return!ee.isLinkLabel;if(ee instanceof Xn){var re=ee.fromNode;return re===null||re.isLinkLabel?!1:(ee=ee.toNode,!(ee===null||ee.isLinkLabel))}return!1}),a=a.iterator;a.next();){var x=a.value;if(x instanceof pi&&(!y||x.isTopLevel)&&x.canLayout()&&E(x)){if(x instanceof or&&x.layout===null)this.lg(x.memberParts,!1);else if(this.ki(x)===null){var b=this.createVertex();b.node=x,this.dh(b)}}}for(a.reset();a.next();)if(x=a.value,x instanceof Xn&&(!y||x.isTopLevel)&&x.canLayout()&&E(x)&&this.Lo(x)===null){var z=x.fromNode;b=x.toNode,z!==null&&b!==null&&z!==b&&(z=this.findGroupVertex(z),b=this.findGroupVertex(b),z!==null&&b!==null&&this.Zj(z,b,x))}}},Eo.prototype.findGroupVertex=function(a){if(a===null)return null;var y=a.findVisibleNode();if(y===null)return null;if(a=this.ki(y),a!==null)return a;for(y=y.containingGroup;y!==null;){if(a=this.ki(y),a!==null)return a;y=y.containingGroup}return null},Ce=Eo.prototype,Ce.dh=function(a){if(a!==null){this.wf.add(a);var y=a.node;y!==null&&this.Es.add(y,a),a.network=this}},Ce.Bl=function(a){if(a===null)return null;var y=this.ki(a);return y===null&&(y=this.createVertex(),y.node=a,this.dh(y)),y},Ce.Iu=function(a){if(a!==null&&fS(this,a)){for(var y=a.tg,E=y.count-1;0<=E;E--){var x=y.M(E);this.Mj(x)}for(y=a.mg,a=y.count-1;0<=a;a--)E=y.M(a),this.Mj(E)}};function fS(a,y){if(y===null)return!1;var E=a.wf.remove(y);return E&&(y=y.node,y!==null&&a.Es.remove(y)),E}Ce.Zy=function(a){a!==null&&(a=this.ki(a),a!==null&&this.Iu(a))},Ce.ki=function(a){return a===null?null:this.Es.I(a)},Ce.Bo=function(a){if(a!==null){ry(this,a);var y=a.toVertex;y!==null&&y.Cl(a),y=a.fromVertex,y!==null&&y.zl(a)}};function ry(a,y){if(y!==null){a.ye.add(y);var E=y.link;E!==null&&a.Lo(E)===null&&a.zs.add(E,y),y.network=a}}Ce.Dy=function(a){if(a===null)return null;var y=a.fromNode,E=a.toNode,x=this.Lo(a);return x===null?(x=this.createEdge(),x.link=a,y!==null&&(x.fromVertex=this.Bl(y)),E!==null&&(x.toVertex=this.Bl(E)),this.Bo(x)):(y!==null?x.fromVertex=this.Bl(y):x.fromVertex=null,E!==null?x.toVertex=this.Bl(E):x.toVertex=null),x},Ce.Mj=function(a){if(a!==null){var y=a.toVertex;y!==null&&y.Kl(a),y=a.fromVertex,y!==null&&y.Jl(a),oy(this,a)}};function oy(a,y){y!==null&&a.ye.remove(y)&&(y=y.link,y!==null&&a.zs.remove(y))}Ce.Yy=function(a){a!==null&&(a=this.Lo(a),a!==null&&this.Mj(a))},Ce.Lo=function(a){return a===null?null:this.zs.I(a)},Ce.Zj=function(a,y,E){if(a===null||y===null)return null;if(a.network===this&&y.network===this){var x=this.createEdge();return x.link=E,x.fromVertex=a,x.toVertex=y,this.Bo(x),x}return null},Ce.gm=function(a){if(a!==null){var y=a.fromVertex,E=a.toVertex;y!==null&&E!==null&&(y.Jl(a),E.Kl(a),a.gm(),y.Cl(a),E.zl(a))}},Ce.Ko=function(){for(var a=Ni(),y=this.ye.iterator;y.next();){var E=y.value;E.fromVertex===E.toVertex&&a.push(E)}for(y=a.length,E=0;E<y;E++)this.Mj(a[E]);hi(a)},Eo.prototype.deleteArtificialVertexes=function(){for(var a=Ni(),y=this.wf.iterator;y.next();){var E=y.value;E.node===null&&E.data===null&&a.push(E)}for(E=a.length,y=0;y<E;y++)this.Iu(a[y]);for(y=Ni(),E=this.ye.iterator;E.next();){var x=E.value;x.link===null&&x.data===null&&y.push(x)}for(E=y.length,x=0;x<E;x++)this.Mj(y[x]);hi(a),hi(y)};function zE(a){for(var y=Ni(),E=a.ye.iterator;E.next();){var x=E.value;x.fromVertex!==null&&x.toVertex!==null||y.push(x)}for(E=y.length,x=0;x<E;x++)a.Mj(y[x]);hi(y)}Eo.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),zE(this),this.Ko()),a=new Fn;for(var y=!0;y;){y=!1;for(var E=this.wf.iterator;E.next();){var x=E.value;if(0<x.tg.count||0<x.mg.count){y=this.layout.createNetwork(),a.add(y),ay(this,y,x),y=!0;break}}}return a.sort(function(b,z){return b===null||z===null||b===z?0:z.vertexes.count-b.vertexes.count}),a};function ay(a,y,E){if(E!==null&&E.network!==y){fS(a,E),y.dh(E);for(var x=E.sourceEdges;x.next();){var b=x.value;b.network!==y&&(oy(a,b),ry(y,b),ay(a,y,b.fromVertex))}for(x=E.destinationEdges;x.next();)E=x.value,E.network!==y&&(oy(a,E),ry(y,E),ay(a,y,E.toVertex))}}Eo.prototype.dz=function(){for(var a=new In,y=this.wf.iterator;y.next();)a.add(y.value.node);for(y=this.ye.iterator;y.next();)a.add(y.value.link);return a},It.Object.defineProperties(Eo.prototype,{layout:{get:function(){return this.Sc},set:function(a){a!==null&&(this.Sc=a)}},vertexes:{get:function(){return this.wf}},edges:{get:function(){return this.ye}}}),Eo.prototype.findAllParts=Eo.prototype.dz,Eo.prototype.splitIntoSubNetworks=Eo.prototype.Zx,Eo.prototype.deleteSelfEdges=Eo.prototype.Ko,Eo.prototype.reverseEdge=Eo.prototype.gm,Eo.prototype.linkVertexes=Eo.prototype.Zj,Eo.prototype.findEdge=Eo.prototype.Lo,Eo.prototype.deleteLink=Eo.prototype.Yy,Eo.prototype.deleteEdge=Eo.prototype.Mj,Eo.prototype.addLink=Eo.prototype.Dy,Eo.prototype.addEdge=Eo.prototype.Bo,Eo.prototype.findVertex=Eo.prototype.ki,Eo.prototype.deleteNode=Eo.prototype.Zy,Eo.prototype.deleteVertex=Eo.prototype.Iu,Eo.prototype.addNode=Eo.prototype.Bl,Eo.prototype.addVertex=Eo.prototype.dh,Eo.prototype.addParts=Eo.prototype.lg,Eo.className="LayoutNetwork";function Ma(a){wr(this),this.ob=a,this.j=new hn(0,0,10,10).freeze(),this.o=new lt(5,5).freeze(),this.Sh=this.ub=null,this.tg=new Fn,this.mg=new Fn}Ma.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new Fn,this.mg=new Fn},Ma.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+Tr(this);if(0<a&&(y+=this.node!==null?"("+this.node.toString()+")":"",1<a)){a="";for(var E=!0,x=this.tg.iterator;x.next();){var b=x.value;E?E=!1:a+=",",a+=b.toString(0)}for(b="",E=!0,x=this.mg.iterator;x.next();){var z=x.value;E?E=!1:b+=",",b+=z.toString(0)}y+=" sources: "+a+" destinations: "+b}return y},Ma.prototype.commit=function(){var a=this.ub;if(a!==null){var y=this.bounds,E=a.bounds;zt(E)?(E.x=y.x,E.y=y.y,E.width=y.width,E.height=y.height):a.bounds=y.copy()}else if(a=this.node,a!==null){if(y=this.bounds,!(a instanceof or)){E=hn.alloc(),a.Va();var x=this.network.layout.ni(a,E),b=a.locationObject.ga(ur);if(x.w()&&b.w()){a.moveTo(y.x+this.focusX-(b.x-x.x),y.y+this.focusY-(b.y-x.y)),hn.free(E);return}hn.free(E)}a.moveTo(y.x,y.y)}},Ma.prototype.Cl=function(a){a!==null&&(this.tg.contains(a)||this.tg.add(a))},Ma.prototype.Kl=function(a){a!==null&&this.tg.remove(a)},Ma.prototype.zl=function(a){a!==null&&(this.mg.contains(a)||this.mg.add(a))},Ma.prototype.Jl=function(a){a!==null&&this.mg.remove(a)};function sy(a,y){return a=a.Sh,y=y.Sh,a?y?(a=a.text,y=y.text,a<y?-1:a>y?1:0):1:y!==null?-1:0}It.Object.defineProperties(Ma.prototype,{sourceEdgesArrayAccess:{get:function(){return this.tg._dataArray}},destinationEdgesArrayAccess:{get:function(){return this.mg._dataArray}},data:{get:function(){return this.ub},set:function(a){if(this.ub=a,a!==null&&a.bounds){var y=a.bounds;a=y.x;var E=y.y,x=y.width;y=y.height,this.o.h(x/2,y/2),this.j.h(a,E,x,y)}}},node:{get:function(){return this.Sh},set:function(a){if(this.Sh!==a){this.Sh=a,a.Va();var y=this.network.layout,E=hn.alloc(),x=y.ni(a,E);y=x.x;var b=x.y,z=x.width;if(x=x.height,isNaN(y)&&(y=0),isNaN(b)&&(b=0),this.j.h(y,b,z,x),hn.free(E),!(a instanceof or)&&(a=a.locationObject.ga(ur),a.w())){this.o.h(a.x-y,a.y-b);return}this.o.h(z/2,x/2)}}},bounds:{get:function(){return this.j},set:function(a){this.j.D(a)||this.j.assign(a)}},focus:{get:function(){return this.o},set:function(a){this.o.D(a)||this.o.assign(a)}},centerX:{get:function(){return this.j.x+this.o.x},set:function(a){var y=this.j;y.x+this.o.x!==a&&(y.ka(),y.x=a-this.o.x,y.freeze())}},centerY:{get:function(){return this.j.y+this.o.y},set:function(a){var y=this.j;y.y+this.o.y!==a&&(y.ka(),y.y=a-this.o.y,y.freeze())}},focusX:{get:function(){return this.o.x},set:function(a){var y=this.o;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},focusY:{get:function(){return this.o.y},set:function(a){var y=this.o;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},x:{get:function(){return this.j.x},set:function(a){var y=this.j;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},y:{get:function(){return this.j.y},set:function(a){var y=this.j;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},width:{get:function(){return this.j.width},set:function(a){var y=this.j;y.width!==a&&(y.ka(),y.width=a,y.freeze())}},height:{get:function(){return this.j.height},set:function(a){var y=this.j;y.height!==a&&(y.ka(),y.height=a,y.freeze())}},network:{get:function(){return this.ob},set:function(a){this.ob=a}},sourceVertexes:{get:function(){for(var a=new In,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new In,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new In,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);for(y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},sourceEdges:{get:function(){return this.tg.iterator}},destinationEdges:{get:function(){return this.mg.iterator}},edges:{get:function(){for(var a=new Fn,y=this.sourceEdges;y.next();)a.add(y.value);for(y=this.destinationEdges;y.next();)a.add(y.value);return a.iterator}},edgesCount:{get:function(){return this.tg.count+this.mg.count}}}),Ma.prototype.deleteDestinationEdge=Ma.prototype.Jl,Ma.prototype.addDestinationEdge=Ma.prototype.zl,Ma.prototype.deleteSourceEdge=Ma.prototype.Kl,Ma.prototype.addSourceEdge=Ma.prototype.Cl,Ma.className="LayoutVertex",Ma.standardComparer=sy,Ma.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.Sh;var E=y.Sh;if(a!==null){if(E!==null){for(y=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),a=E.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),E=0;E<y.length;E++)if(a[E]!==""&&a[E]!==void 0){var x=parseFloat(y[E]),b=parseFloat(a[E]);if(isNaN(x))if(isNaN(b)){if(y[E].localeCompare(a[E])!==0)return y[E].localeCompare(a[E])}else return 1;else{if(isNaN(b))return-1;if(x-b!==0)return x-b}}else if(y[E]!=="")return 1;return a[E]!==""&&a[E]!==void 0?-1:0}return 1}return E!==null?-1:0}return 1}return y!==null?-1:0};function Nl(a){wr(this),this.nb=a,this.qd=this.kd=this.$k=this.ub=null}Nl.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},Nl.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutEdge#"+Tr(this);return 0<a&&(y+=this.$k!==null?"("+this.$k.toString()+")":"",1<a&&(y+=" "+(this.kd?this.kd.toString():"null")+" --> "+(this.qd?this.qd.toString():"null"))),y},Nl.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},Nl.prototype.commit=function(){},Nl.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},It.Object.defineProperties(Nl.prototype,{network:{get:function(){return this.nb},set:function(a){this.nb=a}},data:{get:function(){return this.ub},set:function(a){this.ub!==a&&(this.ub=a)}},link:{get:function(){return this.$k},set:function(a){this.$k!==a&&(this.$k=a)}},fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}}}),Nl.prototype.getOtherVertex=Nl.prototype.Ax,Nl.className="LayoutEdge";function qa(a){_o.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new ri(NaN,NaN).freeze(),this.tf=new ri(10,10).freeze(),this.Jb=bp,this.Rb=l0,this.nd=wp,this.hd=gS,a&&Object.assign(this,a)}Ut(qa,_o),qa.prototype.cloneProtected=function(a){_o.prototype.cloneProtected.call(this,a),a.zo=this.zo,a.yo=this.yo,a.yg.assign(this.yg),a.tf.assign(this.tf),a.Jb=this.Jb,a.Rb=this.Rb,a.nd=this.nd,a.hd=this.hd},qa.prototype.qb=function(a){a.classType===qa?a===wp||a===c0||a===ly||a===u0?this.sorting=a:a===l0||a===Xu?this.arrangement=a:a===bp||a===s0?this.alignment=a:pt("Unknown enum value: "+a):_o.prototype.qb.call(this,a)},qa.prototype.doLayout=function(a){this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var y=this.ex(a);a=this.diagram;for(var E=y.copy().iterator;E.next();){var x=E.value;if(!x.ph()||x.fromNode===null&&x.toNode===null){if(x.Va(),x instanceof or)for(x=x.memberParts;x.next();)y.remove(x.value)}else y.remove(x)}var b=y.Fa();if(b.length!==0){switch(this.sorting){case u0:b.reverse();break;case wp:b.sort(this.comparer);break;case c0:b.sort(this.comparer),b.reverse()}var z=this.wrappingColumn;isNaN(z)&&(z=0);var ee=this.wrappingWidth;switch(isNaN(ee)&&a!==null?(y=a.padding,ee=Math.max(a.viewportBounds.width-y.left-y.right,0)):ee=Math.max(this.wrappingWidth,0),0>=z&&0>=ee&&(z=1),y=this.spacing.width,isFinite(y)||(y=0),E=this.spacing.height,isFinite(E)||(E=0),a!==null&&a.Ea("Layout"),x=[],this.alignment){case s0:var re=y,oe=E,ce=hn.alloc(),he=Math.max(this.cellSize.width,1);if(!isFinite(he))for(var ye=he=0;ye<b.length;ye++){var Te=this.ni(b[ye],ce);he=Math.max(he,Te.width)}if(he=Math.max(he+re,1),ye=Math.max(this.cellSize.height,1),!isFinite(ye))for(Te=ye=0;Te<b.length;Te++){var Ae=this.ni(b[Te],ce);ye=Math.max(ye,Ae.height)}ye=Math.max(ye+oe,1),Te=this.arrangement;for(var ke=Ae=this.arrangementOrigin.x,He=this.arrangementOrigin.y,dt=0,tt=0,gt=0;gt<b.length;gt++){var yt=b[gt],bt=this.ni(yt,ce),kt=Math.ceil((bt.width+re)/he)*he,Kt=Math.ceil((bt.height+oe)/ye)*ye;switch(Te){case Xu:var di=Math.abs(ke-bt.width);break;default:di=ke+bt.width}switch((0<z&&dt>z-1||0<ee&&0<dt&&di-Ae>ee)&&(x.push(new hn(0,He,ee+re,tt)),dt=0,ke=Ae,He+=tt,tt=0),tt=Math.max(tt,Kt),Te){case Xu:bt=-bt.width;break;default:bt=0}switch(yt.moveTo(ke+bt,He),Te){case Xu:ke-=kt;break;default:ke+=kt}dt++}x.push(new hn(0,He,ee+re,tt)),hn.free(ce);break;case bp:for(oe=ee,he=z,ye=y,Te=E,ee=hn.alloc(),Ae=Math.max(this.cellSize.width,1),z=He=ce=0,re=lt.alloc(),ke=0;ke<b.length;ke++)tt=b[ke],dt=this.ni(tt,ee),tt=Ed(tt,tt.locationObject,tt.locationSpot,re),ce=Math.max(ce,tt.x),He=Math.max(He,dt.width-tt.x),z=Math.max(z,tt.y);switch(ke=this.arrangement,ke){case Xu:ce+=ye;break;default:He+=ye}Ae=isFinite(Ae)?Math.max(Ae+ye,1):Math.max(ce+He,1);var Ai=tt=this.arrangementOrigin.x;for(gt=this.arrangementOrigin.y,He=0,oe>=ce&&(oe-=ce),ce=yt=0,kt=Math.max(this.cellSize.height,1),bt=z=0,Kt=!0,dt=lt.alloc(),di=0;di<b.length;di++){var xi=b[di],Qn=this.ni(xi,ee),kn=Ed(xi,xi.locationObject,xi.locationSpot,re);if(0<He)switch(ke){case Xu:Ai=(Ai-tt-(Qn.width-kn.x))/Ae,Ai=Bt.$(Math.round(Ai),Ai)?Math.round(Ai):Math.floor(Ai),Ai=Ai*Ae+tt;break;default:Ai=(Ai-tt+kn.x)/Ae,Ai=Bt.$(Math.round(Ai),Ai)?Math.round(Ai):Math.ceil(Ai),Ai=Ai*Ae+tt}else switch(ke){case Xu:yt=Ai+kn.x+Qn.width;break;default:yt=Ai-kn.x}switch(ke){case Xu:var rr=-(Ai+kn.x)+yt;break;default:rr=Ai+Qn.width-kn.x-yt}if(0<he&&He>he-1||0<oe&&0<He&&rr>oe){for(x.push(new hn(0,Kt?gt-z:gt,oe+ye,bt+z+Te)),Ai=0;Ai<He&&di!==He;Ai++){rr=b[di-He+Ai];var qi=Ed(rr,rr.locationObject,rr.locationSpot,dt);rr.moveTo(rr.position.x,rr.position.y+z-qi.y)}bt+=Te,gt=Kt?gt+bt:gt+(bt+z),He=bt=z=0,Ai=tt,Kt=!1}switch(Ai===tt&&(ce=ke===Xu?Math.max(ce,Qn.width-kn.x):Math.min(ce,-kn.x)),z=Math.max(z,kn.y),bt=Math.max(bt,Qn.height-kn.y),isFinite(kt)&&(bt=Math.max(bt,Math.max(Qn.height,kt)-kn.y)),Kt?xi.moveTo(Ai-kn.x,gt-kn.y):xi.moveTo(Ai-kn.x,gt),ke){case Xu:Ai-=kn.x+ye;break;default:Ai+=Qn.width-kn.x+ye}He++}if(x.push(new hn(0,gt,oe+ye,(Kt?bt:bt+z)+Te)),b.length!==He)for(oe=0;oe<He;oe++)he=b[b.length-He+oe],ye=Ed(he,he.locationObject,he.locationSpot,re),he.moveTo(he.position.x,he.position.y+z-ye.y);if(lt.free(re),lt.free(dt),ke===Xu)for(b=0;b<x.length;b++)z=x[b],z.width+=ce,z.x-=ce;else for(b=0;b<x.length;b++)z=x[b],z.x>ce&&(z.width+=z.x-ce,z.x=ce);hn.free(ee)}for(re=z=ee=b=0;re<x.length;re++)oe=x[re],b=Math.min(b,oe.x),ee=Math.min(ee,oe.y),z=Math.max(z,oe.x+oe.width);this.arrangement===Xu?this.commitLayers(x,new lt(b+y/2-(z+b),ee-E/2)):this.commitLayers(x,new lt(b-y/2,ee-E/2)),a!==null&&a.eb("Layout"),this.isValidLayout=!0}},qa.prototype.commitLayers=function(){};function gS(a,y){return a=a.text,y=y.text,a<y?-1:a>y?1:0}It.Object.defineProperties(qa.prototype,{wrappingWidth:{get:function(){return this.zo},set:function(a){this.zo!==a&&(0<a||isNaN(a))&&(this.zo=a,this.isViewportSized=isNaN(a),this.C())}},wrappingColumn:{get:function(){return this.yo},set:function(a){this.yo!==a&&(0<a||isNaN(a))&&(this.yo=a,this.C())}},cellSize:{get:function(){return this.yg},set:function(a){this.yg.D(a)||(this.yg.assign(a),this.C())}},spacing:{get:function(){return this.tf},set:function(a){this.tf.D(a)||(this.tf.assign(a),this.C())}},alignment:{get:function(){return this.Jb},set:function(a){this.Jb===a||a!==bp&&a!==s0||(this.Jb=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==l0&&a!==Xu||(this.Rb=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==ly&&a!==u0&&a!==wp&&a!==c0||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}}});var s0=new en(qa,"Position",0),bp=new en(qa,"Location",1),l0=new en(qa,"LeftToRight",2),Xu=new en(qa,"RightToLeft",3),ly=new en(qa,"Forward",4),u0=new en(qa,"Reverse",5),wp=new en(qa,"Ascending",6),c0=new en(qa,"Descending",7);qa.className="GridLayout",qa.standardComparer=gS,qa.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),y=y.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/);for(var E=0;E<a.length;E++)if(y[E]!==""&&y[E]!==void 0){var x=parseFloat(a[E]),b=parseFloat(y[E]);if(isNaN(x))if(isNaN(b)){if(a[E].localeCompare(y[E])!==0)return a[E].localeCompare(y[E])}else return 1;else{if(isNaN(b))return-1;if(x-b!==0)return x-b}}else if(a[E]!=="")return 1;return y[E]!==""&&y[E]!==void 0?-1:0}return 1}return y!==null?-1:0},qa.Position=s0,qa.Location=bp,qa.LeftToRight=l0,qa.RightToLeft=Xu,qa.Forward=ly,qa.Reverse=u0,qa.Ascending=wp,qa.Descending=c0;function eo(){this.On=new In,this.Dn=new In,this.Pa=new In,this.cf=new zi,this.bf=new zi,this.aj=new zi,this.H=null,this.tp=!1}Ce=eo.prototype,Ce.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},Ce.Xe=function(a){this.H=a},Ce.oi=function(a){if(a instanceof pi){if(this.On.add(a),a instanceof or){var y=a.containingGroup;y===null?this.H.ai.add(a):y.gl.add(a),y=a.layout,y!==null&&(y.diagram=this.H)}}else a instanceof Xn?this.Dn.add(a):a instanceof Ur||this.Pa.add(a);y=a.data,y===null||a instanceof Ur||(a instanceof Xn?this.bf.add(y,a):this.cf.add(y,a))},Ce.pc=function(a){if(a.Ej(),a instanceof pi){if(this.On.remove(a),a instanceof or){var y=a.containingGroup;y===null?this.H.ai.remove(a):y.gl.remove(a),y=a.layout,y!==null&&(y.diagram=null)}}else a instanceof Xn?this.Dn.remove(a):a instanceof Ur||this.Pa.remove(a);y=a.data,y===null||a instanceof Ur||(a instanceof Xn?this.bf.remove(y):this.cf.remove(y))},Ce.Wd=function(){var a=this.H;if(a!==null){for(var y=a.nodeTemplateMap.iterator;y.next();){var E=y.value,x=y.key;(!E.Zc()||E instanceof or)&&pt('Invalid node template in Diagram.nodeTemplateMap: template for "'+x+'" must be a Node or a simple Part, not a Group or Link: '+E)}for(y=a.groupTemplateMap.iterator;y.next();)E=y.value,x=y.key,E instanceof or||pt('Invalid group template in Diagram.groupTemplateMap: template for "'+x+'" must be a Group, not a normal Node or Link: '+E);for(y=a.linkTemplateMap.iterator;y.next();)E=y.value,x=y.key,E instanceof Xn||pt('Invalid link template in Diagram.linkTemplateMap: template for "'+x+'" must be a Link, not a normal Node or simple Part: '+E);for(y=Ni(),E=a.selection.iterator;E.next();)(x=E.value.data)&&y.push(x);for(E=Ni(),a=a.highlighteds.iterator;a.next();)(x=a.value.data)&&E.push(x);for(a=Ni(),x=this.nodes.iterator;x.next();){var b=x.value;b.data!==null&&(a.push(b.data),a.push(b.location))}for(x=this.links.iterator;x.next();)b=x.value,b.data!==null&&(a.push(b.data),a.push(b.location));for(x=this.parts.iterator;x.next();)b=x.value,b.data!==null&&(a.push(b.data),a.push(b.location));for(this.removeAllModeledParts(),this.addAllModeledParts(),x=0;x<y.length;x++)b=this.Lc(y[x]),b!==null&&(b.isSelected=!0);for(x=0;x<E.length;x++)b=this.Lc(E[x]),b!==null&&(b.isHighlighted=!0);for(x=0;x<a.length;x+=2)b=this.Lc(a[x]),b!==null&&(b.location=a[x+1]);hi(y),hi(E),hi(a)}},eo.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},eo.prototype.addModeledParts=function(a,y){var E=this,x=this.diagram.model;a.forEach(function(b){x.lb(b)&&pS(E,b,!1)}),a.forEach(function(b){x.lb(b)&&E.resolveReferencesForData(b)}),y!==!1&&Of(this.diagram,!1)};function pS(a,y,E){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.cf.contains(y)){E===void 0&&(E=!0);e:{if(y!=null&&!a.H.undoManager.isUndoingRedoing&&!a.cf.contains(y)){var x=a.Ro(y),b=mS(a,y,x);if(b!==null&&(yu(b),b=b.copy(),b!==null)){var z=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,b.Tf=x,b.ub=y,a.tp&&(b.Jg="Tool"),a.diagram.add(b),b.ub=null,b.data=y,a.diagram.skipsModelSourceBindings=z,x=b;break e}}x=null}x!==null&&E&&a.resolveReferencesForData(y)}}eo.prototype.insertLink=function(){return null},eo.prototype.resolveReferencesForData=function(){},eo.prototype.Ro=function(a){return this.H.model.Ro(a)};function mS(a,y,E){a=a.H;var x=a.model;return x.Xj()&&x.Yu(y)?(y=a.groupTemplateMap.I(E),y===null&&(y=a.groupTemplateMap.I(""),y===null&&(SS||(SS=!0,Ti('No Group template found for category "'+E+'"'),Ti(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(E),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(yS||(yS=!0,Ti('No Node template found for category "'+E+'"'),Ti(" Using default node template")),y=a.ny))),y}eo.prototype.getLinkCategoryForData=function(){return""},eo.prototype.setLinkCategoryForData=function(){},eo.prototype.setFromNodeForLink=function(){},eo.prototype.setToNodeForLink=function(){},eo.prototype.findLinkTemplateForCategory=function(a){var y=this.H,E=y.linkTemplateMap.I(a);return E===null&&(E=y.linkTemplateMap.I(""),E===null&&(ES||(ES=!0,Ti('No Link template found for category "'+a+'"'),Ti(" Using default link template")),E=y.my)),E},eo.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},eo.prototype.Gs=function(a){var y=this;a.forEach(function(E){y.ip(E)})},eo.prototype.ip=function(a){a=this.Lc(a),a!==null&&(Bg(this.diagram,a,!1),this.unresolveReferencesForPart(a))},eo.prototype.unresolveReferencesForPart=function(){},eo.prototype.removeDataForLink=function(){},eo.prototype.findPartForKey=function(a){return a==null?null:(a=this.H.model.hc(a),a!==null?this.cf.I(a):null)},eo.prototype.Vb=function(a){return a==null||(a=this.H.model.hc(a),a===null)?null:(a=this.cf.I(a),a instanceof pi?a:null)},eo.prototype.findLinkForKey=function(){return null},Ce=eo.prototype,Ce.Lc=function(a){if(a===null)return null;var y=this.cf.I(a);return y!==null?y:y=this.bf.I(a)},Ce.ii=function(a){return a===null?null:(a=this.cf.I(a),a instanceof pi?a:null)},Ce.Kc=function(a){return a===null?null:this.bf.I(a)},Ce.ms=function(a){for(var y=0;y<arguments.length;++y);y=new In;for(var E=this.On.iterator;E.next();){var x=E.value,b=x.data;if(b!==null)for(var z=0;z<arguments.length;z++){var ee=arguments[z];if(zt(ee)&&uy(this,b,ee)){y.add(x);break}}}return y.iterator},Ce.ls=function(a){for(var y=0;y<arguments.length;++y);y=new In;for(var E=this.Dn.iterator;E.next();){var x=E.value,b=x.data;if(b!==null)for(var z=0;z<arguments.length;z++){var ee=arguments[z];if(zt(ee)&&uy(this,b,ee)){y.add(x);break}}}return y.iterator};function uy(a,y,E){for(var x in E){var b=y[x],z=E[x];if(xn(z)){if(!xn(b)||b.length<z.length)return!1;for(var ee=0;ee<b.length;ee++){var re=z[ee];if(re!==void 0&&!vS(a,b[ee],re))return!1}}else if(!vS(a,b,z))return!1}return!0}function vS(a,y,E){if(typeof E=="function"){if(!E(y))return!1}else if(E instanceof RegExp){if(!y||!E.test(y.toString()))return!1}else if(zt(y)&&zt(E)){if(!uy(a,y,E))return!1}else if(y!==E)return!1;return!0}eo.prototype.doModelChanged=function(a){if(this.H){var y=this.H;if(a.model===y.model){var E=a.change;if(y.doModelChanged(a),y.aa){y.aa=!1;try{var x=a.modelChange;if(x!=="")if(E===wo){if(x==="nodeCategory"){var b=this.Lc(a.object),z=a.newValue;b!==null&&typeof z=="string"&&(b.category=z)}else x==="nodeDataArray"&&(this.Gs(a.oldValue),this.addModeledParts(a.newValue));y.isModified=!0}else if(E===Xo){var ee=a.newValue;x==="nodeDataArray"&&zt(ee)&&pS(this,ee),y.isModified=!0}else if(E===$o){var re=a.oldValue;x==="nodeDataArray"&&zt(re)&&this.ip(re),y.isModified=!0}else E===ys&&(x==="SourceChanged"?a.object!==null?this.updateDataBindings(a.object,a.propertyName):(this.rp(),this.updateAllTargetBindings()):x==="ModelDisplaced"&&this.Wd());else if(E===wo){var oe=a.propertyName,ce=a.object;ce===y.model?(oe==="nodeKeyProperty"||oe==="nodeCategoryProperty")&&(y.undoManager.isUndoingRedoing||this.Wd()):this.updateDataBindings(ce,oe),y.isModified=!0}else if(E===Xo||E===$o){var he=a.change===Xo,ye=he?a.newParam:a.oldParam,Te=he?a.newValue:a.oldValue,Ae=this.aj.I(a.object);if(Array.isArray(Ae))for(a=0;a<Ae.length;a++){var ke=Ae[a];if(he)Pm(ke,Te,ye,!0);else if(!(0>ye)){var He=ye+rp(ke);ke.pc(He,!0),wv(ke,He,ye)}}y.isModified=!0}}finally{y.aa=!0}}}}},eo.prototype.updateAllTargetBindings=function(a){a===void 0&&(a="");for(var y=this.parts.iterator;y.next();)y.value.La(a);for(y=this.nodes.iterator;y.next();)y.value.La(a);for(y=this.links.iterator;y.next();)y.value.La(a)},eo.prototype.rp=function(){for(var a=this.H.model,y=new In,E=a.nodeDataArray,x=0;x<E.length;x++)y.add(E[x]);var b=[];for(this.nodes.each(function(ee){ee.data===null||y.contains(ee.data)||b.push(ee.data)}),this.parts.each(function(ee){ee.data===null||y.contains(ee.data)||b.push(ee.data)}),b.forEach(function(ee){LS(a,ee,!1)}),x=0;x<E.length;x++){var z=E[x];this.Lc(z)===null&&PS(a,z,!1)}for(this.refreshDataBoundLinks(),E=this.parts.iterator;E.next();)E.value.updateRelationshipsFromData();for(E=this.nodes.iterator;E.next();)E.value.updateRelationshipsFromData();for(E=this.links.iterator;E.next();)E.value.updateRelationshipsFromData()},eo.prototype.refreshDataBoundLinks=function(){},eo.prototype.updateRelationshipsFromData=function(){},eo.prototype.updateDataBindings=function(a,y){if(typeof y=="string"){var E=this.Lc(a);if(E!==null)E.La(y);else{E=null;for(var x=this.aj.iterator;x.next();){for(var b=x.value,z=0;z<b.length;z++){var ee=b[z].sx(a);ee!==null&&(E===null&&(E=Ni()),E.push(ee))}if(E!==null)break}if(E!==null){for(x=0;x<E.length;x++)E[x].La(y);hi(E)}}a===this.diagram.model.modelData&&this.updateAllTargetBindings(y)}};function cy(a,y){var E=y.Hh;if(xn(E)){var x=a.aj.I(E);if(x===null)x=[],x.push(y),a.aj.add(E,x);else{for(a=0;a<x.length;a++)if(x[a]===y)return;x.push(y)}}}function dy(a,y,E){Dh(y,function(ee){ee=ee.O.s;for(var re=ee.length,oe=0;oe<re;oe++)Hg(E,ee[oe])});var x=y.Hh;if(xn(x)){var b=a.aj.I(x);if(b!==null){for(var z=0;z<b.length;z++)if(b[z]===y){b.splice(z,1),b.length===0&&a.aj.remove(x);break}}}}eo.prototype.Kj=function(a,y,E){E===void 0&&(E=!1);var x=new zi;if(xn(a))for(var b=0;b<a.length;b++)d0(this,a[b],y,x,E);else for(a=a.iterator;a.next();)d0(this,a.value,y,x,E);if(y!==null){E=y.model,a=y.toolManager.findTool("Dragging"),a=a!==null?a.dragOptions.dragsLink:y.Wm.dragsLink,b=new In;for(var z=new zi,ee=x.iterator;ee.next();){var re=ee.value;if(re instanceof Xn)a||re.fromNode!==null&&re.toNode!==null||b.add(re);else if(re instanceof pi&&re.data!==null&&E.Tl()){var oe=re;re=ee.key;var ce=re.pg();ce!==null&&(ce=x.I(ce),ce!==null?(E.qe(oe.data,E.wa(ce.data)),oe=y.Kc(oe.data),re=re.kh(),re!==null&&oe!==null&&z.add(re,oe)):E.qe(oe.data,void 0))}}if(0<b.count&&y.Is(b,!1),0<z.count)for(E=z.iterator;E.next();)x.add(E.key,E.value)}if(y!==null&&this.H!==null&&(y=y.model,E=y.afterCopyFunction,E!==null)){var he=new zi;x.each(function(ye){ye.key.data!==null&&he.add(ye.key.data,ye.value.data)}),E(he,y,this.H.model)}for(y=x.iterator;y.next();)y.value.La();return x};function d0(a,y,E,x,b){if(y===null||b&&!y.canCopy())return null;if(x.contains(y))return x.I(y);var z=a.copyPartData(y,E);if(!(z instanceof Ui))return null;if(z.isSelected=!1,z.isHighlighted=!1,x.add(y,z),y instanceof pi){for(var ee=y.linksConnected;ee.next();){var re=ee.value;if(re.fromNode===y){var oe=x.I(re);oe!==null&&(oe.fromNode=z)}re.toNode===y&&(re=x.I(re),re!==null&&(re.toNode=z))}if(y instanceof or&&z instanceof or)for(y=y.memberParts;y.next();)ee=d0(a,y.value,E,x,b),ee instanceof Xn||ee===null||(ee.containingGroup=z)}else if(y instanceof Xn&&z instanceof Xn)for(ee=y.fromNode,ee!==null&&(ee=x.I(ee),ee!==null&&(z.fromNode=ee)),ee=y.toNode,ee!==null&&(ee=x.I(ee),ee!==null&&(z.toNode=ee)),y=y.labelNodes;y.next();)ee=d0(a,y.value,E,x,b),ee!==null&&ee instanceof pi&&(ee.labeledLink=z);return z}eo.prototype.copyPartData=function(a,y){var E=null,x=a.data;if(x!==null&&y!==null){var b=y.model;a instanceof Xn||(x=b.copyNodeData(x),zt(x)&&(b.xf(x),E=y.Lc(x)))}else yu(a),E=a.copy(),E!==null&&(b=this.H,y!==null?y.add(E):x!==null&&b!==null&&b.commandHandler!==null&&b.commandHandler.copiesClipboardData&&(y=b.model,b=null,E instanceof Xn||(b=y.copyNodeData(x)),zt(b)&&(E.data=b)));return E},It.Object.defineProperties(eo.prototype,{nodes:{get:function(){return this.On}},links:{get:function(){return this.Dn}},parts:{get:function(){return this.Pa}},diagram:{get:function(){return this.H}},addsToTemporaryLayer:{get:function(){return this.tp},set:function(a){this.tp=a}}}),eo.prototype.updateAllRelationshipsFromData=eo.prototype.rp,eo.prototype.findLinksByExample=eo.prototype.ls,eo.prototype.findNodesByExample=eo.prototype.ms,eo.prototype.findLinkForData=eo.prototype.Kc,eo.prototype.findNodeForData=eo.prototype.ii,eo.prototype.findPartForData=eo.prototype.Lc,eo.prototype.findNodeForKey=eo.prototype.Vb,eo.prototype.removeModeledPart=eo.prototype.ip,eo.prototype.removeModeledParts=eo.prototype.Gs,eo.prototype.rebuildParts=eo.prototype.Wd;var yS=!1,SS=!1,ES=!1;eo.className="PartManager";function za(a){eo.apply(this,arguments)}Ut(za,eo),za.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),xS(this,a.linkDataArray)},za.prototype.addModeledParts=function(a){for(eo.prototype.addModeledParts.call(this,a,!1),a=this.links.iterator;a.next();)tg(a.value);Of(this.diagram,!1)};function xS(a,y){y.forEach(function(E){bS(a,E)}),Of(a.diagram,!1)}function bS(a,y){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.bf.contains(y)){var E=a.getLinkCategoryForData(y),x=a.findLinkTemplateForCategory(E);if(x!==null){yu(x);var b=x.copy();if(b!==null){x=a.diagram.skipsModelSourceBindings,a.diagram.skipsModelSourceBindings=!0,b.Tf=E,b.ub=y,E=a.diagram.model;var z=p0(E,y,!0);z!==""&&(b.fromPortId=z),z=Yl(E,y,!0),z!==void 0&&(z=a.Vb(z),z instanceof pi&&(b.fromNode=z)),z=p0(E,y,!1),z!==""&&(b.toPortId=z),z=Yl(E,y,!1),z!==void 0&&(z=a.Vb(z),z instanceof pi&&(b.toNode=z)),E=E.Ef(y),Array.isArray(E)&&E.forEach(function(ee){ee=a.Vb(ee),ee!==null&&(ee.labeledLink=b)}),a.tp&&(b.Jg="Tool"),a.diagram.add(b),b.ub=null,b.data=y,a.diagram.skipsModelSourceBindings=x}}}}za.prototype.removeAllModeledParts=function(){var a=this.diagram.model;wS(this,a.linkDataArray),this.Gs(a.nodeDataArray)};function wS(a,y){y.forEach(function(E){a.ip(E)})}za.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ps(a)},za.prototype.setLinkCategoryForData=function(a,y){return this.diagram.model.lp(a,y)},za.prototype.setFromNodeForLink=function(a,y){var E=this.diagram.model;E.wv(a.data,E.wa(y!==null?y.data:null))},za.prototype.setToNodeForLink=function(a,y){var E=this.diagram.model;E.Bv(a.data,E.wa(y!==null?y.data:null))},za.prototype.removeDataForLink=function(a){this.diagram.model.bm(a.data)},za.prototype.findPartForKey=function(a){var y=eo.prototype.findPartForKey.call(this,a);return y===null&&(a=this.diagram.model.jh(a),a!==null)?this.bf.I(a):y},za.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.jh(a),a!==null?this.bf.I(a):null)},za.prototype.doModelChanged=function(a){var y=this;if(eo.prototype.doModelChanged.call(this,a),this.diagram){var E=this.diagram;if(a.model===E.model){var x=a.change;if(E.aa){E.aa=!1;try{var b=a.modelChange;if(b!==""){if(x===wo){if(b==="linkFromKey"){var z=this.Kc(a.object);if(z!==null){var ee=this.Vb(a.newValue);z.fromNode=ee}}else if(b==="linkToKey"){var re=this.Kc(a.object);if(re!==null){var oe=this.Vb(a.newValue);re.toNode=oe}}else if(b==="linkFromPortId"){var ce=this.Kc(a.object);if(ce!==null){var he=a.newValue;typeof he=="string"&&(ce.fromPortId=he)}}else if(b==="linkToPortId"){var ye=this.Kc(a.object);if(ye!==null){var Te=a.newValue;typeof Te=="string"&&(ye.toPortId=Te)}}else if(b==="nodeGroupKey"){var Ae=this.Lc(a.object);if(Ae!==null){var ke=a.newValue;if(ke!==void 0){var He=this.Vb(ke);He instanceof or?Ae.containingGroup=He:Ae.containingGroup=null}else Ae.containingGroup=null}}else if(b==="linkLabelKeys"){var dt=this.Kc(a.object);if(dt!==null){var tt=a.oldValue,gt=a.newValue;Array.isArray(tt)&&tt.forEach(function(kn){0<=gt.indexOf(kn)||(kn=y.Vb(kn),kn!==null&&(kn.labeledLink=null))}),Array.isArray(gt)&&gt.forEach(function(kn){kn=y.Vb(kn),kn!==null&&(kn.labeledLink=dt)})}}else if(b==="linkCategory"){var yt=this.Kc(a.object),bt=a.newValue;yt!==null&&typeof bt=="string"&&(yt.category=bt)}else b==="linkDataArray"&&(wS(this,a.oldValue),xS(this,a.newValue));E.isModified=!0}else if(x===Xo){var kt=a.newValue;if(b==="linkDataArray"&&typeof kt=="object"&&kt!==null)bS(this,kt);else if(b==="linkLabelKeys"&&qd(kt)){var Kt=this.Kc(a.object),di=this.Vb(kt);Kt!==null&&di!==null&&(di.labeledLink=Kt)}E.isModified=!0}else if(x===$o){var Ai=a.oldValue;if(b==="linkDataArray"&&typeof Ai=="object"&&Ai!==null)this.ip(Ai);else if(b==="linkLabelKeys"&&qd(Ai)){var xi=this.Vb(Ai);xi!==null&&(xi.labeledLink=null)}E.isModified=!0}}else if(x===wo){var Qn=a.propertyName;a.object!==E.model||Qn!=="linkFromKeyProperty"&&Qn!=="linkToKeyProperty"&&Qn!=="linkFromPortIdProperty"&&Qn!=="linkToPortIdProperty"&&Qn!=="linkLabelKeysProperty"&&Qn!=="nodeIsGroupProperty"&&Qn!=="nodeGroupKeyProperty"&&Qn!=="linkCategoryProperty"||E.undoManager.isUndoingRedoing||this.Wd(),E.isModified=!0}}finally{E.aa=!0}}}}},za.prototype.refreshDataBoundLinks=function(){var a=this,y=this.diagram.model,E=new In,x=y.linkDataArray;x.forEach(function(z){E.add(z)});var b=[];this.links.each(function(z){z.data===null||E.contains(z.data)||b.push(z.data)}),b.forEach(function(z){FS(y,z,!1)}),x.forEach(function(z){a.Kc(z)===null&&RS(y,z,!1)})},za.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var E=a.diagram;if(E!==null){var x=E.model;if(a instanceof Xn){var b=Yl(x,y,!0);if(b=E.Vb(b),a.fromNode=b,b=Yl(x,y,!1),b=E.Vb(b),a.toNode=b,y=x.Ef(y),0<y.length||0<a.labelNodes.count){if(y.length===1&&a.labelNodes.count===1){b=y[0];var z=a.labelNodes.first();if(x.wa(z.data)===b)return}b=new In().addAll(y);var ee=new In;a.labelNodes.each(function(re){re.data!==null&&(re=x.wa(re.data),re!==void 0&&ee.add(re))}),y=ee.copy(),y.hp(b),b=b.copy(),b.hp(ee),(0<y.count||0<b.count)&&(y.each(function(re){re=E.Vb(re),re!==null&&re.labeledLink===a&&(re.labeledLink=null)}),b.each(function(re){re=E.Vb(re),re!==null&&re.labeledLink!==a&&(re.labeledLink=a)}))}}else!(a instanceof Ur)&&(y=x.lh(y),y=E.findPartForKey(y),y===null||y instanceof or)&&(a.containingGroup=y)}}},za.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,E=y.wa(a);if(E!==void 0){var x=Tp(y,E),b=this.Lc(a);if(x!==null&&b!==null){x=x.iterator;for(var z={};x.next();){var ee=x.value;y.lb(ee)?b instanceof or&&y.lh(ee)===E&&(ee=this.Lc(ee),ee!==null&&(ee.containingGroup=b)):(z.link=this.Kc(ee),z.link!==null&&b instanceof pi&&(Yl(y,ee,!0)===E&&(z.link.fromNode=b),Yl(y,ee,!1)===E&&(z.link.toNode=b),ee=y.Ef(ee),Array.isArray(ee)&&ee.some(function(re){return function(oe){return oe===E?(b.labeledLink=re.link,!0):!1}}(z)))),z={link:z.link}}qu(y,E)}a=y.lh(a),a!==void 0&&(a=this.Vb(a),a instanceof or&&(b.containingGroup=a))}},za.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof pi){var E=y.wa(a.data);if(E!==void 0){for(var x=a.linksConnected;x.next();)Ju(y,E,x.value.data);if(a.isLinkLabel&&(x=a.labeledLink,x!==null&&Ju(y,E,x.data)),a instanceof or)for(a=a.memberParts;a.next();)x=a.value.data,y.lb(x)&&Ju(y,E,x)}}},za.prototype.copyPartData=function(a,y){var E=eo.prototype.copyPartData.call(this,a,y);if(a instanceof Xn)if(a=a.data,a!==null&&y!==null){var x=y.model;a=x.Jo(a),typeof a=="object"&&a!==null&&(x.fi(a),E=y.Kc(a))}else E!==null&&(y=this.diagram,a!==null&&y!==null&&y.commandHandler!==null&&y.commandHandler.copiesClipboardData&&(y=y.model.Jo(a),typeof y=="object"&&y!==null&&(E.data=y)));return E},za.prototype.insertLink=function(a,y,E,x){var b=this.diagram,z=b.model,ee=b.toolManager.findTool("Linking"),re="";if(a!==null&&(y===null&&(y=a),re=y.portId,re===null&&(re="")),y="",E!==null&&(x===null&&(x=E),y=x.portId,y===null&&(y="")),x=ee.archetypeLinkData,x instanceof Xn){if(yu(x),z=x.copy(),z!==null)return z.fromNode=a,z.fromPortId=re,z.toNode=E,z.toPortId=y,b.add(z),a=ee.archetypeLabelNodeData,a instanceof pi&&(yu(a),a=a.copy(),a!==null&&(a.labeledLink=z,b.add(a))),z}else if(x!==null&&(x=z.Jo(x),typeof x=="object"&&x!==null))return a!==null&&sg(z,x,z.wa(a.data),!0),lg(z,x,re,!0),E!==null&&sg(z,x,z.wa(E.data),!1),lg(z,x,y,!1),z.fi(x),a=ee.archetypeLabelNodeData,a===null||a instanceof pi||(a=z.copyNodeData(a),typeof a=="object"&&a!==null&&(z.xf(a),a=z.wa(a),a!==void 0&&z.Bu(x,a))),b.Kc(x);return null},za.prototype.findLinkForKey=za.prototype.findLinkForKey,za.prototype.findPartForKey=za.prototype.findPartForKey,za.prototype.removeAllModeledParts=za.prototype.removeAllModeledParts,za.prototype.addModeledParts=za.prototype.addModeledParts,za.prototype.addAllModeledParts=za.prototype.addAllModeledParts,za.className="GraphLinksPartManager";function ru(){eo.apply(this,arguments),this.Sg=null}Ut(ru,eo);function h0(a,y,E){if(y!==null&&E!==null&&E.kh()===null){var x=a.diagram.toolManager.findTool("Linking"),b=y,z=E;if(a.diagram.isTreePathToChildren||(b=E,z=y),(x===null||!as(x,b,z,null,!0))&&(y=a.getLinkCategoryForData(E.data),x=a.findLinkTemplateForCategory(y),x!==null&&(yu(x),x=x.copy(),x!==null))){var ee=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,x.Tf=y,x.ub=E.data,x.fromNode=b,x.toNode=z,a.diagram.add(x),x.ub=null,x.data=E.data,a.diagram.skipsModelSourceBindings=ee}}}ru.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ss(a)},ru.prototype.setLinkCategoryForData=function(a,y){this.diagram.model.Ms(a,y)},ru.prototype.setFromNodeForLink=function(a,y,E){var x=this.diagram.model;if(E===void 0&&(E=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren)x.qe(a.data,x.wa(y));else{var b=this.Sg;this.Sg=a,E!==null&&x.qe(E.data,void 0),x.qe(y,x.wa(a.toNode!==null?a.toNode.data:null)),this.Sg=b}},ru.prototype.setToNodeForLink=function(a,y,E){var x=this.diagram.model;if(E===void 0&&(E=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren){var b=this.Sg;this.Sg=a,E!==null&&x.qe(E.data,void 0),x.qe(y,x.wa(a.fromNode!==null?a.fromNode.data:null)),this.Sg=b}else x.qe(a.data,x.wa(y))},ru.prototype.removeDataForLink=function(a){this.diagram.model.qe(a.data,void 0)},ru.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.hc(a),a!==null?this.bf.I(a):null)},ru.prototype.doModelChanged=function(a){if(eo.prototype.doModelChanged.call(this,a),this.diagram){var y=this.diagram;if(a.model===y.model){var E=a.change;if(y.aa){y.aa=!1;try{var x=a.modelChange;if(x!==""){if(E===wo){if(x==="nodeParentKey"){var b=a.object,z=this.Vb(a.newValue),ee=this.ii(b);if(this.Sg!==null)z!==null&&(this.Sg.data=b,this.Sg.category=this.getLinkCategoryForData(b));else if(ee!==null){var re=ee.kh();re!==null?z===null?y.remove(re):y.isTreePathToChildren?re.fromNode=z:re.toNode=z:h0(this,z,ee)}}else if(x==="parentLinkCategory"){var oe=this.ii(a.object),ce=a.newValue;if(oe!==null&&typeof ce=="string"){var he=oe.kh();he!==null&&(he.category=ce)}}y.isModified=!0}}else if(E===wo){var ye=a.propertyName;a.object===y.model&&ye==="nodeParentKeyProperty"&&(y.undoManager.isUndoingRedoing||this.Wd()),y.isModified=!0}}finally{y.aa=!0}}}}},ru.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var E=a.diagram;if(E!==null){var x=E.model;a instanceof pi&&(y=x.mh(y),y=E.Vb(y),x=a.pg(),y!==x&&(x=a.kh(),y!==null?x!==null?E.isTreePathToChildren?x.fromNode=y:x.toNode=y:h0(this,y,a):x!==null&&Bg(E,x,!1)))}}},ru.prototype.updateDataBindings=function(a,y){eo.prototype.updateDataBindings.call(this,a,y),typeof y=="string"&&this.Lc(a)!==null&&(a=this.Kc(a),a!==null&&a.La(y))},ru.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,E=y.wa(a);if(E!==void 0){var x=Tp(y,E),b=this.Lc(a);if(x!==null&&b!==null){for(x=x.iterator;x.next();){var z=x.value;y.lb(z)&&b instanceof pi&&y.mh(z)===E&&h0(this,b,this.ii(z))}qu(y,E)}a=y.mh(a),a!==void 0&&b instanceof pi&&(a=this.Vb(a),h0(this,a,b))}},ru.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof pi){var E=y.wa(a.data),x=this.Kc(a.data);if(x!==null){x.isSelected=!1,x.isHighlighted=!1;var b=x.layer;if(b!==null){var z=b.pc(-1,x,!1);0<=z&&this.diagram.cb($o,"parts",b,x,null,z,null),z=x.layerChanged,z!==null&&z(x,b,null)}}for(x=this.diagram.isTreePathToChildren,a=a.linksConnected;a.next();)b=a.value,b=(x?b.toNode:b.fromNode).data,y.lb(b)&&Ju(y,E,b)}},ru.prototype.insertLink=function(a,y,E){y=this.diagram.model;var x=a,b=E;return this.diagram.isTreePathToChildren||(x=E,b=a),x!==null&&b!==null?(y.qe(b.data,y.wa(x.data)),b.kh()):null},ru.prototype.findLinkForKey=ru.prototype.findLinkForKey,ru.className="TreePartManager";function Di(a,y){this.kl=new In,this.il=new In,this.Wv=`,
"insertedNodeKeys": `,this.jy=`,
"modifiedNodeData": `,this.Yv=`,
"removedNodeKeys": `,this.vh=null,wr(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new zi,this.Th="key",this.Bk=this.bl=null,this.Jm=this.Km=!1,this.Mm=!0,this.xm=null,this.lj="category",this.Vf=new zi,this.Lt=new Fn,this.Wg=!1,this.o=null,this.undoManager=new ho,a!==void 0&&(xn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Di.prototype.cloneProtected=function(a){a.xa=this.xa,a.Sm=this.Sm,a.Gg=this.Gg,a.Th=this.Th,a.bl=this.bl,a.Bk=this.Bk,a.Km=this.Km,a.Jm=this.Jm,a.Mm=this.Mm,a.xm=this.xm,a.lj=this.lj},Di.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Di.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},Di.prototype.toString=function(a){if(a===void 0&&(a=0),1<a)return this.np();var y=(this.name!==""?this.name:"")+" Model";if(0<a){y+=`
node data:`,a=this.nodeDataArray;for(var E=a.length,x=0;x<E;x++){var b=a[x];y+=" "+this.wa(b)+":"+Yi(b)}}return y},Di.prototype.xA=function(a){a.change!==ys&&pt("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof va?(AS(this,y),a=this.Qv(y,a.propertyName==="FinishedUndo"),this.vh=null,a):null},Di.prototype.Qv=function(a,y){var E=this,x=!1,b=new In,z=new In,ee=new In,re=this.vh;a.changes.each(function(ye){ye.model===E&&(ye.modelChange==="nodeDataArray"?ye.change===Xo?b.add(ye.newValue):ye.change===$o&&ee.add(ye.oldValue):E.lb(ye.object)?z.add(ye.object):ye.change!==wo||E.modelData!==ye.object&&ye.propertyName!=="modelData"?ye.object!==null&&(re&&re.contains(ye.object)?re.get(ye.object).each(function(Te){E.lb(Te)&&z.add(Te)}):ye.object instanceof Di||E.ri()&&E.Jc(ye.object)||CS(E,ye.object).each(function(Te){z.add(Te)})):x=!0)});var oe=this.il;oe.clear(),b.each(function(ye){oe.add(E.wa(ye)),y||z.add(ye)});var ce=this.kl;ce.clear(),ee.each(function(ye){ce.add(E.wa(ye)),y&&z.add(ye)}),a=E.cloneDeep(z.Fa());var he=null;return x&&(he===null&&(he={}),he.modelData=this.cloneDeep(this.modelData)),0<oe.count&&(he===null&&(he={}),y?he.removedNodeKeys=oe.Fa():he.insertedNodeKeys=oe.Fa()),0<a.length&&(he===null&&(he={}),he.modifiedNodeData=a),0<ce.count&&(he===null&&(he={}),y?he.insertedNodeKeys=ce.Fa():he.removedNodeKeys=ce.Fa()),ce.clear(),oe.clear(),he},Di.prototype.cloneDeep=function(a){return ag(this,a,!0)};function ag(a,y,E,x,b,z){function ee(ye,Te){re?(ye.__gohashid===void 0&&z.push(ye),x.set(ye,Te)):(ye=mo++,x.set(ye,Te),b.set(ye,y))}if(!zt(y))return y;z||(z=[]);var re=Object.isExtensible(y);if(x||(x=new zi),re){var oe=x.get(y);if(oe)return oe}else for(b||(b=new zi),oe=b.iterator;oe.next();){var ce=oe.key;if(oe.value===y&&(ce=x.get(ce)))return ce}if(Array.isArray(y)){oe=[],ee(y,oe);for(var he=0;he<y.length;he++)oe.push(ag(a,y[he],!1,x,b,z))}else if(y instanceof lt||y instanceof ri||y instanceof hn||y instanceof cr||y instanceof Yt)oe=y.copy(),ee(y,oe);else{if(y instanceof qr||y instanceof Kn||y instanceof en)return y;if(y instanceof Fn)oe=new Fn().addAll(ag(a,y.Fa(),!1,x,b,z)),ee(y,oe);else if(y instanceof In)oe=new In().addAll(ag(a,y.Fa(),!1,x,b,z)),ee(y,oe);else if(y instanceof zi)oe=new zi().addAll(ag(a,y.Fa(),!1,x,b,z)),ee(y,oe);else if(y instanceof Date)oe=new Date(y.getTime()),ee(y,oe);else if(y instanceof RegExp)oe=new RegExp(y),ee(y,oe),oe.lastIndex=y.lastIndex;else if(typeof y.copy=="function")oe=y.copy(),ee(y,oe);else for(he in oe={},ee(y,oe),y)he!=="__gohashid"&&(oe[he]=ag(a,y[he],!1,x,b,z))}return E&&z.forEach(function(ye){delete ye.__gohashid}),oe}Ce=Di.prototype,Ce.quote=function(a){return JSON.stringify(a).replace(/[\u007F-\uFFFF]/g,function(y){return"\\u"+("0000"+y.charCodeAt(0).toString(16)).substr(-4)})},Ce.rm=function(){var a="";return this.name!==""&&(a+=`,
"name": `+this.quote(this.name)),this.dataFormat!==""&&(a+=`,
"dataFormat": `+this.quote(this.dataFormat)),this.isReadOnly&&(a+=`,
"isReadOnly": `+this.isReadOnly),this.nodeKeyProperty!=="key"&&typeof this.nodeKeyProperty=="string"&&(a+=`,
"nodeKeyProperty": `+this.quote(this.nodeKeyProperty)),this.copiesArrays&&(a+=`,
"copiesArrays": true`),this.copiesArrayObjects&&(a+=`,
"copiesArrayObjects": true`),this.copiesKey||(a+=`,
"copiesKey": false`),this.nodeCategoryProperty!=="category"&&typeof this.nodeCategoryProperty=="string"&&(a+=`,
"nodeCategoryProperty": `+this.quote(this.nodeCategoryProperty)),a},Ce.gp=function(a){a.name&&(this.name=a.name),a.dataFormat&&(this.dataFormat=a.dataFormat),a.isReadOnly&&(this.isReadOnly=!0),a.nodeKeyProperty&&(this.nodeKeyProperty=a.nodeKeyProperty),a.copiesArrays&&(this.copiesArrays=!0),a.copiesArrayObjects&&(this.copiesArrayObjects=!0),a.copiesKey===!1&&(this.copiesKey=!1),a.nodeCategoryProperty&&(this.nodeCategoryProperty=a.nodeCategoryProperty)};function TS(a,y){y=y.modelData,zt(y)&&(a.dm(y),a.modelData=y)}Ce.Rv=function(){var a=this.modelData,y=!1,E;for(E in a)if(!MS(E,a[E])){y=!0;break}return a="",y&&(a=`,
"modelData": `+hy(this,this.modelData)),a+`,
"nodeDataArray": `+Jd(this,this.nodeDataArray,!0)},Ce.kv=function(a){TS(this,a),a=a.nodeDataArray,xn(a)&&(this.dm(a),this.nodeDataArray=a)};function AS(a,y){function E(b,z){if((z=z.part)&&(z=z.data,b!==z)){var ee=x.get(b);ee===null?(ee=new In,ee.add(z),x.add(b,ee)):ee.add(z)}}var x=a.vh;x===null&&(x=new zi,y.changes.each(function(b){if(b.diagram!==null){var z=b.change;z===wo?(b=b.object.panel)&&(z=b.data)&&E(z,b):(z===Xo||z===$o)&&(b=b.object,(z=b.itemArray)&&E(z,b))}}),a.vh=x)}function CS(a,y){for(var E=new In,x=0;x<a.nodeDataArray.length;x++){var b=a.nodeDataArray[x];f0(a,y,b,b,E)}return E}function f0(a,y,E,x,b){if(Array.isArray(E))for(var z=0;z<E.length;z++){var ee=E[z];if(ee===y)return b.add(x),!0;if(f0(a,y,ee,x,b))return!0}else if(zt(E)&&Object.getPrototypeOf(E)===Object.prototype)for(z in E){if(ee=E[z],ee===y)return b.add(x),!0;if(f0(a,y,ee,x,b))return!0}return!1}Ce.Pv=function(a,y){var E=this,x=!1,b=new In,z=new In,ee=new In,re=this.vh;a.changes.each(function(he){he.model===E&&(he.modelChange==="nodeDataArray"?he.change===Xo?b.add(he.newValue):he.change===$o&&ee.add(he.oldValue):E.lb(he.object)?z.add(he.object):he.change!==wo||E.modelData!==he.object&&he.propertyName!=="modelData"?he.object!==null&&(re&&re.contains(he.object)?re.get(he.object).each(function(ye){E.lb(ye)&&z.add(ye)}):he.object instanceof Di||E.ri()&&E.Jc(he.object)||CS(E,he.object).each(function(ye){z.add(ye)})):x=!0)});var oe=this.il;oe.clear(),b.each(function(he){oe.add(E.wa(he)),y||z.add(he)});var ce=this.kl;return ce.clear(),ee.each(function(he){ce.add(E.wa(he)),y&&z.add(he)}),a="",x&&(a+=`,
"modelData": `+hy(this,this.modelData)),0<oe.count&&(a+=(y?this.Yv:this.Wv)+Jd(this,oe.Fa(),!0)),0<z.count&&(a+=this.jy+Jd(this,z.Fa(),!0)),0<ce.count&&(a+=(y?this.Wv:this.Yv)+Jd(this,ce.Fa(),!0)),ce.clear(),oe.clear(),a},Ce.fp=function(a){(a.name!==void 0&&a.name!==this.name||a.dataFormat!==void 0&&a.dataFormat!==this.dataFormat||a.isReadOnly!==void 0&&a.isReadOnly!==this.isReadOnly||a.nodeKeyProperty!==void 0&&a.nodeKeyProperty!==this.nodeKeyProperty||a.copiesArrays!==void 0&&a.copiesArrays!==this.copiesArrays||a.copiesArrayObjects!==void 0&&a.copiesArrayObjects!==this.copiesArrayObjects||a.copiesKey!==void 0&&a.copiesKey!==this.copiesKey||a.nodeCategoryProperty!==void 0&&a.nodeCategoryProperty!==this.nodeCategoryProperty)&&pt("applyIncrementalJson cannot change Model properties"),TS(this,a);var y=a.insertedNodeKeys,E=a.modifiedNodeData,x=new zi;if(Array.isArray(E))for(var b=0;b<E.length;b++){var z=E[b],ee=this.wa(z);ee!=null&&x.set(ee,z)}if(Array.isArray(y))for(b=y.length,z=0;z<b;z++){ee=y[z];var re=this.hc(ee);re===null&&(re=(re=x.get(ee))?re:this.copyNodeData({}),this.km(re,ee),this.xf(re))}if(Array.isArray(E)){for(y=E.length,x=0;x<y;x++)if(b=E[x],z=this.wa(b),z=this.hc(z),z!==null){for(var oe in b)oe==="__gohashid"||oe===this.nodeKeyProperty||this.Wj()&&oe===this.nodeIsGroupProperty||this.setDataProperty(z,oe,b[oe]);this.lm(b,z)}}if(a=a.removedNodeKeys,Array.isArray(a))for(E=a.length,oe=0;oe<E;oe++)y=this.hc(a[oe]),y!==null&&this.cm(y)},Ce.$x=function(a,y){a.change!==ys&&pt("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var E=a.object;return a.isTransactionFinished&&E instanceof va?(y===void 0&&(y=Ap(this,this)),AS(this,E),a=this.Pv(E,a.propertyName==="FinishedUndo"),this.vh=null,y==="2"?'{ "incremental": 2'+a+"}":'{ "class": '+this.quote(y)+', "incremental": 1'+this.rm()+a+"}"):'{ "incremental": 0 }'},Ce.yA=function(a,y){return this.$x(a,y)},Ce.np=function(a){return a===void 0&&(a=Ap(this,this)),'{ "class": '+this.quote(a)+this.rm()+this.Rv()+"}"},Ce.toJSON=function(a){return this.np(a)},Ce.Zw=function(a){var y=null;if(typeof a=="string")try{y=Rn.JSON.parse(a)}catch(x){}else typeof a=="object"?y=a:pt("Unable to modify a Model from: "+a);var E=y.incremental;typeof E!="number"&&pt("Unable to apply non-incremental changes to Model: "+a),E!==0&&(this.Ea("applyIncrementalJson"),this.fp(y),this.eb("applyIncrementalJson"))},Ce.Ky=function(a){return this.Zw(a)},Di.constructGraphLinksModel=function(){return new Di},Ce=Di.prototype,Ce.dm=function(a){if(xn(a))for(var y=a.length,E=0;E<y;E++){var x=a[E];if(zt(x)){var b=E;x=this.dm(x),Array.isArray(a)?a[b]=x:pt("Cannot replace an object in an HTMLCollection or NodeList at "+b)}}else if(zt(a)){for(y in a)if(E=a[y],zt(E)&&(E=this.dm(E),a[y]=E,y==="points"&&Array.isArray(E))){for(b=E.length%2===0,x=0;x<E.length;x++)if(typeof E[x]!="number"){b=!1;break}if(b){for(b=new Fn,x=0;x<E.length/2;x++)b.add(new lt(E[2*x],E[2*x+1]));b.freeze(),a[y]=b}}return UE(a)}return a},Ce.sm=function(a){return a===void 0?"undefined":a===null?"null":a===!0?"true":a===!1?"false":typeof a=="string"?this.quote(a):typeof a=="number"?a===1/0?"9e9999":a===-1/0?"-9e9999":isNaN(a)?'{"class":"NaN"}':a.toString():a instanceof Date?'{"class":"Date", "value":"'+a.toJSON()+'"}':a instanceof Number?this.sm(a.valueOf()):xn(a)?Jd(this,a):zt(a)?hy(this,a):typeof a=="function"?"null":a.toString()};function Jd(a,y,E){E===void 0&&(E=!1);var x=y.length;if(0>=x)return"[]";var b=new Mi;b.add("["),E&&1<x&&b.add(`
`);for(var z=0;z<x;z++){var ee=y[z];ee!==void 0&&(0<z&&(b.add(","),E&&b.add(`
`)),b.add(a.sm(ee)))}return E&&1<x&&b.add(`
`),b.add("]"),b.toString()}function MS(a,y){return y===void 0||a==="__gohashid"||a[0]==="_"||typeof y=="function"}function Ys(a){return isNaN(a)?"NaN":a===1/0?"9e9999":a===-1/0?"-9e9999":a}function hy(a,y){var E=y;if(E instanceof lt)y={class:"go.Point",x:Ys(E.x),y:Ys(E.y)};else if(E instanceof ri)y={class:"go.Size",width:Ys(E.width),height:Ys(E.height)};else if(E instanceof hn)y={class:"go.Rect",x:Ys(E.x),y:Ys(E.y),width:Ys(E.width),height:Ys(E.height)};else if(E instanceof cr)y={class:"go.Margin",top:Ys(E.top),right:Ys(E.right),bottom:Ys(E.bottom),left:Ys(E.left)};else if(E instanceof Yt)E.sb()?y={class:"go.Spot",x:Ys(E.x),y:Ys(E.y),offsetX:Ys(E.offsetX),offsetY:Ys(E.offsetY)}:y={class:"go.Spot",enum:E.toString()};else if(E instanceof qr){if(y={class:"go.Brush",type:E.type.name},E.type===vd?y.color=E.color:(E.type===Xc||E.type===nu)&&(y.start=E.start,y.end=E.end,E.type===nu&&(E.startRadius!==0&&(y.startRadius=Ys(E.startRadius)),isNaN(E.endRadius)||(y.endRadius=Ys(E.endRadius)))),E.colorStops!==null){var x={};for(E=E.colorStops.iterator;E.next();)x[E.key]=E.value;y.colorStops=x}}else E instanceof Kn?(y={class:"go.Geometry",type:E.type.name},E.startX!==0&&(y.startX=Ys(E.startX)),E.startY!==0&&(y.startY=Ys(E.startY)),E.endX!==0&&(y.endX=Ys(E.endX)),E.endY!==0&&(y.endY=Ys(E.endY)),E.spot1.D(Ki)||(y.spot1=E.spot1),E.spot2.D(Wo)||(y.spot2=E.spot2),E.type===Kn.o&&(y.path=Kn.ia(E))):E instanceof en&&(y={class:"go.EnumValue",classType:Ap(a,E.classType),name:E.name});x="{",E=!0;for(var b in y){var z=ua(y,b);if(!MS(b,z))if(E?E=!1:x+=",",x+=a.quote(b)+":",b==="points"&&z instanceof Fn){var ee="[";for(z=z.iterator;z.next();){var re=z.value;1<ee.length&&(ee+=","),ee+=a.sm(re.x),ee+=",",ee+=a.sm(re.y)}ee+="]",x+=ee}else x+=a.sm(z)}return x+"}"}function Vs(a){return typeof a=="number"?a:a==="NaN"?NaN:a==="9e9999"?1/0:a==="-9e9999"?-1/0:parseFloat(a)}function UE(a){if(typeof a!="object")return a;var y=a.class||"";if(y==="NaN")return NaN;if(y==="Date")return new Date(a.value);if(y.indexOf("go.")!==0)return a;y=y.substr(3);var E=a;if(y==="Point")E=new lt(Vs(a.x),Vs(a.y));else if(y==="Size")E=new ri(Vs(a.width),Vs(a.height));else if(y==="Rect")E=new hn(Vs(a.x),Vs(a.y),Vs(a.width),Vs(a.height));else if(y==="Margin")E=new cr(Vs(a.top),Vs(a.right),Vs(a.bottom),Vs(a.left));else if(y==="Spot")typeof a.enum=="string"?E=hs(a.enum):E=new Yt(Vs(a.x),Vs(a.y),Vs(a.offsetX),Vs(a.offsetY));else if(y==="Brush"){if(E=new qr,E.type=gi(qr,a.type),typeof a.color=="string"&&(E.color=a.color),a.start instanceof Yt&&(E.start=a.start),a.end instanceof Yt&&(E.end=a.end),typeof a.startRadius=="number"&&(E.startRadius=Vs(a.startRadius)),typeof a.endRadius=="number"&&(E.endRadius=Vs(a.endRadius)),a=a.colorStops,zt(a))for(var x in a)E.addColorStop(parseFloat(x),a[x])}else y==="Geometry"?(E=null,typeof a.path=="string"?E=Kn.parse(a.path):E=new Kn,E.type=gi(Kn,a.type),typeof a.startX=="number"&&(E.startX=Vs(a.startX)),typeof a.startY=="number"&&(E.startY=Vs(a.startY)),typeof a.endX=="number"&&(E.endX=Vs(a.endX)),typeof a.endY=="number"&&(E.endY=Vs(a.endY)),a.spot1 instanceof Yt&&(E.spot1=a.spot1),a.spot2 instanceof Yt&&(E.spot2=a.spot2)):y==="EnumValue"&&(x=a.classType,x.indexOf("go.")===0&&(x=x.substr(3)),x=gy(x),typeof x=="function"&&(E=gi(x,a.name)));return E}Ce.Pe=function(a){return this.Lt.add(a),this},Ce.ik=function(a){this.Lt.remove(a)},Ce.ds=function(a){this.skipsUndoManager||this.undoManager.Tu(a);for(var y=this.Lt,E=y.length,x=0;x<E;x++)y.M(x)(a)},Ce.cb=function(a,y,E,x,b,z,ee){Ta(this,"",a,y,E,x,b,z,ee)},Ce.g=function(a,y,E,x,b){Ta(this,"",wo,a,this,y,E,x,b)},Ce.Fs=function(a,y,E,x,b,z){Ta(this,"",wo,y,a,E,x,b,z)};function Ta(a,y,E,x,b,z,ee,re,oe){re===void 0&&(re=null),oe===void 0&&(oe=null);var ce=new Oo;ce.model=a,ce.change=E,ce.modelChange=y,ce.propertyName=x,ce.object=b,ce.oldValue=z,ce.oldParam=re,ce.newValue=ee,ce.newParam=oe,a.ds(ce)}Di.prototype.changeState=function(a,y){if(a!==null&&a.model===this)if(a.change===wo){var E=a.object,x=a.propertyName,b=a.I(y);x===this.nodeKeyProperty&&this.lb(E)&&(y=a.I(!y),y!==void 0&&this.kb.remove(y),b!==void 0&&this.kb.add(b,E)),Ro(E,x,b)}else a.change===Xo?(E=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,zt(a)&&typeof E=="number"&&(x=this.wa(a),y?(this.Tc[E]===a&&_e(this.Tc,E),x!==void 0&&this.kb.remove(x)):(this.Tc[E]!==a&&nn(this.Tc,E,a),x!==void 0&&this.kb.add(x,a)))):a.modelChange===""?((x=a.object)&&!xn(x)&&a.propertyName&&(x=ua(a.object,a.propertyName)),xn(x)&&typeof E=="number"&&(a=a.newValue,y?_e(x,E):nn(x,E,a))):pt("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===$o?(E=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,zt(a)&&typeof E=="number"&&(x=this.wa(a),y?(this.Tc[E]!==a&&nn(this.Tc,E,a),x!==void 0&&this.kb.add(x,a)):(this.Tc[E]===a&&_e(this.Tc,E),x!==void 0&&this.kb.remove(x)))):a.modelChange===""?((x=a.object)&&!xn(x)&&a.propertyName&&(x=ua(a.object,a.propertyName)),xn(x)&&typeof E=="number"&&(a=a.oldValue,y?nn(x,E,a):_e(x,E))):pt("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==ys&&pt("unknown ChangedEvent: "+a.toString())},Di.prototype.Ea=function(a){return this.undoManager.Ea(a)},Di.prototype.eb=function(a){return this.undoManager.eb(a)},Di.prototype.Kf=function(){return this.undoManager.Kf()},Di.prototype.commit=function(a,y){y===void 0&&(y="");var E=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var x=!1;try{a(this),x=!0}finally{x?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=E}},Ce=Di.prototype,Ce.La=function(a,y){y===void 0&&(y=""),Ta(this,"SourceChanged",ys,y,a,null,null)},Ce.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=ua(a,y),y!==void 0)){if(qd(y))return y;pt("Key value for node data "+a+" is not a number or a string: "+y)}}},Ce.km=function(a,y){if(a!==null){var E=this.Th;if(E!=="")if(this.lb(a)){var x=ua(a,E);x!==y&&this.hc(y)===null&&(Ro(a,E,y),x!==void 0&&this.kb.remove(x),this.kb.add(y,a),Ta(this,"nodeKey",wo,E,a,x,y),typeof E=="string"&&this.La(a,E),this.jp(x,y))}else Ro(a,E,y)}};function qd(a){return typeof a=="number"||typeof a=="string"}Ce.lb=function(a){var y=this.wa(a);return y===void 0?!1:this.kb.I(y)===a},Ce.hc=function(a){return a===null&&pt("Model.findNodeDataForKey:key must not be null"),a!==void 0&&qd(a)?this.kb.I(a):null},Ce.$u=function(a){if(a!==null){var y=this.Th;if(y!==""){var E=this.wa(a);if(E===void 0||this.kb.contains(E)){var x=this.bl;if(x!==null&&(E=x(this,a),E!=null&&!this.kb.contains(E))){Ro(a,y,E);return}if(typeof E=="string"){for(x=2;this.kb.contains(E+x);)x++;Ro(a,y,E+x)}else if(E===void 0||typeof E=="number"){for(E=-this.kb.count-1;this.kb.contains(E);)E--;Ro(a,y,E)}}}}},Ce.xf=function(a){a!==null&&(Cr(a),this.lb(a)||PS(this,a,!0))};function PS(a,y,E){var x=a.wa(y);(x===void 0||a.kb.I(x)!==y)&&(a.$u(y),x=a.wa(y),x===void 0&&pt("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(x,y),x=null,E&&(x=a.Tc.length,nn(a.Tc,x,y)),Ta(a,"nodeDataArray",Xo,"nodeDataArray",a,null,y,null,x),a.fm(y),a.em(y))}Ce.Fy=function(a){if(xn(a))for(var y=a.length,E=0;E<y;E++)this.xf(a[E]);else for(a=a.iterator;a.next();)this.xf(a.value)},Ce.cm=function(a){a!==null&&LS(this,a,!0)};function LS(a,y,E){var x=a.wa(y);if(x!==void 0&&a.kb.remove(x),x=null,E){e:if(E=a.Tc,Array.isArray(E))x=E.indexOf(y);else{x=E.length;for(var b=0;b<x;b++)if(E[b]===y){x=b;break e}x=-1}if(0>x)return;_e(a.Tc,x)}Ta(a,"nodeDataArray",$o,"nodeDataArray",a,y,null,x,null),a.qp(y)}Ce.nA=function(a){if(xn(a))for(var y=a.length,E=0;E<y;E++)this.cm(a[E]);else for(a=a.iterator;a.next();)this.cm(a.value)},Ce.$z=function(a){if(a!==this.nodeDataArray&&xn(a)){var y=this.kl;y.clear(),y.addAll(this.kb.iteratorKeys);var E=this.il;E.clear();for(var x=a.length,b=0;b<x;b++){var z=a[b],ee=this.wa(z);if(ee!==void 0){E.add(ee);var re=this.hc(ee);re!==z&&(re!==null?(this.Do(re,z),this.lm(z,re)):(z=this.cloneDeep(z),this.km(z,ee),this.xf(z)))}else ee=this.cloneDeep(z),this.xf(ee),E.add(this.wa(ee))}for(a=y.iterator;a.next();)x=a.value,E.contains(x)||(x=this.hc(x))&&this.cm(x);y.clear(),E.clear()}},Ce.jp=function(a,y){y!==void 0&&(a=Tp(this,a),a instanceof In&&this.Vf.add(y,a))},Ce.Lv=function(){},Ce.fm=function(){},Ce.em=function(){},Ce.qp=function(){};function Ju(a,y,E){if(y!==void 0){var x=a.Vf.I(y);x===null&&(x=new In,a.Vf.add(y,x)),x.add(E)}}function qu(a,y,E){if(y!==void 0){var x=a.Vf.I(y);x instanceof In&&(E==null?a.Vf.remove(y):(x.remove(E),x.count===0&&a.Vf.remove(y)))}}function Tp(a,y){return y===void 0?null:(a=a.Vf.I(y),a instanceof In?a:null)}Ce.Qy=function(a){a===void 0?this.Vf.clear():this.Vf.remove(a)},Di.prototype.copyNodeData=function(a){if(a===null)return null;var y=this.Bk;return a=y!==null?y(a,this):g0(this,a,!0),zt(a)&&wr(a),a};function g0(a,y,E){if(a.copiesArrays&&Array.isArray(y)){var x=[];for(E=0;E<y.length;E++){var b=g0(a,y[E],a.copiesArrayObjects);x.push(b)}return wr(x),x}if(E&&zt(y)){E=(E=y.constructor)?new E:{},b=a.copiesKey||typeof a.nodeKeyProperty!="string"?null:a.nodeKeyProperty;for(x in y)if(x==="__gohashid")E.__gohashid=void 0;else if(x===b)E[b]=void 0;else{var z=ua(y,x),ee=Ap(a,z);ee==="GraphObject"||ee==="Diagram"||ee==="Layer"||ee==="RowColumnDefinition"||ee==="AnimationManager"||ee==="Tool"||ee==="CommandHandler"||ee==="Layout"||ee==="InputEvent"||ee==="DiagramEvent"||z instanceof Di||z instanceof ho||z instanceof va||z instanceof Oo||(z=g0(a,z,!1)),Ro(E,x,z)}return wr(E),E}return y instanceof lt||y instanceof ri||y instanceof hn||y instanceof Yt||y instanceof cr?y.copy():y}Di.prototype.setDataProperty=function(a,y,E){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,E);return}if(y===this.nodeCategoryProperty){this.jm(a,E);return}}else!IS&&a instanceof Dt&&(IS=!0,Ti('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),Ti(" Is that really your intent?"));var x=ua(a,y);x!==E&&(Ro(a,y,E),this.Fs(a,y,x,E))},Ce=Di.prototype,Ce.set=function(a,y,E){this.setDataProperty(a,y,E)},Ce.Do=function(a,y){if(y){var E=this.lb(a),x;for(x in y)x==="__gohashid"||E&&x===this.nodeKeyProperty||this.setDataProperty(a,x,y[x])}},Ce.Ay=function(a,y){this.ts(a,-1,y)},Ce.ts=function(a,y,E){0>y&&(y=a.length),nn(a,y,E),Ta(this,"",Xo,"",a,null,E,null,y)},Ce.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&pt("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var E=a[y];_e(a,y),Ta(this,"",$o,"",a,E,null,y,null)},Ce.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=ua(a,y),y===void 0))return"";if(typeof y=="string")return y;pt("getCategoryForNodeData found a non-string category for "+a+": "+y)},Ce.jm=function(a,y){if(a!==null){var E=this.lj;if(E!=="")if(this.lb(a)){var x=ua(a,E);x===void 0&&(x=""),x!==y&&(Ro(a,E,y),Ta(this,"nodeCategory",wo,E,a,x,y))}else Ro(a,E,y)}},Ce.lm=function(a,y){this.jm(y,this.Ro(a))},Ce.Tl=function(){return!1},Ce.Wj=function(){return!1},Ce.ri=function(){return!1},Ce.xs=function(){return!1},Ce.Xj=function(){return!1};function fy(){return new Di}function Ap(a,y){if(typeof y=="function"){if(y.className)return y.className;if(y.name)return y.name}else if(typeof y=="object"&&y!==null&&y.constructor)return Ap(a,y.constructor);return typeof y}function gy(a){return Fu[a]?Fu[a]:Rn.go!==void 0&&Rn.go[a]?Rn.go[a]:null}function ua(a,y){if(!a||!y)return null;try{if(typeof y=="function")var E=y(a);else typeof a.getAttribute=="function"?(E=a.getAttribute(y),E===null&&(E=void 0)):E=a[y]}catch(x){}return E}function Ro(a,y,E){if(a&&y)try{typeof y=="function"?y(a,E):typeof a.setAttribute=="function"?a.setAttribute(y,E):a[y]=E}catch(x){}}It.Object.defineProperties(Di.prototype,{name:{get:function(){return this.xa},set:function(a){var y=this.xa;y!==a&&(this.xa=a,this.g("name",y,a))}},dataFormat:{get:function(){return this.Sm},set:function(a){var y=this.Sm;y!==a&&(this.Sm=a,this.g("dataFormat",y,a))}},isReadOnly:{get:function(){return this.Gg},set:function(a){var y=this.Gg;y!==a&&(this.Gg=a,this.g("isReadOnly",y,a))}},modelData:{get:function(){return this.j},set:function(a){var y=this.j;y!==a&&(this.j=a,this.g("modelData",y,a),this.La(a))}},undoManager:{get:function(){return this.o},set:function(a){var y=this.o;y!==a&&(y!==null&&y.Rx(this),this.o=a,a!==null&&a.Xw(this))}},skipsUndoManager:{get:function(){return this.Wg},set:function(a){this.Wg=a}},nodeKeyProperty:{get:function(){return this.Th},set:function(a){var y=this.Th;y!==a&&(a===""&&pt("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&pt("Cannot set Model.nodeKeyProperty when there is existing node data"),this.Th=a,this.g("nodeKeyProperty",y,a))}},makeUniqueKeyFunction:{get:function(){return this.bl},set:function(a){var y=this.bl;y!==a&&(this.bl=a,this.g("makeUniqueKeyFunction",y,a))}},nodeDataArray:{get:function(){return this.Tc},set:function(a){var y=this.Tc;if(y!==a){this.kb.clear(),this.Lv();for(var E=a.length,x=0;x<E;x++){var b=a[x];zt(b)||pt("Model.nodeDataArray must only contain Objects, not: "+b),Cr(b)}for(this.Tc=a,x=new Fn,b=0;b<E;b++){var z=a[b],ee=this.wa(z);ee===void 0||this.kb.I(ee)!==null?x.add(z):this.kb.add(ee,z)}for(x=x.iterator;x.next();)b=x.value,this.$u(b),z=this.wa(b),z!==void 0&&this.kb.add(z,b);for(Ta(this,"nodeDataArray",wo,"nodeDataArray",this,y,a),y=0;y<E;y++)x=a[y],this.fm(x),this.em(x);Array.isArray(a)||(this.isReadOnly=!0)}}},copyNodeDataFunction:{get:function(){return this.Bk},set:function(a){var y=this.Bk;y!==a&&(this.Bk=a,this.g("copyNodeDataFunction",y,a))}},copiesArrays:{get:function(){return this.Km},set:function(a){var y=this.Km;y!==a&&(this.Km=a,this.g("copiesArrays",y,a))}},copiesArrayObjects:{get:function(){return this.Jm},set:function(a){var y=this.Jm;y!==a&&(this.Jm=a,this.g("copiesArrayObjects",y,a))}},copiesKey:{get:function(){return this.Mm},set:function(a){var y=this.Mm;y!==a&&(this.Mm=a,this.g("copiesKey",y,a))}},afterCopyFunction:{get:function(){return this.xm},set:function(a){var y=this.xm;y!==a&&(this.xm=a,this.g("afterCopyFunction",y,a))}},nodeCategoryProperty:{get:function(){return this.lj},set:function(a){var y=this.lj;y!==a&&(this.lj=a,this.g("nodeCategoryProperty",y,a))}},type:{get:function(){return"Model"}}}),Di.prototype.setCategoryForNodeData=Di.prototype.jm,Di.prototype.getCategoryForNodeData=Di.prototype.Ro,Di.prototype.removeArrayItem=Di.prototype.ov,Di.prototype.insertArrayItem=Di.prototype.ts,Di.prototype.addArrayItem=Di.prototype.Ay,Di.prototype.assignAllDataProperties=Di.prototype.Do,Di.prototype.set=Di.prototype.set,Di.prototype.clearUnresolvedReferences=Di.prototype.Qy,Di.prototype.mergeNodeDataArray=Di.prototype.$z,Di.prototype.removeNodeDataCollection=Di.prototype.nA,Di.prototype.removeNodeData=Di.prototype.cm,Di.prototype.addNodeDataCollection=Di.prototype.Fy,Di.prototype.addNodeData=Di.prototype.xf,Di.prototype.makeNodeDataKeyUnique=Di.prototype.$u,Di.prototype.findNodeDataForKey=Di.prototype.hc,Di.prototype.containsNodeData=Di.prototype.lb,Di.prototype.setKeyForNodeData=Di.prototype.km,Di.prototype.getKeyForNodeData=Di.prototype.wa,Di.prototype.updateTargetBindings=Di.prototype.La,Di.prototype.commit=Di.prototype.commit,Di.prototype.rollbackTransaction=Di.prototype.Kf,Di.prototype.commitTransaction=Di.prototype.eb,Di.prototype.startTransaction=Di.prototype.Ea,Di.prototype.raiseDataChanged=Di.prototype.Fs,Di.prototype.raiseChanged=Di.prototype.g,Di.prototype.raiseChangedEvent=Di.prototype.cb,Di.prototype.removeChangedListener=Di.prototype.ik,Di.prototype.addChangedListener=Di.prototype.Pe,Di.prototype.writeJsonValue=Di.prototype.sm,Di.prototype.replaceJsonObjects=Di.prototype.dm,Di.prototype.applyIncrementalJSON=Di.prototype.Ky,Di.prototype.applyIncrementalJson=Di.prototype.Zw,Di.prototype.toJSON=Di.prototype.toJSON,Di.prototype.toJson=Di.prototype.np,Di.prototype.toIncrementalJSON=Di.prototype.yA,Di.prototype.toIncrementalJson=Di.prototype.$x,Di.prototype.toIncrementalData=Di.prototype.xA,Di.prototype.clear=Di.prototype.clear;var IS=!1,Fu={};Di.className="Model",Di.fromJSON=Di.fromJson=function(a,y){y===void 0&&(y=null);var E=null;if(typeof a=="string")try{E=Rn.JSON.parse(a)}catch(z){}else typeof a=="object"?E=a:pt("Unable to construct a Model from: "+a);if(y===null){a=null;var x=E.class;if(typeof x=="string")try{var b=null;x.indexOf("go.")===0?(x=x.substr(3),b=gy(x)):(b=gy(x),b===null&&(b=Rn[x])),typeof b=="function"&&(a=new b)}catch(z){}a===null||a instanceof Di?y=a:pt("Unable to construct a Model of declared class: "+E.class)}return y===null&&(y=Di.constructGraphLinksModel()),y.gp(E),y.kv(E),y},Di.safePropertyValue=ua,Di.safePropertySet=Ro,Fu.Brush=qr,Fu.ChangedEvent=Oo,Fu.Geometry=Kn,Fu.Margin=cr,Fu.Panel=Vn,Fu.Point=lt,Fu.Rect=hn,Fu.Size=ri,Fu.Spot=Yt,Fu.Transaction=va,Fu.UndoManager=ho;function ha(a,y,E,x){wr(this),this._isFrozen=!1,a===void 0&&(a=""),y===void 0&&(y=a),E===void 0&&(E=null),this.j=-1,this.xd=null,this.xl=a,this.wl=this.to=0,this.Cr=null,this.wn=!1,this.sl=y,this.Im=E,x===void 0?(this.el=DS,this.wk=null):(this.el=Cp,this.wk=x),this.st=new In}ha.prototype.copy=function(){var a=new ha;return a.xl=this.xl,a.to=this.to,a.wl=this.wl,a.Cr=this.Cr,a.wn=this.wn,a.sl=this.sl,a.Im=this.Im,a.el=this.el,a.wk=this.wk,a},Ce=ha.prototype,Ce.qb=function(a){a.classType===ha&&(this.mode=a)},Ce.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},Ce.freeze=function(){return this._isFrozen=!0,this},Ce.ka=function(){return this._isFrozen=!1,this},Ce.Kx=function(a){return a===void 0&&(a=null),this.mode=Cp,this.backConverter=a,this},Ce.cp=function(a){return a===void 0&&(a=""),this.sourceName=a,this.isToModel=!1,this},Ce.dA=function(){return this.sourceName=null,this.isToModel=!0,this};function kS(a,y,E){return a=a.sourceName,a===null||a===""?y:a==="/"?E.part:a==="."?E:a===".."?E.panel:y.fb(a)}Ce.Mv=function(a,y,E){var x=this.sl;if(E===void 0||x===""||x===E){E=this.xl;var b=this.Im;if(b===null&&E==="")Ti("Binding error: target property is the empty string: "+this.toString());else{var z=y;if(x!==""&&(z=ua(y,x)),z!==void 0)if(b===null)E!==""&&Ro(a,E,z);else try{if(E!==""){var ee=b(z,a);Ro(a,E,ee)}else b(z,a)}catch(re){}}}},Ce.sp=function(a,y,E,x){if(this.el===Cp){var b=this.xl;if(E===void 0||b===E){E=this.sl;var z=this.wk,ee=a;if(b!==""&&(ee=ua(a,b)),ee!==void 0&&!this.st.contains(a))try{this.st.add(a);var re=x!==null?x.diagram:null,oe=re!==null?re.model:null;if(z===null){if(E!=="")oe!==null?oe.setDataProperty(y,E,ee):Ro(y,E,ee);else if(oe!==null&&x!==null&&0<=x.itemIndex&&x.panel!==null&&Array.isArray(x.panel.itemArray)){var ce=x.itemIndex,he=x.panel.itemArray;oe.ov(he,ce),oe.ts(he,ce,ee)}}else try{if(E!==""){var ye=z(ee,y,oe);oe!==null?oe.setDataProperty(y,E,ye):Ro(y,E,ye)}else{var Te=z(ee,y,oe);if(Te!==void 0&&oe!==null&&x!==null&&0<=x.itemIndex&&x.panel!==null&&Array.isArray(x.panel.itemArray)){var Ae=x.itemIndex,ke=x.panel.itemArray;oe.ov(ke,Ae),oe.ts(ke,Ae,Te)}}}catch(He){}}finally{this.st.remove(a)}}}},It.Object.defineProperties(ha.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&yn(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&yn(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&yn(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&yn(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&yn(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&yn(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&yn(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&yn(this),this.el=a}}}),ha.prototype.updateSource=ha.prototype.sp,ha.prototype.updateTarget=ha.prototype.Mv,ha.prototype.ofModel=ha.prototype.dA,ha.prototype.ofObject=ha.prototype.cp,ha.prototype.makeTwoWay=ha.prototype.Kx;var HE="Binding",DS=new en(ha,"OneWay",1),Cp=new en(ha,"TwoWay",2);ha.className="Binding",ha.parseEnum=function(a,y){return function(E){return E=gi(a,E),E===null?y:E}},ha.toString=Yi,ha.OneWay=DS,ha.TwoWay=Cp;function Dr(a,y,E){Di.call(this),this.Vv=`,
"insertedLinkKeys": `,this.iy=`,
"modifiedLinkData": `,this.Xv=`,
"removedLinkKeys": `,this.md=[],this.$f=new In,this.wb=new zi,this.Jh="",this.Ri=this.Ak=this.cl=null,this.lf="from",this.mf="to",this.fj=this.ej="",this.dj="category",this.je="",this.jl="isGroup",this.Je="group",this.Lm=!1,y!==void 0&&(this.linkDataArray=y),a!==void 0&&(xn(a)?this.nodeDataArray=a:E=a),E&&(Object.assign(this,E),a=E.Changed)&&(delete this.Changed,this.Pe(a))}Ut(Dr,Di),Dr.constructGraphLinksModel=Di.constructGraphLinksModel,Dr.prototype.cloneProtected=function(a){Di.prototype.cloneProtected.call(this,a),a.Jh=this.Jh,a.cl=this.cl,a.Ak=this.Ak,a.lf=this.lf,a.mf=this.mf,a.ej=this.ej,a.fj=this.fj,a.dj=this.dj,a.je=this.je,a.jl=this.jl,a.Je=this.Je,a.Lm=this.Lm},Ce=Dr.prototype,Ce.clear=function(){Di.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},Ce.toString=function(a){if(a===void 0&&(a=0),2<=a)return this.np();var y=(this.name!==""?this.name:"")+" GraphLinksModel";if(0<a){y+=`
node data:`,a=this.nodeDataArray;var E=a.length,x;for(x=0;x<E;x++){var b=a[x];y+=" "+this.wa(b)+":"+Yi(b)}for(y+=`
link data:`,a=this.linkDataArray,E=a.length,x=0;x<E;x++)b=a[x],y+=" "+Yl(this,b,!0)+"-->"+Yl(this,b,!1)}return y},Ce.Qv=function(a,y){this.linkKeyProperty===""&&pt("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var E=Di.prototype.Qv.call(this,a,y),x=this,b=new In,z=new In,ee=new In,re=this.vh;a.changes.each(function(he){he.model===x&&(he.modelChange==="linkDataArray"?he.change===Xo?b.add(he.newValue):he.change===$o&&ee.add(he.oldValue):x.Jc(he.object)?z.add(he.object):he.object!==null&&(he.object!==null&&re&&re.contains(he.object)?re.get(he.object).each(function(ye){x.Jc(ye)&&z.add(ye)}):he.object instanceof Di||x.lb(he.object)||OS(x,he.object).each(function(ye){z.add(ye)})))});var oe=this.il;oe.clear(),b.each(function(he){oe.add(x.Ac(he)),y||z.add(he)});var ce=this.kl;return ce.clear(),ee.each(function(he){ce.add(x.Ac(he)),y&&z.add(he)}),a=x.cloneDeep(z.Fa()),0<oe.count&&(E===null&&(E={}),y?E.removedLinkKeys=oe.Fa():E.insertedLinkKeys=oe.Fa()),0<a.length&&(E===null&&(E={}),E.modifiedLinkData=a),0<ce.count&&(E===null&&(E={}),y?E.insertedLinkKeys=ce.Fa():E.removedLinkKeys=ce.Fa()),ce.clear(),oe.clear(),E},Ce.rm=function(){var a=Di.prototype.rm.call(this),y="";return this.linkCategoryProperty!=="category"&&typeof this.linkCategoryProperty=="string"&&(y+=`,
"linkCategoryProperty": `+this.quote(this.linkCategoryProperty)),this.linkKeyProperty!==""&&typeof this.linkKeyProperty=="string"&&(y+=`,
"linkKeyProperty": `+this.quote(this.linkKeyProperty)),this.linkFromKeyProperty!=="from"&&typeof this.linkFromKeyProperty=="string"&&(y+=`,
"linkFromKeyProperty": `+this.quote(this.linkFromKeyProperty)),this.linkToKeyProperty!=="to"&&typeof this.linkToKeyProperty=="string"&&(y+=`,
"linkToKeyProperty": `+this.quote(this.linkToKeyProperty)),this.linkFromPortIdProperty!==""&&typeof this.linkFromPortIdProperty=="string"&&(y+=`,
"linkFromPortIdProperty": `+this.quote(this.linkFromPortIdProperty)),this.linkToPortIdProperty!==""&&typeof this.linkToPortIdProperty=="string"&&(y+=`,
"linkToPortIdProperty": `+this.quote(this.linkToPortIdProperty)),this.linkLabelKeysProperty!==""&&typeof this.linkLabelKeysProperty=="string"&&(y+=`,
"linkLabelKeysProperty": `+this.quote(this.linkLabelKeysProperty)),this.nodeIsGroupProperty!=="isGroup"&&typeof this.nodeIsGroupProperty=="string"&&(y+=`,
"nodeIsGroupProperty": `+this.quote(this.nodeIsGroupProperty)),this.nodeGroupKeyProperty!=="group"&&typeof this.nodeGroupKeyProperty=="string"&&(y+=`,
"nodeGroupKeyProperty": `+this.quote(this.nodeGroupKeyProperty)),a+y},Ce.gp=function(a){Di.prototype.gp.call(this,a),a.linkKeyProperty&&(this.linkKeyProperty=a.linkKeyProperty),a.linkFromKeyProperty&&(this.linkFromKeyProperty=a.linkFromKeyProperty),a.linkToKeyProperty&&(this.linkToKeyProperty=a.linkToKeyProperty),a.linkFromPortIdProperty&&(this.linkFromPortIdProperty=a.linkFromPortIdProperty),a.linkToPortIdProperty&&(this.linkToPortIdProperty=a.linkToPortIdProperty),a.linkCategoryProperty&&(this.linkCategoryProperty=a.linkCategoryProperty),a.linkLabelKeysProperty&&(this.linkLabelKeysProperty=a.linkLabelKeysProperty),a.nodeIsGroupProperty&&(this.nodeIsGroupProperty=a.nodeIsGroupProperty),a.nodeGroupKeyProperty&&(this.nodeGroupKeyProperty=a.nodeGroupKeyProperty)},Ce.Rv=function(){var a=Di.prototype.Rv.call(this),y=`,
"linkDataArray": `+Jd(this,this.linkDataArray,!0);return a+y},Ce.kv=function(a){Di.prototype.kv.call(this,a),a=a.linkDataArray,Array.isArray(a)&&(this.dm(a),this.linkDataArray=a)};function OS(a,y){for(var E=new In,x=0;x<a.linkDataArray.length;x++){var b=a.linkDataArray[x];f0(a,y,b,b,E)}return E}Ce.Pv=function(a,y){this.linkKeyProperty===""&&pt("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var E=Di.prototype.Pv.call(this,a,y),x=this,b=new In,z=new In,ee=new In,re=this.vh;a.changes.each(function(he){he.model===x&&(he.modelChange==="linkDataArray"?he.change===Xo?b.add(he.newValue):he.change===$o&&ee.add(he.oldValue):x.Jc(he.object)?z.add(he.object):he.object!==null&&(he.object!==null&&re&&re.contains(he.object)?re.get(he.object).each(function(ye){x.Jc(ye)&&z.add(ye)}):he.object instanceof Di||x.lb(he.object)||OS(x,he.object).each(function(ye){z.add(ye)})))});var oe=this.il;oe.clear(),b.each(function(he){oe.add(x.Ac(he)),y||z.add(he)});var ce=this.kl;return ce.clear(),ee.each(function(he){ce.add(x.Ac(he)),y&&z.add(he)}),a=E,0<oe.count&&(a+=(y?this.Xv:this.Vv)+Jd(this,oe.Fa(),!0)),0<z.count&&(a+=this.iy+Jd(this,z.Fa(),!0)),0<ce.count&&(a+=(y?this.Vv:this.Xv)+Jd(this,ce.Fa(),!0)),ce.clear(),oe.clear(),a},Ce.fp=function(a){(a.linkCategoryProperty!==void 0&&a.linkCategoryProperty!==this.linkCategoryProperty||a.linkKeyProperty!==void 0&&a.linkKeyProperty!==this.linkKeyProperty||a.linkFromKeyProperty!==void 0&&a.linkFromKeyProperty!==this.linkFromKeyProperty||a.linkToKeyProperty!==void 0&&a.linkToKeyProperty!==this.linkToKeyProperty||a.linkFromPortIdProperty!==void 0&&a.linkFromPortIdProperty!==this.linkFromPortIdProperty||a.linkToPortIdProperty!==void 0&&a.linkToPortIdProperty!==this.linkToPortIdProperty||a.linkLabelKeysProperty!==void 0&&a.linkLabelKeysProperty!==this.linkLabelKeysProperty||a.nodeIsGroupProperty!==void 0&&a.nodeIsGroupProperty!==this.nodeIsGroupProperty||a.nodeGroupKeyProperty!==void 0&&a.nodeGroupKeyProperty!==this.nodeGroupKeyProperty)&&pt("applyIncrementalJson cannot change Model properties"),Di.prototype.fp.call(this,a);var y=a.insertedLinkKeys;if(Array.isArray(y))for(var E=y.length,x=0;x<E;x++){var b=y[x],z=this.jh(b);z===null&&(z=this.Jo({}),this.Ks(z,b),this.fi(z))}if(y=a.modifiedLinkData,Array.isArray(y)){for(E=y.length,x=0;x<E;x++)if(b=y[x],z=this.Ac(b),z=this.jh(z),z!==null){for(var ee in b)ee!=="__gohashid"&&ee!==this.linkKeyProperty&&this.setDataProperty(z,ee,b[ee]);BS(this,b,z)}}if(a=a.removedLinkKeys,Array.isArray(a))for(ee=a.length,y=0;y<ee;y++)E=this.jh(a[y]),E!==null&&this.bm(E)},Dr.prototype.changeState=function(a,y){if(a!==null&&a.model===this){if(a.change===wo){var E=a.object,x=a.propertyName;if(x===this.linkKeyProperty&&this.Jc(E)){var b=a.I(y);y=a.I(!y),y!==void 0&&this.wb.remove(y),b!==void 0&&this.wb.add(b,E),Ro(E,x,b);return}}else if(a.change===Xo){if(E=a.newParam,a.modelChange==="linkDataArray"){a=a.newValue,zt(a)&&typeof E=="number"&&(x=this.Ac(a),y?(this.$f.remove(a),this.md[E]===a&&this.md.splice(E,1),x!==void 0&&this.wb.remove(x)):(this.$f.add(a),this.md[E]!==a&&this.md.splice(E,0,a),x!==void 0&&this.wb.add(x,a)));return}if(a.modelChange==="linkLabelKeys"){x=this.Ef(a.object),Array.isArray(x)&&typeof E=="number"&&(y?(E=x.indexOf(a.newValue),0<=E&&x.splice(E,1)):0>x.indexOf(a.newValue)&&x.splice(E,0,a.newValue));return}}else if(a.change===$o){if(E=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,zt(a)&&typeof E=="number"&&(x=this.Ac(a),y?(this.$f.add(a),this.md[E]!==a&&this.md.splice(E,0,a),x!==void 0&&this.wb.add(x,a)):(this.$f.remove(a),this.md[E]===a&&this.md.splice(E,1),x!==void 0&&this.wb.remove(x)));return}if(a.modelChange==="linkLabelKeys"){x=this.Ef(a.object),Array.isArray(x)&&typeof E=="number"&&(y?0>x.indexOf(a.newValue)&&x.splice(E,0,a.newValue):(E=x.indexOf(a.newValue),0<=E&&x.splice(E,1)));return}}Di.prototype.changeState.call(this,a,y)}},Ce=Dr.prototype,Ce.Vl=function(a){if(a!==void 0){var y=this.Ri;if(y!==null){var E=this.hc(a);E===null&&(E=this.copyNodeData(y),Ro(E,this.nodeKeyProperty,a),this.xf(E))}return a}},Ce.yx=function(a){return Yl(this,a,!0)},Ce.wv=function(a,y){sg(this,a,y,!0)},Ce.Bx=function(a){return Yl(this,a,!1)},Ce.Bv=function(a,y){sg(this,a,y,!1)};function Yl(a,y,E){if(y!==null&&(a=E?a.lf:a.mf,a!==""&&(a=ua(y,a),a!==void 0))){if(qd(a))return a;pt((E?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function sg(a,y,E,x){if(E===null&&(E=void 0),y!==null){var b=x?a.lf:a.mf;if(b!=="")if(E=a.Vl(E),a.Jc(y)){var z=ua(y,b);z!==E&&(qu(a,z,y),Ro(y,b,E),a.hc(E)===null&&Ju(a,E,y),Ta(a,x?"linkFromKey":"linkToKey",wo,b,y,z,E),typeof b=="string"&&a.La(y,b))}else Ro(y,b,E)}}Ce.zx=function(a){return p0(this,a,!0)},Ce.xv=function(a,y){lg(this,a,y,!0)},Ce.Cx=function(a){return p0(this,a,!1)},Ce.Cv=function(a,y){lg(this,a,y,!1)};function p0(a,y,E){return y===null||(a=E?a.ej:a.fj,a==="")?"":(y=ua(y,a),y===void 0?"":y)}function lg(a,y,E,x){if(y!==null){var b=x?a.ej:a.fj;if(b!=="")if(a.Jc(y)){var z=ua(y,b);z===void 0&&(z=""),z!==E&&(Ro(y,b,E),Ta(a,x?"linkFromPortId":"linkToPortId",wo,b,y,z,E),typeof b=="string"&&a.La(y,b))}else Ro(y,b,E)}}Ce.Ef=function(a){if(a===null)return m0;var y=this.je;return y===""?m0:(a=ua(a,y),a===void 0?m0:a)},Ce.Ls=function(a,y){if(a!==null){var E=this.je;if(E!=="")if(this.Jc(a)){var x=ua(a,E);if(x===void 0&&(x=m0),x!==y){if(Array.isArray(x))for(var b=x.length,z=0;z<b;z++)qu(this,x[z],a);for(Ro(a,E,y),b=y.length,z=0;z<b;z++){var ee=y[z];this.hc(ee)===null&&Ju(this,ee,a)}Ta(this,"linkLabelKeys",wo,E,a,x,y),typeof E=="string"&&this.La(a,E)}}else Ro(a,E,y)}},Ce.Bu=function(a,y){if(y!=null&&a!==null){var E=this.je;if(E!==""){var x=ua(a,E);if(x===void 0)E=[],E.push(y),this.Ls(a,E);else if(Array.isArray(x)){var b=x.indexOf(y);0<=b||(b=x.length,x.push(y),this.Jc(a)&&(this.hc(y)===null&&Ju(this,y,a),Ta(this,"linkLabelKeys",Xo,E,a,null,y,null,b)))}else pt(E+" property is not an Array; cannot addLabelKeyForLinkData: "+a)}}},Ce.Qx=function(a,y){if(y!=null&&a!==null){var E=this.je;if(E!==""){var x=ua(a,E);if(Array.isArray(x)){var b=x.indexOf(y);0>b||(x.splice(b,1),this.Jc(a)&&(qu(this,y,a),Ta(this,"linkLabelKeys",$o,E,a,y,null,b,null)))}else x!==void 0&&pt(E+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},Ce.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=ua(a,y),y!==void 0)){if(qd(y))return y;pt("Key value for link data "+a+" is not a number or a string: "+y)}}},Ce.Ks=function(a,y){if(a!==null){var E=this.Jh;if(E!=="")if(this.Jc(a)){var x=ua(a,E);x!==y&&this.jh(y)===null&&(Ro(a,E,y),x!==void 0&&this.wb.remove(x),this.wb.add(y,a),Ta(this,"linkKey",wo,E,a,x,y),typeof E=="string"&&this.La(a,E))}else Ro(a,E,y)}},Ce.jh=function(a){return a===null&&pt("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&qd(a)?this.wb.I(a):null},Ce.Bs=function(a){if(a!==null){var y=this.Jh;if(y!==""){var E=this.Ac(a);if(E===void 0||this.wb.contains(E)){var x=this.cl;if(x!==null&&(E=x(this,a),E!=null&&!this.wb.contains(E))){Ro(a,y,E);return}if(typeof E=="string"){for(x=2;this.wb.contains(E+x);)x++;Ro(a,y,E+x)}else if(E===void 0||typeof E=="number"){for(E=-this.wb.count-1;this.wb.contains(E);)E--;Ro(a,y,E)}}}}},Ce.Jc=function(a){return a===null?!1:this.$f.contains(a)},Ce.fi=function(a){a!==null&&(Cr(a),this.Jc(a)||RS(this,a,!0))};function RS(a,y,E){if(a.linkKeyProperty!==""){var x=a.Ac(y);if(x!==void 0&&a.wb.I(x)===y)return;a.Bs(y),x=a.Ac(y),x===void 0&&pt("GraphLinksModel.makeLinkDataKeyUnique failed on "+y+". Data not added to model."),a.wb.add(x,y)}a.$f.add(y),x=null,E&&(x=a.md.length,a.md.splice(x,0,y)),Ta(a,"linkDataArray",Xo,"linkDataArray",a,null,y,null,x),py(a,y)}Ce.Ey=function(a){if(Array.isArray(a))for(var y=a.length,E=0;E<y;E++)this.fi(a[E]);else for(a=a.iterator;a.next();)this.fi(a.value)},Ce.bm=function(a){a!==null&&FS(this,a,!0)};function FS(a,y,E){a.$f.remove(y);var x=a.Ac(y);if(x!==void 0&&a.wb.remove(x),x=null,E){if(x=a.md.indexOf(y),0>x)return;a.md.splice(x,1)}if(Ta(a,"linkDataArray",$o,"linkDataArray",a,y,null,x,null),E=Yl(a,y,!0),qu(a,E,y),E=Yl(a,y,!1),qu(a,E,y),x=a.Ef(y),Array.isArray(x))for(var b=x.length,z=0;z<b;z++)E=x[z],qu(a,E,y)}Ce.lA=function(a){if(Array.isArray(a))for(var y=a.length,E=0;E<y;E++)this.bm(a[E]);else for(a=a.iterator;a.next();)this.bm(a.value)},Ce.Zz=function(a){if(this.linkKeyProperty===""&&pt("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&xn(a)){var y=this.kl;y.clear(),y.addAll(this.wb.iteratorKeys);var E=this.il;E.clear();for(var x=a.length,b=0;b<x;b++){var z=a[b],ee=this.Ac(z);if(ee!==void 0){E.add(ee);var re=this.jh(ee);re!==z&&(re!==null?(this.Do(re,z),BS(this,z,re)):(z=this.cloneDeep(z),this.Ks(z,ee),this.fi(z)))}else ee=this.cloneDeep(z),this.fi(ee),E.add(this.Ac(ee))}for(a=y.iterator;a.next();)x=a.value,E.contains(x)||(x=this.jh(x))&&this.bm(x);y.clear(),E.clear()}};function py(a,y){var E=Yl(a,y,!0);E=a.Vl(E),a.hc(E)===null&&Ju(a,E,y),E=Yl(a,y,!1),E=a.Vl(E),a.hc(E)===null&&Ju(a,E,y);var x=a.Ef(y);if(Array.isArray(x))for(var b=x.length,z=0;z<b;z++)E=x[z],a.hc(E)===null&&Ju(a,E,y)}Ce.Jo=function(a){if(a===null)return null;var y=this.Ak;return a=y!==null?y(a,this):g0(this,a,!0),zt(a)&&(wr(a),this.lf!==""&&Ro(a,this.lf,void 0),this.mf!==""&&Ro(a,this.mf,void 0),this.je!==""&&Ro(a,this.je,[])),a},Ce.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!ua(a,y)},Ce.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=ua(a,y),y!==void 0)){if(qd(y))return y;pt("GroupKey value for node data "+a+" is not a number or a string: "+y)}}},Ce.mp=function(a,y){if(y===null&&(y=void 0),a!==null){var E=this.Je;if(E!=="")if(this.lb(a)){var x=ua(a,E);x!==y&&(qu(this,x,a),Ro(a,E,y),this.hc(y)===null&&Ju(this,y,a),Ta(this,"nodeGroupKey",wo,E,a,x,y),typeof E=="string"&&this.La(a,E))}else Ro(a,E,y)}},Dr.prototype.copyNodeData=function(a){return a===null?null:(a=Di.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||ua(a,this.Je)===void 0||Ro(a,this.Je,void 0),a)},Dr.prototype.setDataProperty=function(a,y,E){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,E);return}if(y===this.nodeCategoryProperty){this.jm(a,E);return}if(y===this.nodeGroupKeyProperty){this.mp(a,E);return}}else if(this.Jc(a)){if(y===this.linkFromKeyProperty){sg(this,a,E,!0);return}if(y===this.linkToKeyProperty){sg(this,a,E,!1);return}if(y===this.linkFromPortIdProperty){lg(this,a,E,!0);return}if(y===this.linkToPortIdProperty){lg(this,a,E,!1);return}if(y===this.linkKeyProperty){this.Ks(a,E);return}if(y===this.linkCategoryProperty){this.lp(a,E);return}if(y===this.linkLabelKeysProperty){this.Ls(a,E);return}}var x=ua(a,y);x!==E&&(Ro(a,y,E),this.Fs(a,y,x,E))},Ce=Dr.prototype,Ce.Do=function(a,y){if(y){var E=this.lb(a),x=this.Jc(a),b;for(b in y)b==="__gohashid"||E&&b===this.nodeKeyProperty||E&&b===this.nodeIsGroupProperty&&ua(a,b)===y[b]||x&&b===this.linkKeyProperty||this.setDataProperty(a,b,y[b])}},Ce.jp=function(a,y){Di.prototype.jp.call(this,a,y);for(var E=this.kb.iterator;E.next();)this.qv(E.value,a,y);for(E=this.$f.iterator;E.next();){var x=E.value,b=a,z=y;if(Yl(this,x,!0)===b){var ee=this.lf;Ro(x,ee,z),Ta(this,"linkFromKey",wo,ee,x,b,z),typeof ee=="string"&&this.La(x,ee)}if(Yl(this,x,!1)===b&&(ee=this.mf,Ro(x,ee,z),Ta(this,"linkToKey",wo,ee,x,b,z),typeof ee=="string"&&this.La(x,ee)),ee=this.Ef(x),Array.isArray(ee))for(var re=ee.length,oe=this.je,ce=0;ce<re;ce++)ee[ce]===b&&(ee[ce]=z,Ta(this,"linkLabelKeys",Xo,oe,x,b,z,ce,ce))}},Ce.qv=function(a,y,E){if(this.lh(a)===y){var x=this.Je;Ro(a,x,E),Ta(this,"nodeGroupKey",wo,x,a,y,E),typeof x=="string"&&this.La(a,x)}},Ce.Lv=function(){Di.prototype.Lv.call(this);for(var a=this.linkDataArray,y=a.length,E=0;E<y;E++)py(this,a[E])},Ce.fm=function(a){Di.prototype.fm.call(this,a),a=this.wa(a);var y=Tp(this,a);if(y!==null){var E=Ni();for(y=y.iterator;y.next();){var x=y.value;if(this.lb(x)){if(this.lh(x)===a){var b=this.Je;Ta(this,"nodeGroupKey",wo,b,x,a,a),typeof b=="string"&&this.La(x,b),E.push(x)}}else if(Yl(this,x,!0)===a&&(b=this.lf,Ta(this,"linkFromKey",wo,b,x,a,a),typeof b=="string"&&this.La(x,b),E.push(x)),Yl(this,x,!1)===a&&(b=this.mf,Ta(this,"linkToKey",wo,b,x,a,a),typeof b=="string"&&this.La(x,b),E.push(x)),b=this.Ef(x),Array.isArray(b))for(var z=b.length,ee=this.je,re=0;re<z;re++)b[re]===a&&(Ta(this,"linkLabelKeys",Xo,ee,x,a,a,re,re),E.push(x))}for(y=0;y<E.length;y++)qu(this,a,E[y]);hi(E)}},Ce.em=function(a){Di.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&Ju(this,y,a)},Ce.qp=function(a){Di.prototype.qp.call(this,a);var y=this.lh(a);qu(this,y,a)},Ce.ps=function(a){if(a===null)return"";var y=this.dj;if(y===""||(y=ua(a,y),y===void 0))return"";if(typeof y=="string")return y;pt("getCategoryForLinkData found a non-string category for "+a+": "+y)},Dr.prototype.getLinkCategoryForData=function(a){return this.ps(a)},Dr.prototype.lp=function(a,y){if(a!==null){var E=this.dj;if(E!=="")if(this.Jc(a)){var x=ua(a,E);x===void 0&&(x=""),x!==y&&(Ro(a,E,y),Ta(this,"linkCategory",wo,E,a,x,y),typeof E=="string"&&this.La(a,E))}else Ro(a,E,y)}},Dr.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},Ce=Dr.prototype,Ce.lm=function(a,y){Di.prototype.lm.call(this,a,y),this.mp(y,this.lh(a))};function BS(a,y,E){a.lp(E,a.ps(y)),a.wv(E,a.yx(y)),a.Bv(E,a.Bx(y)),a.Ls(E,a.Ef(y)),a.xv(E,a.zx(y)),a.Cv(E,a.Cx(y))}Ce.Wj=function(){return!0},Ce.ri=function(){return!0},Ce.xs=function(){return!0},Ce.Xj=function(){return!0},It.Object.defineProperties(Dr.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(a){var y=this.Ri;y!==a&&(this.Ri=a,this.g("archetypeNodeData",y,a))}},linkFromKeyProperty:{get:function(){return this.lf},set:function(a){var y=this.lf;y!==a&&(this.lf=a,this.g("linkFromKeyProperty",y,a))}},linkToKeyProperty:{get:function(){return this.mf},set:function(a){var y=this.mf;y!==a&&(this.mf=a,this.g("linkToKeyProperty",y,a))}},linkFromPortIdProperty:{get:function(){return this.ej},set:function(a){var y=this.ej;y!==a&&(this.ej=a,this.g("linkFromPortIdProperty",y,a))}},linkToPortIdProperty:{get:function(){return this.fj},set:function(a){var y=this.fj;y!==a&&(this.fj=a,this.g("linkToPortIdProperty",y,a))}},linkLabelKeysProperty:{get:function(){return this.je},set:function(a){var y=this.je;y!==a&&(this.je=a,this.g("linkLabelKeysProperty",y,a))}},linkDataArray:{get:function(){return this.md},set:function(a){var y=this.md;if(y!==a){this.wb.clear();for(var E=a.length,x=0;x<E;x++){var b=a[x];zt(b)||pt("GraphLinksModel.linkDataArray must only contain Objects, not: "+b),Cr(b)}if(this.md=a,this.linkKeyProperty!==""){for(x=new Fn,b=0;b<E;b++){var z=a[b],ee=this.Ac(z);ee===void 0||this.wb.I(ee)!==null?x.add(z):this.wb.add(ee,z)}for(x=x.iterator;x.next();)b=x.value,this.Bs(b),z=this.Ac(b),z!==void 0&&this.wb.add(z,b)}for(x=new In,b=0;b<E;b++)x.add(a[b]);for(this.$f=x,Ta(this,"linkDataArray",wo,"linkDataArray",this,y,a),y=0;y<E;y++)py(this,a[y])}}},linkKeyProperty:{get:function(){return this.Jh},set:function(a){var y=this.Jh;if(y!==a){this.Jh=a,this.wb.clear();for(var E=this.linkDataArray.length,x=0;x<E;x++){var b=this.linkDataArray[x],z=this.Ac(b);z===void 0&&(this.Bs(b),z=this.Ac(b)),z!==void 0&&this.wb.add(z,b)}this.g("linkKeyProperty",y,a)}}},makeUniqueLinkKeyFunction:{get:function(){return this.cl},set:function(a){var y=this.cl;y!==a&&(this.cl=a,this.g("makeUniqueLinkKeyFunction",y,a))}},copyLinkDataFunction:{get:function(){return this.Ak},set:function(a){var y=this.Ak;y!==a&&(this.Ak=a,this.g("copyLinkDataFunction",y,a))}},nodeIsGroupProperty:{get:function(){return this.jl},set:function(a){var y=this.jl;y!==a&&(this.jl=a,this.g("nodeIsGroupProperty",y,a))}},nodeGroupKeyProperty:{get:function(){return this.Je},set:function(a){var y=this.Je;y!==a&&(this.Je=a,this.g("nodeGroupKeyProperty",y,a))}},Ij:{get:function(){return this.Lm},set:function(a){this.Lm!==a&&(this.Lm=a)}},linkCategoryProperty:{get:function(){return this.dj},set:function(a){var y=this.dj;y!==a&&(this.dj=a,this.g("linkCategoryProperty",y,a))}},type:{get:function(){return"GraphLinksModel"}}}),Dr.prototype.setCategoryForLinkData=Dr.prototype.lp,Dr.prototype.getCategoryForLinkData=Dr.prototype.ps,Dr.prototype.assignAllDataProperties=Dr.prototype.Do,Dr.prototype.setGroupKeyForNodeData=Dr.prototype.mp,Dr.prototype.getGroupKeyForNodeData=Dr.prototype.lh,Dr.prototype.isGroupForNodeData=Dr.prototype.Yu,Dr.prototype.copyLinkData=Dr.prototype.Jo,Dr.prototype.mergeLinkDataArray=Dr.prototype.Zz,Dr.prototype.removeLinkDataCollection=Dr.prototype.lA,Dr.prototype.removeLinkData=Dr.prototype.bm,Dr.prototype.addLinkDataCollection=Dr.prototype.Ey,Dr.prototype.addLinkData=Dr.prototype.fi,Dr.prototype.containsLinkData=Dr.prototype.Jc,Dr.prototype.makeLinkDataKeyUnique=Dr.prototype.Bs,Dr.prototype.findLinkDataForKey=Dr.prototype.jh,Dr.prototype.setKeyForLinkData=Dr.prototype.Ks,Dr.prototype.getKeyForLinkData=Dr.prototype.Ac,Dr.prototype.removeLabelKeyForLinkData=Dr.prototype.Qx,Dr.prototype.addLabelKeyForLinkData=Dr.prototype.Bu,Dr.prototype.setLabelKeysForLinkData=Dr.prototype.Ls,Dr.prototype.getLabelKeysForLinkData=Dr.prototype.Ef,Dr.prototype.setToPortIdForLinkData=Dr.prototype.Cv,Dr.prototype.getToPortIdForLinkData=Dr.prototype.Cx,Dr.prototype.setFromPortIdForLinkData=Dr.prototype.xv,Dr.prototype.getFromPortIdForLinkData=Dr.prototype.zx,Dr.prototype.setToKeyForLinkData=Dr.prototype.Bv,Dr.prototype.getToKeyForLinkData=Dr.prototype.Bx,Dr.prototype.setFromKeyForLinkData=Dr.prototype.wv,Dr.prototype.getFromKeyForLinkData=Dr.prototype.yx,Dr.prototype.clear=Dr.prototype.clear;var m0=Object.freeze([]);Dr.className="GraphLinksModel",Fu.GraphLinksModel=Dr,Di.constructGraphLinksModel=Di.constructGraphLinksModel=function(){return new Dr},Di.initDiagramModel=fy=function(){return new Dr};function Ws(a,y){Di.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&(xn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Ut(Ws,Di),Ws.constructGraphLinksModel=Di.constructGraphLinksModel,Ws.prototype.cloneProtected=function(a){Di.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},Ce=Ws.prototype,Ce.toString=function(a){if(a===void 0&&(a=0),2<=a)return this.np();var y=(this.name!==""?this.name:"")+" TreeModel";if(0<a){y+=`
node data:`,a=this.nodeDataArray;for(var E=a.length,x=0;x<E;x++){var b=a[x];y+=" "+this.wa(b)+":"+Yi(b)}}return y},Ce.rm=function(){var a=Di.prototype.rm.call(this),y="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(y+=`,
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),a+y},Ce.gp=function(a){Di.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},Ce.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&pt("applyIncrementalJson cannot change Model properties"),Di.prototype.fp.call(this,a)},Ce.Vl=function(a){return a},Ce.mh=function(a){if(a!==null){var y=this.Ke;if(y!==""&&(y=ua(a,y),y!==void 0)){if(qd(y))return y;pt("ParentKey value for node data "+a+" is not a number or a string: "+y)}}},Ce.qe=function(a,y){if(y===null&&(y=void 0),a!==null){var E=this.Ke;if(E!=="")if(y=this.Vl(y),this.lb(a)){var x=ua(a,E);x!==y&&(qu(this,x,a),Ro(a,E,y),this.hc(y)===null&&Ju(this,y,a),Ta(this,"nodeParentKey",wo,E,a,x,y),typeof E=="string"&&this.La(a,E))}else Ro(a,E,y)}},Ce.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=ua(a,y),y===void 0)?"":typeof y=="string"?y:(pt("getParentLinkCategoryForNodeData found a non-string category for "+a+": "+y),"")},Ws.prototype.getLinkCategoryForData=function(a){return this.ss(a)},Ws.prototype.Ms=function(a,y){if(a!==null){var E=this.nj;if(E!=="")if(this.lb(a)){var x=ua(a,E);x===void 0&&(x=""),x!==y&&(Ro(a,E,y),Ta(this,"parentLinkCategory",wo,E,a,x,y),typeof E=="string"&&this.La(a,E))}else Ro(a,E,y)}},Ws.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},Ws.prototype.copyNodeData=function(a){return a===null?null:(a=Di.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||ua(a,this.Ke)===void 0||Ro(a,this.Ke,void 0),a)},Ws.prototype.setDataProperty=function(a,y,E){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,E);return}if(y===this.nodeCategoryProperty){this.jm(a,E);return}if(y===this.nodeParentKeyProperty){this.qe(a,E);return}}var x=ua(a,y);x!==E&&(Ro(a,y,E),this.Fs(a,y,x,E))},Ce=Ws.prototype,Ce.jp=function(a,y){Di.prototype.jp.call(this,a,y);for(var E=this.kb.iterator;E.next();)this.qv(E.value,a,y)},Ce.qv=function(a,y,E){if(this.mh(a)===y){var x=this.Ke;Ro(a,x,E),Ta(this,"nodeParentKey",wo,x,a,y,E),typeof x=="string"&&this.La(a,x)}},Ce.fm=function(a){Di.prototype.fm.call(this,a),a=this.wa(a);var y=Tp(this,a);if(y!==null){var E=Ni();for(y=y.iterator;y.next();){var x=y.value;if(this.lb(x)&&this.mh(x)===a){var b=this.Ke;Ta(this,"nodeParentKey",wo,b,x,a,a),typeof b=="string"&&this.La(x,b),E.push(x)}}for(y=0;y<E.length;y++)qu(this,a,E[y]);hi(E)}},Ce.em=function(a){Di.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&Ju(this,y,a)},Ce.qp=function(a){Di.prototype.qp.call(this,a);var y=this.mh(a);qu(this,y,a)},Ce.lm=function(a,y){Di.prototype.lm.call(this,a,y),this.Ms(y,this.ss(a)),this.qe(y,this.mh(a))},Ce.Tl=function(){return!0},Ce.xs=function(){return!0},It.Object.defineProperties(Ws.prototype,{nodeParentKeyProperty:{get:function(){return this.Ke},set:function(a){var y=this.Ke;y!==a&&(this.Ke=a,this.g("nodeParentKeyProperty",y,a))}},Jj:{get:function(){return this.Nm},set:function(a){this.Nm!==a&&(this.Nm=a)}},parentLinkCategoryProperty:{get:function(){return this.nj},set:function(a){var y=this.nj;y!==a&&(this.nj=a,this.g("parentLinkCategoryProperty",y,a))}},linkCategoryProperty:{get:function(){return this.parentLinkCategoryProperty},set:function(a){this.parentLinkCategoryProperty=a}},type:{get:function(){return"TreeModel"}}}),Ws.prototype.setParentLinkCategoryForNodeData=Ws.prototype.Ms,Ws.prototype.getParentLinkCategoryForNodeData=Ws.prototype.ss,Ws.prototype.setParentKeyForNodeData=Ws.prototype.qe,Ws.prototype.getParentKeyForNodeData=Ws.prototype.mh,Ws.className="TreeModel",Fu.TreeModel=Ws;function Qo(a){_o.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=Bu,this.Ti=0,this.Zv=new lt,this.Jp=this.me=0,this.Xr=new Lp,this.gt=this.mj=0,this.ty=600,this.eo=NaN,this.Cm=1,this.ro=0,this.ul=360,this.Rb=Bu,this.K=Zs,this.nd=cg,this.hd=sy,this.tf=6,this.Nn=w0,a&&Object.assign(this,a)}Ut(Qo,_o),Qo.prototype.cloneProtected=function(a){_o.prototype.cloneProtected.call(this,a),a.eo=this.eo,a.Cm=this.Cm,a.ro=this.ro,a.ul=this.ul,a.Rb=this.Rb,a.K=this.K,a.nd=this.nd,a.hd=this.hd,a.tf=this.tf,a.Nn=this.Nn},Qo.prototype.qb=function(a){a.classType===Qo?a===x0||a===b0||a===S0||a===E0||a===cg?this.sorting=a:a===jh||a===ug||a===Zs||a===eh?this.direction=a:a===Ad||a===$d||a===Bu||a===_u?this.arrangement=a:(a===ff||a===w0)&&(this.nodeDiameterFormula=a):_o.prototype.qb.call(this,a)},Qo.prototype.createNetwork=function(){return new dg(this)},Qo.prototype.doLayout=function(a){if(this.network===null&&(this.network=this.makeNetwork(a)),this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin),a=this.network.vertexes,1>=a.count)a.count===1&&(a=a.first(),a.centerX=0,a.centerY=0);else{var y=new Fn;y.addAll(a.iterator),a=new Fn;var E=new Fn,x=this.sort(y),b,z,ee=this.Jp,re=this.arrangement,oe=this.nodeDiameterFormula,ce=this.radius;(!isFinite(ce)||0>=ce)&&(ce=NaN);var he=this.aspectRatio;(!isFinite(he)||0>=he)&&(he=1);var ye=this.startAngle;isFinite(ye)||(ye=0);var Te=this.sweepAngle;if((!isFinite(Te)||360<Te||1>Te)&&(Te=360),y=this.spacing,isFinite(y)||(y=NaN),re===_u&&oe===ff?re=Bu:re===_u&&oe!==ff&&(re=this.arrangement),(this.direction===jh||this.direction===ug)&&this.sorting!==cg){for(oe=0;!(oe>=x.length)&&(a.add(x.M(oe)),!(oe+1>=x.length));oe+=2)E.add(x.M(oe+1));this.direction===jh?(this.arrangement===_u&&a.reverse(),x=new Fn,x.addAll(a),x.addAll(E)):(this.arrangement===_u&&E.reverse(),x=new Fn,x.addAll(E),x.addAll(a))}oe=x.length;for(var Ae=z=b=0;Ae<x.length;Ae++){var ke=ye+Te*z*(this.direction===Zs?1:-1)/oe,He=x.M(Ae).diameter;isNaN(He)&&(He=th(x.M(Ae),ke)),360>Te&&(Ae===0||Ae===x.length-1)&&(He/=2),b+=He,z++}if(isNaN(ce)||re===_u){if(isNaN(y)&&(y=6),re!==Bu&&re!==_u){for(z=-1/0,ee=0;ee<oe;ee++)Ae=x.M(ee),b=x.M(ee===oe-1?0:ee+1),isNaN(Ae.diameter)&&th(Ae,0),isNaN(b.diameter)&&th(b,0),z=Math.max(z,(Ae.diameter+b.diameter)/2);ee=z+y,re===Ad?ce=(z+y)/(2*Math.PI/oe):ce=v0(this,ee*(360<=Te?oe:oe-1),he,ye*Math.PI/180,Te*Math.PI/180)}else ce=v0(this,b+(360<=Te?oe:oe-1)*(re!==_u?y:1.6*y),he,ye*Math.PI/180,Te*Math.PI/180);z=ce*he}else if(z=ce*he,Ae=my(this,ce,z,ye*Math.PI/180,Te*Math.PI/180),isNaN(y))(re===Bu||re===_u)&&(y=(Ae-b)/(360<=Te?oe:oe-1));else if(re===Bu||re===_u)Ae=(Ae-b)/(360<=Te?oe:oe-1),Ae<y?(ce=v0(this,b+y*(360<=Te?oe:oe-1),he,ye*Math.PI/180,Te*Math.PI/180),z=ce*he):y=Ae;else{for(ee=-1/0,b=0;b<oe;b++)ke=x.M(b),He=x.M(b===oe-1?0:b+1),isNaN(ke.diameter)&&th(ke,0),isNaN(He.diameter)&&th(He,0),ee=Math.max(ee,(ke.diameter+He.diameter)/2);ee+=y,b=v0(this,ee*(360<=Te?oe:oe-1),he,ye*Math.PI/180,Te*Math.PI/180),b>ce?(ce=b,z=ce*he):ee=Ae/(360<=Te?oe:oe-1)}if(this.kw=re,this.lc=ce,this.Zm=he,this.lw=ye,this.Wp=Te,this.Ti=y,this.me=z,this.Jp=ee,y=x,x=this.kw,re=this.lc,ce=this.lw,he=this.Wp,ye=this.Ti,Te=this.me,oe=this.Jp,this.direction!==jh&&this.direction!==ug||x!==_u)if(this.direction===jh||this.direction===ug){switch(ee=0,x){case $d:ee=180*y0(this,re,Te,ce,oe)/Math.PI;break;case Bu:oe=y=0,ee=a.first(),ee!==null&&(y=th(ee,Math.PI/2)),ee=E.first(),ee!==null&&(oe=th(ee,Math.PI/2)),ee=180*y0(this,re,Te,ce,ye+(y+oe)/2)/Math.PI;break;case Ad:ee=he/y.length}if(this.direction===jh){switch(x){case $d:Pp(this,a,ce,eh);break;case Bu:Mp(this,a,ce,eh);break;case Ad:Np(this,a,he/2,ce,eh)}switch(x){case $d:Pp(this,E,ce+ee,Zs);break;case Bu:Mp(this,E,ce+ee,Zs);break;case Ad:Np(this,E,he/2,ce+ee,Zs)}}else{switch(x){case $d:Pp(this,E,ce,eh);break;case Bu:Mp(this,E,ce,eh);break;case Ad:Np(this,E,he/2,ce,eh)}switch(x){case $d:Pp(this,a,ce+ee,Zs);break;case Bu:Mp(this,a,ce+ee,Zs);break;case Ad:Np(this,a,he/2,ce+ee,Zs)}}}else switch(x){case $d:Pp(this,y,ce,this.direction);break;case Bu:Mp(this,y,ce,this.direction);break;case Ad:Np(this,y,he,ce,this.direction);break;case _u:_S(this,y,he,ce,this.direction)}else _S(this,y,he,ce-he/2,Zs)}this.updateParts(),this.network=null,this.isValidLayout=!0};function Np(a,y,E,x,b){var z=a.Wp,ee=a.lc;a=a.me,x=x*Math.PI/180,E=E*Math.PI/180;for(var re=y.length,oe=0;oe<re;oe++){var ce=x+(b===Zs?oe*E/(360<=z?re:re-1):-(oe*E)/re),he=y.M(oe),ye=ee*Math.tan(ce)/a;ye=Math.sqrt((ee*ee+a*a*ye*ye)/(1+ye*ye)),he.centerX=ye*Math.cos(ce),he.centerY=ye*Math.sin(ce),he.actualAngle=180*ce/Math.PI}}function Mp(a,y,E,x){var b=a.lc,z=a.me,ee=a.Ti;E=E*Math.PI/180;for(var re=y.length,oe=0;oe<re;oe++){var ce=y.M(oe),he=y.M(oe===re-1?0:oe+1),ye=z*Math.sin(E);ce.centerX=b*Math.cos(E),ce.centerY=ye,ce.actualAngle=180*E/Math.PI,isNaN(ce.diameter)&&th(ce,0),isNaN(he.diameter)&&th(he,0),ce=y0(a,b,z,x===Zs?E:-E,(ce.diameter+he.diameter)/2+ee),E+=x===Zs?ce:-ce}}function Pp(a,y,E,x){var b=a.lc,z=a.me,ee=a.Jp;E=E*Math.PI/180;for(var re=y.length,oe=0;oe<re;oe++){var ce=y.M(oe);ce.centerX=b*Math.cos(E),ce.centerY=z*Math.sin(E),ce.actualAngle=180*E/Math.PI,ce=y0(a,b,z,x===Zs?E:-E,ee),E+=x===Zs?ce:-ce}}function _S(a,y,E,x,b){var z=a.Wp;if(a.mj=0,a.Xr=new Lp,360>E){for(z=x+(b===Zs?z:-z);0>z;)z+=360;z%=360,180<z&&(z-=360),z*=Math.PI/180,a.gt=z,zS(a,y,E,x,b)}else jS(a,y,E,x,b);a.Xr.commit(y)}function jS(a,y,E,x,b){var z=a.lc,ee=a.Ti,re=a.Zm,oe=z*Math.cos(x*Math.PI/180),ce=a.me*Math.sin(x*Math.PI/180),he=y.Fa();if(he.length===3)he[0].centerX=z,he[0].centerY=0,he[1].centerX=he[0].centerX-he[0].width/2-he[1].width/2-ee,he[1].y=he[0].y,he[2].centerX=(he[0].centerX+he[1].centerX)/2,he[2].y=he[0].y-he[2].height-ee;else if(he.length===4)he[0].centerX=z,he[0].centerY=0,he[2].centerX=-he[0].centerX,he[2].centerY=he[0].centerY,he[1].centerX=0,he[1].y=Math.min(he[0].y,he[2].y)-he[1].height-ee,he[3].centerX=0,he[3].y=Math.max(he[0].y+he[0].height+ee,he[2].y+he[2].height+ee);else{z=lt.alloc();for(var ye=0;ye<he.length&&(he[ye].centerX=oe,he[ye].centerY=ce,!(ye>=he.length-1));ye++)US(a,oe,ce,he,ye,b,z)||HS(a,oe,ce,he,ye,b,z),oe=z.x,ce=z.y;if(lt.free(z),a.mj++,!(23<a.mj)){oe=he[0].centerX,ce=he[0].centerY,z=he[he.length-1].centerX,ye=he[he.length-1].centerY;var Te=Math.abs(oe-z)-((he[0].width+he[he.length-1].width)/2+ee),Ae=Math.abs(ce-ye)-((he[0].height+he[he.length-1].height)/2+ee);ee=0,1>Math.abs(Ae)?Math.abs(oe-z)<(he[0].width+he[he.length-1].width)/2&&(ee=0):ee=0<Ae?Ae:1>Math.abs(Te)?0:Te,oe=Math.abs(z)>Math.abs(ye)?0<z!=ce>ye:0<ye!=oe<z,(oe=b===Zs?oe:!oe)&&(ee=-Math.abs(ee),ee=Math.min(ee,-he[he.length-1].width),ee=Math.min(ee,-he[he.length-1].height)),a.Xr.compare(ee,he),1<Math.abs(ee)&&(a.lc=8>a.mj?a.lc-ee/(2*Math.PI):5>he.length&&10<ee?a.lc/2:a.lc-(0<ee?1.7:-2.3),a.me=a.lc*re,jS(a,y,E,x,b))}}}function zS(a,y,E,x,b){for(var z=a.lc,ee=a.me,re=a.Zm,oe=z*Math.cos(x*Math.PI/180),ce=ee*Math.sin(x*Math.PI/180),he=lt.alloc(),ye=y.Fa(),Te=0;Te<ye.length&&(ye[Te].centerX=oe,ye[Te].centerY=ce,!(Te>=ye.length-1));Te++)US(a,oe,ce,ye,Te,b,he)||HS(a,oe,ce,ye,Te,b,he),oe=he.x,ce=he.y;if(lt.free(he),a.mj++,!(23<a.mj)){if(oe=Math.atan2(ce,oe),oe=b===Zs?a.gt-oe:oe-a.gt,oe=Math.abs(oe)<Math.abs(oe-2*Math.PI)?oe:oe-2*Math.PI,z=oe*(z+ee)/2,ee=a.Xr,Math.abs(z)<Math.abs(ee.Pl))for(ee.Pl=z,ee.mk=[],ee.tm=[],oe=0;oe<ye.length;oe++)ee.mk[oe]=ye[oe].bounds.x,ee.tm[oe]=ye[oe].bounds.y;1<Math.abs(z)&&(a.lc=8>a.mj?a.lc-z/(2*Math.PI):a.lc-(0<z?1.7:-2.3),a.me=a.lc*re,zS(a,y,E,x,b))}}function US(a,y,E,x,b,z,ee){var re=a.lc,oe=a.me,ce=0;a=(x[b].width+x[b+1].width)/2+a.Ti;var he=!1;if(0<=E!=(z===Zs)){if(z=y+a,z>re){if(z=y-a,z<-re)return ee.x=z,ee.y=ce,!1;he=!0}}else if(z=y-a,z<-re){if(z=y+a,z>re)return ee.x=z,ee.y=ce,!1;he=!0}return ce=Math.sqrt(1-Math.min(1,z*z/(re*re)))*oe,0>E!==he&&(ce=-ce),Math.abs(E-ce)>(x[b].height+x[b+1].height)/2?(ee.x=z,ee.y=ce,!1):(ee.x=z,ee.y=ce,!0)}function HS(a,y,E,x,b,z,ee){var re=a.lc,oe=a.me,ce=0;if(a=(x[b].height+x[b+1].height)/2+a.Ti,x=!1,0<=y!=(z===Zs)){if(z=E-a,z<-oe){if(z=E+a,z>oe){ee.x=ce,ee.y=z;return}x=!0}}else if(z=E+a,z>oe){if(z=E-a,z<-oe){ee.x=ce,ee.y=z;return}x=!0}ce=Math.sqrt(1-Math.min(1,z*z/(oe*oe)))*re,0>y!==x&&(ce=-ce),ee.x=ce,ee.y=z}Qo.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},Qo.prototype.commitNodes=function(){var a=this.group!==null&&this.group.placeholder!==null&&this.group.isSubGraphExpanded,y=a?this.group.location.copy():null,E=this.actualCenter;a?E=new lt(0,0):(E.x=this.arrangementOrigin.x+this.lc,E.y=this.arrangementOrigin.y+this.me);for(var x=this.network.vertexes.iterator;x.next();){var b=x.value;b.x+=E.x,b.y+=E.y,b.commit()}a&&(this.group.Va(),a=this.group.position.copy(),E=this.group.location.copy(),y=y.re(E.re(a)),this.group.move(y),this.Zv=y.re(a))},Qo.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()};function my(a,y,E,x,b){var z=a.ty;if(.001>Math.abs(a.Zm-1))return x!==void 0&&b!==void 0?b*y:2*Math.PI*y;a=y>E?Math.sqrt(y*y-E*E)/y:Math.sqrt(E*E-y*y)/E;for(var ee=0,re=x!==void 0&&b!==void 0?b/(z+1):Math.PI/(2*(z+1)),oe=0,ce=0;ce<=z;ce++){x!==void 0&&b!==void 0?oe=x+ce*b/z:oe=ce*Math.PI/(2*z);var he=Math.sin(oe);ee+=Math.sqrt(1-a*a*he*he)*re}return x!==void 0&&b!==void 0?(y>E?y:E)*ee:4*(y>E?y:E)*ee}function v0(a,y,E,x,b){return y/(x!==void 0&&b!==void 0?my(a,1,E,x,b):my(a,1,E))}function y0(a,y,E,x,b){if(.001>Math.abs(a.Zm-1))return b/y;var z=y>E?Math.sqrt(y*y-E*E)/y:Math.sqrt(E*E-y*y)/E,ee=0;a=2*Math.PI/(700*a.network.vertexes.count),y>E&&(x+=Math.PI/2);for(var re=0;;re++){var oe=Math.sin(x+re*a);if(ee+=(y>E?y:E)*Math.sqrt(1-z*z*oe*oe)*a,ee>=b)return re*a}}Qo.prototype.sort=function(a){switch(this.sorting){case S0:break;case E0:a.reverse();break;case x0:a.sort(this.comparer);break;case b0:a.sort(this.comparer),a.reverse();break;case cg:return this.ak(GE(a));default:pt("Invalid sorting type.")}return a};function GE(a){for(var y=[],E=0;E<a.length;E++)y.push(0);E=new Fn;for(var x=0;x<a.length;x++){var b=-1,z=-1;if(x===0)for(var ee=0;ee<a.length;ee++){var re=a.M(ee).edgesCount;re>b&&(b=re,z=ee)}else for(ee=0;ee<a.length;ee++)re=y[ee],re>b&&(b=re,z=ee);for(E.add(a.M(z)),y[z]=-1,z=a.M(z),ee=z.sourceEdges;ee.next();)b=a.indexOf(ee.value.fromVertex),0>b||0<=y[b]&&y[b]++;for(z=z.destinationEdges;z.next();)b=a.indexOf(z.value.toVertex),0>b||0<=y[b]&&y[b]++}return E}Qo.prototype.ak=function(a){for(var y=[],E=0;E<a.length;E++){var x=a.M(E);y[E]=[];for(var b,z=x.destinationEdges;z.next();)b=a.indexOf(z.value.toVertex),b!==E&&0>y[E].indexOf(b)&&y[E].push(b);for(x=x.sourceEdges;x.next();)b=a.indexOf(x.value.fromVertex),b!==E&&0>y[E].indexOf(b)&&y[E].push(b)}for(z=[],E=0;E<y.length;E++)z[E]=0;E=[];var ee=[],re=[];x=[],b=new Fn;for(var oe=0,ce=0;ce<y.length;ce++){var he=y[ce].length;if(he===1)x.push(ce);else if(he===0)b.add(a.M(ce));else{if(oe===0)E.push(ce);else{for(var ye=he=1/0,Te=-1,Ae=[],ke=0;ke<E.length;ke++)0>y[E[ke]].indexOf(E[ke===E.length-1?0:ke+1])&&Ae.push(ke===E.length-1?0:ke+1);if(Ae.length===0)for(ke=0;ke<E.length;ke++)Ae.push(ke);for(ke=0;ke<Ae.length;ke++){for(var He=Ae[ke],dt=y[ce],tt=0,gt=0;gt<ee.length;gt++){var yt=z[ee[gt]],bt=z[re[gt]];if(yt<bt){var kt=yt;yt=bt}else kt=bt;if(kt<He&&He<=yt)for(bt=0;bt<dt.length;bt++){var Kt=dt[bt];0>E.indexOf(Kt)||kt<z[Kt]&&z[Kt]<yt||kt===z[Kt]||yt===z[Kt]||tt++}else for(bt=0;bt<dt.length;bt++)Kt=dt[bt],0>E.indexOf(Kt)||kt<z[Kt]&&z[Kt]<yt&&kt!==z[Kt]&&yt!==z[Kt]&&tt++}for(dt=tt,gt=tt=0;gt<y[ce].length;gt++)kt=E.indexOf(y[ce][gt]),0<=kt&&(kt=Math.abs(He-(kt>=He?kt+1:kt)),tt+=kt<E.length+1-kt?kt:E.length+1-kt);for(gt=0;gt<ee.length;gt++)kt=z[ee[gt]],yt=z[re[gt]],kt>=He&&kt++,yt>=He&&yt++,kt>yt&&(bt=yt,yt=kt,kt=bt),yt-kt<(E.length+2)/2==(kt<He&&He<=yt)&&tt++;(dt<he||dt===he&&tt<ye)&&(he=dt,ye=tt,Te=He)}for(E.splice(Te,0,ce),he=0;he<E.length;he++)z[E[he]]=he;for(he=0;he<y[ce].length;he++)ye=y[ce][he],0<=E.indexOf(ye)&&(ee.push(ce),re.push(ye))}oe++}}for(ee=E.length;;){for(z=!0,re=0;re<x.length;re++)if(oe=x[re],ce=y[oe][0],he=E.indexOf(ce),0<=he){for(Te=ye=0;Te<y[ce].length;Te++)Ae=E.indexOf(y[ce][Te]),0>Ae||Ae===he||(ke=Ae>he?Ae-he:he-Ae,ye+=Ae<he!=ke>ee-ke?1:-1);E.splice(0>ye?he:he+1,0,oe),x.splice(re,1),re--}else z=!1;if(z)break;E.push(x[0]),x.splice(0,1)}for(y=0;y<E.length;y++)b.add(a.M(E[y]));return b},It.Object.defineProperties(Qo.prototype,{radius:{get:function(){return this.eo},set:function(a){this.eo!==a&&(0<a||isNaN(a))&&(this.eo=a,this.C())}},aspectRatio:{get:function(){return this.Cm},set:function(a){this.Cm!==a&&0<a&&(this.Cm=a,this.C())}},startAngle:{get:function(){return this.ro},set:function(a){this.ro!==a&&(this.ro=a,this.C())}},sweepAngle:{get:function(){return this.ul},set:function(a){this.ul!==a&&(0<a&&360>=a?this.ul=a:this.ul=360,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==_u&&a!==Bu&&a!==$d&&a!==Ad||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==Zs&&a!==eh&&a!==jh&&a!==ug||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==S0&&a!==E0&&a!==x0&&!b0&&a!==cg||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}},spacing:{get:function(){return this.tf},set:function(a){this.tf!==a&&(this.tf=a,this.C())}},nodeDiameterFormula:{get:function(){return this.Nn},set:function(a){this.Nn===a||a!==w0&&a!==ff||(this.Nn=a,this.C())}},actualXRadius:{get:function(){return this.lc}},actualYRadius:{get:function(){return this.me}},actualSpacing:{get:function(){return this.Ti}},actualCenter:{get:function(){return this.Zv}}});var Bu=new en(Qo,"ConstantSpacing",0),$d=new en(Qo,"ConstantDistance",1),Ad=new en(Qo,"ConstantAngle",2),_u=new en(Qo,"Packed",3),Zs=new en(Qo,"Clockwise",4),eh=new en(Qo,"Counterclockwise",5),jh=new en(Qo,"BidirectionalLeft",6),ug=new en(Qo,"BidirectionalRight",7),S0=new en(Qo,"Forwards",8),E0=new en(Qo,"Reverse",9),x0=new en(Qo,"Ascending",10),b0=new en(Qo,"Descending",11),cg=new en(Qo,"Optimized",12),w0=new en(Qo,"Pythagorean",13),ff=new en(Qo,"Circular",14);Qo.className="CircularLayout",Qo.ConstantSpacing=Bu,Qo.ConstantDistance=$d,Qo.ConstantAngle=Ad,Qo.Packed=_u,Qo.Clockwise=Zs,Qo.Counterclockwise=eh,Qo.BidirectionalLeft=jh,Qo.BidirectionalRight=ug,Qo.Forwards=S0,Qo.Reverse=E0,Qo.Ascending=x0,Qo.Descending=b0,Qo.Optimized=cg,Qo.Pythagorean=w0,Qo.Circular=ff;function Lp(){this.Pl=-1/0,this.tm=this.mk=null}Lp.prototype.compare=function(a,y){if(0<a&&0>this.Pl||Math.abs(a)<Math.abs(this.Pl)&&!(0>a&&0<this.Pl))for(this.Pl=a,this.mk=[],this.tm=[],a=0;a<y.length;a++)this.mk[a]=y[a].bounds.x,this.tm[a]=y[a].bounds.y},Lp.prototype.commit=function(a){if(this.mk!==null&&this.tm!==null)for(var y=0;y<this.mk.length;y++){var E=a.M(y);E.x=this.mk[y],E.y=this.tm[y]}},Lp.className="VertexArrangement";function dg(a){Eo.call(this,a)}Ut(dg,Eo),dg.prototype.createVertex=function(){return new Ip(this)},dg.prototype.createEdge=function(){return new T0(this)},dg.className="CircularNetwork";function Ip(a){Ma.call(this,a),this.u=this.Si=NaN}Ut(Ip,Ma);function th(a,y){var E=a.network;if(E===null)return NaN;if(E=E.layout,E===null)return NaN;if(E.arrangement===_u)if(E.nodeDiameterFormula===ff)a.Si=Math.max(a.width,a.height);else{if(E=Math.abs(Math.sin(y)),y=Math.abs(Math.cos(y)),E===0)return a.width;if(y===0)return a.height;a.Si=Math.min(a.height/E,a.width/y)}else a.Si=E.nodeDiameterFormula===ff?Math.max(a.width,a.height):Math.sqrt(a.width*a.width+a.height*a.height);return a.Si}It.Object.defineProperties(Ip.prototype,{diameter:{get:function(){return this.Si},set:function(a){this.Si!==a&&(this.Si=a)}},actualAngle:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}}}),Ip.className="CircularVertex";function T0(a){Nl.call(this,a)}Ut(T0,Nl),T0.className="CircularEdge";function us(a){_o.call(this),this.ah=null,this.An=0,this.$d=new ri(100,100).freeze(),this.Bm=!1,this.sf=!0,this.td=!1,this.dl=100,this.$m=1,this.Zf=1e3,this.In=10,this.fo=Math,this.Hk=.05,this.Gk=50,this.Ek=150,this.Fk=0,this.Vm=10,this.Um=5,a&&Object.assign(this,a)}Ut(us,_o),us.prototype.cloneProtected=function(a){_o.prototype.cloneProtected.call(this,a),a.$d.assign(this.$d),a.Bm=this.Bm,a.sf=this.sf,a.td=this.td,a.dl=this.dl,a.$m=this.$m,a.Zf=this.Zf,a.In=this.In,a.fo=this.fo,a.Hk=this.Hk,a.Gk=this.Gk,a.Ek=this.Ek,a.Fk=this.Fk,a.Vm=this.Vm,a.Um=this.Um},us.prototype.createNetwork=function(){return new gf(this)},us.prototype.doLayout=function(a){if(this.network===null&&(this.network=this.makeNetwork(a)),a=this.maxIterations,0<this.network.vertexes.count){this.network.Ko();for(var y=this.network.vertexes.iterator;y.next();){var E=y.value;E.charge=this.electricalCharge(E),E.mass=this.gravitationalMass(E)}for(y=this.network.edges.iterator;y.next();)E=y.value,E.stiffness=this.springStiffness(E),E.length=this.springLength(E);if(this.Cu(),this.An=0,this.needsClusterLayout()){y=this.network,E=y.Zx();for(var x=E.iterator;x.next();){this.network=x.value;for(var b=this.network.vertexes.iterator;b.next();){var z=b.value;z.Vd=z.vertexes.count,z.sh=1,z.Hj=null,z.We=null}GS(this,0,a)}this.network=y;var ee=x=E.iterator;x=this.arrangementSpacing;var re=ee.count,oe=!0;z=b=0;for(var ce=Ni(),he=0;he<re+y.vertexes.count+2;he++)ce[he]=null;re=0,ee.reset();for(var ye=hn.alloc();ee.next();)if(he=ee.value,this.computeBounds(he,ye),oe)oe=!1,b=ye.x+ye.width/2,z=ye.y+ye.height/2,ce[0]=new lt(ye.x+ye.width+x.width,ye.y),ce[1]=new lt(ye.x,ye.y+ye.height+x.height),re=2;else{var Te=YS(ce,re,b,z,ye.width,ye.height,x),Ae=ce[Te],ke=new lt(Ae.x+ye.width+x.width,Ae.y),He=new lt(Ae.x,Ae.y+ye.height+x.height);for(Te+1<re&&ce.splice(Te+1,0,null),ce[Te]=ke,ce[Te+1]=He,re++,Te=Ae.x-ye.x,Ae=Ae.y-ye.y,he=he.vertexes.iterator;he.next();)ke=he.value,ke.centerX+=Te,ke.centerY+=Ae}for(hn.free(ye),he=y.vertexes.iterator;he.next();)ee=he.value,Te=ee.bounds,2>re?(b=Te.x+Te.width/2,z=Te.y+Te.height/2,ce[0]=new lt(Te.x+Te.width+x.width,Te.y),ce[1]=new lt(Te.x,Te.y+Te.height+x.height),re=2):(oe=YS(ce,re,b,z,Te.width,Te.height,x),ye=ce[oe],Ae=new lt(ye.x+Te.width+x.width,ye.y),Te=new lt(ye.x,ye.y+Te.height+x.height),oe+1<re&&ce.splice(oe+1,0,null),ce[oe]=Ae,ce[oe+1]=Te,re++,ee.centerX=ye.x+ee.width/2,ee.centerY=ye.y+ee.height/2);for(hi(ce),x=E.iterator;x.next();){for(E=x.value,b=E.vertexes.iterator;b.next();)y.dh(b.value);for(E=E.edges.iterator;E.next();)y.Bo(E.value)}}WS(this,a),this.updateParts()}this.dl=a,this.network=null,this.isValidLayout=!0},us.prototype.needsClusterLayout=function(){if(3>this.network.vertexes.count)return!1;for(var a=0,y=0,E=this.network.vertexes.first().bounds,x=this.network.vertexes.iterator;x.next();){if(x.value.bounds.Yc(E)&&(a++,2<a))return!0;if(10<y)break;y++}return!1},us.prototype.computeBounds=function(a,y){var E=!0;for(a=a.vertexes.iterator;a.next();){var x=a.value;E?(E=!1,y.set(x.bounds)):y.ed(x.bounds)}return y};function GS(a,y,E){if(YE(a,y)){var x=a.Zf;a.Zf*=1+1/(y+1);var b=VE(a,y),z=Math.max(0,Math.max(Math.min(a.network.vertexes.count,E*(y+1)/11),10));for(a.maxIterations+=z,GS(a,y+1,E),WS(a,z),WE(a,b),y=b.vertexes.Fa(),y.sort(function(ee,re){return ee===null||re===null||ee===re?0:re.Vd-ee.Vd}),E=0;E<y.length;E++)ZE(a,y[E]);a.Zf=x}}function YE(a,y){if(10<y||3>a.network.vertexes.count)return!1;for(a.ah=a.network.vertexes.Fa(),a=a.ah,a.sort(function(E,x){return E===null||x===null||E===x?0:x.Vd-E.Vd}),y=a.length-1;0<=y&&1>=a[y].Vd;)y--;return 1<a.length-y}function VE(a,y){for(var E=a.network,x=new gf(a),b=0;b<a.ah.length;b++){var z=a.ah[b];if(1<z.Vd){x.dh(z);var ee=new ZS;ee.Rs=z.Vd,ee.Ss=z.width,ee.Qs=z.height,ee.Sv=z.focus.x,ee.Tv=z.focus.y,z.We===null&&(z.We=new Fn),z.We.add(ee),z.sv=z.We.count-1}else break}for(z=E.edges.iterator;z.next();){var re=z.value;b=re.fromVertex,ee=re.toVertex,b.network===x&&ee.network===x?x.Bo(re):b.network===x?(re=b.Hj,re===null&&(re=new Fn,b.Hj=re),re.add(ee),b.Vd--,b.sh+=ee.sh):ee.network===x&&(re=ee.Hj,re===null&&(re=new Fn,ee.Hj=re),re.add(b),ee.Vd--,ee.sh+=b.sh)}for(b=x.edges.iterator;b.next();)z=b.value,z.length*=Math.max(1,Bt.sqrt((z.fromVertex.sh+z.toVertex.sh)/(4*y+1)));for(y=x.vertexes.iterator;y.next();){b=y.value;var oe=b.Hj;if(oe!==null&&0<oe.count&&(ee=b.We.M(b.We.count-1).Rs-b.Vd,!(0>=ee))){for(var ce=re=0,he=oe.count-ee;he<oe.count;he++){var ye=oe.M(he),Te=null;for(z=ye.edges.iterator;z.next();){var Ae=z.value;if(Ae.Ax(ye)===b){Te=Ae;break}}Te!==null&&(ce+=Te.length,re+=ye.width*ye.height)}z=b.centerX,oe=b.centerY,he=b.width,ye=b.height,Te=b.focus,Ae=he*ye,1>Ae&&(Ae=1),re=Bt.sqrt((re+Ae+ce*ce*4/(ee*ee))/Ae),ee=(re-1)*he/2,re=(re-1)*ye/2,b.bounds=new hn(z-Te.x-ee,oe-Te.y-re,he+2*ee,ye+2*re),b.focus=new lt(Te.x+ee,Te.y+re)}}return a.network=x,E}function WE(a,y){for(var E=a.network.vertexes.iterator;E.next();){var x=E.value;if(x.network=y,x.We!==null){var b=x.We.M(x.sv);x.Vd=b.Rs;var z=b.Sv,ee=b.Tv;x.bounds=new hn(x.centerX-z,x.centerY-ee,b.Ss,b.Qs),x.focus=new lt(z,ee),x.sv--}}for(E=a.network.edges.iterator;E.next();)E.value.network=y;a.network=y}function ZE(a,y){var E=y.Hj;if(E!==null&&E.count!==0){var x=y.centerX,b=y.centerY,z=y.width,ee=y.height;y.We!==null&&0<y.We.count&&(ee=y.We.M(0),z=ee.Ss,ee=ee.Qs),z=Bt.sqrt(z*z+ee*ee)/2;for(var re=!1,oe=ee=0,ce=0,he=y.vertexes.iterator;he.next();){var ye=he.value;1>=ye.Vd?oe++:(re=!0,ce++,ee+=Math.atan2(y.centerY-ye.centerY,y.centerX-ye.centerX))}if(oe!==0){for(0<ce&&(ee/=ce),ce=y=0,y=re?2*Math.PI/(oe+1):2*Math.PI/oe,oe%2===0&&(ce=y/2),1<E.count&&E.sort(function(Ae,ke){return Ae===null||ke===null||Ae===ke?0:ke.width*ke.height-Ae.width*Ae.height}),re=oe%2===0?0:1,E=E.iterator;E.next();)if(oe=E.value,!(1<oe.Vd||a.isFixed(oe))){for(he=null,ye=oe.edges.iterator;ye.next();){he=ye.value;break}ye=oe.width;var Te=oe.height;ye=Bt.sqrt(ye*ye+Te*Te)/2,he=z+he.length+ye,ye=ee+(y*(re/2>>1)+ce)*(re%2===0?1:-1),oe.centerX=x+he*Math.cos(ye),oe.centerY=b+he*Math.sin(ye),re++}}}}function YS(a,y,E,x,b,z,ee){var re=9e19,oe=-1,ce=0;e:for(;ce<y;ce++){var he=a[ce],ye=he.x-E,Te=he.y-x;if(ye=ye*ye+Te*Te,ye<re){for(Te=ce-1;0<=Te;Te--)if(a[Te].y>he.y&&a[Te].x-he.x<b+ee.width)continue e;for(Te=ce+1;Te<y;Te++)if(a[Te].x>he.x&&a[Te].y-he.y<z+ee.height)continue e;oe=ce,re=ye}}return oe}us.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},us.prototype.addComments=function(a){var y=a.node;if(y!==null)for(y=y.Mu();y.next();){var E=y.value;if(E.category==="Comment"&&E.isVisible()){var x=this.network.ki(E);x===null&&(x=this.network.Bl(E)),x.charge=this.defaultCommentElectricalCharge,E=null;for(var b=x.destinationEdges;b.next();){var z=b.value;if(z.toVertex===a){E=z;break}}if(E===null){for(b=x.sourceEdges;b.next();)if(z=b.value,z.fromVertex===a){E=z;break}}E===null&&(E=this.network.Zj(a,x,null)),E.length=this.defaultCommentSpringLength}}};function VS(a,y){var E=a.bounds,x=E.x;a=E.y;var b=E.width;E=E.height;var z=y.bounds,ee=z.x;y=z.y;var re=z.width;return z=z.height,x+b<ee?a>y+z?(E=x+b-ee,a=a-y-z,Bt.sqrt(E*E+a*a)):a+E<y?(x=x+b-ee,a=a+E-y,Bt.sqrt(x*x+a*a)):ee-(x+b):x>ee+re?a>y+z?(E=x-ee-re,a=a-y-z,Bt.sqrt(E*E+a*a)):a+E<y?(x=x-ee-re,a=a+E-y,Bt.sqrt(x*x+a*a)):x-(ee+re):a>y+z?a-(y+z):a+E<y?y-(a+E):.1}function WS(a,y){for(a.ah=null,y=a.An+y;a.An<y&&(a.An++,KE(a)););a.ah=null}function KE(a){a.ah===null&&(a.ah=a.network.vertexes.Fa());var y=a.ah;if(0>=y.length)return!1;var E=y[0];E.forceX=0,E.forceY=0;for(var x=E.centerX,b=x,z=E=E.centerY,ee=1;ee<y.length;ee++){var re=y[ee];re.forceX=0,re.forceY=0;var oe=re.centerX;re=re.centerY,x=Math.min(x,oe),b=Math.max(b,oe),E=Math.min(E,re),z=Math.max(z,re)}(b=b-x>z-E)?y.sort(function(He,dt){return He===null||dt===null||He===dt?0:He.centerX-dt.centerX}):y.sort(function(He,dt){return He===null||dt===null||He===dt?0:He.centerY-dt.centerY}),E=a.Zf;var ce=x=re=0;for(z=0;z<y.length;z++){ee=y[z],x=ee.bounds,re=ee.focus,oe=x.x+re.x;var he=x.y+re.y;x=ee.charge*a.electricalFieldX(oe,he),ce=ee.charge*a.electricalFieldY(oe,he),x+=ee.mass*a.gravitationalFieldX(oe,he),ce+=ee.mass*a.gravitationalFieldY(oe,he),ee.forceX+=x,ee.forceY+=ce;for(var ye=z+1;ye<y.length;ye++){var Te=y[ye];if(Te!==ee){x=Te.bounds,re=Te.focus,ce=x.x+re.x;var Ae=x.y+re.y;if(oe-ce>E||ce-oe>E){if(b)break}else if(he-Ae>E||Ae-he>E){if(!b)break}else{var ke=VS(ee,Te);1>ke?(x=a.randomNumberGenerator,x===null&&(a.randomNumberGenerator=x=new A0),ke=x.random(),re=x.random(),oe>ce?(x=Math.abs(Te.bounds.right-ee.bounds.x),x=(1+x)*ke):oe<ce?(x=Math.abs(Te.bounds.x-ee.bounds.right),x=-(1+x)*ke):(x=Math.max(Te.width,ee.width),x=(1+x)*ke-x/2),he>Ae?(ce=Math.abs(Te.bounds.bottom-ee.bounds.y),ce=(1+ce)*re):oe<ce?(ce=Math.abs(Te.bounds.y-ee.bounds.bottom),ce=-(1+ce)*re):(ce=Math.max(Te.height,ee.height),ce=(1+ce)*re-ce/2)):(re=-(ee.charge*Te.charge)/(ke*ke),x=(ce-oe)/ke*re,ce=(Ae-he)/ke*re),ee.forceX+=x,ee.forceY+=ce,Te.forceX-=x,Te.forceY-=ce}}}}for(b=a.network.edges.iterator;b.next();)re=b.value,E=re.fromVertex,z=re.toVertex,ee=E.bounds,oe=E.focus,x=ee.x+oe.x,ee=ee.y+oe.y,he=z.bounds,ye=z.focus,oe=he.x+ye.x,he=he.y+ye.y,ye=VS(E,z),1>ye?(ye=a.randomNumberGenerator,ye===null&&(a.randomNumberGenerator=ye=new A0),re=ye.random(),ye=ye.random(),x=(x>oe?1:-1)*(1+(z.width>E.width?z.width:E.width))*re,ce=(ee>he?1:-1)*(1+(z.height>E.height?z.height:E.height))*ye):(re=re.stiffness*(ye-re.length),x=(oe-x)/ye*re,ce=(he-ee)/ye*re),E.forceX+=x,E.forceY+=ce,z.forceX-=x,z.forceY-=ce;for(b=x=0;b<y.length;b++)E=y[b],a.isFixed(E)?a.moveFixedVertex(E):x=Math.max(x,a.moveVertex(E)||0);return x>a.epsilonDistance*a.epsilonDistance}us.prototype.moveVertex=function(a){var y=a.forceX,E=a.forceY,x=this.moveLimit;return y<-x?y=-x:y>x&&(y=x),E<-x?E=-x:E>x&&(E=x),a.centerX+=y,a.centerY+=E,y*y+E*E},us.prototype.moveFixedVertex=function(){},us.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},us.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=Ca,y.toSpot=Ca)}},us.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var E=hn.alloc();this.computeBounds(this.network,E),y=this.arrangementOrigin,a=y.x-E.x,y=y.y-E.y,hn.free(E)}E=hn.alloc();for(var x=this.network.vertexes.iterator;x.next();){var b=x.value;(a!==0||y!==0)&&(E.assign(b.bounds),E.x+=a,E.y+=y,b.bounds=E),b.commit()}hn.free(E)},us.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},us.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},us.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},us.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},us.prototype.electricalFieldX=function(){return 0},us.prototype.electricalFieldY=function(){return 0},us.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},us.prototype.gravitationalFieldX=function(){return 0},us.prototype.gravitationalFieldY=function(){return 0},us.prototype.isFixed=function(a){return a.isFixed},It.Object.defineProperties(us.prototype,{currentIteration:{get:function(){return this.An}},arrangementSpacing:{get:function(){return this.$d},set:function(a){this.$d.D(a)||(this.$d.assign(a),this.C())}},arrangesToOrigin:{get:function(){return this.Bm},set:function(a){this.Bm!==a&&(this.Bm=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},comments:{get:function(){return this.td},set:function(a){this.td!==a&&(this.td=a,this.C())}},maxIterations:{get:function(){return this.dl},set:function(a){this.dl!==a&&0<=a&&(this.dl=a,this.C())}},epsilonDistance:{get:function(){return this.$m},set:function(a){this.$m!==a&&0<a&&(this.$m=a,this.C())}},infinityDistance:{get:function(){return this.Zf},set:function(a){this.Zf!==a&&1<a&&(this.Zf=a,this.C())}},moveLimit:{get:function(){return this.In},set:function(a){this.In!==a&&1<a&&(this.In=a,this.C())}},randomNumberGenerator:{get:function(){return this.fo},set:function(a){this.fo!==a&&(a!==null&&typeof a.random!="function"&&pt('ForceDirectedLayout.randomNumberGenerator must have a "random()" function on it: '+a),this.fo=a)}},defaultSpringStiffness:{get:function(){return this.Hk},set:function(a){this.Hk!==a&&(this.Hk=a,this.C())}},defaultSpringLength:{get:function(){return this.Gk},set:function(a){this.Gk!==a&&(this.Gk=a,this.C())}},defaultElectricalCharge:{get:function(){return this.Ek},set:function(a){this.Ek!==a&&(this.Ek=a,this.C())}},defaultGravitationalMass:{get:function(){return this.Fk},set:function(a){this.Fk!==a&&(this.Fk=a,this.C())}},defaultCommentSpringLength:{get:function(){return this.Vm},set:function(a){this.Vm!==a&&(this.Vm=a,this.C())}},defaultCommentElectricalCharge:{get:function(){return this.Um},set:function(a){this.Um!==a&&(this.Um=a,this.C())}}}),us.className="ForceDirectedLayout";function ZS(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}ZS.className="ForceDirectedSubnet";function gf(a){Eo.call(this,a)}Ut(gf,Eo),gf.prototype.createVertex=function(){return new kp(this)},gf.prototype.createEdge=function(){return new Dp(this)},gf.className="ForceDirectedNetwork";function kp(a){Ma.call(this,a),this.ia=!1,this.Ha=this.u=NaN,this.sh=this.Vd=this.V=this.F=0,this.We=this.Hj=null,this.sv=0}Ut(kp,Ma),It.Object.defineProperties(kp.prototype,{isFixed:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},charge:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},mass:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},forceX:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}},forceY:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}}}),kp.className="ForceDirectedVertex";function Dp(a){Nl.call(this,a),this.j=this.o=NaN}Ut(Dp,Nl),It.Object.defineProperties(Dp.prototype,{stiffness:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},length:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}}}),Dp.className="ForceDirectedEdge";function A0(){var a=0;a===void 0&&(a=42),this.seed=a,this.ay=48271,this.ey=2147483647,this.Q=44488.07041494893,this.gy=3399,this.by=1/2147483647,this.random()}A0.prototype.random=function(){var a=this.seed%this.Q*this.ay-this.seed/this.Q*this.gy;return 0<a?this.seed=a:this.seed=a+this.ey,this.seed*this.by},A0.className="RandomNumberGenerator";function to(a){_o.call(this),this.kc=this.ie=25,this.K=0,this.Dk=L0,this.Zk=I0,this.Qk=k0,this.bj=4,this.rk=D0,this.bg=15,this.sf=!0,this.Cn=4,this.Ra=this.Iq=this.Ia=-1,this.Md=this.Hn=0,this.Ta=this.Kd=this.Ld=this.he=this.tc=null,this.Kn=0,this.Jn=this.kj=null,this.le=0,this.fl=null,this.Rf=new lt,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}Ut(to,_o),to.prototype.cloneProtected=function(a){_o.prototype.cloneProtected.call(this,a),a.ie=this.ie,a.kc=this.kc,a.K=this.K,a.Dk=this.Dk,a.Zk=this.Zk,a.Qk=this.Qk,a.bj=this.bj,a.rk=this.rk,a.bg=this.bg,a.sf=this.sf,a.Cn=this.Cn,a.ve=this.ve},to.prototype.qb=function(a){a.classType===to?a.name.indexOf("Aggressive")===0?this.aggressiveOption=a:a.name.indexOf("Cycle")===0?this.cycleRemoveOption=a:a.name.indexOf("Init")===0?this.initializeOption=a:a.name.indexOf("Layer")===0?this.layeringOption=a:pt("Unknown enum value: "+a):_o.prototype.qb.call(this,a)},to.prototype.createNetwork=function(){return new fg(this)},to.prototype.doLayout=function(a){for(this.network===null&&(this.network=this.makeNetwork(a)),this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin),this.Iq=-1,this.Md=this.Hn=0,this.fl=this.Jn=this.kj=null,a=0;a<this.He.length;a++)this.He[a]=null;if(0<this.network.vertexes.count){for(this.network.Ko(),this.cycleRemoveOption!==Rp&&this.removeCycles(),a=this.network.vertexes.iterator;a.next();)a.value.layer=-1;for(this.Ia=-1,this.assignLayers(),a.reset();a.next();)this.Ia=Math.max(this.Ia,a.value.layer);this.cycleRemoveOption===Rp&&this.removeCycles(),a=this.network;for(var y=[],E=a.edges.iterator;E.next();){var x=E.value;x.valid=!1,y.push(x)}for(E=0;E<y.length;E++){x=y[E];var b=x.fromVertex,z=x.toVertex;if(!(x.valid||(b.node===null&&b.data===null||z.node===null&&z.data===null)&&b.layer===z.layer)){var ee=0,re=0,oe=0,ce=0;if(x.link!==null){if(re=x.link,re===null)continue;var he=b.node;if(ee=z.node,he===null||ee===null)continue;var ye=re.fromNode;oe=re.toNode;for(var Te=re.fromPort;Te!==null&&!Te.Ed();)Te=Te.panel;for(re=re.toPort;re!==null&&!re.Ed();)re=re.panel;if(x.rev){ce=ye;var Ae=Te;ye=oe,Te=re,oe=ce,re=Ae}var ke=b.focus;ce=z.focus;var He=x.rev?z.bounds:b.bounds;Ae=lt.alloc(),he!==ye?He.w()&&ye.isVisible()?ye.actualBounds.w()?(Ed(ye,Te,ur,Ae),Ae.x+=ye.actualBounds.x-He.x,Ae.y+=ye.actualBounds.y-He.y):(Ed(ye,Te,ur,Ae),Ae.w()||Ae.assign(ke)):Ae.assign(ke):He.w()?(Ed(ye,Te,ur,Ae),Ae.w()||Ae.assign(ke)):Ae.assign(ke),ye=x.rev?b.bounds:z.bounds,he=lt.alloc(),ee!==oe?ye.w()&&oe.isVisible()?oe.actualBounds.w()?(Ed(oe,re,ur,he),he.x+=oe.actualBounds.x-ye.x,he.y+=oe.actualBounds.y-ye.y):(Ed(oe,re,ur,he),he.w()||he.assign(ce)):he.assign(ce):ye.w()?(Ed(oe,re,ur,he),he.w()||he.assign(ce)):he.assign(ce),this.K===90||this.K===270?(ee=Math.round((Ae.x-ke.x)/this.kc),oe=Ae.x,re=Math.round((he.x-ce.x)/this.kc),ce=he.x):(ee=Math.round((Ae.y-ke.y)/this.kc),oe=Ae.y,re=Math.round((he.y-ce.y)/this.kc),ce=he.y),lt.free(Ae),lt.free(he),x.portFromColOffset=ee,x.portFromPos=oe,x.portToColOffset=re,x.portToPos=ce}else x.portFromColOffset=0,x.portFromPos=0,x.portToColOffset=0,x.portToPos=0;if(Ae=b.layer,he=z.layer,ye=0,He=x.link,He!==null){var dt=He.fromPort,tt=He.toPort;if(dt!==null&&tt!==null){var gt=He.fromNode;if(Te=He.toNode,gt!==null&&Te!==null){var yt=P0(this,!0),bt=P0(this,!1),kt=this.setsPortSpots?yt:He.computeSpot(!0,dt);ke=this.setsPortSpots?bt:He.computeSpot(!1,tt);var Kt=He.isOrthogonal;kt.$c()&&kt.Hf(bt)&&ke.$c()&&ke.Hf(yt)?ye=0:(yt=He.getLinkPoint(gt,dt,kt,!0,Kt,Te,tt,lt.alloc()),bt=He.getLinkDirection(gt,dt,yt,kt,!0,Kt,Te,tt),lt.free(yt),kt.ys()||bt!==nE(this,x,!0)?this.setsPortSpots&&gt!==null&&gt.ports.count===1&&x.rev&&(ye+=1):ye+=1,kt=He.getLinkPoint(Te,tt,ke,!1,Kt,gt,dt,lt.alloc()),He=He.getLinkDirection(Te,tt,kt,ke,!1,Kt,gt,dt),lt.free(kt),ke.ys()||He!==nE(this,x,!1)?this.setsPortSpots&&Te!==null&&Te.ports.count===1&&x.rev&&(ye+=2):ye+=2)}}}if(Te=ye,ye=Te===1||Te===3,(Te=Te===2||Te===3)&&(ke=a.createVertex(),ke.node=null,ke.Dj=1,ke.layer=Ae,ke.near=b,a.dh(ke),b=a.Zj(b,ke,x.link),b.valid=!1,b.rev=x.rev,b.portFromColOffset=ee,b.portToColOffset=0,b.portFromPos=oe,b.portToPos=0,b=ke),He=1,ye&&He--,Ae-he>He&&0<Ae){for(x.valid=!1,ke=a.createVertex(),ke.node=null,ke.Dj=2,ke.layer=Ae-1,a.dh(ke),b=a.Zj(b,ke,x.link),b.valid=!0,b.rev=x.rev,b.portFromColOffset=Te?0:ee,b.portToColOffset=0,b.portFromPos=Te?0:oe,b.portToPos=0,b=ke,Ae--;Ae-he>He&&0<Ae;)ke=a.createVertex(),ke.node=null,ke.Dj=3,ke.layer=Ae-1,a.dh(ke),b=a.Zj(b,ke,x.link),b.valid=!0,b.rev=x.rev,b.portFromColOffset=0,b.portToColOffset=0,b.portFromPos=0,b.portToPos=0,b=ke,Ae--;b=a.Zj(ke,z,x.link),b.valid=!ye,ye&&(ke.near=z),b.rev=x.rev,b.portFromColOffset=0,b.portToColOffset=re,b.portFromPos=0,b.portToPos=ce}else x.valid=!0}}for(a=this.tc=[],y=0;y<=this.Ia;y++)a[y]=0;for(y=this.network.vertexes.iterator;y.next();)y.value.index=-1;for(this.initializeIndices(),this.Iq=-1,E=this.Md=this.Hn=0;E<=this.Ia;E++)a[E]>a[this.Md]&&(this.Iq=a[E]-1,this.Md=E),a[E]<a[this.Hn]&&(this.Hn=E);for(this.fl=[],E=0;E<a.length;E++)this.fl[E]=[];for(y.reset();y.next();)a=y.value,this.fl[a.layer][a.index]=a;for(this.Ra=-1,a=0;a<=this.Ia;a++){for(y=nh(this,a),E=0,x=this.tc[a],z=0;z<x;z++)b=y[z],E+=this.nodeMinColumnSpace(b,!0),b.column=E,E+=1,E+=this.nodeMinColumnSpace(b,!1);this.Ra=Math.max(this.Ra,E-1),ih(this,a,y)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},to.prototype.linkMinLength=function(){return 1};function vy(a){var y=a.fromVertex.node||a.fromVertex.data;return a=a.toVertex.node||a.toVertex.data,y===null&&a===null?8:y===null||a===null?4:1}to.prototype.nodeMinLayerSpace=function(a,y){return a.node===null&&a.data===null?0:this.K===90||this.K===270?y?a.focus.y+10:a.bounds.height-a.focus.y+10:y?a.focus.x+10:a.bounds.width-a.focus.x+10},to.prototype.nodeMinColumnSpace=function(a,y){if(a.node===null&&a.data===null)return 0;var E=y?a.ev:a.dv;return E!==null?E:(E=this.K,E===90||E===270?y?a.ev=a.focus.x/this.kc+1|0:a.dv=(a.bounds.width-a.focus.x)/this.kc+1|0:y?a.ev=a.focus.y/this.kc+1|0:a.dv=(a.bounds.height-a.focus.y)/this.kc+1|0)};function al(a){a.kj===null&&(a.kj=[]);for(var y=0,E=a.network.vertexes.iterator;E.next();){var x=E.value;a.kj[y]=x.layer,y++,a.kj[y]=x.column,y++,a.kj[y]=x.index,y++}return a.kj}function ou(a,y){var E=0;for(a=a.network.vertexes.iterator;a.next();){var x=a.value;x.layer=y[E],E++,x.column=y[E],E++,x.index=y[E],E++}}function KS(a,y,E){var x=nh(a,y),b=a.tc[y];(a.Jn===null||a.Jn.length<b*b)&&(a.Jn=[]);for(var z=a.Jn,ee=0;ee<b;ee++){var re=0,oe=x[ee],ce=oe.near;if(ce!==null&&ce.layer===oe.layer)if(oe=ce.index,oe>ee)for(var he=ee+1;he<oe;he++){var ye=x[he];ye.near===ce&&ye.Dj===ce.Dj||re++}else for(he=ee-1;he>oe;he--)ye=x[he],ye.near===ce&&ye.Dj===ce.Dj||re++;var Te;if(0<=E)for(oe=x[ee].sourceEdgesArrayAccess,ce=0;ce<oe.length;ce++){var Ae=oe[ce];if(Ae.valid&&Ae.fromVertex.layer!==y)for(ye=Ae.fromVertex.index,he=Ae.portToPos,Ae=Ae.portFromPos,Te=ce+1;Te<oe.length;Te++){var ke=oe[Te];if(ke.valid&&ke.fromVertex.layer!==y){var He=ke.fromVertex.index,dt=ke.portToPos;ke=ke.portFromPos,he<dt&&(ye>He||ye===He&&Ae>ke)&&re++,dt<he&&(He>ye||He===ye&&ke>Ae)&&re++}}}if(0>=E){for(oe=x[ee].destinationEdgesArrayAccess,ce=0;ce<oe.length;ce++)if(Ae=oe[ce],Ae.valid&&Ae.toVertex.layer!==y)for(ye=Ae.toVertex.index,he=Ae.portToPos,Ae=Ae.portFromPos,Te=ce+1;Te<oe.length;Te++)ke=oe[Te],ke.valid&&ke.toVertex.layer!==y&&(He=ke.toVertex.index,dt=ke.portToPos,ke=ke.portFromPos,Ae<ke&&(ye>He||ye===He&&he>dt)&&re++,ke<Ae&&(He>ye||He===ye&&dt>he)&&re++)}for(z[ee*b+ee]=re,oe=ee+1;oe<b;oe++){var tt=0,gt=0;if(0<=E){re=x[ee].sourceEdgesArrayAccess;var yt=x[oe].sourceEdgesArrayAccess;for(ce=0;ce<re.length;ce++)if(Ae=re[ce],Ae.valid&&Ae.fromVertex.layer!==y)for(ye=Ae.fromVertex.index,Ae=Ae.portFromPos,Te=0;Te<yt.length;Te++)ke=yt[Te],ke.valid&&ke.fromVertex.layer!==y&&(He=ke.fromVertex.index,ke=ke.portFromPos,(ye<He||ye===He&&Ae<ke)&&gt++,(He<ye||He===ye&&ke<Ae)&&tt++)}if(0>=E){for(re=x[ee].destinationEdgesArrayAccess,yt=x[oe].destinationEdgesArrayAccess,ce=0;ce<re.length;ce++)if(Ae=re[ce],Ae.valid&&Ae.toVertex.layer!==y)for(ye=Ae.toVertex.index,he=Ae.portToPos,Te=0;Te<yt.length;Te++)ke=yt[Te],ke.valid&&ke.toVertex.layer!==y&&(He=ke.toVertex.index,dt=ke.portToPos,(ye<He||ye===He&&he<dt)&&gt++,(He<ye||He===ye&&dt<he)&&tt++)}z[ee*b+oe]=tt,z[oe*b+ee]=gt}}return ih(a,y,x),z}to.prototype.countCrossings=function(){for(var a=0,y=0;y<=this.Ia;y++)for(var E=KS(this,y,1),x=this.tc[y],b=0;b<x;b++)for(var z=b;z<x;z++)a+=E[b*x+z];return a};function C0(a){for(var y=0,E=0;E<=a.Ia;E++){for(var x=a,b=E,z=nh(x,b),ee=x.tc[b],re=0,oe=0;oe<ee;oe++){var ce=z[oe].destinationEdgesArrayAccess;if(ce!==null)for(var he=0;he<ce.length;he++){var ye=ce[he];if(ye.valid&&ye.toVertex.layer!==b){var Te=ye.fromVertex.column+ye.portFromColOffset,Ae=ye.toVertex.column+ye.portToColOffset;re+=(Math.abs(Te-Ae)+1)*vy(ye)}}}ih(x,b,z),y+=re}return y}to.prototype.normalize=function(){var a=1/0;this.Ra=-1;for(var y=this.network.vertexes.iterator;y.next();){var E=y.value;a=Math.min(a,E.column-this.nodeMinColumnSpace(E,!0)),this.Ra=Math.max(this.Ra,E.column+this.nodeMinColumnSpace(E,!1))}for(y.reset();y.next();)y.value.column-=a;this.Ra-=a};function yy(a,y,E){for(var x=nh(a,y),b=a.tc[y],z=[],ee=0;ee<b;ee++){var re=x[ee],oe=null;0>=E&&(oe=re.sourceEdgesArrayAccess);var ce=null;0<=E&&(ce=re.destinationEdgesArrayAccess);var he=0,ye=0,Te=re.near;if(Te!==null&&Te.layer===re.layer&&(he+=Te.column-1,ye++),oe!==null)for(Te=0;Te<oe.length;Te++){re=oe[Te];var Ae=re.fromVertex;re.valid&&!re.rev&&Ae.layer!==y&&(he+=Ae.column,ye++)}if(ce!==null)for(oe=0;oe<ce.length;oe++)re=ce[oe],Te=re.toVertex,re.valid&&!re.rev&&Te.layer!==y&&(he+=Te.column,ye++);z[ee]=ye===0?-1:he/ye}return ih(a,y,x),z}function QS(a,y,E){for(var x=nh(a,y),b=a.tc[y],z=[],ee=0;ee<b;ee++){var re=x[ee],oe=null;0>=E&&(oe=re.sourceEdgesArrayAccess);var ce=null;0<=E&&(ce=re.destinationEdgesArrayAccess);var he=0,ye=[],Te=re.near;if(Te!==null&&Te.layer===re.layer&&(ye[he]=Te.column-1,he++),re=void 0,oe!==null)for(Te=0;Te<oe.length;Te++){re=oe[Te];var Ae=re.fromVertex;re.valid&&!re.rev&&Ae.layer!==y&&(ye[he]=Ae.column+re.portFromColOffset,he++)}if(ce!==null)for(oe=0;oe<ce.length;oe++)re=ce[oe],Te=re.toVertex,re.valid&&!re.rev&&Te.layer!==y&&(ye[he]=Te.column+re.portToColOffset,he++);he===0?z[ee]=-1:(ye.sort(function(ke,He){return ke-He}),ce=he>>1,z[ee]=he&1?ye[ce]:ye[ce-1]+ye[ce]>>1)}return ih(a,y,x),z}function Op(a,y,E,x,b,z){if(y.component===x){if(y.component=E,b)for(var ee=y.destinationEdges;ee.next();){var re=ee.value,oe=re.toVertex,ce=y.layer-oe.layer;re=a.linkMinLength(re),ce===re&&Op(a,oe,E,x,b,z)}if(z)for(ee=y.sourceEdges;ee.next();)re=ee.value,oe=re.fromVertex,ce=oe.layer-y.layer,re=a.linkMinLength(re),ce===re&&Op(a,oe,E,x,b,z)}}function Sy(a,y,E,x,b,z){if(y.component===x){if(y.component=E,b)for(var ee=y.destinationEdges;ee.next();)Sy(a,ee.value.toVertex,E,x,b,z);if(z)for(y=y.sourceEdges;y.next();)Sy(a,y.value.fromVertex,E,x,b,z)}}to.prototype.removeCycles=function(){for(var a=this.network.edges.iterator;a.next();)a.value.rev=!1;switch(this.Dk){default:case by:a=this.network;var y=0,E=a.vertexes.count-1,x=[];x.length=E+1;for(var b=a.vertexes.iterator;b.next();)b.value.valid=!0;for(;QE(a)!==null;){for(b=XS(a);b!==null;)x[E]=b,E--,b.valid=!1,b=XS(a);for(b=JS(a);b!==null;)x[y]=b,y++,b.valid=!1,b=JS(a);b=null;for(var z=0,ee=this.network.vertexes.iterator;ee.next();){var re=ee.value;if(re.valid){for(var oe=0,ce=re.destinationEdges;ce.next();)ce.value.toVertex.valid&&oe++;ce=0;for(var he=re.sourceEdges;he.next();)he.value.fromVertex.valid&&ce++;(b===null||z<oe-ce)&&(b=re,z=oe-ce)}}b!==null&&(x[y]=b,y++,b.valid=!1)}for(y=0;y<a.vertexes.count;y++)x[y].index=y;for(x=a.edges.iterator;x.next();)y=x.value,y.fromVertex.index>y.toVertex.index&&(a.gm(y),y.rev=!0);break;case L0:for(x=this.network.vertexes.iterator;x.next();)a=x.value,a.Ll=-1,a.finish=-1;for(a=this.network.edges.iterator;a.next();)a.value.forest=!1;for(this.Kn=0,x.reset();x.next();)y=x.value,y.sourceEdges.count===0&&Ey(this,y);for(x.reset();x.next();)y=x.value,y.Ll===-1&&Ey(this,y);for(a.reset();a.next();)x=a.value,x.forest||(y=x.fromVertex,E=y.finish,b=x.toVertex,z=b.finish,b.Ll<y.Ll&&E<z&&(this.network.gm(x),x.rev=!0));break;case Rp:for(a=this.network,y=a.vertexes.iterator,x=1/0;y.next();)x=Math.min(x,y.value.layer);if(1/0>x){if(0>x)for(y.reset();y.next();)y.value.layer-=x;for(x=[],y.reset();y.next();)E=y.value,b=x[E.layer],b===void 0?x[E.layer]=[E]:b.push(E);for(E=y=0;E<x.length;E++)if(b=x[E],!b||b.length===0)y++;else if(0<E)for(z=0;z<b.length;z++)b[z].layer-=y;for(x=a.edges.iterator;x.next();)y=x.value,y.fromVertex.layer<y.toVertex.layer&&(a.gm(y),y.rev=!0)}}};function QE(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid)return y}return null}function XS(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var E=!0,x=y.destinationEdges;x.next();)if(x.value.toVertex.valid){E=!1;break}if(E)return y}}return null}function JS(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var E=!0,x=y.sourceEdges;x.next();)if(x.value.fromVertex.valid){E=!1;break}if(E)return y}}return null}function Ey(a,y){y.Ll=a.Kn,a.Kn++;for(var E=y.destinationEdges;E.next();){var x=E.value,b=x.toVertex;b.Ll===-1&&(x.forest=!0,Ey(a,b))}y.finish=a.Kn,a.Kn++}to.prototype.assignLayers=function(){switch(this.Zk){case wy:qS(this);break;case Ty:for(var a,y=this.network.vertexes.iterator;y.next();)a=eE(this,y.value),this.Ia=Math.max(a,this.Ia);for(y.reset();y.next();)a=y.value,a.layer=this.Ia-a.layer;break;default:case I0:for(qS(this),y=this.network.vertexes.iterator;y.next();)y.value.valid=!1;for(y.reset();y.next();)a=y.value,a.sourceEdges.count===0&&tE(this,a);for(a=1/0,y.reset();y.next();)a=Math.min(a,y.value.layer);for(this.Ia=-1,y.reset();y.next();){var E=y.value;E.layer-=a,this.Ia=Math.max(this.Ia,E.layer)}}};function qS(a){for(var y=a.network.vertexes.iterator;y.next();){var E=$S(a,y.value);a.Ia=Math.max(E,a.Ia)}}function $S(a,y){var E=0;if(y.layer===-1){for(var x=y.destinationEdges;x.next();){var b=x.value,z=b.toVertex;b=a.linkMinLength(b),E=Math.max(E,$S(a,z)+b)}y.layer=E}else E=y.layer;return E}function eE(a,y){var E=0;if(y.layer===-1){for(var x=y.sourceEdges;x.next();){var b=x.value,z=b.fromVertex;b=a.linkMinLength(b),E=Math.max(E,eE(a,z)+b)}y.layer=E}else E=y.layer;return E}function tE(a,y){if(!y.valid){y.valid=!0;for(var E=y.destinationEdges;E.next();)tE(a,E.value.toVertex);for(E=a.network.vertexes.iterator;E.next();)E.value.component=-1;for(var x=y.sourceEdgesArrayAccess,b=x.length,z=0;z<b;z++){var ee=x[z],re=ee.fromVertex,oe=ee.toVertex;ee=a.linkMinLength(ee),re.layer-oe.layer>ee&&Op(a,re,0,-1,!0,!1)}for(Op(a,y,1,-1,!0,!0);y.component!==0;){for(z=0,x=1/0,re=0,oe=null,ee=a.network.vertexes.iterator;ee.next();){var ce=ee.value;if(ce.component===1){var he=0,ye=!1,Te=ce.sourceEdgesArrayAccess;b=Te.length;for(var Ae=0;Ae<b;Ae++){var ke=Te[Ae],He=ke.fromVertex;he+=1,He.component!==1&&(z+=1,He=He.layer-ce.layer,ke=a.linkMinLength(ke),x=Math.min(x,He-ke))}for(Te=ce.destinationEdgesArrayAccess,b=Te.length,Ae=0;Ae<b;Ae++)ke=Te[Ae].toVertex,--he,ke.component!==1?--z:ye=!0;(oe===null||he<re)&&!ye&&(oe=ce,re=he)}}if(0<z){for(E.reset();E.next();)b=E.value,b.component===1&&(b.layer+=x);y.component=0}else oe.component=0}for(E=a.network.vertexes.iterator;E.next();)E.value.component=-1;for(Op(a,y,1,-1,!0,!1);y.component!==0;){for(x=0,b=1/0,z=0,re=null,oe=a.network.vertexes.iterator;oe.next();)if(ee=oe.value,ee.component===1){for(ce=0,he=!1,Te=ee.sourceEdgesArrayAccess,ye=Te.length,Ae=0;Ae<ye;Ae++)ke=Te[Ae].fromVertex,ce+=1,ke.component!==1?x+=1:he=!0;for(Te=ee.destinationEdgesArrayAccess,ye=Te.length,Ae=0;Ae<ye;Ae++)ke=Te[Ae],He=ke.toVertex,--ce,He.component!==1&&(--x,He=ee.layer-He.layer,ke=a.linkMinLength(ke),b=Math.min(b,He-ke));(re===null||ce>z)&&!he&&(re=ee,z=ce)}if(0>x){for(E.reset();E.next();)x=E.value,x.component===1&&(x.layer-=b);y.component=0}else re.component=0}}}function nE(a,y,E){return a.K===90?E&&!y.rev||!E&&y.rev?270:90:a.K===180?E&&!y.rev||!E&&y.rev?0:180:a.K===270?E&&!y.rev||!E&&y.rev?90:270:E&&!y.rev||!E&&y.rev?180:0}to.prototype.initializeIndices=function(){switch(this.Qk){default:case Cy:for(var a=this.network.vertexes.iterator;a.next();){var y=a.value,E=y.layer;y.index=this.tc[E],this.tc[E]++}break;case k0:for(a=this.network.vertexes.iterator,y=this.Ia;0<=y;y--)for(a.reset();a.next();)E=a.value,E.layer===y&&E.index===-1&&iE(this,E);break;case Ay:for(a=this.network.vertexes.iterator,y=0;y<=this.Ia;y++)for(a.reset();a.next();)E=a.value,E.layer===y&&E.index===-1&&rE(this,E)}};function iE(a,y){var E=y.layer;for(y.index=a.tc[E],a.tc[E]++,y=y.destinationEdgesArrayAccess,E=!0;E;){E=!1;for(var x=0;x<y.length-1;x++){var b=y[x],z=y[x+1];b.portFromColOffset>z.portFromColOffset&&(E=!0,y[x]=z,y[x+1]=b)}}for(E=0;E<y.length;E++)x=y[E],x.valid&&(x=x.toVertex,x.index===-1&&iE(a,x))}function rE(a,y){var E=y.layer;y.index=a.tc[E],a.tc[E]++,y=y.sourceEdgesArrayAccess;for(var x=!0;x;)for(x=!1,E=0;E<y.length-1;E++){var b=y[E],z=y[E+1];b.portToColOffset>z.portToColOffset&&(x=!0,y[E]=z,y[E+1]=b)}for(E=0;E<y.length;E++)x=y[E],x.valid&&(x=x.fromVertex,x.index===-1&&rE(a,x))}to.prototype.reduceCrossings=function(){var a=this.countCrossings(),y=al(this),E,x;for(E=0;E<this.bj;E++){for(x=0;x<=this.Ia;x++)N0(this,x,1),Su(this,x,1);var b=this.countCrossings();for(b<a&&(a=b,y=al(this)),x=this.Ia;0<=x;x--)N0(this,x,-1),Su(this,x,-1);b=this.countCrossings(),b<a&&(a=b,y=al(this))}for(ou(this,y),E=0;E<this.bj;E++){for(x=0;x<=this.Ia;x++)N0(this,x,0),Su(this,x,0);for(b=this.countCrossings(),b<a&&(a=b,y=al(this)),x=this.Ia;0<=x;x--)N0(this,x,0),Su(this,x,0);b=this.countCrossings(),b<a&&(a=b,y=al(this))}ou(this,y);var z,ee,re;switch(this.rk){case Ny:break;case My:for(re=a+1;(x=this.countCrossings())<re;)for(re=x,E=this.Ia;0<=E;E--)for(ee=0;ee<=E;ee++){for(z=!0;z;)for(z=!1,x=E;x>=ee;x--)z=Su(this,x,-1)||z;for(b=this.countCrossings(),b>=a?ou(this,y):(a=b,y=al(this)),z=!0;z;)for(z=!1,x=E;x>=ee;x--)z=Su(this,x,1)||z;for(b=this.countCrossings(),b>=a?ou(this,y):(a=b,y=al(this)),z=!0;z;)for(z=!1,x=ee;x<=E;x++)z=Su(this,x,1)||z;for(b>=a?ou(this,y):(a=b,y=al(this)),z=!0;z;)for(z=!1,x=ee;x<=E;x++)z=Su(this,x,-1)||z;for(b>=a?ou(this,y):(a=b,y=al(this)),z=!0;z;)for(z=!1,x=E;x>=ee;x--)z=Su(this,x,0)||z;for(b>=a?ou(this,y):(a=b,y=al(this)),z=!0;z;)for(z=!1,x=ee;x<=E;x++)z=Su(this,x,0)||z;b>=a?ou(this,y):(a=b,y=al(this))}break;default:case D0:for(E=this.Ia,ee=0,re=a+1;(x=this.countCrossings())<re;){for(re=x,z=!0;z;)for(z=!1,x=E;x>=ee;x--)z=Su(this,x,-1)||z;for(b=this.countCrossings(),b>=a?ou(this,y):(a=b,y=al(this)),z=!0;z;)for(z=!1,x=E;x>=ee;x--)z=Su(this,x,1)||z;for(b=this.countCrossings(),b>=a?ou(this,y):(a=b,y=al(this)),z=!0;z;)for(z=!1,x=ee;x<=E;x++)z=Su(this,x,1)||z;for(b>=a?ou(this,y):(a=b,y=al(this)),z=!0;z;)for(z=!1,x=ee;x<=E;x++)z=Su(this,x,-1)||z;for(b>=a?ou(this,y):(a=b,y=al(this)),z=!0;z;)for(z=!1,x=E;x>=ee;x--)z=Su(this,x,0)||z;for(b>=a?ou(this,y):(a=b,y=al(this)),z=!0;z;)for(z=!1,x=ee;x<=E;x++)z=Su(this,x,0)||z;b>=a?ou(this,y):(a=b,y=al(this))}}ou(this,y)};function N0(a,y,E){var x=nh(a,y),b=a.tc[y],z=QS(a,y,E),ee=yy(a,y,E);for(E=0;E<b;E++)ee[E]===-1&&(ee[E]=x[E].column),z[E]===-1&&(z[E]=x[E].column);for(var re=!0,oe;re;)for(re=!1,E=0;E<b-1;E++)(z[E+1]<z[E]||z[E+1]===z[E]&&ee[E+1]<ee[E])&&(re=!0,oe=z[E],z[E]=z[E+1],z[E+1]=oe,oe=ee[E],ee[E]=ee[E+1],ee[E+1]=oe,oe=x[E],x[E]=x[E+1],x[E+1]=oe);for(E=z=0;E<b;E++)oe=x[E],oe.index=E,z+=a.nodeMinColumnSpace(oe,!0),oe.column=z,z+=1,z+=a.nodeMinColumnSpace(oe,!1);ih(a,y,x)}function Su(a,y,E){var x=nh(a,y),b=a.tc[y];E=KS(a,y,E);var z,ee=[];for(z=0;z<b;z++)ee[z]=-1;var re=[];for(z=0;z<b;z++)re[z]=-1;for(var oe=!1,ce=!0;ce;)for(ce=!1,z=0;z<b-1;z++){var he=E[x[z].index*b+x[z+1].index],ye=E[x[z+1].index*b+x[z].index],Te=0,Ae=0,ke=x[z].column,He=x[z+1].column,dt=a.nodeMinColumnSpace(x[z],!0),tt=a.nodeMinColumnSpace(x[z],!1),gt=a.nodeMinColumnSpace(x[z+1],!0),yt=a.nodeMinColumnSpace(x[z+1],!1);dt=ke-dt+gt,tt=He-tt+yt;var bt=x[z].sourceEdges.iterator;for(bt.reset();bt.next();)if(gt=bt.value,yt=gt.fromVertex,gt.valid&&yt.layer===y){for(gt=0;x[gt]!==yt;)gt++;gt<z&&(Te+=2*(z-gt),Ae+=2*(z+1-gt)),gt===z+1&&(Te+=1),gt>z+1&&(Te+=4*(gt-z),Ae+=4*(gt-(z+1)))}for(bt=x[z].destinationEdges.iterator,bt.reset();bt.next();)if(gt=bt.value,yt=gt.toVertex,gt.valid&&yt.layer===y){for(gt=0;x[gt]!==yt;)gt++;gt===z+1&&(Ae+=1)}for(bt=x[z+1].sourceEdges.iterator,bt.reset();bt.next();)if(gt=bt.value,yt=gt.fromVertex,gt.valid&&yt.layer===y){for(gt=0;x[gt]!==yt;)gt++;gt<z&&(Te+=2*(z+1-gt),Ae+=2*(z-gt)),gt===z&&(Ae+=1),gt>z+1&&(Te+=4*(gt-(z+1)),Ae+=4*(gt-z))}for(bt=x[z+1].destinationEdges.iterator,bt.reset();bt.next();)if(gt=bt.value,yt=gt.toVertex,gt.valid&&yt.layer===y){for(gt=0;x[gt]!==yt;)gt++;gt===z&&(Te+=1)}gt=yt=0,bt=ee[x[z].index];var kt=re[x[z].index],Kt=ee[x[z+1].index],di=re[x[z+1].index];bt!==-1&&(yt+=Math.abs(bt-ke),gt+=Math.abs(bt-tt)),kt!==-1&&(yt+=Math.abs(kt-ke),gt+=Math.abs(kt-tt)),Kt!==-1&&(yt+=Math.abs(Kt-He),gt+=Math.abs(Kt-dt)),di!==-1&&(yt+=Math.abs(di-He),gt+=Math.abs(di-dt)),(Ae<Te-.5||Ae===Te&&ye<he-.5||Ae===Te&&ye===he&&gt<yt-.5)&&(ce=oe=!0,x[z].column=tt,x[z+1].column=dt,he=x[z],x[z]=x[z+1],x[z+1]=he)}for(z=0;z<b;z++)x[z].index=z;return ih(a,y,x),oe}to.prototype.straightenAndPack=function(){if(this.ve===0){var a=(this.bg&1)!==0,y=(this.bg&ix)!==0;if(1e3<this.network.edges.count&&y&&(a=!1),a){var E=[];for(y=0;y<=this.Ia;y++)E[y]=0;for(var x,b=this.network.vertexes.iterator;b.next();){var z=b.value;y=z.layer,x=z.column,z=this.nodeMinColumnSpace(z,!1),E[y]=Math.max(E[y],x+z)}for(b.reset();b.next();)z=b.value,y=z.layer,x=z.column,z.column=(8*(this.Ra-E[y])>>1)+8*x;this.Ra*=8}if(this.bg&2)for(E=!0;E;){for(E=!1,y=this.Md+1;y<=this.Ia;y++)E=hg(this,y,1)||E;for(y=this.Md-1;0<=y;y--)E=hg(this,y,-1)||E;E=hg(this,this.Md,0)||E}if(this.bg&4){for(y=this.Md+1;y<=this.Ia;y++)xy(this,y,1);for(y=this.Md-1;0<=y;y--)xy(this,y,-1);xy(this,this.Md,0)}if(a&&(oE(this,-1),oE(this,1)),this.bg&2)for(E=!0;E;){for(E=!1,E=hg(this,this.Md,0)||E,y=this.Md+1;y<=this.Ia;y++)E=hg(this,y,0)||E;for(y=this.Md-1;0<=y;y--)E=hg(this,y,0)||E}}else $E(this)};function hg(a,y,E){for(var x=!1;XE(a,y,E);)x=!0;return x}function XE(a,y,E){var x,b=nh(a,y),z=a.tc[y],ee=yy(a,y,-1);if(0<E)for(x=0;x<z;x++)ee[x]=-1;var re=yy(a,y,1);if(0>E)for(x=0;x<z;x++)re[x]=-1;for(var oe=!1,ce=!0;ce;)for(ce=!1,x=0;x<z;x++){var he=b[x].column,ye=a.nodeMinColumnSpace(b[x],!0),Te=a.nodeMinColumnSpace(b[x],!1),Ae=0;0>x-1||he-b[x-1].column-1>ye+a.nodeMinColumnSpace(b[x-1],!1)?Ae=he-1:Ae=he,ye=x+1>=z||b[x+1].column-he-1>Te+a.nodeMinColumnSpace(b[x+1],!0)?he+1:he;var ke=Te=0,He=0;if(0>=E)for(var dt=b[x].sourceEdges.iterator;dt.next();){var tt=dt.value,gt=tt.fromVertex;if(tt.valid&&gt.layer!==y){var yt=vy(tt),bt=tt.portFromColOffset;tt=tt.portToColOffset,gt=gt.column,Te+=(Math.abs(he+tt-(gt+bt))+1)*yt,ke+=(Math.abs(Ae+tt-(gt+bt))+1)*yt,He+=(Math.abs(ye+tt-(gt+bt))+1)*yt}}if(0<=E)for(dt=b[x].destinationEdges.iterator;dt.next();)tt=dt.value,gt=tt.toVertex,tt.valid&&gt.layer!==y&&(yt=vy(tt),bt=tt.portFromColOffset,tt=tt.portToColOffset,gt=gt.column,Te+=(Math.abs(he+bt-(gt+tt))+1)*yt,ke+=(Math.abs(Ae+bt-(gt+tt))+1)*yt,He+=(Math.abs(ye+bt-(gt+tt))+1)*yt);tt=bt=yt=0,dt=ee[b[x].index],gt=re[b[x].index],dt!==-1&&(yt+=Math.abs(dt-he),bt+=Math.abs(dt-Ae),tt+=Math.abs(dt-ye)),gt!==-1&&(yt+=Math.abs(gt-he),bt+=Math.abs(gt-Ae),tt+=Math.abs(gt-ye)),ke<Te||ke===Te&&bt<yt?(ce=oe=!0,b[x].column=Ae):(He<Te||He===Te&&tt<yt)&&(ce=oe=!0,b[x].column=ye)}return ih(a,y,b),a.normalize(),oe}function xy(a,y,E){var x=nh(a,y),b=a.tc[y],z=QS(a,y,E),ee=[];for(E=0;E<b;E++)ee[E]=z[E];for(z=!0;z;)for(z=!1,E=0;E<b;E++){var re=x[E].column,oe=a.nodeMinColumnSpace(x[E],!0),ce=a.nodeMinColumnSpace(x[E],!1),he=0;if(ee[E]===-1)if(E===0&&E===b-1)he=re;else if(E===0){var ye=x[E+1].column;ye-re===ce+a.nodeMinColumnSpace(x[E+1],!0)?he=re-1:he=re}else E===b-1?(ye=x[E-1].column,he=re-ye===oe+a.nodeMinColumnSpace(x[E-1],!1)?re+1:re):(ye=x[E-1].column,oe=ye+a.nodeMinColumnSpace(x[E-1],!1)+oe+1,ye=x[E+1].column,ce=ye-a.nodeMinColumnSpace(x[E+1],!0)-ce-1,he=(oe+ce)/2|0);else E===0&&E===b-1?he=ee[E]:E===0?(ye=x[E+1].column,ce=ye-a.nodeMinColumnSpace(x[E+1],!0)-ce-1,he=Math.min(ee[E],ce)):E===b-1?(ye=x[E-1].column,oe=ye+a.nodeMinColumnSpace(x[E-1],!1)+oe+1,he=Math.max(ee[E],oe)):(ye=x[E-1].column,oe=ye+a.nodeMinColumnSpace(x[E-1],!1)+oe+1,ye=x[E+1].column,ce=ye-a.nodeMinColumnSpace(x[E+1],!0)-ce-1,oe<ee[E]&&ee[E]<ce?he=ee[E]:oe>=ee[E]?he=oe:ce<=ee[E]&&(he=ce));he!==re&&(z=!0,x[E].column=he)}ih(a,y,x),a.normalize()}function JE(a,y){for(var E=!0,x=a.network.vertexes.iterator;x.next();){var b=x.value,z=a.nodeMinColumnSpace(b,!0),ee=a.nodeMinColumnSpace(b,!1);if(b.column-z<=y&&b.column+ee>=y){E=!1;break}}if(a=!1,E)for(x.reset();x.next();)E=x.value,E.column>y&&(--E.column,a=!0);return a}function qE(a,y){var E=y+1,x,b=[],z=[];for(x=0;x<=a.Ia;x++)b[x]=!1,z[x]=!1;for(var ee=a.network.vertexes.iterator;ee.next();){x=ee.value;var re=x.column-a.nodeMinColumnSpace(x,!0),oe=x.column+a.nodeMinColumnSpace(x,!1);re<=y&&oe>=y&&(b[x.layer]=!0),re<=E&&oe>=E&&(z[x.layer]=!0)}for(re=!0,E=!1,x=0;x<=a.Ia;x++)re=re&&!(b[x]&&z[x]);if(re)for(ee.reset();ee.next();)a=ee.value,a.column>y&&(--a.column,E=!0);return E}function oE(a,y){for(var E=0;E<=a.Ra;E++)for(;JE(a,E););for(a.normalize(),E=0;E<a.Ra;E++)for(;qE(a,E););a.normalize();var x;if(0<y)for(E=0;E<=a.Ra;E++){var b=al(a),z=C0(a);for(x=z+1;z<x;){x=z,aE(a,E,1);var ee=C0(a);ee>z?ou(a,b):ee<z&&(z=ee,b=al(a))}}if(0>y)for(E=a.Ra;0<=E;E--)for(b=al(a),z=C0(a),x=z+1;z<x;)x=z,aE(a,E,-1),ee=C0(a),ee>z?ou(a,b):ee<z&&(z=ee,b=al(a));a.normalize()}function aE(a,y,E){a.le=0;for(var x=a.network.vertexes.iterator;x.next();)x.value.component=-1;if(0<E)for(x.reset();x.next();){var b=x.value;b.column-a.nodeMinColumnSpace(b,!0)<=y&&(b.component=a.le)}if(0>E)for(x.reset();x.next();)b=x.value,b.column+a.nodeMinColumnSpace(b,!1)>=y&&(b.component=a.le);for(a.le++,x.reset();x.next();)y=x.value,y.component===-1&&(Sy(a,y,a.le,-1,!0,!0),a.le++);var z;for(y=[],z=0;z<a.le*a.le;z++)y[z]=!1;for(b=[],z=0;z<(a.Ia+1)*(a.Ra+1);z++)b[z]=-1;for(x.reset();x.next();){z=x.value;for(var ee=z.layer,re=Math.max(0,z.column-a.nodeMinColumnSpace(z,!0)),oe=Math.min(a.Ra,z.column+a.nodeMinColumnSpace(z,!1));re<=oe;re++)b[ee*(a.Ra+1)+re]=z.component}for(z=0;z<=a.Ia;z++){if(0<E)for(ee=0;ee<a.Ra;ee++)b[z*(a.Ra+1)+ee]!==-1&&b[z*(a.Ra+1)+ee+1]!==-1&&b[z*(a.Ra+1)+ee]!==b[z*(a.Ra+1)+ee+1]&&(y[b[z*(a.Ra+1)+ee]*a.le+b[z*(a.Ra+1)+ee+1]]=!0);if(0>E)for(ee=a.Ra;0<ee;ee--)b[z*(a.Ra+1)+ee]!==-1&&b[z*(a.Ra+1)+ee-1]!==-1&&b[z*(a.Ra+1)+ee]!==b[z*(a.Ra+1)+ee-1]&&(y[b[z*(a.Ra+1)+ee]*a.le+b[z*(a.Ra+1)+ee-1]]=!0)}for(b=[],z=0;z<a.le;z++)b[z]=!0;for(ee=[],ee.push(0);ee.length!==0;)if(oe=ee[ee.length-1],ee.pop(),b[oe])for(b[oe]=!1,z=0;z<a.le;z++)y[oe*a.le+z]&&ee.splice(0,0,z);if(0<E)for(x.reset();x.next();)a=x.value,b[a.component]&&--a.column;if(0>E)for(x.reset();x.next();)E=x.value,b[E.component]&&(E.column+=1)}function $E(a){for(var y=Ni(),E=a.fl.length,x=0;x<=E;x++)y[x]=[];for(x=a.network.vertexes.iterator;x.next();){var b=x.value;y[E-b.layer][b.index]=b}E=new In,ex(y,E);var z=null,ee=null,re=null,oe=null,ce=(a.ve&1)!==0,he=(a.ve&2)!==0,ye=(a.ve&4)!==0,Te=(a.ve&8)!==0;for(ce&&(a.verticalAlignment(y,E,!0),z=M0(a,y,!0,!1)),y.reverse(),ye&&(a.verticalAlignment(y,E,!1),re=M0(a,y,!1,!1)),x=Bi(y),b=x.next();!b.done;b=x.next())b.value.reverse();Te&&(a.verticalAlignment(y,E,!1),oe=M0(a,y,!1,!0)),y.reverse(),he&&(a.verticalAlignment(y,E,!0),ee=M0(a,y,!0,!0)),hi(y),a.u(z,ee,re,oe),a.network.vertexes.each(function(Ae){var ke=Ni();ce&&ke.push(z.get(Ae)),he&&ke.push(ee.get(Ae)),ye&&ke.push(re.get(Ae)),Te&&ke.push(oe.get(Ae)),ke.sort(function(dt,tt){return dt-tt});var He=ke.length;He=(ke[Math.floor((He-1)/2)]+ke[Math.ceil((He-1)/2)])/2,hi(ke),Ae.zc=He})}function ex(a,y){for(var E=a.length,x=1;x<E-1;x++)for(var b=0,z=0,ee=a[x],re=a[x+1],oe=0;z<re.length;oe++){var ce=re[oe];e:{if(ce.node===null){var he=Py(ce);if(0<he.length){he=he[0].node===null;break e}}he=!1}var ye=he;if(oe===re.length-1||ye){for(he=ee.length-1,ye&&(he=Py(ce)[0].index);z<=oe;){if(ce=re[z],!ce.bo){ye=[];for(var Te=Bi(ce.sourceEdgesArrayAccess),Ae=Te.next();!Ae.done;Ae=Te.next())Ae=Ae.value,Ae.valid&&ye.push(Ae);ce.bo=ye}for(ce=Bi(ce.bo),ye=ce.next();!ye.done;ye=ce.next())ye=ye.value,Te=ye.fromVertex.index,(Te<b||Te>he)&&y.add(ye);z++}b=he}}}to.prototype.verticalAlignment=function(a,y,E){tx(a),a=Bi(a);for(var x=a.next();!x.done;x=a.next()){var b=-1;x=Bi(x.value);for(var z=x.next();!z.done;z=x.next()){z=z.value;var ee=E?Py(z):rx(z),re=ee.length;if(0<re){ee.sort(function(ye,Te){return ye.vi-Te.vi});var oe=(re-1)/2;for(re=Math.floor(oe),oe=Math.ceil(oe);re<=oe;re++)if(z.align===z){var ce=ee[re],he=void 0;he=E?O0(ce,z):O0(z,ce),!y.contains(he)&&b<ce.vi&&(ce.align=z,z.root=ce.root,z.align=ce.root,b=ce.vi)}}}}};function tx(a){for(var y=0;y<a.length;y++)for(var E=a[y],x=0;x<E.length;x++){var b=E[x];b.root=b,b.align=b,b.Tz=y,b.vi=x}}function M0(a,y,E,x){for(var b=a.K===90||a.K===270,z=Bi(y),ee=z.next();!ee.done;ee=z.next()){var re=Bi(ee.value);for(ee=re.next();!ee.done;ee=re.next())ee=ee.value,ee.sd=ee,ee.shift=1/0,ee.zc=NaN,ee.qg=0}for(ee=a.K===90||a.K===270,z=Bi(y),re=z.next();!re.done;re=z.next()){re=Bi(re.value);for(var oe=re.next();!oe.done;oe=re.next())if(oe=oe.value,oe.root===oe){for(var ce=0,he=oe;he.align!==oe;){var ye=he.align,Te=ee?he.width:he.height,Ae=ee?ye.width:ye.height;if(E){var ke=O0(he,ye),He=ke.portFromPos,dt=ke.portToPos;ke.link!==null&&(he.node&&he.node!==ke.link.fromNode&&(He=ee?he.focusX:he.focusY),ye.node&&ye.node!==ke.link.toNode&&(dt=ee?ye.focusX:ye.focusY))}else ke=O0(ye,he),He=ke.portToPos,dt=ke.portFromPos,ke.link!==null&&(he.node&&he.node!==ke.link.toNode&&(He=ee?he.focusX:he.focusY),ye.node&&ye.node!==ke.link.fromNode&&(dt=ee?ye.focusX:ye.focusY));Te=x?he.qg+(Te-He)-(Ae-dt):he.qg+He-dt,ye.qg=Te,ce=Math.min(ce,Te),he=he.align}he=oe;do he.qg=he.qg-ce,he=he.align;while(he!==oe)}}for(E=Bi(y),ee=E.next();!ee.done;ee=E.next())for(z=Bi(ee.value),ee=z.next();!ee.done;ee=z.next())ee=ee.value,ee.root===ee&&sE(a,ee,y);for(E=0;E<y.length;E++)if(!(0>=y[E].length)&&(ee=y[E][0],ee.sd===ee)){ee.sd.shift===1/0&&(ee.sd.shift=0),ee=E,re=0;do{for(z=y[ee][re];z.align!==z.root;)z=z.align,ee++,0<z.vi&&(re=lE(z,y),re.sd.shift=Math.min(re.sd.shift,z.sd.shift+z.zc+z.qg-(re.zc+re.qg+(b?re.width:re.height)+a.columnSpacing)));re=z.vi+1}while(ee<y.length&&re<y[ee].length&&z.sd===y[ee][re].sd)}for(a=new zi,y=Bi(y),ee=y.next();!ee.done;ee=y.next())for(E=Bi(ee.value),ee=E.next();!ee.done;ee=E.next())ee=ee.value,ee.zc=ee.zc+ee.sd.shift+ee.qg,z=b?ee.width:ee.height,a.add(ee,x?-ee.zc-z:ee.zc);return a}function sE(a,y,E){if(isNaN(y.zc)){y.zc=0;var x=y;do{if(0<x.vi){var b=lE(x,E),z=b.root;sE(a,z,E),y.sd===y&&(y.sd=z.sd);var ee=a.K===90||a.K===270?b.width:b.height;y.sd===z.sd&&(y.zc=Math.max(y.zc,z.zc+b.qg+ee-x.qg+a.columnSpacing))}x=x.align}while(x!==y);for(;x.align!==y;)x=x.align,x.zc=y.zc,x.sd=y.sd}}function lE(a,y){var E=a.Tz;return a=a.vi,1>a&&pt("Could not determine previous vertex in layer"),y[E][a-1]}to.prototype.u=function(a){for(var y=[],E=0;E<arguments.length;++E)y[E]=arguments[E];E=-1;for(var x=Ni(),b=Ni(),z=1/0,ee=0;4>ee;ee++)if(y[ee]){var re=nx(this,y[ee],x,b,ee);re<z&&(E=ee,z=re)}for(z={},ee=0;4>ee;z={delta:z.delta},ee++)y[ee]&&(z.delta=ee===0||ee===2?x[E]-x[ee]:b[E]-b[ee],z.delta!==0&&y[ee].each(function(oe){return function(ce){ce.value+=oe.delta}}(z)));hi(x),hi(b)};function nx(a,y,E,x,b){if(!y||y.count===0)return E[b]=0,x[b]=0,1/0;var z=1/0,ee=-1/0;return y.each(function(re){var oe=re.key;re=re.value,oe=a.K===90||a.K===270?oe.width:oe.height,re<z&&(z=re),re+oe>ee&&(ee=re+oe)}),E[b]=z,x[b]=ee,ee-z}to.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=P0(this,!0),y=P0(this,!1),E=this.network.edges.iterator;E.next();){var x=E.value.link;x!==null&&(x.fromSpot=a,x.toSpot=y)}this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()};function P0(a,y){return a.K===270?y?rs:Ya:a.K===90?y?Ya:rs:a.K===180?y?ds:_a:y?_a:ds}to.prototype.commitNodes=function(){this.he=[],this.Ld=[],this.Kd=[],this.Ta=[];for(var a=0;a<=this.Ia;a++)this.he[a]=0,this.Ld[a]=0,this.Kd[a]=0,this.Ta[a]=0;for(a=this.network.vertexes.iterator;a.next();){var y=a.value,E=y.layer;this.he[E]=Math.max(this.he[E],this.nodeMinLayerSpace(y,!0)),this.Ld[E]=Math.max(this.Ld[E],this.nodeMinLayerSpace(y,!1))}y=0,E=this.ie;for(var x=0;x<=this.Ia;x++){var b=E;0>=this.he[x]+this.Ld[x]&&(b=0),0<x&&(y+=b/2),this.K===90||this.K===0?(y+=this.Ld[x],this.Kd[x]=y,y+=this.he[x]):(y+=this.he[x],this.Kd[x]=y,y+=this.Ld[x]),x<this.Ia&&(y+=b/2),this.Ta[x]=y}for(E=y,y=this.arrangementOrigin,x=0;x<=this.Ia;x++)this.K===270?this.Kd[x]=y.y+this.Kd[x]:this.K===90?(this.Kd[x]=y.y+E-this.Kd[x],this.Ta[x]=E-this.Ta[x]):this.K===180?this.Kd[x]=y.x+this.Kd[x]:(this.Kd[x]=y.x+E-this.Kd[x],this.Ta[x]=E-this.Ta[x]);E=this.ve!==0,a.reset(),x=this.K===270||this.K===90;for(var z=1/0,ee=b=1/0,re=-1/0;a.next();){var oe=a.value,ce=oe.layer,he=oe.column|0;x?(ee=y.x+this.kc*he,ce=this.Kd[ce]):(ee=this.Kd[ce],ce=y.y+this.kc*he),oe.centerX=ee,oe.centerY=ce,E&&isFinite(oe.zc)&&(x?oe.node?oe.x=y.x+oe.zc:oe.centerX=y.x+oe.zc:oe.node?oe.y=y.y+oe.zc:oe.centerY=y.y+oe.zc),z=Math.min(oe.x,z),b=Math.min(oe.y,b),x?(ee=z,re=Math.max(re,oe.bounds.right)):(ee=b,re=Math.max(re,oe.bounds.bottom))}for(this.xw=re-ee,z=y.x-z,y=y.y-b,this.Rf=new lt(E&&x?0:z,E&&!x?0:y),a.reset();a.next();)E=a.value,E.x+=z,E.y+=y,E.commit()},to.prototype.Gu=function(){for(var a=0,y=this.ie,E=0;E<=this.Ia;E++)a+=this.he[E],a+=this.Ld[E];a+=this.Ia*y,y=[],E=this.ve!==0?this.xw:this.kc*this.Ra;for(var x=this.maxLayer;0<=x;x--)this.K===270?x===0?y.push(new hn(0,0,E,Math.abs(this.Ta[0]))):y.push(new hn(0,this.Ta[x-1],E,Math.abs(this.Ta[x-1]-this.Ta[x]))):this.K===90?x===0?y.push(new hn(0,this.Ta[0],E,Math.abs(this.Ta[0]-a))):y.push(new hn(0,this.Ta[x],E,Math.abs(this.Ta[x-1]-this.Ta[x]))):this.K===180?x===0?y.push(new hn(0,0,Math.abs(this.Ta[0]),E)):y.push(new hn(this.Ta[x-1],0,Math.abs(this.Ta[x-1]-this.Ta[x]),E)):x===0?y.push(new hn(this.Ta[0],0,Math.abs(this.Ta[0]-a),E)):y.push(new hn(this.Ta[x],0,Math.abs(this.Ta[x-1]-this.Ta[x]),E));this.commitLayers(y,this.Rf)},to.prototype.commitLayers=function(){},to.prototype.commitLinks=function(){for(var a=this.network.edges.iterator,y;a.next();)y=a.value.link,y!==null&&(y.uh(),y.Fj(),y.zf());for(a.reset();a.next();)y=a.value.link,y!==null&&y.vg();for(a.reset();a.next();){var E=a.value;if(y=E.link,y!==null){y.uh();var x=y,b=x.fromNode,z=x.toNode,ee=x.fromPort,re=x.toPort;if(b!==null){var oe=b.findVisibleNode();oe!==null&&oe!==b&&(b=oe,ee=oe.port)}z!==null&&(oe=z.findVisibleNode(),oe!==null&&oe!==z&&(z=oe,re=oe.port));var ce=y.computeSpot(!0,ee);oe=y.computeSpot(!1,re);var he=E.fromVertex,ye=E.toVertex;if(E.valid)y.curve===Gl&&y.pointsCount===4&&(he.column===ye.column&&this.alignOption===0?(E=y.getLinkPoint(b,ee,ce,!0,!1,z,re),re=y.getLinkPoint(z,re,oe,!1,!1,b,ee),E.w()||E.set(b.actualBounds.center),re.w()||re.set(z.actualBounds.center),y.Fj(),y.yf(E.x,E.y),y.yf((2*E.x+re.x)/3,(2*E.y+re.y)/3),y.yf((E.x+2*re.x)/3,(E.y+2*re.y)/3),y.yf(re.x,re.y)):(E=x=!1,ee!==null&&ce===Pi&&(x=!0),re!==null&&oe===Pi&&(E=!0),(x||E)&&(oe=null,x&&(oe=y.getLinkPointFromPoint(b,ee,ee.ga(ur),y.i(3),!0),oe.w()||oe.set(b.actualBounds.center),y.L(0,oe.x,oe.y)),b=null,E&&(b=y.getLinkPointFromPoint(z,re,re.ga(ur),y.i(0),!1),b.w()||b.set(z.actualBounds.center),y.L(3,b.x,b.y)),oe&&(z=y.i(2),y.L(1,(2*oe.x+z.x)/3,(2*oe.y+z.y)/3)),b&&(z=y.i(1),y.L(2,(2*b.x+z.x)/3,(2*b.y+z.y)/3))))),y.zf();else if(he.layer===ye.layer)y.zf();else{var Te=!1,Ae=!1,ke=this.ie,He=y.firstPickIndex+1;if(y.isOrthogonal){Ae=!0;var dt=y.pointsCount;4<dt&&y.points.removeRange(2,dt-3)}else if(y.curve===Gl)Te=!0,dt=y.pointsCount,4<dt&&y.points.removeRange(2,dt-3),dt===4&&(He=2);else{dt=y.pointsCount;var tt=ce===Pi,gt=oe===Pi;2<dt&&tt&&gt?y.points.removeRange(1,dt-2):3<dt&&tt&&!gt?y.points.removeRange(1,dt-3):3<dt&&!tt&&gt?y.points.removeRange(2,dt-2):4<dt&&!tt&&!gt&&y.points.removeRange(2,dt-3)}if(E.rev){for(;ye!==null&&he!==ye;){var yt=dt=null;for(tt=ye.sourceEdges.iterator;tt.next()&&(gt=tt.value,gt.link!==E.link||(dt=gt.fromVertex,yt=gt.toVertex,dt.node!==null)););if(dt===null)break;if(dt!==he){tt=y.i(He-1).x,gt=y.i(He-1).y;var bt=dt.centerX,kt=dt.centerY;if(Ae)this.K===180||this.K===0?He===y.firstPickIndex+1?(y.m(He++,tt,gt),y.m(He++,tt,kt)):(yt!==null?yt.centerY:gt)!==kt&&(yt=this.Ta[dt.layer-1]+this.Rf.x,y.m(He++,yt,gt),y.m(He++,yt,kt)):He===y.firstPickIndex+1?(y.m(He++,tt,gt),y.m(He++,bt,gt)):(yt!==null?yt.centerX:tt)!==bt&&(yt=this.Ta[dt.layer-1]+this.Rf.y,y.m(He++,tt,yt),y.m(He++,bt,yt));else if(He===y.firstPickIndex+1){yt=Math.max(10,this.he[ye.layer]);var Kt=Math.max(10,this.Ld[ye.layer]);if(Te)this.K===180?bt<=ye.bounds.x?(ye=ye.bounds.x,y.m(He++,ye-yt,kt),y.m(He++,ye,kt),y.m(He++,ye+Kt,kt)):(y.m(He++,bt-yt,kt),y.m(He++,bt,kt),y.m(He++,bt+Kt,kt)):this.K===90?kt>=ye.bounds.bottom?(ye=ye.bounds.y+ye.bounds.height,y.m(He++,bt,ye+Kt),y.m(He++,bt,ye),y.m(He++,bt,ye-yt)):(y.m(He++,bt,kt+Kt),y.m(He++,bt,kt),y.m(He++,bt,kt-yt)):this.K===270?kt<=ye.bounds.y?(ye=ye.bounds.y,y.m(He++,bt,ye-yt),y.m(He++,bt,ye),y.m(He++,bt,ye+Kt)):(y.m(He++,bt,kt-yt),y.m(He++,bt,kt),y.m(He++,bt,kt+Kt)):this.K===0&&(bt>=ye.bounds.right?(ye=ye.bounds.x+ye.bounds.width,y.m(He++,ye+Kt,kt),y.m(He++,ye,kt),y.m(He++,ye-yt,kt)):(y.m(He++,bt+Kt,kt),y.m(He++,bt,kt),y.m(He++,bt-yt,kt)));else{y.m(He++,tt,gt);var di=0;this.K===180||this.K===0?((this.K===180?bt>=ye.bounds.right:bt<=ye.bounds.x)&&(di=(this.K===0?-yt:Kt)/2),y.m(He++,tt+di,kt)):((this.K===270?kt>=ye.bounds.bottom:kt<=ye.bounds.y)&&(di=(this.K===90?-yt:Kt)/2),y.m(He++,bt,gt+di)),y.m(He++,bt,kt)}}else yt=Math.max(10,this.he[dt.layer]),Kt=Math.max(10,this.Ld[dt.layer]),Te?this.K===180?(y.m(He++,bt-yt-ke,kt),y.m(He++,Math.min(bt-yt+ke/2,bt),kt),y.m(He++,bt,kt),y.m(He++,bt,kt),y.m(He++,Math.max(bt+Kt-ke/2,bt),kt),y.m(He++,bt+Kt+ke,kt)):this.K===90?(y.m(He++,bt,kt+Kt+ke),y.m(He++,bt,Math.max(kt+Kt-ke/2,kt)),y.m(He++,bt,kt),y.m(He++,bt,kt),y.m(He++,bt,Math.min(kt-yt+ke/2,kt)),y.m(He++,bt,kt-yt-ke)):this.K===270?(y.m(He++,bt,kt-yt-ke),y.m(He++,bt,Math.min(kt-yt+ke/2,kt)),y.m(He++,bt,kt),y.m(He++,bt,kt),y.m(He++,bt,Math.max(kt+Kt-ke/2,kt)),y.m(He++,bt,kt+Kt+ke)):(y.m(He++,bt+Kt+ke,kt),y.m(He++,Math.max(bt+Kt-ke/2,bt),kt),y.m(He++,bt,kt),y.m(He++,bt,kt),y.m(He++,Math.min(bt-yt+ke/2,bt),kt),y.m(He++,bt-yt-ke,kt)):y.m(He++,bt,kt)}ye=dt}(re===null||ce!==Pi||Ae)&&(tt=y.i(He-1).x,gt=y.i(He-1).y,bt=y.i(He).x,kt=y.i(He).y,Ae?(ke=this.Ld[he.layer],this.K===180||this.K===0?(Ae=gt,Ae>=he.bounds.y&&Ae<=he.bounds.bottom&&(this.K===180?bt>=he.bounds.x:bt<=he.bounds.right)&&(ye=he.centerX+(this.K===180?-ke:ke),Ae<he.bounds.y+he.bounds.height/2?Ae=he.bounds.y-this.kc/2:Ae=he.bounds.bottom+this.kc/2,y.m(He++,ye,gt),y.m(He++,ye,Ae)),y.m(He++,bt,Ae)):(Ae=tt,Ae>=he.bounds.x&&Ae<=he.bounds.right&&(this.K===270?kt>=he.bounds.y:kt<=he.bounds.bottom)&&(ye=he.centerY+(this.K===270?-ke:ke),Ae<he.bounds.x+he.bounds.width/2?Ae=he.bounds.x-this.kc/2:Ae=he.bounds.right+this.kc/2,y.m(He++,tt,ye),y.m(He++,Ae,ye)),y.m(He++,Ae,kt)),y.m(He++,bt,kt)):Te?(yt=Math.max(10,this.he[he.layer]),Kt=Math.max(10,this.Ld[he.layer]),this.K===180&&bt>=he.bounds.x?(ye=he.bounds.x+he.bounds.width,y.L(He-2,ye,gt),y.L(He-1,ye+Kt,gt)):this.K===90&&kt<=he.bounds.bottom?(ye=he.bounds.y,y.L(He-2,tt,ye),y.L(He-1,tt,ye-yt)):this.K===270&&kt>=he.bounds.y?(ye=he.bounds.y+he.bounds.height,y.L(He-2,tt,ye),y.L(He-1,tt,ye+Kt)):this.K===0&&bt<=he.bounds.right&&(ye=he.bounds.x,y.L(He-2,ye,gt),y.L(He-1,ye-yt,gt))):(yt=Math.max(10,this.he[he.layer]),Kt=Math.max(10,this.Ld[he.layer]),Ae=0,this.K===180||this.K===0?((this.K===180?bt<=he.bounds.x:bt>=he.bounds.right)&&(Ae=(this.K===0?Kt:-yt)/2),y.m(He++,bt+Ae,gt)):((this.K===270?kt<=he.bounds.y:kt>=he.bounds.bottom)&&(Ae=(this.K===90?Kt:-yt)/2),y.m(He++,tt,kt+Ae)),y.m(He++,bt,kt)))}else{for(;he!==null&&he!==ye;){for(yt=dt=null,he=he.destinationEdges.iterator;he.next()&&(tt=he.value,tt.link!==E.link||(dt=tt.toVertex,yt=tt.fromVertex,yt.node!==null&&(yt=null),dt.node!==null)););if(dt===null)break;dt!==ye&&(tt=y.i(He-1).x,gt=y.i(He-1).y,bt=dt.centerX,kt=dt.centerY,Ae?this.K===180||this.K===0?(yt!==null?yt.centerY:gt)!==kt&&(yt=this.Ta[dt.layer]+this.Rf.x,He===y.firstPickIndex+1&&(yt=this.K===0?Math.max(yt,tt):Math.min(yt,tt)),y.m(He++,yt,gt),y.m(He++,yt,kt)):(yt!==null?yt.centerX:tt)!==bt&&(yt=this.Ta[dt.layer]+this.Rf.y,He===y.firstPickIndex+1&&(yt=this.K===90?Math.max(yt,gt):Math.min(yt,gt)),y.m(He++,tt,yt),y.m(He++,bt,yt)):(yt=Math.max(10,this.he[dt.layer]),Kt=Math.max(10,this.Ld[dt.layer]),Te?this.K===180?(y.m(He++,bt+Kt+ke,kt),y.m(He++,Math.max(bt+Kt-ke/2,bt),kt),y.m(He++,bt,kt),y.m(He++,bt,kt),y.m(He++,Math.min(bt-yt+ke/2,bt),kt),y.m(He++,bt-yt-ke,kt)):this.K===90?(y.m(He++,bt,kt-yt-ke),y.m(He++,bt,Math.min(kt-yt+ke/2,kt)),y.m(He++,bt,kt),y.m(He++,bt,kt),y.m(He++,bt,Math.max(kt+Kt-ke/2,kt)),y.m(He++,bt,kt+Kt+ke)):this.K===270?(y.m(He++,bt,kt+Kt+ke),y.m(He++,bt,Math.max(kt+Kt-ke/2,kt)),y.m(He++,bt,kt),y.m(He++,bt,kt),y.m(He++,bt,Math.min(kt-yt+ke/2,kt)),y.m(He++,bt,kt-yt-ke)):(y.m(He++,bt-yt-ke,kt),y.m(He++,Math.min(bt-yt+ke/2,bt),kt),y.m(He++,bt,kt),y.m(He++,bt,kt),y.m(He++,Math.max(bt+Kt-ke/2,bt),kt),y.m(He++,bt+Kt+ke,kt)):this.K===180?(y.m(He++,bt+Kt,kt),y.m(He++,bt-yt,kt)):this.K===90?(y.m(He++,bt,kt-yt),y.m(He++,bt,kt+Kt)):this.K===270?(y.m(He++,bt,kt+Kt),y.m(He++,bt,kt-yt)):(y.m(He++,bt-yt,kt),y.m(He++,bt+Kt,kt)))),he=dt}Ae&&(tt=y.i(He-1).x,gt=y.i(He-1).y,bt=y.i(He).x,kt=y.i(He).y,this.K===180||this.K===0?gt!==kt&&(yt=this.K===0?Math.min(Math.max((bt+tt)/2,this.Ta[ye.layer]+this.Rf.x),bt):Math.max(Math.min((bt+tt)/2,this.Ta[ye.layer]+this.Rf.x),bt),y.m(He++,yt,gt),y.m(He++,yt,kt)):tt!==bt&&(yt=this.K===90?Math.min(Math.max((kt+gt)/2,this.Ta[ye.layer]+this.Rf.y),kt):Math.max(Math.min((kt+gt)/2,this.Ta[ye.layer]+this.Rf.y),kt),y.m(He++,tt,yt),y.m(He++,bt,yt)))}x!==null&&Te&&4<=y.pointsCount&&(ee!==null&&(ee=ce===Pi?y.getLinkPointFromPoint(b,ee,ee.ga(ur),y.i(3),!0):y.i(0),ce===Pi&&(ce=y.i(2),x=y.i(3),this.direction===90||this.direction===270?(y.L(1,(ee.x+ce.x)/2,ce.y),y.L(2,x.x,(ce.y+x.y)/2)):(y.L(1,ce.x,(ee.y+ce.y)/2),y.L(2,(ce.x+x.x)/2,x.y))),ee.w()||ee.set(b.actualBounds.center),y.L(0,ee.x,ee.y)),re!==null&&(b=oe===Pi?y.getLinkPointFromPoint(z,re,re.ga(ur),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),oe===Pi&&(re=y.i(y.pointsCount-3),oe=y.i(y.pointsCount-4),this.direction===90||this.direction===270?(y.L(y.pointsCount-2,(b.x+re.x)/2,re.y),y.L(y.pointsCount-2,oe.x,(re.y+oe.y)/2)):(y.L(y.pointsCount-2,re.x,(b.y+re.y)/2),y.L(y.pointsCount-3,(re.x+oe.x)/2,oe.y))),b.w()||b.set(z.actualBounds.center),y.L(y.pointsCount-1,b.x,b.y))),y.zf(),E.commit()}}}this.avoidOrthogonalOverlaps()},to.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new Fn,y=this.network.edges.iterator;y.next();){var E=y.value.link;E!==null&&E.isOrthogonal&&!a.contains(E)&&a.add(E)}if(0<a.count)if(this.K===90||this.K===270){for(y=0,E=[],a=a.iterator;a.next();){var x=a.value;if(x!==null&&x.isOrthogonal)for(var b=2;b<x.pointsCount-3;b++){var z=x.i(b),ee=x.i(b+1);if(this.B(z.y,ee.y)&&!this.B(z.x,ee.x)){var re=new rh;re.layer=Math.floor(z.y/2);var oe=x.i(0),ce=x.i(x.pointsCount-1);if(re.first=oe.x*oe.x+oe.y,re.jc=ce.x*ce.x+ce.y,re.rd=Math.min(z.x,ee.x),re.Ic=Math.max(z.x,ee.x),re.index=b,re.link=x,b+2<x.pointsCount){oe=x.i(b-1),ce=x.i(b+2);var he=0;oe.y<z.y?he=ce.y<z.y?3:z.x<ee.x?2:1:oe.y>z.y&&(he=ce.y>z.y?0:ee.x<z.x?2:1),re.j=he}E.push(re)}}}if(1<E.length)for(E.sort(this.Vx),a=0;a<E.length;){for(z=E[a].layer,x=a+1;x<E.length&&E[x].layer===z;)x++;if(1<x-a)for(z=a;z<x;){for(ee=E[z].Ic,b=a+1;b<x&&E[b].rd<ee;)ee=Math.max(ee,E[b].Ic),b++;if(ee=b-z,1<ee){for(this.zi(E,this.Js,z,z+ee),he=1,re=E[z].jc,oe=z;oe<b;oe++)ce=E[oe],ce.jc!==re&&(he++,re=ce.jc);this.zi(E,this.Ux,z,z+ee);var ye=1;for(re=E[z].first,oe=z;oe<b;oe++)ce=E[oe],ce.first!==re&&(ye++,re=ce.first);for(oe=!0,ce=ye,he<ye?(oe=!1,ce=he,re=E[z].jc,this.zi(E,this.Js,z,z+ee)):re=E[z].first,he=0,ye=z;ye<b;ye++){var Te=E[ye];(oe?Te.first:Te.jc)!==re&&(he++,re=oe?Te.first:Te.jc);var Ae=Te.link;z=Ae.i(Te.index),ee=Ae.i(Te.index+1);var ke=this.linkSpacing*(he-(ce-1)/2);y++,Ae.uh(),Ae.L(Te.index,z.x,z.y+ke),Ae.L(Te.index+1,ee.x,ee.y+ke),Ae.zf()}}z=b}a=x}}else{for(y=0,E=[],a=a.iterator;a.next();)if(x=a.value,x!==null&&x.isOrthogonal)for(b=2;b<x.pointsCount-3;b++)z=x.i(b),ee=x.i(b+1),this.B(z.x,ee.x)&&!this.B(z.y,ee.y)&&(re=new rh,re.layer=Math.floor(z.x/2),oe=x.i(0),ce=x.i(x.pointsCount-1),re.first=oe.x+oe.y*oe.y,re.jc=ce.x+ce.y*ce.y,re.rd=Math.min(z.y,ee.y),re.Ic=Math.max(z.y,ee.y),re.index=b,re.link=x,b+2<x.pointsCount&&(oe=x.i(b-1),ce=x.i(b+2),he=0,oe.x<z.x?he=ce.x<z.x?3:z.y<ee.y?2:1:oe.x>z.x&&(he=ce.x>z.x?0:ee.y<z.y?2:1),re.j=he),E.push(re));if(1<E.length)for(E.sort(this.Vx),a=0;a<E.length;){for(z=E[a].layer,x=a+1;x<E.length&&E[x].layer===z;)x++;if(1<x-a)for(z=a;z<x;){for(ee=E[z].Ic,b=a+1;b<x&&E[b].rd<ee;)ee=Math.max(ee,E[b].Ic),b++;if(ee=b-z,1<ee){for(this.zi(E,this.Js,z,z+ee),he=1,re=E[z].jc,oe=z;oe<b;oe++)ce=E[oe],ce.jc!==re&&(he++,re=ce.jc);for(this.zi(E,this.Ux,z,z+ee),ye=1,re=E[z].first,oe=z;oe<b;oe++)ce=E[oe],ce.first!==re&&(ye++,re=ce.first);for(oe=!0,ce=ye,he<ye?(oe=!1,ce=he,re=E[z].jc,this.zi(E,this.Js,z,z+ee)):re=E[z].first,he=0,ye=z;ye<b;ye++)Te=E[ye],(oe?Te.first:Te.jc)!==re&&(he++,re=oe?Te.first:Te.jc),Ae=Te.link,z=Ae.i(Te.index),ee=Ae.i(Te.index+1),ke=this.linkSpacing*(he-(ce-1)/2),y++,Ae.uh(),Ae.L(Te.index,z.x+ke,z.y),Ae.L(Te.index+1,ee.x+ke,ee.y),Ae.zf()}z=b}a=x}}}},Ce=to.prototype,Ce.Vx=function(a,y){return a instanceof rh&&y instanceof rh&&a!==y?a.layer<y.layer?-1:a.layer>y.layer?1:a.rd<y.rd?-1:a.rd>y.rd?1:a.Ic<y.Ic?-1:a.Ic>y.Ic?1:0:0},Ce.Ux=function(a,y){return a instanceof rh&&y instanceof rh&&a!==y?a.first<y.first?-1:a.first>y.first||a.j<y.j?1:a.j>y.j||a.rd<y.rd?-1:a.rd>y.rd?1:a.Ic<y.Ic?-1:a.Ic>y.Ic?1:0:0},Ce.Js=function(a,y){return a instanceof rh&&y instanceof rh&&a!==y?a.jc<y.jc?-1:a.jc>y.jc||a.j<y.j?1:a.j>y.j||a.rd<y.rd?-1:a.rd>y.rd?1:a.Ic<y.Ic?-1:a.Ic>y.Ic?1:0:0},Ce.B=function(a,y){return a-=y,-1<a&&1>a},Ce.zi=function(a,y,E,x){var b=a.length,z=x-E;if(!(1>=z))if((0>E||E>=b-1)&&pt("not in range 0 <= from < length: "+E),z===2)x=a[E],b=a[E+1],0<y(x,b)&&(a[E]=b,a[E+1]=x);else if(E===0)if(x>=b)a.sort(y);else for(E=a.slice(0,x),E.sort(y),y=0;y<x;y++)a[y]=E[y];else if(x>=b)for(x=a.slice(E),x.sort(y),y=E;y<b;y++)a[y]=x[y-E];else for(b=a.slice(E,x),b.sort(y),y=E;y<x;y++)a[y]=b[y-E]};function nh(a,y){var E=a.tc[y];if(E>=a.He.length){for(var x=[],b=0;b<a.He.length;b++)x[b]=a.He[b];a.He=x}for(a.He[E]===void 0||a.He[E]===null?x=[]:(x=a.He[E],a.He[E]=null),a=a.fl[y],y=0;y<a.length;y++)E=a[y],x[E.index]=E;return x}function ih(a,y,E){a.He[a.tc[y]]=E}It.Object.defineProperties(to.prototype,{layerSpacing:{get:function(){return this.ie},set:function(a){this.ie!==a&&0<=a&&(this.ie=a,this.C())}},columnSpacing:{get:function(){return this.kc},set:function(a){this.kc!==a&&0<a&&(this.kc=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K!==a&&(a===0||a===90||a===180||a===270?(this.K=a,this.C()):pt("LayeredDigraphLayout.direction must be 0, 90, 180, or 270"))}},cycleRemoveOption:{get:function(){return this.Dk},set:function(a){this.Dk===a||a!==by&&a!==L0&&a!==Rp||(this.Dk=a,this.C())}},layeringOption:{get:function(){return this.Zk},set:function(a){this.Zk===a||a!==I0&&a!==wy&&a!==Ty||(this.Zk=a,this.C())}},initializeOption:{get:function(){return this.Qk},set:function(a){this.Qk===a||a!==k0&&a!==Ay&&a!==Cy||(this.Qk=a,this.C())}},iterations:{get:function(){return this.bj},set:function(a){this.bj!==a&&0<=a&&(this.bj=a,this.C())}},aggressiveOption:{get:function(){return this.rk},set:function(a){this.rk===a||a!==Ny&&a!==D0&&a!==My||(this.rk=a,this.C())}},packOption:{get:function(){return this.bg},set:function(a){this.bg!==a&&0<=a&&8>a&&(this.bg=a,this.C())}},alignOption:{get:function(){return this.ve},set:function(a){this.ve!==a&&0<=a&&16>a&&(this.ve=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},linkSpacing:{get:function(){return this.Cn},set:function(a){this.Cn!==a&&0<=a&&(this.Cn=a,this.C())}},maxLayer:{get:function(){return this.Ia}},maxIndex:{get:function(){return this.Iq}},maxColumn:{get:function(){return this.Ra}},minIndexLayer:{get:function(){return this.Hn}},maxIndexLayer:{get:function(){return this.Md}}});var L0=new en(to,"CycleDepthFirst",0),by=new en(to,"CycleGreedy",1),Rp=new en(to,"CycleFromLayers",2),I0=new en(to,"LayerOptimalLinkLength",0),wy=new en(to,"LayerLongestPathSink",1),Ty=new en(to,"LayerLongestPathSource",2),k0=new en(to,"InitDepthFirstOut",0),Ay=new en(to,"InitDepthFirstIn",1),Cy=new en(to,"InitNaive",2),Ny=new en(to,"AggressiveNone",0),D0=new en(to,"AggressiveLess",1),My=new en(to,"AggressiveMore",2),ix=8;to.className="LayeredDigraphLayout",to.CycleDepthFirst=L0,to.CycleGreedy=by,to.CycleFromLayers=Rp,to.LayerOptimalLinkLength=I0,to.LayerLongestPathSink=wy,to.LayerLongestPathSource=Ty,to.InitDepthFirstOut=k0,to.InitDepthFirstIn=Ay,to.InitNaive=Cy,to.AggressiveNone=Ny,to.AggressiveLess=D0,to.AggressiveMore=My,to.PackNone=0,to.PackExpand=1,to.PackStraighten=2,to.PackMedian=4,to.PackAll=15,to.AlignNone=0,to.AlignUpperLeft=1,to.AlignUpperRight=2,to.AlignLowerLeft=4,to.AlignLowerRight=8,to.AlignAll=15;function rh(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}rh.className="SegInfo";function fg(a){Eo.call(this,a)}Ut(fg,Eo),fg.prototype.createVertex=function(){return new au(this)},fg.prototype.createEdge=function(){return new Fp(this)},fg.className="LayeredDigraphNetwork";function au(a){Ma.call(this,a),this.$n=this.bo=this.ao=this.co=null,this.Za=this.Ag=this.Ig=-1,this.u=NaN,this.F=null,this.valid=!1,this.finish=this.Ll=NaN,this.Dj=0,this.dv=this.ev=null}Ut(au,Ma);function uE(a,y){return a.index-y.index}function O0(a,y){if(!a.$n){for(var E=[],x=Bi(a.destinationEdgesArrayAccess),b=x.next();!b.done;b=x.next())b=b.value,b.valid&&E.push(b);a.$n=E}for(a=Bi(a.$n),E=a.next();!E.done;E=a.next())if(E=E.value,E.toVertex===y)return E;pt("Unable to find destination edge to given vertex")}function Py(a){if(!a.co){for(var y=[],E=Bi(a.sourceEdgesArrayAccess),x=E.next();!x.done;x=E.next())x=x.value,x.valid&&y.push(x.fromVertex);y.sort(uE),a.co=y}return a.co}function rx(a){if(!a.ao){for(var y=[],E=Bi(a.destinationEdgesArrayAccess),x=E.next();!x.done;x=E.next())x=x.value,x.valid&&y.push(x.toVertex);y.sort(uE),a.ao=y}return a.ao}au.prototype.Cl=function(a){Ma.prototype.Cl.call(this,a),this.bo=this.co=null},au.prototype.Kl=function(a){Ma.prototype.Kl.call(this,a),this.bo=this.co=null},au.prototype.zl=function(a){Ma.prototype.zl.call(this,a),this.$n=this.ao=null},au.prototype.Jl=function(a){Ma.prototype.Jl.call(this,a),this.$n=this.ao=null},It.Object.defineProperties(au.prototype,{layer:{get:function(){return this.Ig},set:function(a){this.Ig!==a&&(this.Ig=a)}},column:{get:function(){return this.Ag},set:function(a){this.Ag!==a&&(this.Ag=a)}},index:{get:function(){return this.Za},set:function(a){this.Za!==a&&(this.Za=a)}},component:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},near:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}}}),au.prototype.deleteDestinationEdge=au.prototype.Jl,au.prototype.addDestinationEdge=au.prototype.zl,au.prototype.deleteSourceEdge=au.prototype.Kl,au.prototype.addSourceEdge=au.prototype.Cl,au.className="LayeredDigraphVertex";function Fp(a){Nl.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}Ut(Fp,Nl),It.Object.defineProperties(Fp.prototype,{fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}},valid:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},rev:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},forest:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}},portFromPos:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},portToPos:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},portFromColOffset:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},portToColOffset:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}}}),Fp.className="LayeredDigraphEdge";function Nr(a){_o.call(this),this.Ub=new In,this.Wn=_0,this.ud=Bc,this.vo=z0,this.Bq=zy,this.$v=[],this.td=!0,this.Rb=U0,this.$d=new ri(10,10).freeze();var y=new yf(this);this.W=new Eu(y),this.Y=new Eu(y),this.ru=[],a&&Object.assign(this,a)}Ut(Nr,_o),Nr.prototype.cloneProtected=function(a){_o.prototype.cloneProtected.call(this,a),a.Wn=this.Wn,a.vo=this.vo,a.Bq=this.Bq,a.td=this.td,a.Rb=this.Rb,a.$d.assign(this.$d),a.W.copyInheritedPropertiesFrom(this.W),a.Y.copyInheritedPropertiesFrom(this.Y)},Nr.prototype.qb=function(a){a.classType===Nr?a.name.indexOf("Alignment")===0?this.alignment=a:a.name.indexOf("Arrangement")===0?this.arrangement=a:a.name.indexOf("Compaction")===0?this.compaction=a:a.name.indexOf("Path")===0?this.path=a:a.name.indexOf("Sorting")===0?this.sorting=a:a.name.indexOf("Style")===0?this.treeStyle=a:pt("Unknown enum value: "+a):_o.prototype.qb.call(this,a)},Nr.prototype.createNetwork=function(){return new yf(this)},Nr.prototype.makeNetwork=function(a){function y(x){if(x instanceof pi)return!x.isLinkLabel&&x.category!=="Comment";if(x instanceof Xn){var b=x.fromNode;return b===null||b.isLinkLabel||b.category==="Comment"?!1:(x=x.toNode,!(x===null||x.isLinkLabel||x.category==="Comment"))}return!1}var E=this.createNetwork();return a instanceof Qt?(E.lg(a.nodes,!0,y),E.lg(a.links,!0,y)):a instanceof or?E.lg(a.memberParts,!1,y):E.lg(a.iterator,!1,y),E},Nr.prototype.doLayout=function(a){this.network===null&&(this.network=this.makeNetwork(a)),this.arrangement!==H0&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof Qt&&(y=a),this.path===_0&&y!==null?this.ud=y.isTreePathToChildren?Bc:mf:this.ud=this.path===_0?Bc:this.path,0<this.network.vertexes.count){for(this.network.Ko(),a=this.network.vertexes.iterator;a.next();)y=a.value,y.initialized=!1,y.level=0,y.parent=null,y.children=[];if(0<this.Ub.count){for(a=new In,y=this.Ub.iterator;y.next();){var E=y.value;E instanceof pi?(E=this.network.ki(E),E!==null&&a.add(E)):E instanceof Eu&&a.add(E)}this.Ub=a}for(this.Ub.count===0&&this.findRoots(),a=this.Ub.copy().iterator;a.next();)y=a.value,y.initialized||(y.initialized=!0,Ly(this,y));for(y=this.network.vertexes,a=null;a=ox(y),0<a.count;)y=cE(this,a),y!==null&&this.Ub.add(y),y.initialized=!0,Ly(this,y),y=a;for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Eu&&hE(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Eu&&fE(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Eu&&gE(this,y);if(this.Cu(),this.layerStyle===G0){for(a=[],y=this.network.vertexes.iterator;y.next();){E=y.value;var x=E.parent;x===null&&(x=E),x=x.angle===0||x.angle===180;var b=a[E.level];b===void 0&&(b=0),a[E.level]=Math.max(b,x?E.width:E.height)}for(y=0;y<a.length;y++)a[y]===void 0&&(a[y]=0);for(this.$v=a,y=this.network.vertexes.iterator;y.next();)E=y.value,x=E.parent,x===null&&(x=E),x.angle===0||x.angle===180?(x.angle===180&&(E.focusX+=a[E.level]-E.width),E.width=a[E.level]):(x.angle===270&&(E.focusY+=a[E.level]-E.height),E.height=a[E.level])}else if(this.layerStyle===Uy)for(a=this.network.vertexes.iterator;a.next();){for(y=a.value,E=y.angle===0||y.angle===180,x=-1,b=0;b<y.children.length;b++){var z=y.children[b];x=Math.max(x,E?z.width:z.height)}if(0<=x)for(b=0;b<y.children.length;b++)z=y.children[b],E?(y.angle===180&&(z.focusX+=x-z.width),z.width=x):(y.angle===270&&(z.focusY+=x-z.height),z.height=x)}for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Eu&&this.layoutTree(y);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new In,this.isValidLayout=!0};function ox(a){var y=new In;for(a=a.iterator;a.next();){var E=a.value;E.initialized||y.add(E)}return y}Nr.prototype.findRoots=function(){for(var a=this.network.vertexes,y=a.iterator;y.next();){var E=y.value;switch(this.ud){case Bc:E.sourceEdges.count===0&&this.Ub.add(E);break;case mf:E.destinationEdges.count===0&&this.Ub.add(E);break;default:pt("Unhandled path value "+this.ud.toString())}}this.Ub.count===0&&(a=cE(this,a),a!==null&&this.Ub.add(a))};function cE(a,y){var E=999999,x=null;for(y=y.iterator;y.next();){var b=y.value;switch(a.ud){case Bc:b.sourceEdges.count<E&&(E=b.sourceEdges.count,x=b);break;case mf:b.destinationEdges.count<E&&(E=b.destinationEdges.count,x=b);break;default:pt("Unhandled path value "+a.ud.toString())}}return x}function Ly(a,y){if(y!==null){switch(a.ud){case Bc:if(0<y.destinationEdges.count){for(var E=new Fn,x=y.destinationVertexes;x.next();){var b=x.value;dE(a,y,b)&&E.add(b)}0<E.count&&(y.children=E.Fa())}break;case mf:if(0<y.sourceEdges.count){for(E=new Fn,x=y.sourceVertexes;x.next();)b=x.value,dE(a,y,b)&&E.add(b);0<E.count&&(y.children=E.Fa())}break;default:pt("Unhandled path value"+a.ud.toString())}for(E=y.children,x=E.length,b=0;b<x;b++){var z=E[b];z.initialized=!0,z.level=y.level+1,z.parent=y,a.Ub.remove(z)}for(y=0;y<x;y++)Ly(a,E[y])}}function dE(a,y,E){if(E.initialized){if(y===null)var x=!1;else{for(x=y.parent;x!==null&&x!==E;)x=x.parent;x=x===E}if(x||E.level>y.level)return!1;a.removeChild(E.parent,E)}return!0}Nr.prototype.removeChild=function(a,y){if(a!==null&&y!==null){for(var E=a.children,x=0,b=0;b<E.length;b++)E[b]===y&&x++;if(0<x){x=Array(E.length-x);for(var z=b=0;z<E.length;z++)E[z]!==y&&(x[b++]=E[z]);a.children=x}}};function hE(a,y){if(y!==null){a.initializeTreeVertexValues(y),y.alignment===zc&&a.sortTreeVertexChildren(y);for(var E=0,x=y.childrenCount,b=0,z=y.children,ee=z.length,re=0;re<ee;re++){var oe=z[re];hE(a,oe),E+=oe.descendantCount+1,x=Math.max(x,oe.maxChildrenCount),b=Math.max(b,oe.maxGenerationCount)}y.descendantCount=E,y.maxChildrenCount=x,y.maxGenerationCount=0<x?b+1:0}}function ax(a,y){switch(a.vo){default:case z0:return y.parent!==null?y.parent:a.W;case _y:return y.parent===null?a.W:y.parent.parent===null?a.Y:y.parent;case By:return y.parent!==null?y.parent.parent!==null?y.parent.parent:a.Y:a.W;case Fy:var E=!0;if(y.childrenCount===0)E=!1;else for(var x=y.children,b=x.length,z=0;z<b;z++)if(0<x[z].childrenCount){E=!1;break}return E&&y.parent!==null?a.Y:y.parent!==null?y.parent:a.W}}Nr.prototype.initializeTreeVertexValues=function(a){if(a.copyInheritedPropertiesFrom(ax(this,a)),a.parent!==null&&a.parent.alignment===zc){for(var y=a.angle,E=a.parent.children,x=0;x<E.length&&a!==E[x];)x++;x%2===0?x!==E.length-1&&(y=y===90?180:y===180?270:y===270?180:270):y=y===90?0:y===180?90:y===270?0:90,a.angle=y}a.initialized=!0};function fE(a,y){if(y!==null){a.assignTreeVertexValues(y),y=y.children;for(var E=y.length,x=0;x<E;x++)fE(a,y[x])}}Nr.prototype.assignTreeVertexValues=function(){};function gE(a,y){if(y!==null){y.alignment!==zc&&a.sortTreeVertexChildren(y),y=y.children;for(var E=y.length,x=0;x<E;x++)gE(a,y[x])}}Nr.prototype.sortTreeVertexChildren=function(a){switch(a.sorting){case gg:break;case _p:a.children.reverse();break;case jp:a.children.sort(a.comparer);break;case zp:a.children.sort(a.comparer),a.children.reverse();break;default:pt("Unhandled sorting value "+a.sorting.toString())}},Nr.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},Nr.prototype.addComments=function(a){var y=a.angle,E=a.parent,x=0,b=!1;E!==null&&(x=E.angle,b=E.alignment,b=oh(b)),y=y===90||y===270,x=x===90||x===270,E=a.childrenCount===0;var z=0,ee=0,re=0,oe=a.commentSpacing;if(a.node!==null)for(var ce=a.node.Mu();ce.next();){var he=ce.value;he.category==="Comment"&&he.canLayout()&&(a.comments===null&&(a.comments=[]),a.comments.push(he),he.Va(),he=he.measuredBounds,y&&!E||!b&&!x&&E||b&&x&&E?(z=Math.max(z,he.width),ee+=he.height+Math.abs(re)):(z+=he.width+Math.abs(re),ee=Math.max(ee,he.height)),re=oe)}a.comments!==null&&(y&&!E||!b&&!x&&E||b&&x&&E?(z+=Math.abs(a.commentMargin),ee=Math.max(0,ee-a.height)):(ee+=Math.abs(a.commentMargin),z=Math.max(0,z-a.width)),b=hn.allocAt(0,0,a.bounds.width+z,a.bounds.height+ee),a.bounds=b,hn.free(b))};function oh(a){return a===Cd||a===zc||a===Nd||a===$c}function Bp(a){return a===Cd||a===zc}function Iy(a){var y=a.parent;if(y!==null){var E=y.alignment;if(oh(E)){if(Bp(E)){for(y=y.children,E=0;E<y.length&&a!==y[E];)E++;return E%2===0}if(E===Nd)return!0}}return!1}Nr.prototype.layoutComments=function(a){if(a.comments!==null){var y=a.node.measuredBounds,E=a.parent,x=a.angle,b=0,z=!1;E!==null&&(b=E.angle,z=E.alignment,z=oh(z)),x=x===90||x===270,E=b===90||b===270;for(var ee=a.childrenCount===0,re=Iy(a),oe=0,ce=a.comments,he=ce.length,ye=lt.alloc(),Te=0;Te<he;Te++){var Ae=ce[Te],ke=Ae.measuredBounds;if(x&&!ee||!z&&!E&&ee||z&&E&&ee){if(135<b&&!z||E&&re)if(0<=a.commentMargin)for(ye.h(a.bounds.x-a.commentMargin-ke.width,a.bounds.y+oe),Ae.move(ye),Ae=Ae.Sd();Ae.next();){var He=Ae.value;He.fromSpot=ds,He.toSpot=_a}else for(ye.h(a.bounds.x+2*a.focus.x-a.commentMargin,a.bounds.y+oe),Ae.move(ye),Ae=Ae.Sd();Ae.next();)He=Ae.value,He.fromSpot=_a,He.toSpot=ds;else if(0<=a.commentMargin)for(ye.h(a.bounds.x+2*a.focus.x+a.commentMargin,a.bounds.y+oe),Ae.move(ye),Ae=Ae.Sd();Ae.next();)He=Ae.value,He.fromSpot=_a,He.toSpot=ds;else for(ye.h(a.bounds.x+a.commentMargin-ke.width,a.bounds.y+oe),Ae.move(ye),Ae=Ae.Sd();Ae.next();)He=Ae.value,He.fromSpot=ds,He.toSpot=_a;oe=0<=a.commentSpacing?oe+(ke.height+a.commentSpacing):oe+(a.commentSpacing-ke.height)}else{if(135<b&&!z||!E&&re)if(0<=a.commentMargin)for(ye.h(a.bounds.x+oe,a.bounds.y-a.commentMargin-ke.height),Ae.move(ye),Ae=Ae.Sd();Ae.next();)He=Ae.value,He.fromSpot=rs,He.toSpot=Ya;else for(ye.h(a.bounds.x+oe,a.bounds.y+2*a.focus.y-a.commentMargin),Ae.move(ye),Ae=Ae.Sd();Ae.next();)He=Ae.value,He.fromSpot=Ya,He.toSpot=rs;else if(0<=a.commentMargin)for(ye.h(a.bounds.x+oe,a.bounds.y+2*a.focus.y+a.commentMargin),Ae.move(ye),Ae=Ae.Sd();Ae.next();)He=Ae.value,He.fromSpot=Ya,He.toSpot=rs;else for(ye.h(a.bounds.x+oe,a.bounds.y+a.commentMargin-ke.height),Ae.move(ye),Ae=Ae.Sd();Ae.next();)He=Ae.value,He.fromSpot=rs,He.toSpot=Ya;oe=0<=a.commentSpacing?oe+(ke.width+a.commentSpacing):oe+(a.commentSpacing-ke.width)}}if(lt.free(ye),y=oe-a.commentSpacing-(x?y.height:y.width),this.ud===Bc)for(a=a.destinationEdges;a.next();)b=a.value.link,b===null||b.isAvoiding||(b.fromEndSegmentLength=0<y?y:NaN);else for(a=a.sourceEdges;a.next();)b=a.value.link,b===null||b.isAvoiding||(b.toEndSegmentLength=0<y?y:NaN)}},Nr.prototype.layoutTree=function(a){if(a!==null){for(var y=a.children,E=y.length,x=0;x<E;x++)this.layoutTree(y[x]);switch(a.compaction){case j0:pE(this,a);break;case Up:if(a.alignment===zc)pE(this,a);else if(a.childrenCount===0)x=a.parent,E=!1,y=0,x!==null&&(y=x.angle,E=x.alignment,E=oh(E)),x=Iy(a),a.S.h(0,0),a.Da.h(a.width,a.height),a.parent===null||a.comments===null||(y!==180&&y!==270||E)&&!x?a.la.h(0,0):y===180&&!E||(y===90||y===270)&&x?a.la.h(a.width-2*a.focus.x,0):a.la.h(0,a.height-2*a.focus.y),a.Yo=null,a.kp=null;else{var b=ju(a);y=b===90||b===270;var z=0,ee=a.children,re=ee.length;for(E=0;E<re;E++)x=ee[E],z=Math.max(z,y?x.Da.width:x.Da.height);var oe=a.alignment;x=oe===_c;var ce=oe===jc,he=oh(oe),ye=Math.max(0,a.breadthLimit);E=this.computeLayerSpacing(a);var Te=a.nodeSpacing,Ae=this.computeNodeIndent(a),ke=a.rowSpacing,He=0;(x||ce||a.hm||a.im&&a.maxGenerationCount===1)&&(He=Math.max(0,a.rowIndent)),x=a.width;var dt=a.height,tt=0,gt=0,yt=0,bt=null,kt=null,Kt=0,di=0,Ai=0,xi=0,Qn=0,kn=0,rr=0,qi=0;if(he&&!Bp(oe)&&135<b&&ee.reverse(),Bp(oe))if(1<re)for(var Gr=0;Gr<re;Gr++)Gr%2===0&&Gr!==re-1&&(qi=Math.max(qi,y?ee[Gr].Da.width:ee[Gr].Da.height));else re===1&&(qi=y?ee[0].Da.width:ee[0].Da.height);if(he){switch(oe){case Cd:gt=135>b?mE(this,a,ee,qi,tt,gt):vE(this,a,ee,qi,tt,gt),qi=gt.x,tt=gt.width,gt=gt.height;break;case Nd:for(bt=0;bt<re;bt++)kt=ee[bt],ye=kt.Da,yt=kn===0?0:ke,y?(kt.S.h(z-ye.width,xi+yt),tt=Math.max(tt,ye.width),gt=Math.max(gt,xi+yt+ye.height),xi+=yt+ye.height):(kt.S.h(Ai+yt,z-ye.height),tt=Math.max(tt,Ai+yt+ye.width),gt=Math.max(gt,ye.height),Ai+=yt+ye.width),kn++;break;case $c:for(bt=0;bt<re;bt++)kt=ee[bt],z=kt.Da,ye=kn===0?0:ke,y?(kt.S.h(Te/2+a.focus.x,xi+ye),tt=Math.max(tt,z.width),gt=Math.max(gt,xi+ye+z.height),xi+=ye+z.height):(kt.S.h(Ai+ye,Te/2+a.focus.y),tt=Math.max(tt,Ai+ye+z.width),gt=Math.max(gt,z.height),Ai+=ye+z.width),kn++}bt=fl(this,2),kt=fl(this,2),y?(bt[0].h(0,0),bt[1].h(0,gt),kt[0].h(tt,0)):(bt[0].h(0,0),bt[1].h(tt,0),kt[0].h(0,gt)),kt[1].h(tt,gt)}else for(Gr=0;Gr<re;Gr++){var vo=ee[Gr],Fa=vo.Da;if(y){0<ye&&0<kn&&Ai+Te+Fa.width>ye&&(Ai<z&&zh(a,oe,z-Ai,0,rr,Gr-1),Qn++,kn=0,rr=Gr,yt=gt,Ai=0,xi=135<b?-gt-ke:gt+ke),F0(this,vo,0,xi);var Ua=0;if(kn===0)bt=vo.Yo,kt=vo.kp,Kt=Fa.width,di=Fa.height,(bt===null||kt===null||b!==ju(vo))&&(bt=fl(this,2),kt=fl(this,2),bt[0].h(0,0),bt[1].h(0,di),kt[0].h(Kt,0),kt[1].h(Kt,di));else{var Ls=Ni();di=yE(this,a,vo,bt,kt,Kt,di,Ls),Ua=di.x,bt=Ls[0],kt=Ls[1],Kt=di.width,di=di.height,hi(Ls),Ai<Fa.width&&0>Ua&&(pf(a,-Ua,0,rr,Gr-1),B0(bt,-Ua,0),B0(kt,-Ua,0),Ua=0)}vo.S.h(Ua,xi),tt=Math.max(tt,Kt),gt=Math.max(gt,yt+(Qn===0?0:ke)+Fa.height),Ai=Kt}else 0<ye&&0<kn&&xi+Te+Fa.height>ye&&(xi<z&&zh(a,oe,0,z-xi,rr,Gr-1),Qn++,kn=0,rr=Gr,yt=tt,xi=0,Ai=135<b?-tt-ke:tt+ke),F0(this,vo,Ai,0),Ua=0,kn===0?(bt=vo.Yo,kt=vo.kp,Kt=Fa.width,di=Fa.height,(bt===null||kt===null||b!==ju(vo))&&(bt=fl(this,2),kt=fl(this,2),bt[0].h(0,0),bt[1].h(Kt,0),kt[0].h(0,di),kt[1].h(Kt,di))):(Ls=Ni(),di=yE(this,a,vo,bt,kt,Kt,di,Ls),Ua=di.x,bt=Ls[0],kt=Ls[1],Kt=di.width,di=di.height,hi(Ls),xi<Fa.height&&0>Ua&&(pf(a,0,-Ua,rr,Gr-1),B0(bt,0,-Ua),B0(kt,0,-Ua),Ua=0)),vo.S.h(Ai,Ua),gt=Math.max(gt,di),tt=Math.max(tt,yt+(Qn===0?0:ke)+Fa.width),xi=di;kn++}switch(0<Qn&&(y?(gt+=Math.max(0,E),Ai<tt&&zh(a,oe,tt-Ai,0,rr,re-1),0<He&&(ce||pf(a,He,0,0,re-1),tt+=He)):(tt+=Math.max(0,E),xi<gt&&zh(a,oe,0,gt-xi,rr,re-1),0<He&&(ce||pf(a,0,He,0,re-1),gt+=He))),He=ce=0,oe){case pg:y?ce+=tt/2-a.focus.x-Ae/2:He+=gt/2-a.focus.y-Ae/2;break;case vf:0<Qn?y?ce+=tt/2-a.focus.x-Ae/2:He+=gt/2-a.focus.y-Ae/2:y?(qi=ee[0].S.x+ee[0].la.x,ce+=qi+(ee[re-1].S.x+ee[re-1].la.x+2*ee[re-1].focus.x-qi)/2-a.focus.x-Ae/2):(qi=ee[0].S.y+ee[0].la.y,He+=qi+(ee[re-1].S.y+ee[re-1].la.y+2*ee[re-1].focus.y-qi)/2-a.focus.y-Ae/2);break;case _c:y?(ce-=Ae,tt+=Ae):(He-=Ae,gt+=Ae);break;case jc:y?(ce+=tt-a.width+Ae,tt+=Ae):(He+=gt-a.height+Ae,gt+=Ae);break;case Cd:y?1<re?ce+=qi+Te/2-a.focus.x:ce+=ee[0].focus.x-a.focus.x+ee[0].la.x:1<re?He+=qi+Te/2-a.focus.y:He+=ee[0].focus.y-a.focus.y+ee[0].la.y;break;case Nd:y?ce+=tt+Te/2-a.focus.x:He+=gt+Te/2-a.focus.y;break;case $c:break;default:gt=this.customAlignment(a,ce,He,tt,gt),ce=gt[0],He=gt[1],tt=gt[2],gt=gt[3]}for(Ae=0;Ae<re;Ae++)qi=ee[Ae],y?qi.S.h(qi.S.x+qi.la.x-ce,qi.S.y+(135<b?(he?-gt:-qi.Da.height)+qi.la.y-E:dt+E+qi.la.y)):qi.S.h(qi.S.x+(135<b?(he?-tt:-qi.Da.width)+qi.la.x-E:x+E+qi.la.x),qi.S.y+qi.la.y-He);if(re=ee=0,he?y?(tt=ky(a,tt,ce),0>ce&&(ce=0),135<b&&(He+=gt+E),gt+=dt+E,oe===$c&&(ee+=Te/2+a.focus.x),re+=dt+E):(135<b&&(ce+=tt+E),tt+=x+E,gt=Dy(a,gt,He),0>He&&(He=0),oe===$c&&(re+=Te/2+a.focus.y),ee+=x+E):y?(a.comments===null?x>tt&&(tt=Oy(oe,x-tt,0),ee=tt.x,re=tt.y,tt=x,ce=0):tt=ky(a,tt,ce),0>ce&&(ee-=ce,ce=0),135<b&&(He+=gt+E),gt=Math.max(Math.max(gt,dt),gt+dt+E),re+=dt+E):(135<b&&(ce+=tt+E),tt=Math.max(Math.max(tt,x),tt+x+E),a.comments===null?dt>gt&&(gt=Oy(oe,0,dt-gt),ee=gt.x,re=gt.y,gt=dt,He=0):gt=Dy(a,gt,He),0>He&&(re-=He,He=0),ee+=x+E),0<Qn)b=fl(this,4),Qn=fl(this,4),y?(b[2].h(0,dt+E),b[3].h(b[2].x,gt),Qn[2].h(tt,b[2].y),Qn[3].h(Qn[2].x,b[3].y)):(b[2].h(x+E,0),b[3].h(tt,b[2].y),Qn[2].h(b[2].x,gt),Qn[3].h(b[3].x,Qn[2].y));else{for(b=fl(this,bt.length+2),Qn=fl(this,kt.length+2),oe=0;oe<bt.length;oe++)he=bt[oe],b[oe+2].h(he.x+ee,he.y+re);for(oe=0;oe<kt.length;oe++)he=kt[oe],Qn[oe+2].h(he.x+ee,he.y+re)}y?(b[0].h(ce,0),b[1].h(b[0].x,dt),b[2].y<b[1].y&&(b[2].x>b[0].x?b[2].assign(b[1]):b[1].assign(b[2])),b[3].y<b[2].y&&(b[3].x>b[0].x?b[3].assign(b[2]):b[2].assign(b[3])),Qn[0].h(ce+x,0),Qn[1].h(Qn[0].x,dt),Qn[2].y<Qn[1].y&&(Qn[2].x<Qn[0].x?Qn[2].assign(Qn[1]):Qn[1].assign(Qn[2])),Qn[3].y<Qn[2].y&&(Qn[3].x<Qn[0].x?Qn[3].assign(Qn[2]):Qn[2].assign(Qn[3])),b[2].y-=E/2,Qn[2].y-=E/2):(b[0].h(0,He),b[1].h(x,b[0].y),b[2].x<b[1].x&&(b[2].y>b[0].y?b[2].assign(b[1]):b[1].assign(b[2])),b[3].x<b[2].x&&(b[3].y>b[0].y?b[3].assign(b[2]):b[2].assign(b[3])),Qn[0].h(0,He+dt),Qn[1].h(x,Qn[0].y),Qn[2].x<Qn[1].x&&(Qn[2].y<Qn[0].y?Qn[2].assign(Qn[1]):Qn[1].assign(Qn[2])),Qn[3].x<Qn[2].x&&(Qn[3].y<Qn[0].y?Qn[3].assign(Qn[2]):Qn[2].assign(Qn[3])),b[2].x-=E/2,Qn[2].x-=E/2),$u(this,bt),$u(this,kt),a.Yo=b,a.kp=Qn,a.la.h(ce,He),a.Da.h(tt,gt)}break;default:pt("Unhandled compaction value "+a.compaction.toString())}}};function pE(a,y){if(y.childrenCount===0){var E=!1,x=0;y.parent!==null&&(x=y.parent.angle,E=y.parent.alignment,E=oh(E));var b=Iy(y);y.S.h(0,0),y.Da.h(y.width,y.height),y.parent===null||y.comments===null||(x!==180&&x!==270||E)&&!b?y.la.h(0,0):x===180&&!E||(x===90||x===270)&&b?y.la.h(y.width-2*y.focus.x,0):y.la.h(0,y.height-2*y.focus.y)}else{x=ju(y),E=x===90||x===270;var z=0;b=y.children;for(var ee=b.length,re=0;re<ee;re++){var oe=b[re];z=Math.max(z,E?oe.Da.width:oe.Da.height)}var ce=y.alignment,he=ce===_c,ye=ce===jc;re=oh(ce);var Te=Math.max(0,y.breadthLimit);oe=a.computeLayerSpacing(y);var Ae=y.nodeSpacing,ke=a.computeNodeIndent(y),He=he||ye?0:ke/2,dt=y.rowSpacing,tt=0;(he||ye||y.hm||y.im&&y.maxGenerationCount===1)&&(tt=Math.max(0,y.rowIndent)),he=y.width;var gt=y.height,yt=0,bt=0,kt=0,Kt=0,di=0,Ai=0,xi=0,Qn=0,kn=0,rr=0;if(re&&!Bp(ce)&&135<x&&b.reverse(),Bp(ce))if(1<ee)for(var qi=0;qi<ee;qi++){var Gr=b[qi],vo=Gr.Da;qi%2===0&&qi!==ee-1?kn=Math.max(kn,(E?vo.width:vo.height)+a.computeBusNodeSpacing(Gr)-Ae):qi%2!==0&&(rr=Math.max(rr,(E?vo.width:vo.height)+a.computeBusNodeSpacing(Gr)-Ae))}else ee===1&&(kn=E?b[0].Da.width:b[0].Da.height);if(re)switch(ce){case Cd:case zc:bt=135>x?mE(a,y,b,kn,yt,bt):vE(a,y,b,kn,yt,bt),kn=bt.x,yt=bt.width,bt=bt.height;break;case Nd:for(Te=0;Te<ee;Te++)He=b[Te],kt=He.Da,rr=xi===0?0:dt,E?(He.S.h(z-kt.width,di+rr),yt=Math.max(yt,kt.width),bt=Math.max(bt,di+rr+kt.height),di+=rr+kt.height):(He.S.h(Kt+rr,z-kt.height),yt=Math.max(yt,Kt+rr+kt.width),bt=Math.max(bt,kt.height),Kt+=rr+kt.width),xi++;break;case $c:for(z=0;z<ee;z++)Te=b[z],He=Te.Da,kt=xi===0?0:dt,E?(Te.S.h(Ae/2+y.focus.x,di+kt),yt=Math.max(yt,He.width),bt=Math.max(bt,di+kt+He.height),di+=kt+He.height):(Te.S.h(Kt+kt,Ae/2+y.focus.y),yt=Math.max(yt,Kt+kt+He.width),bt=Math.max(bt,He.height),Kt+=kt+He.width),xi++}else for(rr=0;rr<ee;rr++)qi=b[rr],Gr=qi.Da,E?(0<Te&&0<xi&&Kt+Ae+Gr.width>Te&&(Kt<z&&zh(y,ce,z-Kt,0,Qn,rr-1),Ai++,xi=0,Qn=rr,kt=bt,Kt=0,di=135<x?-bt-dt:bt+dt),vo=xi===0?He:Ae,F0(a,qi,0,di),qi.S.h(Kt+vo,di),yt=Math.max(yt,Kt+vo+Gr.width),bt=Math.max(bt,kt+(Ai===0?0:dt)+Gr.height),Kt+=vo+Gr.width):(0<Te&&0<xi&&di+Ae+Gr.height>Te&&(di<z&&zh(y,ce,0,z-di,Qn,rr-1),Ai++,xi=0,Qn=rr,kt=yt,di=0,Kt=135<x?-yt-dt:yt+dt),vo=xi===0?He:Ae,F0(a,qi,Kt,0),qi.S.h(Kt,di+vo),bt=Math.max(bt,di+vo+Gr.height),yt=Math.max(yt,kt+(Ai===0?0:dt)+Gr.width),di+=vo+Gr.height),xi++;switch(0<Ai&&(E?(bt+=Math.max(0,oe),Kt<yt&&zh(y,ce,yt-Kt,0,Qn,ee-1),0<tt&&(ye||pf(y,tt,0,0,ee-1),yt+=tt)):(yt+=Math.max(0,oe),di<bt&&zh(y,ce,0,bt-di,Qn,ee-1),0<tt&&(ye||pf(y,0,tt,0,ee-1),bt+=tt))),tt=ye=0,ce){case pg:E?ye+=yt/2-y.focus.x-ke/2:tt+=bt/2-y.focus.y-ke/2;break;case vf:0<Ai?E?ye+=yt/2-y.focus.x-ke/2:tt+=bt/2-y.focus.y-ke/2:E?(a=b[0].S.x+b[0].la.x,ye+=a+(b[ee-1].S.x+b[ee-1].la.x+2*b[ee-1].focus.x-a)/2-y.focus.x-ke/2):(a=b[0].S.y+b[0].la.y,tt+=a+(b[ee-1].S.y+b[ee-1].la.y+2*b[ee-1].focus.y-a)/2-y.focus.y-ke/2);break;case _c:E?(ye-=ke,yt+=ke):(tt-=ke,bt+=ke);break;case jc:E?(ye+=yt-y.width+ke,yt+=ke):(tt+=bt-y.height+ke,bt+=ke);break;case Cd:case zc:E?1<ee?ye+=kn+Ae/2-y.focus.x:ye+=b[0].focus.x-y.focus.x+b[0].la.x:1<ee?tt+=kn+Ae/2-y.focus.y:tt+=b[0].focus.y-y.focus.y+b[0].la.y;break;case Nd:E?ye+=yt+Ae/2-y.focus.x:tt+=bt+Ae/2-y.focus.y;break;case $c:break;default:a=a.customAlignment(y,ye,tt,yt,bt),ye=a[0],tt=a[1],yt=a[2],bt=a[3]}for(a=0;a<ee;a++)ke=b[a],E?ke.S.h(ke.S.x+ke.la.x-ye,ke.S.y+(135<x?(re?-bt:-ke.Da.height)+ke.la.y-oe:gt+oe+ke.la.y)):ke.S.h(ke.S.x+(135<x?(re?-yt:-ke.Da.width)+ke.la.x-oe:he+oe+ke.la.x),ke.S.y+ke.la.y-tt);E?(yt=ky(y,yt,ye),0>ye&&(ye=0),135<x&&(tt+=bt+oe),bt=Math.max(Math.max(bt,gt),bt+gt+oe)):(135<x&&(ye+=yt+oe),yt=Math.max(Math.max(yt,he),yt+he+oe),bt=Dy(y,bt,tt),0>tt&&(tt=0)),y.la.h(ye,tt),y.Da.h(yt,bt)}}Nr.prototype.customAlignment=function(a,y,E,x,b){return[y,E,x,b]};function mE(a,y,E,x,b,z){var ee=E.length;if(ee===0)return new hn(x,0,b,z);if(ee===1)return y=E[0],b=y.Da.width,z=y.Da.height,new hn(x,0,b,z);for(var re=y.nodeSpacing,oe=y.rowSpacing,ce=ju(y)===90,he=0,ye=0,Te=0,Ae=0;Ae<ee;Ae++)if(!(Ae%2!==0||1<ee&&Ae===ee-1)){var ke=E[Ae],He=ke.Da,dt=he===0?0:oe;if(ce){var tt=a.computeBusNodeSpacing(ke)-re;ke.S.h(x-(He.width+tt),Te+dt),b=Math.max(b,He.width+tt),z=Math.max(z,Te+dt+He.height),Te+=dt+He.height}else tt=a.computeBusNodeSpacing(ke)-re,ke.S.h(ye+dt,x-(He.height+tt)),z=Math.max(z,He.height+tt),b=Math.max(b,ye+dt+He.width),ye+=dt+He.width;he++}for(he=0,ke=ye,Ae=Te,ce?(ye=x+re,Te=0):(ye=0,Te=x+re),He=0;He<ee;He++)if(He%2!==0){dt=E[He],tt=dt.Da;var gt=he===0?0:oe;if(ce){var yt=a.computeBusNodeSpacing(dt)-re;dt.S.h(ye+yt,Te+gt),b=Math.max(b,ye+tt.width+yt),z=Math.max(z,Te+gt+tt.height),Te+=gt+tt.height}else yt=a.computeBusNodeSpacing(dt)-re,dt.S.h(ye+gt,Te+yt),b=Math.max(b,ye+gt+tt.width),z=Math.max(z,Te+tt.height+yt),ye+=gt+tt.width;he++}return 1<ee&&ee%2===1&&(E=E[ee-1],ee=E.Da,a=a.computeBusLastRowSpacing(E,ce?Math.max(Math.abs(Ae),Math.abs(Te)):Math.max(Math.abs(ke),Math.abs(ye))),ce?(E.S.h(x+re/2-E.focus.x-E.la.x,z+a),ce=x+re/2-E.focus.x-E.la.x,b=Math.max(b,ce+ee.width),0>ce&&(b-=ce),z=Math.max(z,Math.max(Ae,Te)+a+ee.height),0>E.S.x&&(x=R0(y,E.S.x,!1,x,re))):(E.S.h(b+a,x+re/2-E.focus.y-E.la.y),b=Math.max(b,Math.max(ke,ye)+a+ee.width),Te=x+re/2-E.focus.y-E.la.y,z=Math.max(z,Te+ee.height),0>Te&&(z-=Te),0>E.S.y&&(x=R0(y,E.S.y,!0,x,re)))),new hn(x,0,b,z)}function vE(a,y,E,x,b,z){var ee=E.length;if(ee===0)return new hn(x,0,b,z);if(ee===1)return E=E[0],b=E.Da.width,z=E.Da.height,new hn(x,0,b,z);for(var re=y.nodeSpacing,oe=y.rowSpacing,ce=ju(y)===270,he=0,ye=0,Te=0,Ae=0;Ae<ee;Ae++)if(!(Ae%2!==0||1<ee&&Ae===ee-1)){var ke=E[Ae],He=ke.Da,dt=he===0?0:oe;if(ce){var tt=a.computeBusNodeSpacing(ke)-re;Te-=dt+He.height,ke.S.h(x-(He.width+tt),Te),b=Math.max(b,He.width+tt),z=Math.max(z,Math.abs(Te))}else tt=a.computeBusNodeSpacing(ke)-re,ye-=dt+He.width,ke.S.h(ye,x-(He.height+tt)),z=Math.max(z,He.height+tt),b=Math.max(b,Math.abs(ye));he++}for(he=0,ke=ye,Ae=Te,ce?(ye=x+re,Te=0):(ye=0,Te=x+re),He=0;He<ee;He++)if(He%2!==0){dt=E[He],tt=dt.Da;var gt=he===0?0:oe;if(ce){var yt=a.computeBusNodeSpacing(dt)-re;Te-=gt+tt.height,dt.S.h(ye+yt,Te),b=Math.max(b,ye+tt.width+yt),z=Math.max(z,Math.abs(Te))}else yt=a.computeBusNodeSpacing(dt)-re,ye-=gt+tt.width,dt.S.h(ye,Te+yt),z=Math.max(z,Te+tt.height+yt),b=Math.max(b,Math.abs(ye));he++}for(1<ee&&ee%2===1&&(oe=E[ee-1],he=oe.Da,a=a.computeBusLastRowSpacing(oe,ce?Math.max(Math.abs(Ae),Math.abs(Te)):Math.max(Math.abs(ke),Math.abs(ye))),ce?(oe.S.h(x+re/2-oe.focus.x-oe.la.x,-z-he.height-a),ye=x+re/2-oe.focus.x-oe.la.x,b=Math.max(b,ye+he.width),0>ye&&(b-=ye),z=Math.max(z,Math.abs(Math.min(Ae,Te))+a+he.height),0>oe.S.x&&(x=R0(y,oe.S.x,!1,x,re))):(oe.S.h(-b-he.width-a,x+re/2-oe.focus.y-oe.la.y),b=Math.max(b,Math.abs(Math.min(ke,ye))+a+he.width),Te=x+re/2-oe.focus.y-oe.la.y,z=Math.max(z,Te+he.height),0>Te&&(z-=Te),0>oe.S.y&&(x=R0(y,oe.S.y,!0,x,re)))),y=0;y<ee;y++)re=E[y],ce?re.S.h(re.S.x,re.S.y+z):re.S.h(re.S.x+b,re.S.y);return new hn(x,0,b,z)}Nr.prototype.computeBusNodeSpacing=function(a){return a.parent===null?0:a.parent.nodeSpacing},Nr.prototype.computeBusLastRowSpacing=function(a){return a.parent===null?0:a.parent.rowSpacing};function R0(a,y,E,x,b){a=a.children;for(var z=a.length,ee=0;ee<z;ee++)E?a[ee].S.h(a[ee].S.x,a[ee].S.y-y):a[ee].S.h(a[ee].S.x-y,a[ee].S.y);return y=a[z-1],Math.max(x,E?y.la.y+y.focus.y-b/2:y.la.x+y.focus.x-b/2)}function ky(a,y,E){switch(a.alignment){case vf:case pg:return E+a.width>y&&(y=E+a.width),0>E&&(y-=E),y;case _c:return a.width>y?a.width:y;case jc:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case Cd:case zc:return Math.max(a.width,Math.max(y,E+a.width)-Math.min(0,E));case Nd:return a.width-a.focus.x+a.nodeSpacing/2+y;case $c:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function Dy(a,y,E){switch(a.alignment){case vf:case pg:return E+a.height>y&&(y=E+a.height),0>E&&(y-=E),y;case _c:return a.height>y?a.height:y;case jc:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case Cd:case zc:return Math.max(a.height,Math.max(y,E+a.height)-Math.min(0,E));case Nd:return a.height-a.focus.y+a.nodeSpacing/2+y;case $c:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function Oy(a,y,E){switch(a){case pg:y/=2,E/=2;break;case vf:y/=2,E/=2;break;case _c:E=y=0;break;case jc:break;default:pt("Unhandled alignment value "+a.toString())}return new lt(y,E)}function zh(a,y,E,x,b,z){y=Oy(y,E,x),pf(a,y.x,y.y,b,z)}function pf(a,y,E,x,b){if(y!==0||E!==0)for(a=a.children;x<=b;x++){var z=a[x].S;z.x+=y,z.y+=E}}function F0(a,y,E,x){var b=y.parent;switch(a.ud){case Bc:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===b&&y.relativePoint.h(E,x);break;case mf:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===b&&y.relativePoint.h(E,x);break;default:pt("Unhandled path value "+a.ud.toString())}}function B0(a,y,E){for(var x=0;x<a.length;x++){var b=a[x];b.x+=y,b.y+=E}}function yE(a,y,E,x,b,z,ee,re){var oe=ju(y),ce=oe===90||oe===270,he=y.nodeSpacing;y=x;var ye=b;x=z;var Te=ee,Ae=E.Yo,ke=E.kp;ee=E.Da;var He=ce?Math.max(Te,ee.height):Math.max(x,ee.width);if((Ae===null||oe!==ju(E))&&(Ae=fl(a,2),ke=fl(a,2),ce?(Ae[0].h(0,0),Ae[1].h(0,ee.height),ke[0].h(ee.width,0),ke[1].h(ke[0].x,Ae[1].y)):(Ae[0].h(0,0),Ae[1].h(ee.width,0),ke[0].h(0,ee.height),ke[1].h(Ae[1].x,ke[0].y))),ce){if(Te=9999999,!(ye===null||2>ye.length||Ae===null||2>Ae.length))for(b=E=0;E<ye.length&&b<Ae.length;){z=ye[E];var dt=Ae[b];oe=dt.x,ce=dt.y,oe+=x;var tt=z;E+1<ye.length&&(tt=ye[E+1]);var gt=dt;dt=gt.x,gt=gt.y,b+1<Ae.length&&(gt=Ae[b+1],dt=gt.x,gt=gt.y,dt+=x);var yt=Te;z.y===ce?yt=oe-z.x:z.y>ce&&z.y<gt?yt=oe+(z.y-ce)/(gt-ce)*(dt-oe)-z.x:ce>z.y&&ce<tt.y&&(yt=oe-(z.x+(ce-z.y)/(tt.y-z.y)*(tt.x-z.x))),yt<Te&&(Te=yt),tt.y<=z.y?E++:gt<=ce?b++:(tt.y<=gt&&E++,gt<=tt.y&&b++)}if(Te=x-Te,Te+=he,E=Ae,b=Te,y===null||2>y.length||E===null||2>E.length)x=null;else{for(he=fl(a,y.length+E.length),x=z=oe=0;z<E.length&&E[z].y<y[0].y;)ce=E[z++],he[x++].h(ce.x+b,ce.y);for(;oe<y.length;)ce=y[oe++],he[x++].h(ce.x,ce.y);for(oe=y[y.length-1].y;z<E.length&&E[z].y<=oe;)z++;for(;z<E.length&&E[z].y>oe;)ce=E[z++],he[x++].h(ce.x+b,ce.y);for(E=fl(a,x),oe=0;oe<x;oe++)E[oe].assign(he[oe]);$u(a,he),x=E}if(z=ke,oe=Te,ye===null||2>ye.length||z===null||2>z.length)b=null;else{for(he=fl(a,ye.length+z.length),b=ce=E=0;E<ye.length&&ye[E].y<z[0].y;)tt=ye[E++],he[b++].h(tt.x,tt.y);for(;ce<z.length;)tt=z[ce++],he[b++].h(tt.x+oe,tt.y);for(z=z[z.length-1].y;E<ye.length&&ye[E].y<=z;)E++;for(;E<ye.length&&ye[E].y>z;)oe=ye[E++],he[b++].h(oe.x,oe.y);for(z=fl(a,b),E=0;E<b;E++)z[E].assign(he[E]);$u(a,he),b=z}return z=Math.max(0,Te)+ee.width,ee=He,$u(a,y),$u(a,Ae),$u(a,ye),$u(a,ke),re[0]=x,re[1]=b,new hn(Te,0,z,ee)}if(x=9999999,!(ye===null||2>ye.length||Ae===null||2>Ae.length))for(b=E=0;E<ye.length&&b<Ae.length;)z=ye[E],dt=Ae[b],oe=dt.x,ce=dt.y,ce+=Te,tt=z,E+1<ye.length&&(tt=ye[E+1]),gt=dt,dt=gt.x,gt=gt.y,b+1<Ae.length&&(gt=Ae[b+1],dt=gt.x,gt=gt.y,gt+=Te),yt=x,z.x===oe?yt=ce-z.y:z.x>oe&&z.x<dt?yt=ce+(z.x-oe)/(dt-oe)*(gt-ce)-z.y:oe>z.x&&oe<tt.x&&(yt=ce-(z.y+(oe-z.x)/(tt.x-z.x)*(tt.y-z.y))),yt<x&&(x=yt),tt.x<=z.x?E++:dt<=oe?b++:(tt.x<=dt&&E++,dt<=tt.x&&b++);if(Te-=x,Te+=he,E=Ae,b=Te,y===null||2>y.length||E===null||2>E.length)x=null;else{for(he=fl(a,y.length+E.length),x=z=oe=0;z<E.length&&E[z].x<y[0].x;)ce=E[z++],he[x++].h(ce.x,ce.y+b);for(;oe<y.length;)ce=y[oe++],he[x++].h(ce.x,ce.y);for(oe=y[y.length-1].x;z<E.length&&E[z].x<=oe;)z++;for(;z<E.length&&E[z].x>oe;)ce=E[z++],he[x++].h(ce.x,ce.y+b);for(E=fl(a,x),oe=0;oe<x;oe++)E[oe].assign(he[oe]);$u(a,he),x=E}if(z=ke,oe=Te,ye===null||2>ye.length||z===null||2>z.length)b=null;else{for(he=fl(a,ye.length+z.length),b=ce=E=0;E<ye.length&&ye[E].x<z[0].x;)tt=ye[E++],he[b++].h(tt.x,tt.y);for(;ce<z.length;)tt=z[ce++],he[b++].h(tt.x,tt.y+oe);for(z=z[z.length-1].x;E<ye.length&&ye[E].x<=z;)E++;for(;E<ye.length&&ye[E].x>z;)oe=ye[E++],he[b++].h(oe.x,oe.y);for(z=fl(a,b),E=0;E<b;E++)z[E].assign(he[E]);$u(a,he),b=z}return z=He,ee=Math.max(0,Te)+ee.height,$u(a,y),$u(a,Ae),$u(a,ye),$u(a,ke),re[0]=x,re[1]=b,new hn(Te,0,z,ee)}function fl(a,y){if(a=a.ru[y],a!==void 0&&(a=a.pop(),a!==void 0))return a;a=[];for(var E=0;E<y;E++)a[E]=new lt;return a}function $u(a,y){var E=y.length,x=a.ru[E];x===void 0&&(x=[],a.ru[E]=x),x.push(y)}Nr.prototype.arrangeTrees=function(){if(this.Rb===H0)for(var a=this.Ub.iterator;a.next();){var y=a.value;if(y instanceof Eu){var E=y.node;if(E!==null){var x=E.position;E=x.x,x=x.y,isFinite(E)||(E=0),isFinite(x)||(x=0),Ry(this,y,E,x)}}}else{for(a=[],y=this.Ub.iterator;y.next();)E=y.value,E instanceof Eu&&a.push(E);switch(this.sorting){case gg:break;case _p:a.reverse();break;case jp:a.sort(this.comparer);break;case zp:a.sort(this.comparer),a.reverse();break;default:pt("Unhandled sorting value "+this.sorting.toString())}for(E=this.arrangementOrigin,y=E.x,E=E.y,x=0;x<a.length;x++){var b=a[x];switch(Ry(this,b,y+b.la.x,E+b.la.y),this.Rb){case U0:E+=b.Da.height+this.$d.height;break;case jy:y+=b.Da.width+this.$d.width;break;default:pt("Unhandled arrangement value "+this.Rb.toString())}}}};function Ry(a,y,E,x){if(y!==null){y.x=E,y.y=x,y=y.children;for(var b=y.length,z=0;z<b;z++){var ee=y[z];Ry(a,ee,E+ee.S.x,x+ee.S.y)}}}Nr.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},Nr.prototype.commitNodes=function(){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();for(a.reset();a.next();)this.layoutComments(a.value)},Nr.prototype.Gu=function(){if(this.layerStyle===G0){for(var a=this.$v,y=[],E=null,x=this.network.vertexes.iterator;x.next();){var b=x.value;E===null?E=b.bounds.copy():E.ed(b.bounds);var z=y[b.level];z===void 0?z=this.computeLayerSpacing(b):z=Math.max(z,this.computeLayerSpacing(b)),y[b.level]=z}for(x=0;x<y.length;x++)y[x]===void 0&&(y[x]=0);if(this.angle===90||this.angle===270?(E.Bc(this.nodeSpacing/2,this.layerSpacing),x=new lt(-this.nodeSpacing/2,-this.layerSpacing/2)):(E.Bc(this.layerSpacing,this.nodeSpacing/2),x=new lt(-this.layerSpacing/2,-this.nodeSpacing/2)),b=[],E=this.angle===90||this.angle===270?E.width:E.height,z=0,this.angle===180||this.angle===270)for(var ee=0;ee<a.length;ee++)z+=a[ee]+y[ee];for(ee=0;ee<a.length;ee++){var re=a[ee]+y[ee];this.angle===270?(z-=re,b.push(new hn(0,z,E,re))):this.angle===90?(b.push(new hn(0,z,E,re)),z+=re):this.angle===180?(z-=re,b.push(new hn(z,0,re,E))):(b.push(new hn(z,0,re,E)),z+=re)}this.commitLayers(b,x)}},Nr.prototype.commitLayers=function(){},Nr.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},Nr.prototype.yv=function(){for(var a=this.Ub.iterator;a.next();){var y=a.value;y instanceof Eu&&SE(this,y)}};function SE(a,y){if(y!==null){a.setPortSpots(y),y=y.children;for(var E=y.length,x=0;x<E;x++)SE(a,y[x])}}Nr.prototype.setPortSpots=function(a){var y=a.alignment;if(oh(y)){var E=this.ud===Bc,x=ju(a);switch(x){case 0:var b=_a;break;case 90:b=Ya;break;case 180:b=ds;break;default:b=rs}var z=a.children,ee=z.length;switch(y){case Cd:case zc:for(y=0;y<ee;y++){var re=z[y];if(re=(E?re.sourceEdges:re.destinationEdges).first(),re!==null&&(re=re.link,re!==null)){var oe=x===90||x===270?ds:rs;if(ee===1||y===ee-1&&ee%2===1)switch(x){case 0:oe=ds;break;case 90:oe=rs;break;case 180:oe=_a;break;default:oe=Ya}else y%2===0&&(oe=x===90||x===270?_a:Ya);E?(a.setsPortSpot&&(re.fromSpot=b),a.setsChildPortSpot&&(re.toSpot=oe)):(a.setsPortSpot&&(re.fromSpot=oe),a.setsChildPortSpot&&(re.toSpot=b))}}break;case Nd:for(x=x===90||x===270?_a:Ya,z=E?a.destinationEdges:a.sourceEdges;z.next();)ee=z.value.link,ee!==null&&(E?(a.setsPortSpot&&(ee.fromSpot=b),a.setsChildPortSpot&&(ee.toSpot=x)):(a.setsPortSpot&&(ee.fromSpot=x),a.setsChildPortSpot&&(ee.toSpot=b)));break;case $c:for(x=x===90||x===270?ds:rs,z=E?a.destinationEdges:a.sourceEdges;z.next();)ee=z.value.link,ee!==null&&(E?(a.setsPortSpot&&(ee.fromSpot=b),a.setsChildPortSpot&&(ee.toSpot=x)):(a.setsPortSpot&&(ee.fromSpot=x),a.setsChildPortSpot&&(ee.toSpot=b)))}}else if(E=ju(a),this.ud===Bc){for(b=a.destinationEdges;b.next();)if(x=b.value.link,x!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(E){case 0:x.fromSpot=_a;break;case 90:x.fromSpot=Ya;break;case 180:x.fromSpot=ds;break;default:x.fromSpot=rs}else x.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(E){case 0:x.toSpot=ds;break;case 90:x.toSpot=rs;break;case 180:x.toSpot=_a;break;default:x.toSpot=Ya}else x.toSpot=a.childPortSpot}}else for(b=a.sourceEdges;b.next();)if(x=b.value.link,x!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(E){case 0:x.toSpot=_a;break;case 90:x.toSpot=Ya;break;case 180:x.toSpot=ds;break;default:x.toSpot=rs}else x.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(E){case 0:x.fromSpot=ds;break;case 90:x.fromSpot=rs;break;case 180:x.fromSpot=_a;break;default:x.fromSpot=Ya}else x.fromSpot=a.childPortSpot}};function ju(a){return a=a.angle,45>=a?0:135>=a?90:225>=a?180:315>=a?270:0}Nr.prototype.computeLayerSpacing=function(a){var y=ju(a);y=y===90||y===270;var E=a.layerSpacing;if(0<a.layerSpacingParentOverlap){var x=Math.min(1,a.layerSpacingParentOverlap);E-=y?a.height*x:a.width*x}return E<(y?-a.height:-a.width)&&(E=y?-a.height:-a.width),E},Nr.prototype.computeNodeIndent=function(a){var y=ju(a),E=a.nodeIndent;if(0<a.nodeIndentPastParent){var x=Math.min(1,a.nodeIndentPastParent);E+=y===90||y===270?a.width*x:a.height*x}return E=Math.max(0,E)},It.Object.defineProperties(Nr.prototype,{roots:{get:function(){return this.Ub},set:function(a){this.Ub!==a&&(this.Ub=a,this.C())}},path:{get:function(){return this.Wn},set:function(a){this.Wn!==a&&(this.Wn=a,this.C())}},treeStyle:{get:function(){return this.vo},set:function(a){this.Rb===a||a!==z0&&a!==By&&a!==Fy&&a!==_y||(this.vo=a,this.C())}},layerStyle:{get:function(){return this.Bq},set:function(a){this.Rb===a||a!==zy&&a!==Uy&&a!==G0||(this.Bq=a,this.C())}},comments:{get:function(){return this.td},set:function(a){this.td!==a&&(this.td=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==U0&&a!==jy&&a!==H0||(this.Rb=a,this.C())}},arrangementSpacing:{get:function(){return this.$d},set:function(a){this.$d.D(a)||(this.$d.assign(a),this.C())}},rootDefaults:{get:function(){return this.W},set:function(a){this.W!==a&&(this.W=a,this.C())}},alternateDefaults:{get:function(){return this.Y},set:function(a){this.Y!==a&&(this.Y=a,this.C())}},sorting:{get:function(){return this.W.sorting},set:function(a){this.W.sorting===a||a!==gg&&a!==_p&&a!==jp&&!zp||(this.W.sorting=a,this.C())}},comparer:{get:function(){return this.W.comparer},set:function(a){this.W.comparer!==a&&(this.W.comparer=a,this.C())}},angle:{get:function(){return this.W.angle},set:function(a){this.W.angle!==a&&(a===0||a===90||a===180||a===270?(this.W.angle=a,this.C()):pt("TreeLayout.angle must be 0, 90, 180, or 270"))}},alignment:{get:function(){return this.W.alignment},set:function(a){this.W.alignment!==a&&(this.W.alignment=a,this.C())}},nodeIndent:{get:function(){return this.W.nodeIndent},set:function(a){this.W.nodeIndent!==a&&0<=a&&(this.W.nodeIndent=a,this.C())}},nodeIndentPastParent:{get:function(){return this.W.nodeIndentPastParent},set:function(a){this.W.nodeIndentPastParent!==a&&0<=a&&1>=a&&(this.W.nodeIndentPastParent=a,this.C())}},nodeSpacing:{get:function(){return this.W.nodeSpacing},set:function(a){this.W.nodeSpacing!==a&&(this.W.nodeSpacing=a,this.C())}},layerSpacing:{get:function(){return this.W.layerSpacing},set:function(a){this.W.layerSpacing!==a&&(this.W.layerSpacing=a,this.C())}},layerSpacingParentOverlap:{get:function(){return this.W.layerSpacingParentOverlap},set:function(a){this.W.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.W.layerSpacingParentOverlap=a,this.C())}},compaction:{get:function(){return this.W.compaction},set:function(a){this.W.compaction===a||a!==j0&&a!==Up||(this.W.compaction=a,this.C())}},breadthLimit:{get:function(){return this.W.breadthLimit},set:function(a){this.W.breadthLimit!==a&&0<=a&&(this.W.breadthLimit=a,this.C())}},rowSpacing:{get:function(){return this.W.rowSpacing},set:function(a){this.W.rowSpacing!==a&&(this.W.rowSpacing=a,this.C())}},rowIndent:{get:function(){return this.W.rowIndent},set:function(a){this.W.rowIndent!==a&&0<=a&&(this.W.rowIndent=a,this.C())}},commentSpacing:{get:function(){return this.W.commentSpacing},set:function(a){this.W.commentSpacing!==a&&(this.W.commentSpacing=a,this.C())}},commentMargin:{get:function(){return this.W.commentMargin},set:function(a){this.W.commentMargin!==a&&(this.W.commentMargin=a,this.C())}},setsPortSpot:{get:function(){return this.W.setsPortSpot},set:function(a){this.W.setsPortSpot!==a&&(this.W.setsPortSpot=a,this.C())}},portSpot:{get:function(){return this.W.portSpot},set:function(a){this.W.portSpot.D(a)||(this.W.portSpot=a,this.C())}},setsChildPortSpot:{get:function(){return this.W.setsChildPortSpot},set:function(a){this.W.setsChildPortSpot!==a&&(this.W.setsChildPortSpot=a,this.C())}},childPortSpot:{get:function(){return this.W.childPortSpot},set:function(a){this.W.childPortSpot.D(a)||(this.W.childPortSpot=a,this.C())}},alternateSorting:{get:function(){return this.Y.sorting},set:function(a){this.Y.sorting===a||a!==gg&&a!==_p&&a!==jp&&!zp||(this.Y.sorting=a,this.C())}},alternateComparer:{get:function(){return this.Y.comparer},set:function(a){this.Y.comparer!==a&&(this.Y.comparer=a,this.C())}},alternateAngle:{get:function(){return this.Y.angle},set:function(a){this.Y.angle===a||a!==0&&a!==90&&a!==180&&a!==270||(this.Y.angle=a,this.C())}},alternateAlignment:{get:function(){return this.Y.alignment},set:function(a){this.Y.alignment!==a&&(this.Y.alignment=a,this.C())}},alternateNodeIndent:{get:function(){return this.Y.nodeIndent},set:function(a){this.Y.nodeIndent!==a&&0<=a&&(this.Y.nodeIndent=a,this.C())}},alternateNodeIndentPastParent:{get:function(){return this.Y.nodeIndentPastParent},set:function(a){this.Y.nodeIndentPastParent!==a&&0<=a&&1>=a&&(this.Y.nodeIndentPastParent=a,this.C())}},alternateNodeSpacing:{get:function(){return this.Y.nodeSpacing},set:function(a){this.Y.nodeSpacing!==a&&(this.Y.nodeSpacing=a,this.C())}},alternateLayerSpacing:{get:function(){return this.Y.layerSpacing},set:function(a){this.Y.layerSpacing!==a&&(this.Y.layerSpacing=a,this.C())}},alternateLayerSpacingParentOverlap:{get:function(){return this.Y.layerSpacingParentOverlap},set:function(a){this.Y.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.Y.layerSpacingParentOverlap=a,this.C())}},alternateCompaction:{get:function(){return this.Y.compaction},set:function(a){this.Y.compaction===a||a!==j0&&a!==Up||(this.Y.compaction=a,this.C())}},alternateBreadthLimit:{get:function(){return this.Y.breadthLimit},set:function(a){this.Y.breadthLimit!==a&&0<=a&&(this.Y.breadthLimit=a,this.C())}},alternateRowSpacing:{get:function(){return this.Y.rowSpacing},set:function(a){this.Y.rowSpacing!==a&&(this.Y.rowSpacing=a,this.C())}},alternateRowIndent:{get:function(){return this.Y.rowIndent},set:function(a){this.Y.rowIndent!==a&&0<=a&&(this.Y.rowIndent=a,this.C())}},alternateCommentSpacing:{get:function(){return this.Y.commentSpacing},set:function(a){this.Y.commentSpacing!==a&&(this.Y.commentSpacing=a,this.C())}},alternateCommentMargin:{get:function(){return this.Y.commentMargin},set:function(a){this.Y.commentMargin!==a&&(this.Y.commentMargin=a,this.C())}},alternateSetsPortSpot:{get:function(){return this.Y.setsPortSpot},set:function(a){this.Y.setsPortSpot!==a&&(this.Y.setsPortSpot=a,this.C())}},alternatePortSpot:{get:function(){return this.Y.portSpot},set:function(a){this.Y.portSpot.D(a)||(this.Y.portSpot=a,this.C())}},alternateSetsChildPortSpot:{get:function(){return this.Y.setsChildPortSpot},set:function(a){this.Y.setsChildPortSpot!==a&&(this.Y.setsChildPortSpot=a,this.C())}},alternateChildPortSpot:{get:function(){return this.Y.childPortSpot},set:function(a){this.Y.childPortSpot.D(a)||(this.Y.childPortSpot=a,this.C())}}});var _0=new en(Nr,"PathDefault",-1),Bc=new en(Nr,"PathDestination",0),mf=new en(Nr,"PathSource",1),gg=new en(Nr,"SortingForwards",10),_p=new en(Nr,"SortingReverse",11),jp=new en(Nr,"SortingAscending",12),zp=new en(Nr,"SortingDescending",13),pg=new en(Nr,"AlignmentCenterSubtrees",20),vf=new en(Nr,"AlignmentCenterChildren",21),_c=new en(Nr,"AlignmentStart",22),jc=new en(Nr,"AlignmentEnd",23),Cd=new en(Nr,"AlignmentBus",24),zc=new en(Nr,"AlignmentBusBranching",25),Nd=new en(Nr,"AlignmentTopLeftBus",26),$c=new en(Nr,"AlignmentBottomRightBus",27),j0=new en(Nr,"CompactionNone",30),Up=new en(Nr,"CompactionBlock",31),z0=new en(Nr,"StyleLayered",40),Fy=new en(Nr,"StyleLastParents",41),By=new en(Nr,"StyleAlternating",42),_y=new en(Nr,"StyleRootOnly",43),U0=new en(Nr,"ArrangementVertical",50),jy=new en(Nr,"ArrangementHorizontal",51),H0=new en(Nr,"ArrangementFixedRoots",52),zy=new en(Nr,"LayerIndividual",60),Uy=new en(Nr,"LayerSiblings",61),G0=new en(Nr,"LayerUniform",62);Nr.className="TreeLayout",Nr.PathDefault=_0,Nr.PathDestination=Bc,Nr.PathSource=mf,Nr.SortingForwards=gg,Nr.SortingReverse=_p,Nr.SortingAscending=jp,Nr.SortingDescending=zp,Nr.AlignmentCenterSubtrees=pg,Nr.AlignmentCenterChildren=vf,Nr.AlignmentStart=_c,Nr.AlignmentEnd=jc,Nr.AlignmentBus=Cd,Nr.AlignmentBusBranching=zc,Nr.AlignmentTopLeftBus=Nd,Nr.AlignmentBottomRightBus=$c,Nr.CompactionNone=j0,Nr.CompactionBlock=Up,Nr.StyleLayered=z0,Nr.StyleLastParents=Fy,Nr.StyleAlternating=By,Nr.StyleRootOnly=_y,Nr.ArrangementVertical=U0,Nr.ArrangementHorizontal=jy,Nr.ArrangementFixedRoots=H0,Nr.LayerIndividual=zy,Nr.LayerSiblings=Uy,Nr.LayerUniform=G0;function yf(a){Eo.call(this,a)}Ut(yf,Eo),yf.prototype.createVertex=function(){return new Eu(this)},yf.prototype.createEdge=function(){return new mg(this)},yf.className="TreeNetwork";function Eu(a){Ma.call(this,a),this.V=!1,this.hb=null,this.u=[],this.nb=this.Ha=this.F=this.ia=0,this.td=null,this.S=new lt(0,0),this.Da=new ri(0,0),this.la=new lt(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=gg,this.hd=sy,this.Kb=0,this.Jb=vf,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=Up,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=Ca,this.wr=!0,this.Dp=Ca}Ut(Eu,Ma),Eu.prototype.copyInheritedPropertiesFrom=function(a){a!==null&&(this.nd=a.sorting,this.hd=a.comparer,this.Kb=a.angle,this.Jb=a.alignment,this.Uq=a.nodeIndent,this.Vq=a.nodeIndentPastParent,this.Wq=a.nodeSpacing,this.ie=a.layerSpacing,this.Aq=a.layerSpacingParentOverlap,this.Hp=a.compaction,this.Ap=a.breadthLimit,this.nr=a.rowSpacing,this.mr=a.rowIndent,this.Gp=a.commentSpacing,this.Fp=a.commentMargin,this.xr=a.setsPortSpot,this.dr=a.portSpot,this.wr=a.setsChildPortSpot,this.Dp=a.childPortSpot)},It.Object.defineProperties(Eu.prototype,{initialized:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},parent:{get:function(){return this.hb},set:function(a){this.hb!==a&&(this.hb=a)}},children:{get:function(){return this.u},set:function(a){if(this.u!==a){if(a!==null)for(var y=a.length,E=0;E<y;E++);this.u=a}}},level:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},descendantCount:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}},maxChildrenCount:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},maxGenerationCount:{get:function(){return this.nb},set:function(a){this.nb!==a&&(this.nb=a)}},comments:{get:function(){return this.td},set:function(a){if(this.td!==a){if(a!==null)for(var y=a.length,E=0;E<y;E++);this.td=a}}},sorting:{get:function(){return this.nd},set:function(a){this.nd!==a&&(this.nd=a)}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a)}},angle:{get:function(){return this.Kb},set:function(a){this.Kb!==a&&(this.Kb=a)}},alignment:{get:function(){return this.Jb},set:function(a){this.Jb!==a&&(this.Jb=a)}},nodeIndent:{get:function(){return this.Uq},set:function(a){this.Uq!==a&&(this.Uq=a)}},nodeIndentPastParent:{get:function(){return this.Vq},set:function(a){this.Vq!==a&&(this.Vq=a)}},nodeSpacing:{get:function(){return this.Wq},set:function(a){this.Wq!==a&&(this.Wq=a)}},layerSpacing:{get:function(){return this.ie},set:function(a){this.ie!==a&&(this.ie=a)}},layerSpacingParentOverlap:{get:function(){return this.Aq},set:function(a){this.Aq!==a&&(this.Aq=a)}},compaction:{get:function(){return this.Hp},set:function(a){this.Hp!==a&&(this.Hp=a)}},breadthLimit:{get:function(){return this.Ap},set:function(a){this.Ap!==a&&(this.Ap=a)}},rowSpacing:{get:function(){return this.nr},set:function(a){this.nr!==a&&(this.nr=a)}},rowIndent:{get:function(){return this.mr},set:function(a){this.mr!==a&&(this.mr=a)}},commentSpacing:{get:function(){return this.Gp},set:function(a){this.Gp!==a&&(this.Gp=a)}},commentMargin:{get:function(){return this.Fp},set:function(a){this.Fp!==a&&(this.Fp=a)}},setsPortSpot:{get:function(){return this.xr},set:function(a){this.xr!==a&&(this.xr=a)}},portSpot:{get:function(){return this.dr},set:function(a){this.dr.D(a)||(this.dr=a)}},setsChildPortSpot:{get:function(){return this.wr},set:function(a){this.wr!==a&&(this.wr=a)}},childPortSpot:{get:function(){return this.Dp},set:function(a){this.Dp.D(a)||(this.Dp=a)}},childrenCount:{get:function(){return this.children.length}},relativePosition:{get:function(){return this.S},set:function(a){this.S.set(a)}},subtreeSize:{get:function(){return this.Da},set:function(a){this.Da.set(a)}},subtreeOffset:{get:function(){return this.la},set:function(a){this.la.set(a)}}}),Eu.className="TreeVertex";function mg(a){Nl.call(this,a),this.$t=new lt(0,0)}Ut(mg,Nl),mg.prototype.commit=function(){var a=this.link;if(a!==null&&!a.isAvoiding){var y=this.network.layout,E=null,x=null;switch(y.ud){case Bc:E=this.fromVertex,x=this.toVertex;break;case mf:E=this.toVertex,x=this.fromVertex;break;default:pt("Unhandled path value "+y.ud.toString())}if(E!==null&&x!==null){var b=this.$t;if(b.x!==0||b.y!==0||E.qA){x=E.bounds;var z=ju(E),ee=y.computeLayerSpacing(E),re=E.rowSpacing;a.vg();var oe=a.curve===Gl,ce=a.isOrthogonal,he;if(a.uh(),ce||oe){for(he=2;4<a.pointsCount;)a.pv(2);var ye=a.i(1),Te=a.i(2)}else{for(he=1;3<a.pointsCount;)a.pv(1);ye=a.i(0),Te=a.i(a.pointsCount-1)}var Ae=a.i(a.pointsCount-1);z===0?(E.alignment===jc?(z=x.bottom+b.y,b.y===0&&ye.y>Ae.y+E.rowIndent&&(z=Math.min(z,Math.max(ye.y,z-y.computeNodeIndent(E))))):E.alignment===_c?(z=x.top+b.y,b.y===0&&ye.y<Ae.y-E.rowIndent&&(z=Math.max(z,Math.min(ye.y,z+y.computeNodeIndent(E))))):z=E.hm||E.im&&E.maxGenerationCount===1?x.top-E.la.y+b.y:x.y+x.height/2+b.y,oe?(a.m(he,ye.x,z),he++,a.m(he,x.right+ee,z),he++,a.m(he,x.right+ee+(b.x-re)/3,z),he++,a.m(he,x.right+ee+2*(b.x-re)/3,z),he++,a.m(he,x.right+ee+(b.x-re),z),he++,a.m(he,Te.x,z)):(ce&&(a.m(he,x.right+ee/2,ye.y),he++),a.m(he,x.right+ee/2,z),he++,a.m(he,x.right+ee+b.x-(ce?re/2:re),z),he++,ce&&a.m(he,a.i(he-1).x,Te.y))):z===90?(E.alignment===jc?(z=x.right+b.x,b.x===0&&ye.x>Ae.x+E.rowIndent&&(z=Math.min(z,Math.max(ye.x,z-y.computeNodeIndent(E))))):E.alignment===_c?(z=x.left+b.x,b.x===0&&ye.x<Ae.x-E.rowIndent&&(z=Math.max(z,Math.min(ye.x,z+y.computeNodeIndent(E))))):z=E.hm||E.im&&E.maxGenerationCount===1?x.left-E.la.x+b.x:x.x+x.width/2+b.x,oe?(a.m(he,z,ye.y),he++,a.m(he,z,x.bottom+ee),he++,a.m(he,z,x.bottom+ee+(b.y-re)/3),he++,a.m(he,z,x.bottom+ee+2*(b.y-re)/3),he++,a.m(he,z,x.bottom+ee+(b.y-re)),he++,a.m(he,z,Te.y)):(ce&&(a.m(he,ye.x,x.bottom+ee/2),he++),a.m(he,z,x.bottom+ee/2),he++,a.m(he,z,x.bottom+ee+b.y-(ce?re/2:re)),he++,ce&&a.m(he,Te.x,a.i(he-1).y))):z===180?(E.alignment===jc?(z=x.bottom+b.y,b.y===0&&ye.y>Ae.y+E.rowIndent&&(z=Math.min(z,Math.max(ye.y,z-y.computeNodeIndent(E))))):E.alignment===_c?(z=x.top+b.y,b.y===0&&ye.y<Ae.y-E.rowIndent&&(z=Math.max(z,Math.min(ye.y,z+y.computeNodeIndent(E))))):z=E.hm||E.im&&E.maxGenerationCount===1?x.top-E.la.y+b.y:x.y+x.height/2+b.y,oe?(a.m(he,ye.x,z),he++,a.m(he,x.left-ee,z),he++,a.m(he,x.left-ee+(b.x+re)/3,z),he++,a.m(he,x.left-ee+2*(b.x+re)/3,z),he++,a.m(he,x.left-ee+(b.x+re),z),he++,a.m(he,Te.x,z)):(ce&&(a.m(he,x.left-ee/2,ye.y),he++),a.m(he,x.left-ee/2,z),he++,a.m(he,x.left-ee+b.x+(ce?re/2:re),z),he++,ce&&a.m(he,a.i(he-1).x,Te.y))):z===270?(E.alignment===jc?(z=x.right+b.x,b.x===0&&ye.x>Ae.x+E.rowIndent&&(z=Math.min(z,Math.max(ye.x,z-y.computeNodeIndent(E))))):E.alignment===_c?(z=x.left+b.x,b.x===0&&ye.x<Ae.x-E.rowIndent&&(z=Math.max(z,Math.min(ye.x,z+y.computeNodeIndent(E))))):z=E.hm||E.im&&E.maxGenerationCount===1?x.left-E.la.x+b.x:x.x+x.width/2+b.x,oe?(a.m(he,z,ye.y),he++,a.m(he,z,x.top-ee),he++,a.m(he,z,x.top-ee+(b.y+re)/3),he++,a.m(he,z,x.top-ee+2*(b.y+re)/3),he++,a.m(he,z,x.top-ee+(b.y+re)),he++,a.m(he,z,Te.y)):(ce&&(a.m(he,ye.x,x.top-ee/2),he++),a.m(he,z,x.top-ee/2),he++,a.m(he,z,x.top-ee+b.y+(ce?re/2:re)),he++,ce&&a.m(he,Te.x,a.i(he-1).y))):pt("Invalid angle "+z),a.zf()}else b=x,a=this.link,x=this.network.layout,y=ju(E),y!==ju(b)&&(ee=x.computeLayerSpacing(E),re=E.bounds,E=b.bounds,y===0&&E.left-re.right<ee+1||y===90&&E.top-re.bottom<ee+1||y===180&&re.left-E.right<ee+1||y===270&&re.top-E.bottom<ee+1||(a.vg(),E=a.curve===Gl,b=a.isOrthogonal,x=oh(this.fromVertex.alignment),a.uh(),y===0?(y=re.right+ee/2,E?a.pointsCount===4&&(E=a.i(3).y,a.L(1,y-20,a.i(1).y),a.m(2,y-20,E),a.m(3,y,E),a.m(4,y+20,E),a.L(5,a.i(5).x,E)):b?x?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,y,a.i(2).y),a.L(3,y,a.i(3).y)):a.pointsCount===4?a.m(2,y,a.i(2).y):a.pointsCount===3?a.L(1,y,a.i(2).y):a.pointsCount===2&&a.m(1,y,a.i(1).y)):y===90?(y=re.bottom+ee/2,E?a.pointsCount===4&&(E=a.i(3).x,a.L(1,a.i(1).x,y-20),a.m(2,E,y-20),a.m(3,E,y),a.m(4,E,y+20),a.L(5,E,a.i(5).y)):b?x?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,a.i(2).x,y),a.L(3,a.i(3).x,y)):a.pointsCount===4?a.m(2,a.i(2).x,y):a.pointsCount===3?a.L(1,a.i(2).x,y):a.pointsCount===2&&a.m(1,a.i(1).x,y)):y===180?(y=re.left-ee/2,E?a.pointsCount===4&&(E=a.i(3).y,a.L(1,y+20,a.i(1).y),a.m(2,y+20,E),a.m(3,y,E),a.m(4,y-20,E),a.L(5,a.i(5).x,E)):b?x?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,y,a.i(2).y),a.L(3,y,a.i(3).y)):a.pointsCount===4?a.m(2,y,a.i(2).y):a.pointsCount===3?a.L(1,y,a.i(2).y):a.pointsCount===2&&a.m(1,y,a.i(1).y)):y===270&&(y=re.top-ee/2,E?a.pointsCount===4&&(E=a.i(3).x,a.L(1,a.i(1).x,y+20),a.m(2,E,y+20),a.m(3,E,y),a.m(4,E,y-20),a.L(5,E,a.i(5).y)):b?x?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,a.i(2).x,y),a.L(3,a.i(3).x,y)):a.pointsCount===4?a.m(2,a.i(2).x,y):a.pointsCount===3?a.L(1,a.i(2).x,y):a.pointsCount===2&&a.m(1,a.i(1).x,y)),a.zf()))}}},It.Object.defineProperties(mg.prototype,{fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}},relativePoint:{get:function(){return this.$t},set:function(a){this.$t.set(a)}}}),mg.className="TreeEdge",Co.prototype.initializeStandardTools=function(){this.gb("Action",new Sn,this.mouseDownTools),this.gb("Relinking",new Fs,this.mouseDownTools),this.gb("LinkReshaping",new je,this.mouseDownTools),this.gb("Rotating",new _n,this.mouseDownTools),this.gb("Resizing",new Wt,this.mouseDownTools),this.gb("Linking",new fs,this.mouseMoveTools),this.gb("Dragging",new To,this.mouseMoveTools),this.gb("DragSelecting",new ei,this.mouseMoveTools),this.gb("Panning",new Ln,this.mouseMoveTools),this.gb("ContextMenu",new uo,this.mouseUpTools),this.gb("TextEditing",new Or,this.mouseUpTools),this.gb("ClickCreating",new ai,this.mouseUpTools),this.gb("ClickSelecting",new Un,this.mouseUpTools)},pc("Horizontal",new ym),pc("Spot",new Em),pc("Table",new bm),pc("Viewbox",new Am),pc("TableRow",new wm),pc("TableColumn",new Tm),pc("Graduated",new ip),pc("Grid",new np),jf.add("GraphLinksModel",za),jf.add("TreeModel",ru);var Y0=Rn.go,Hy={get licenseKey(){return Qt.licenseKey},set licenseKey(a){Qt.licenseKey=a},get version(){return Qt.version},Group:or,EnumValue:en,List:Fn,Set:In,Map:zi,Point:lt,Size:ri,Rect:hn,Margin:cr,Spot:Yt,Geometry:Kn,PathFigure:ma,PathSegment:Br,InputEvent:Qa,DiagramEvent:Tu,ChangedEvent:Oo,Model:Di,GraphLinksModel:Dr,TreeModel:Ws,Binding:ha,Transaction:va,UndoManager:ho,CommandHandler:ct,Tool:Pr,DraggingTool:To,DraggingInfo:Zc,DraggingOptions:ae,LinkingBaseTool:Ko,LinkingTool:fs,RelinkingTool:Fs,LinkReshapingTool:je,ResizingTool:Wt,RotatingTool:_n,ClickSelectingTool:Un,ActionTool:Sn,ClickCreatingTool:ai,HTMLInfo:Rr,ContextMenuTool:uo,DragSelectingTool:ei,PanningTool:Ln,TextEditingTool:Or,ToolManager:Co,Animation:Si,AnimationManager:ss,AnimationTrigger:$s,Layer:Va,Diagram:Qt,Palette:ve,Overview:Ee,Brush:qr,GraphObject:Dt,Panel:Vn,RowColumnDefinition:wa,Shape:pr,TextBlock:So,Picture:rl,Part:Ui,Adornment:Ur,Node:pi,Link:Xn,Placeholder:Hs,Layout:_o,LayoutNetwork:Eo,LayoutVertex:Ma,LayoutEdge:Nl,GridLayout:qa,PanelLayout:Na,CircularLayout:Qo,CircularNetwork:dg,CircularVertex:Ip,CircularEdge:T0,ForceDirectedLayout:us,ForceDirectedNetwork:gf,ForceDirectedVertex:kp,ForceDirectedEdge:Dp,LayeredDigraphLayout:to,LayeredDigraphNetwork:fg,LayeredDigraphVertex:au,LayeredDigraphEdge:Fp,TreeLayout:Nr,TreeNetwork:yf,TreeVertex:Eu,TreeEdge:mg};typeof Y0=="object"&&Y0.version&&Ti("WARNING: a `go` object on the root object is already defined. "+("Debug"in Y0?"debug ":"")+"version: "+Y0.version+", replaced with version: "+Hy.version),Qt.prototype.go=Hy,Rn.go=Hy,typeof ze.exports=="object"&&(ze.exports=typeof de.g!="undefined"?de.g.go:self.go)}();var le=typeof de.g!="undefined"?de.g.go:self.go;const Me=typeof de.g!="undefined"?de.g.go:self.go,Ie=Me.Group,Pe=Me.EnumValue,Ge=Me.List,Oe=Me.Set,Ve=Me.Map,ot=Me.Point,Je=Me.Size,Xe=Me.Rect,vt=Me.Margin,st=Me.Spot,_t=Me.Geometry,Ue=Me.PathFigure,te=Me.PathSegment,ne=Me.InputEvent,fe=Me.DiagramEvent,se=Me.ChangedEvent,pe=Me.Model,Se=Me.GraphLinksModel,we=Me.TreeModel,De=Me.Binding,Re=Me.Transaction,Ze=Me.UndoManager,nt=Me.CommandHandler,rt=Me.Tool,ft=Me.DraggingTool,xt=Me.DraggingInfo,at=Me.LinkingBaseTool,wt=Me.LinkingTool,Mt=Me.RelinkingTool,Xt=Me.LinkReshapingTool,bn=Me.ResizingTool,pn=Me.RotatingTool,fn=Me.ClickSelectingTool,gn=Me.ActionTool,Nt=Me.ClickCreatingTool,ut=Me.HTMLInfo,it=Me.ContextMenuTool,an=Me.DragSelectingTool,mn=Me.PanningTool,Ct=Me.TextEditingTool,un=Me.ToolManager,on=Me.Animation,Bn=Me.AnimationManager,Nn=Me.AnimationTrigger,si=Me.Layer,Pt=Me.Diagram,qn=Me.Palette,Ei=Me.Overview,$e=Me.Brush,Fe=Me.GraphObject,Ne=Me.Panel,Qe=Me.RowColumnDefinition,Ke=Me.Shape,Le=Me.TextBlock,At=Me.TextBlockMetrics,Lt=Me.Picture,tn=Me.Part,$t=Me.Adornment,Ht=Me.Node,rn=Me.Link,vn=Me.Placeholder,cn=Me.Layout,wn=Me.LayoutNetwork,sn=Me.LayoutVertex,Ft=Me.LayoutEdge,jn=Me.GridLayout,dn=Me.PanelLayout,En=Me.CircularLayout,Jt=Me.CircularNetwork,ui=Me.CircularVertex,Gn=Me.CircularEdge,mt=Me.ForceDirectedLayout,On=Me.ForceDirectedNetwork,Cn=Me.ForceDirectedVertex,jt=Me.ForceDirectedEdge,mi=Me.LayeredDigraphLayout,Hi=Me.LayeredDigraphNetwork,Oi=Me.LayeredDigraphVertex,Mn=Me.LayeredDigraphEdge,lr=Me.TreeLayout,Gi=Me.TreeNetwork,fi=Me.TreeVertex,wi=Me.TreeEdge,Li=Me.version},46963:function(ze){"use strict";ze.exports=de;var be=/[#.]/g;function de(le,Me){for(var Ie=le||"",Pe=Me||"div",Ge={},Oe=0,Ve,ot,Je;Oe<Ie.length;)be.lastIndex=Oe,Je=be.exec(Ie),Ve=Ie.slice(Oe,Je?Je.index:Ie.length),Ve&&(ot?ot==="#"?Ge.id=Ve:Ge.className?Ge.className.push(Ve):Ge.className=[Ve]:Pe=Ve,Oe+=Ve.length),Je&&(ot=Je[0],Oe++);return{type:"element",tagName:Pe,properties:Ge,children:[]}}},5641:function(ze,be,de){"use strict";var le=de(88914),Me=de(47178),Ie=de(46963),Pe=de(92848).Q,Ge=de(58951).Q;ze.exports=Ve;var Oe={}.hasOwnProperty;function Ve(te,ne,fe){var se=fe?Ue(fe):null;return pe;function pe(we,De){var Re=Ie(we,ne),Ze=Array.prototype.slice.call(arguments,2),nt=Re.tagName.toLowerCase(),rt;if(Re.tagName=se&&Oe.call(se,nt)?se[nt]:nt,De&&ot(De,Re)&&(Ze.unshift(De),De=null),De)for(rt in De)Se(Re.properties,rt,De[rt]);return Xe(Re.children,Ze),Re.tagName==="template"&&(Re.content={type:"root",children:Re.children},Re.children=[]),Re}function Se(we,De,Re){var Ze,nt,rt;Re==null||Re!==Re||(Ze=le(te,De),nt=Ze.property,rt=Re,typeof rt=="string"&&(Ze.spaceSeparated?rt=Pe(rt):Ze.commaSeparated?rt=Ge(rt):Ze.commaOrSpaceSeparated&&(rt=Pe(Ge(rt).join(" ")))),nt==="style"&&typeof Re!="string"&&(rt=_t(rt)),nt==="className"&&we.className&&(rt=we.className.concat(rt)),we[nt]=vt(Ze,nt,rt))}}function ot(te,ne){return typeof te=="string"||"length"in te||Je(ne.tagName,te)}function Je(te,ne){var fe=ne.type;return te==="input"||!fe||typeof fe!="string"?!1:typeof ne.children=="object"&&"length"in ne.children?!0:(fe=fe.toLowerCase(),te==="button"?fe!=="menu"&&fe!=="submit"&&fe!=="reset"&&fe!=="button":"value"in ne)}function Xe(te,ne){var fe,se;if(typeof ne=="string"||typeof ne=="number"){te.push({type:"text",value:String(ne)});return}if(typeof ne=="object"&&"length"in ne){for(fe=-1,se=ne.length;++fe<se;)Xe(te,ne[fe]);return}if(typeof ne!="object"||!("type"in ne))throw new Error("Expected node, nodes, or string, got `"+ne+"`");te.push(ne)}function vt(te,ne,fe){var se,pe,Se;if(typeof fe!="object"||!("length"in fe))return st(te,ne,fe);for(pe=fe.length,se=-1,Se=[];++se<pe;)Se[se]=st(te,ne,fe[se]);return Se}function st(te,ne,fe){var se=fe;return te.number||te.positiveNumber?!isNaN(se)&&se!==""&&(se=Number(se)):(te.boolean||te.overloadedBoolean)&&typeof se=="string"&&(se===""||Me(fe)===Me(ne))&&(se=!0),se}function _t(te){var ne=[],fe;for(fe in te)ne.push([fe,te[fe]].join(": "));return ne.join("; ")}function Ue(te){for(var ne=te.length,fe=-1,se={},pe;++fe<ne;)pe=te[fe],se[pe.toLowerCase()]=pe;return se}},82073:function(ze,be,de){"use strict";var le=de(18795),Me=de(5641),Ie=Me(le,"div");Ie.displayName="html",ze.exports=Ie},43621:function(ze,be,de){"use strict";ze.exports=de(82073)},93193:function(ze){var be=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,de=/\n/g,le=/^\s*/,Me=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Ie=/^:\s*/,Pe=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Ge=/^[;\s]*/,Oe=/^\s+|\s+$/g,Ve=`
`,ot="/",Je="*",Xe="",vt="comment",st="declaration";ze.exports=function(Ue,te){if(typeof Ue!="string")throw new TypeError("First argument must be a string");if(!Ue)return[];te=te||{};var ne=1,fe=1;function se(at){var wt=at.match(de);wt&&(ne+=wt.length);var Mt=at.lastIndexOf(Ve);fe=~Mt?at.length-Mt:fe+at.length}function pe(){var at={line:ne,column:fe};return function(wt){return wt.position=new Se(at),Ze(),wt}}function Se(at){this.start=at,this.end={line:ne,column:fe},this.source=te.source}Se.prototype.content=Ue;var we=[];function De(at){var wt=new Error(te.source+":"+ne+":"+fe+": "+at);if(wt.reason=at,wt.filename=te.source,wt.line=ne,wt.column=fe,wt.source=Ue,te.silent)we.push(wt);else throw wt}function Re(at){var wt=at.exec(Ue);if(wt){var Mt=wt[0];return se(Mt),Ue=Ue.slice(Mt.length),wt}}function Ze(){Re(le)}function nt(at){var wt;for(at=at||[];wt=rt();)wt!==!1&&at.push(wt);return at}function rt(){var at=pe();if(!(ot!=Ue.charAt(0)||Je!=Ue.charAt(1))){for(var wt=2;Xe!=Ue.charAt(wt)&&(Je!=Ue.charAt(wt)||ot!=Ue.charAt(wt+1));)++wt;if(wt+=2,Xe===Ue.charAt(wt-1))return De("End of comment missing");var Mt=Ue.slice(2,wt-2);return fe+=2,se(Mt),Ue=Ue.slice(wt),fe+=2,at({type:vt,comment:Mt})}}function ft(){var at=pe(),wt=Re(Me);if(wt){if(rt(),!Re(Ie))return De("property missing ':'");var Mt=Re(Pe),Xt=at({type:st,property:_t(wt[0].replace(be,Xe)),value:Mt?_t(Mt[0].replace(be,Xe)):Xe});return Re(Ge),Xt}}function xt(){var at=[];nt(at);for(var wt;wt=ft();)wt!==!1&&(at.push(wt),nt(at));return at}return Ze(),xt()};function _t(Ue){return Ue?Ue.replace(Oe,Xe):Xe}},91241:function(ze){"use strict";ze.exports=be;function be(de){var le=typeof de=="string"?de.charCodeAt(0):de;return le>=97&&le<=122||le>=65&&le<=90}},21127:function(ze,be,de){"use strict";var le=de(91241),Me=de(22347);ze.exports=Ie;function Ie(Pe){return le(Pe)||Me(Pe)}},22347:function(ze){"use strict";ze.exports=be;function be(de){var le=typeof de=="string"?de.charCodeAt(0):de;return le>=48&&le<=57}},65207:function(ze){"use strict";ze.exports=be;function be(de){var le=typeof de=="string"?de.charCodeAt(0):de;return le>=97&&le<=102||le>=65&&le<=70||le>=48&&le<=57}},2859:function(ze,be,de){"use strict";de.d(be,{hP:function(){return Ei}});var le=function($e,Fe){return(le=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ne,Qe){Ne.__proto__=Qe}||function(Ne,Qe){for(var Ke in Qe)Object.prototype.hasOwnProperty.call(Qe,Ke)&&(Ne[Ke]=Qe[Ke])})($e,Fe)};function Me($e,Fe){function Ne(){this.constructor=$e}le($e,Fe),$e.prototype=Fe===null?Object.create(Fe):(Ne.prototype=Fe.prototype,new Ne)}function Ie($e,Fe,Ne,Qe){return new(Ne||(Ne=Promise))(function(Ke,Le){function At($t){try{tn(Qe.next($t))}catch(Ht){Le(Ht)}}function Lt($t){try{tn(Qe.throw($t))}catch(Ht){Le(Ht)}}function tn($t){var Ht;$t.done?Ke($t.value):(Ht=$t.value,Ht instanceof Ne?Ht:new Ne(function(rn){rn(Ht)})).then(At,Lt)}tn((Qe=Qe.apply($e,Fe||[])).next())})}function Pe($e,Fe){var Ne,Qe,Ke,Le,At={label:0,sent:function(){if(1&Ke[0])throw Ke[1];return Ke[1]},trys:[],ops:[]};return Le={next:Lt(0),throw:Lt(1),return:Lt(2)},typeof Symbol=="function"&&(Le[Symbol.iterator]=function(){return this}),Le;function Lt(tn){return function($t){return function(Ht){if(Ne)throw new TypeError("Generator is already executing.");for(;At;)try{if(Ne=1,Qe&&(Ke=2&Ht[0]?Qe.return:Ht[0]?Qe.throw||((Ke=Qe.return)&&Ke.call(Qe),0):Qe.next)&&!(Ke=Ke.call(Qe,Ht[1])).done)return Ke;switch(Qe=0,Ke&&(Ht=[2&Ht[0],Ke.value]),Ht[0]){case 0:case 1:Ke=Ht;break;case 4:return At.label++,{value:Ht[1],done:!1};case 5:At.label++,Qe=Ht[1],Ht=[0];continue;case 7:Ht=At.ops.pop(),At.trys.pop();continue;default:if(Ke=At.trys,!((Ke=Ke.length>0&&Ke[Ke.length-1])||Ht[0]!==6&&Ht[0]!==2)){At=0;continue}if(Ht[0]===3&&(!Ke||Ht[1]>Ke[0]&&Ht[1]<Ke[3])){At.label=Ht[1];break}if(Ht[0]===6&&At.label<Ke[1]){At.label=Ke[1],Ke=Ht;break}if(Ke&&At.label<Ke[2]){At.label=Ke[2],At.ops.push(Ht);break}Ke[2]&&At.ops.pop(),At.trys.pop();continue}Ht=Fe.call($e,At)}catch(rn){Ht=[6,rn],Qe=0}finally{Ne=Ke=0}if(5&Ht[0])throw Ht[1];return{value:Ht[0]?Ht[1]:void 0,done:!0}}([tn,$t])}}}function Ge(){for(var $e=0,Fe=0,Ne=arguments.length;Fe<Ne;Fe++)$e+=arguments[Fe].length;var Qe=Array($e),Ke=0;for(Fe=0;Fe<Ne;Fe++)for(var Le=arguments[Fe],At=0,Lt=Le.length;At<Lt;At++,Ke++)Qe[Ke]=Le[At];return Qe}var Oe=function(){function $e(){}return $e.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},$e.setAttributes=function(Fe,Ne){for(var Qe=0,Ke=Ne;Qe<Ke.length;Qe++){var Le=Ke[Qe],At=Le[0],Lt=Le[1];Fe.setAttribute(At,Lt)}},$e.createRect=function(Fe,Ne,Qe){var Ke=document.createElementNS("http://www.w3.org/2000/svg","rect");return Ke.setAttribute("width",Fe.toString()),Ke.setAttribute("height",Ne.toString()),Qe&&$e.setAttributes(Ke,Qe),Ke},$e.createLine=function(Fe,Ne,Qe,Ke,Le){var At=document.createElementNS("http://www.w3.org/2000/svg","line");return At.setAttribute("x1",Fe.toString()),At.setAttribute("y1",Ne.toString()),At.setAttribute("x2",Qe.toString()),At.setAttribute("y2",Ke.toString()),Le&&$e.setAttributes(At,Le),At},$e.createPolygon=function(Fe,Ne){var Qe=document.createElementNS("http://www.w3.org/2000/svg","polygon");return Qe.setAttribute("points",Fe),Ne&&$e.setAttributes(Qe,Ne),Qe},$e.createCircle=function(Fe,Ne){var Qe=document.createElementNS("http://www.w3.org/2000/svg","circle");return Qe.setAttribute("cx",(Fe/2).toString()),Qe.setAttribute("cy",(Fe/2).toString()),Qe.setAttribute("r",Fe.toString()),Ne&&$e.setAttributes(Qe,Ne),Qe},$e.createEllipse=function(Fe,Ne,Qe){var Ke=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return Ke.setAttribute("cx",(Fe/2).toString()),Ke.setAttribute("cy",(Ne/2).toString()),Ke.setAttribute("rx",(Fe/2).toString()),Ke.setAttribute("ry",(Ne/2).toString()),Qe&&$e.setAttributes(Ke,Qe),Ke},$e.createGroup=function(Fe){var Ne=document.createElementNS("http://www.w3.org/2000/svg","g");return Fe&&$e.setAttributes(Ne,Fe),Ne},$e.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},$e.createMarker=function(Fe,Ne,Qe,Ke,Le,At,Lt){var tn=document.createElementNS("http://www.w3.org/2000/svg","marker");return $e.setAttributes(tn,[["id",Fe],["orient",Ne],["markerWidth",Qe.toString()],["markerHeight",Ke.toString()],["refX",Le.toString()],["refY",At.toString()]]),tn.appendChild(Lt),tn},$e.createText=function(Fe){var Ne=document.createElementNS("http://www.w3.org/2000/svg","text");return Ne.setAttribute("x","0"),Ne.setAttribute("y","0"),Fe&&$e.setAttributes(Ne,Fe),Ne},$e.createTSpan=function(Fe,Ne){var Qe=document.createElementNS("http://www.w3.org/2000/svg","tspan");return Qe.textContent=Fe,Ne&&$e.setAttributes(Qe,Ne),Qe},$e.createImage=function(Fe){var Ne=document.createElementNS("http://www.w3.org/2000/svg","image");return Fe&&$e.setAttributes(Ne,Fe),Ne},$e.createPoint=function(Fe,Ne){var Qe=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return Qe.x=Fe,Qe.y=Ne,Qe},$e.createPath=function(Fe,Ne){var Qe=document.createElementNS("http://www.w3.org/2000/svg","path");return Qe.setAttribute("d",Fe),Ne&&$e.setAttributes(Qe,Ne),Qe},$e}(),Ve=function(){function $e(){}return $e.addKey=function(Fe){$e.key=Fe},Object.defineProperty($e,"isLicensed",{get:function(){return!!$e.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test($e.key)},enumerable:!1,configurable:!0}),$e}(),ot=function(){function $e(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return $e.prototype.rasterize=function(Fe,Ne,Qe){var Ke=this;return new Promise(function(Le){var At=Qe!==void 0?Qe:document.createElement("canvas");Fe===null&&(Ke.markersOnly=!0,Ke.naturalSize=!1);var Lt=document.createElementNS("http://www.w3.org/2000/svg","svg");Lt.setAttribute("xmlns","http://www.w3.org/2000/svg"),Lt.setAttribute("width",Ne.width.baseVal.valueAsString),Lt.setAttribute("height",Ne.height.baseVal.valueAsString),Lt.setAttribute("viewBox","0 0 "+Ne.viewBox.baseVal.width.toString()+" "+Ne.viewBox.baseVal.height.toString()),Lt.innerHTML=Ne.innerHTML,Ke.naturalSize===!0?(Lt.width.baseVal.value=Fe.naturalWidth,Lt.height.baseVal.value=Fe.naturalHeight):Ke.width!==void 0&&Ke.height!==void 0&&(Lt.width.baseVal.value=Ke.width,Lt.height.baseVal.value=Ke.height),At.width=Lt.width.baseVal.value,At.height=Lt.height.baseVal.value;var tn=Lt.outerHTML,$t=At.getContext("2d");Ke.markersOnly!==!0&&$t.drawImage(Fe,0,0,At.width,At.height);var Ht=window.URL,rn=new Image(At.width,At.height);rn.setAttribute("crossOrigin","anonymous");var vn=new Blob([tn],{type:"image/svg+xml"}),cn=Ht.createObjectURL(vn);rn.onload=function(){$t.drawImage(rn,0,0),Ht.revokeObjectURL(cn);var wn=At.toDataURL(Ke.imageType,Ke.imageQuality);Le(wn)},rn.src=cn})},$e}(),Je=function(){},Xe=function(){function $e(Fe){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+Fe+"_"}return Object.defineProperty($e.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#ffffff",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarColor:"#eeeeee",toolbarHeight:40,toolboxColor:"#eeeeee",toolboxAccentColor:"#3080c3",undoButtonVisible:!0,redoButtonVisible:!1,zoomButtonVisible:!1,zoomOutButtonVisible:!1,clearButtonVisible:!1,resultButtonBlockVisible:!0,logoPosition:"left"}},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),$e.prototype.addClass=function(Fe){return this.styleSheet===void 0&&this.addStyleSheet(),Fe.name=""+this.classNamePrefix+Fe.localName,this.classes.push(Fe),this.styleSheet.sheet.insertRule("."+Fe.name+" {"+Fe.style+"}",this.styleSheet.sheet.cssRules.length),Fe},$e.prototype.addRule=function(Fe){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(Fe),this.styleSheet.sheet.insertRule(Fe.selector+" {"+Fe.style+"}",this.styleSheet.sheet.cssRules.length)},$e.prototype.addStyleSheet=function(){var Fe;this.styleSheet=document.createElement("style"),((Fe=this.styleSheetRoot)!==null&&Fe!==void 0?Fe:document.head).appendChild(this.styleSheet),this.addRule(new vt("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new vt("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new vt("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new st("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new st("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},$e.prototype.removeStyleSheet=function(){var Fe;this.styleSheet&&(((Fe=this.styleSheetRoot)!==null&&Fe!==void 0?Fe:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},$e}(),vt=function($e,Fe){this.selector=$e,this.style=Fe},st=function($e,Fe){this.localName=$e,this.style=Fe},_t=function(){function $e(Fe,Ne,Qe,Ke,Le){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=Fe,this.displayMode=Ne,this.markerItems=Qe,this.uiStyleSettings=Ke,this.styles=Le,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return $e.prototype.show=function(Fe){var Ne=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Fe,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var Qe=document.createElement("div");Qe.className=this.toolbarBlockStyleClass.name,Qe.style.whiteSpace="nowrap",this.uiContainer.appendChild(Qe),this.addActionButton(Qe,'<svg viewBox="0 0 24 24"><path d="M10.07 14.27a.997.997 0 011.33.48l2.3 4.99 1.8-.85-2.31-4.98c-.24-.5-.02-1.1.48-1.33l.28-.08 2.3-.45L8 5.12V15.9l1.82-1.47.25-.16m3.57 7.7a.99.99 0 01-1.33-.47l-2.18-4.74-2.51 2.02c-.17.14-.38.22-.62.22a1 1 0 01-1-1V3a1 1 0 011-1c.24 0 .47.09.64.23l.01-.01 11.49 9.64a1.001 1.001 0 01-.44 1.75l-3.16.62 2.2 4.73c.26.5.02 1.09-.48 1.32l-3.62 1.69z"/></svg>',"select"),this.addActionButton(Qe,'<svg viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 002 2h10a2 2 0 002-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"/></svg>',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(Qe,'<svg viewBox="0 0 24 24"><path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/></svg>',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(Qe,'<svg viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(Qe,'<svg viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 017.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(Qe,'<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(Qe,'<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 009.5 3 6.5 6.5 0 003 9.5 6.5 6.5 0 009.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5m-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7V9z"/></svg>',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(Qe,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(Le){var At=document.createElement("div");At.className=""+Ne.toolbarButtonStyleClass.name,At.setAttribute("data-type-name",Le.typeName),At.innerHTML=Le.icon,At.addEventListener("click",function(){Ne.markerToolbarButtonClicked(At,Le)}),Ne.buttons.push(At),Ne.markerButtons.push(At)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var Ke=document.createElement("div");Ke.className=this.toolbarBlockStyleClass.name,Ke.style.whiteSpace="nowrap",Ke.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(Ke),this.addActionButton(Ke,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(Ke,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},$e.prototype.addButtonClickListener=function(Fe){this.buttonClickListeners.push(Fe)},$e.prototype.removeButtonClickListener=function(Fe){this.buttonClickListeners.indexOf(Fe)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(Fe),1)},$e.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},$e.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var Fe=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var Ne=0;Ne<this.markerButtons.length;Ne++)Ne<Fe||Ne===Fe&&this.markerButtons.length-1===Fe?this.markerButtonBlock.appendChild(this.markerButtons[Ne]):(Ne===Fe&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[Ne]))}},$e.prototype.overflowButtonClicked=function(){this.markerButtonOverflowBlock.style.display!=="none"?(this.markerButtonOverflowBlock.className=this.markerButtonOverflowBlock.className.replace(this.styles.fadeInAnimationClassName,""),this.markerButtonOverflowBlock.style.display="none"):(this.markerButtonOverflowBlock.className+=" "+this.styles.fadeInAnimationClassName,this.markerButtonOverflowBlock.style.top=this.uiContainer.offsetTop+this.overflowButton.offsetHeight+"px",this.markerButtonOverflowBlock.style.right=this.uiContainer.offsetWidth-this.overflowButton.offsetLeft-this.overflowButton.offsetWidth+2*this.uiContainer.offsetLeft+"px",this.markerButtonOverflowBlock.style.display="inline-block")},$e.prototype.resetButtonStyles=function(){var Fe=this;this.buttons.forEach(function(Ne){Ne.className=Ne.className.replace(Fe.uiStyleSettings.toolbarButtonStyleColorsClassName?Fe.uiStyleSettings.toolbarButtonStyleColorsClassName:Fe.toolbarButtonStyleColorsClass.name,"").trim(),Ne.className=Ne.className.replace(Fe.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?Fe.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:Fe.toolbarActiveButtonStyleColorsClass.name,"").trim(),Ne.className+=" "+(Fe.uiStyleSettings.toolbarButtonStyleColorsClassName?Fe.uiStyleSettings.toolbarButtonStyleColorsClassName:Fe.toolbarButtonStyleColorsClass.name)})},$e.prototype.addActionButton=function(Fe,Ne,Qe){var Ke=this,Le=document.createElement("div");switch(Le.className=""+this.toolbarButtonStyleClass.name,Le.innerHTML=Ne,Le.setAttribute("data-action",Qe),Le.addEventListener("click",function(){Ke.actionToolbarButtonClicked(Le,Qe)}),Qe){case"select":Le.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":Le.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":Le.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":Le.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":Le.style.fill=this.uiStyleSettings.closeButtonColor}Fe.appendChild(Le),this.buttons.push(Le)},$e.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new st("toolbar",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: row;
justify-content: space-between;
height: `+this.uiStyleSettings.toolbarHeight+`px;
box-sizing: content-box;
`+(this.displayMode==="inline"?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolbarStyleColorsClass=this.styles.addClass(new st("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new st("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new st("toolbar-overflow-block",`
position: absolute;
top: `+this.uiStyleSettings.toolbarHeight+`px;
max-width: `+2*this.uiStyleSettings.toolbarHeight+`px;
z-index: 10;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new st("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var Fe=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new st("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*Fe)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*Fe)+`px;
padding: `+Fe+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new st("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new st("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new vt("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new vt("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},$e.prototype.markerToolbarButtonClicked=function(Fe,Ne){this.setActiveButton(Fe),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Qe){return Qe("marker",Ne)}),this.markerButtonOverflowBlock.style.display="none"},$e.prototype.actionToolbarButtonClicked=function(Fe,Ne){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Qe){return Qe("action",Ne)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},$e.prototype.setActiveButton=function(Fe){this.resetButtonStyles(),Fe.className=Fe.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),Fe.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},$e.prototype.setActiveMarkerButton=function(Fe){var Ne=this.markerButtons.find(function(Qe){return Qe.getAttribute("data-type-name")===Fe});Ne&&this.setActiveButton(Ne)},$e.prototype.setCurrentMarker=function(Fe){var Ne=this;this.currentMarker=Fe,this.buttons.filter(function(Qe){return/delete|notes/.test(Qe.getAttribute("data-action"))}).forEach(function(Qe){Ne.currentMarker===void 0?(Qe.style.fillOpacity="0.4",Qe.style.pointerEvents="none"):(Qe.style.fillOpacity="1",Qe.style.pointerEvents="all")})},$e}(),Ue=function(){function $e(Fe,Ne,Qe,Ke){this.panels=[],this.panelButtons=[],this.markerjsContainer=Fe,this.displayMode=Ne,this.uiStyleSettings=Qe,this.styles=Ke,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return $e.prototype.addStyles=function(){var Fe;this.toolboxStyleClass=this.styles.addClass(new st("toolbox",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: column;
font-family: sans-serif;
`+(this.displayMode==="popup"?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+`
box-sizing: content-box;
`+(this.displayMode==="popup"?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+`
`+(this.displayMode==="inline"?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolboxStyleColorsClass=this.styles.addClass(new st("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var Ne=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new st("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new st("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new st("toolbox-panel-row",`
display: flex;
`+(this.displayMode==="inline"?"position: absolute;":"")+`
`+(this.displayMode==="inline"?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+`
cursor: default;
height: `+1.5*this.uiStyleSettings.toolbarHeight+`px;
`+(this.displayMode==="inline"?"width: 100%;":"")+`
box-sizing: content-box;
`)),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new st("toolbox-panel-row_colors",`
background-color: `+((Fe=this.uiStyleSettings.toolboxBackgroundColor)!==null&&Fe!==void 0?Fe:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new st("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*Ne)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*Ne)+`px;
padding: `+Ne+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new st("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new st("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new vt("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new vt("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},$e.prototype.show=function(Fe){var Ne;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Fe,this.uiContainer.className=this.toolboxStyleClass.name+" "+((Ne=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&Ne!==void 0?Ne:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},$e.prototype.setPanelButtons=function(Fe){var Ne,Qe,Ke=this;this.panels=Fe,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((Ne=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&Ne!==void 0?Ne:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((Qe=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Qe!==void 0?Qe:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(Le){var At;Le.uiStyleSettings=Ke.uiStyleSettings;var Lt=document.createElement("div");Lt.className=Ke.toolboxButtonStyleClass.name+" "+((At=Ke.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&At!==void 0?At:Ke.toolboxButtonStyleColorsClass.name),Lt.innerHTML=Le.icon,Lt.title=Le.title,Lt.addEventListener("click",function(){Ke.panelButtonClick(Le)}),Ke.panelButtons.push(Lt),Ke.buttonRow.appendChild(Lt)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},$e.prototype.panelButtonClick=function(Fe){var Ne=this,Qe=-1;if(Fe!==this.activePanel){Qe=this.panels.indexOf(Fe),this.panelRow.innerHTML="";var Ke=Fe.getUi();Ke.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(Ke),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=Fe}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){Ne.displayMode==="inline"?Ne.panelRow.style.display="none":Ne.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(Le,At){var Lt,tn;Le.className=Ne.toolboxButtonStyleClass.name+" "+(At===Qe?""+((Lt=Ne.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Lt!==void 0?Lt:Ne.toolboxActiveButtonStyleColorsClass.name):""+((tn=Ne.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&tn!==void 0?tn:Ne.toolboxButtonStyleColorsClass.name))})},$e}(),te=function($e,Fe){this.title=$e,this.icon=Fe},ne=function($e){function Fe(Ne,Qe,Ke,Le){var At=$e.call(this,Ne,Le||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return At.colors=[],At.addTransparent=!1,At.colorBoxes=[],At.colors=Qe,At.currentColor=Ke,At.setCurrentColor=At.setCurrentColor.bind(At),At.getColorBox=At.getColorBox.bind(At),At}return Me(Fe,$e),Fe.prototype.getUi=function(){var Ne=this,Qe=document.createElement("div");return Qe.style.overflow="hidden",Qe.style.whiteSpace="nowrap",this.colors.forEach(function(Ke){var Le=Ne.getColorBox(Ke);Qe.appendChild(Le),Ne.colorBoxes.push(Le)}),Qe},Fe.prototype.getColorBox=function(Ne){var Qe=this,Ke=this.uiStyleSettings.toolbarHeight/4,Le=this.uiStyleSettings.toolbarHeight-Ke,At=document.createElement("div");At.style.display="inline-block",At.style.boxSizing="content-box",At.style.width=Le-2+"px",At.style.height=Le-2+"px",At.style.padding="1px",At.style.marginRight="2px",At.style.marginBottom="2px",At.style.borderWidth="2px",At.style.borderStyle="solid",At.style.borderRadius=(Le+2)/2+"px",At.style.borderColor=Ne===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",At.addEventListener("click",function(){Qe.setCurrentColor(Ne,At)});var Lt=document.createElement("div");return Lt.style.display="inline-block",Lt.style.width=Le-2+"px",Lt.style.height=Le-2+"px",Lt.style.backgroundColor=Ne,Lt.style.borderRadius=Le/2+"px",Ne==="transparent"&&(Lt.style.fill=this.uiStyleSettings.toolboxAccentColor,Lt.innerHTML=`<svg viewBox="0 0 24 24">
<path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />
</svg>`),At.appendChild(Lt),At},Fe.prototype.setCurrentColor=function(Ne,Qe){var Ke=this;this.currentColor=Ne,this.colorBoxes.forEach(function(Le){Le.style.borderColor=Le===Qe?Ke.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(Ne)},Fe}(te),fe=function(){function $e(Fe,Ne,Qe){this._state="new",this._isSelected=!1,this._container=Fe,this._overlayContainer=Ne,this.globalSettings=Qe,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty($e.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),$e.prototype.ownsTarget=function(Fe){return!1},Object.defineProperty($e.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),$e.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},$e.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},$e.prototype.pointerDown=function(Fe,Ne){},$e.prototype.dblClick=function(Fe,Ne){},$e.prototype.manipulate=function(Fe){},$e.prototype.pointerUp=function(Fe){this.stateChanged()},$e.prototype.dispose=function(){},$e.prototype.addMarkerVisualToContainer=function(Fe){this.container.childNodes.length>0?this.container.insertBefore(Fe,this.container.childNodes[0]):this.container.appendChild(Fe)},$e.prototype.getState=function(){return{typeName:$e.typeName,state:this.state,notes:this.notes}},$e.prototype.restoreState=function(Fe){this._state=Fe.state,this.notes=Fe.notes},$e.prototype.scale=function(Fe,Ne){},$e.prototype.colorChanged=function(Fe){this.onColorChanged&&this.onColorChanged(Fe),this.stateChanged()},$e.prototype.fillColorChanged=function(Fe){this.onFillColorChanged&&this.onFillColorChanged(Fe),this.stateChanged()},$e.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var Fe=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),Fe.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(Fe)&&this.onStateChanged(this)}},$e.typeName="MarkerBase",$e}(),se=function(){function $e(){this.findGripByVisual=this.findGripByVisual.bind(this)}return $e.prototype.findGripByVisual=function(Fe){return this.topLeft.ownsTarget(Fe)?this.topLeft:this.topCenter.ownsTarget(Fe)?this.topCenter:this.topRight.ownsTarget(Fe)?this.topRight:this.centerLeft.ownsTarget(Fe)?this.centerLeft:this.centerRight.ownsTarget(Fe)?this.centerRight:this.bottomLeft.ownsTarget(Fe)?this.bottomLeft:this.bottomCenter.ownsTarget(Fe)?this.bottomCenter:this.bottomRight.ownsTarget(Fe)?this.bottomRight:void 0},$e}(),pe=function(){function $e(){this.GRIP_SIZE=10,this.visual=Oe.createGroup(),this.visual.appendChild(Oe.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Oe.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return $e.prototype.ownsTarget=function(Fe){return Fe===this.visual||Fe===this.visual.childNodes[0]||Fe===this.visual.childNodes[1]},$e}(),Se=function(){function $e(){}return $e.toITransformMatrix=function(Fe){return{a:Fe.a,b:Fe.b,c:Fe.c,d:Fe.d,e:Fe.e,f:Fe.f}},$e.toSVGMatrix=function(Fe,Ne){return Fe.a=Ne.a,Fe.b=Ne.b,Fe.c=Ne.c,Fe.d=Ne.d,Fe.e=Ne.e,Fe.f=Ne.f,Fe},$e}(),we=function($e){function Fe(Ne,Qe,Ke){var Le=$e.call(this,Ne,Qe,Ke)||this;return Le.left=0,Le.top=0,Le.width=0,Le.height=0,Le.defaultSize={x:50,y:20},Le.offsetX=0,Le.offsetY=0,Le.rotationAngle=0,Le.CB_DISTANCE=10,Le._suppressMarkerCreateEvent=!1,Le.container.transform.baseVal.appendItem(Oe.createTransform()),Le.setupControlBox(),Le}return Me(Fe,$e),Object.defineProperty(Fe.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(Fe.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(Fe.prototype,"visual",{get:function(){return this._visual},set:function(Ne){this._visual=Ne;var Qe=Oe.createTransform();this._visual.transform.baseVal.appendItem(Qe)},enumerable:!1,configurable:!0}),Fe.prototype.ownsTarget=function(Ne){return!!$e.prototype.ownsTarget.call(this,Ne)||!!(this.controlGrips.findGripByVisual(Ne)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Ne))},Fe.prototype.pointerDown=function(Ne,Qe){$e.prototype.pointerDown.call(this,Ne,Qe),this.state==="new"&&(this.left=Ne.x,this.top=Ne.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var Ke=this.unrotatePoint(Ne);if(this.manipulationStartX=Ke.x,this.manipulationStartY=Ke.y,this.offsetX=Ke.x-this.left,this.offsetY=Ke.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Qe),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Qe)){this.activeGrip=this.rotatorGrip;var Le=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Le.x-this.width/2,this.top=Le.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var At=this.container.transform.baseVal.getItem(0);At.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(At,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},Fe.prototype.pointerUp=function(Ne){var Qe=this.state;$e.prototype.pointerUp.call(this,Ne),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(Ne),this._state="select",Qe==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},Fe.prototype.moveVisual=function(Ne){this.visual.style.transform="translate("+Ne.x+"px, "+Ne.y+"px)"},Fe.prototype.manipulate=function(Ne){var Qe=this.unrotatePoint(Ne);this.state==="creating"?this.resize(Ne):this.state==="move"?(this.left=this.manipulationStartLeft+(Qe.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Qe.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Qe):this.state==="rotate"&&this.rotate(Ne)},Fe.prototype.resize=function(Ne){var Qe=this.manipulationStartLeft,Ke=this.manipulationStartWidth,Le=this.manipulationStartTop,At=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Qe=this.manipulationStartLeft+Ne.x-this.manipulationStartX,Ke=this.manipulationStartWidth+this.manipulationStartLeft-Qe;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:Ke=this.manipulationStartWidth+Ne.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Le=this.manipulationStartTop+Ne.y-this.manipulationStartY,At=this.manipulationStartHeight+this.manipulationStartTop-Le;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:At=this.manipulationStartHeight+Ne.y-this.manipulationStartY}Ke>=0?(this.left=Qe,this.width=Ke):(this.left=Qe+Ke,this.width=-Ke),At>=0?(this.top=Le,this.height=At):(this.top=Le+At,this.height=-At),this.setSize()},Fe.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},Fe.prototype.rotate=function(Ne){if(Math.abs(Ne.x-this.centerX)>.1){var Qe=Math.sign(Ne.x-this.centerX);this.rotationAngle=180*Math.atan((Ne.y-this.centerY)/(Ne.x-this.centerX))/Math.PI+90*Qe,this.applyRotation()}},Fe.prototype.applyRotation=function(){var Ne=this.container.transform.baseVal.getItem(0);Ne.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Ne,0)},Fe.prototype.rotatePoint=function(Ne){if(this.rotationAngle===0)return Ne;var Qe=this.container.getCTM(),Ke=Oe.createPoint(Ne.x,Ne.y);return{x:(Ke=Ke.matrixTransform(Qe)).x,y:Ke.y}},Fe.prototype.unrotatePoint=function(Ne){if(this.rotationAngle===0)return Ne;var Qe=this.container.getCTM();Qe=Qe.inverse();var Ke=Oe.createPoint(Ne.x,Ne.y);return{x:(Ke=Ke.matrixTransform(Qe)).x,y:Ke.y}},Fe.prototype.select=function(){$e.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Fe.prototype.deselect=function(){$e.prototype.deselect.call(this),this.controlBox.style.display="none"},Fe.prototype.setupControlBox=function(){this.controlBox=Oe.createGroup();var Ne=Oe.createTransform();Ne.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(Ne),this.container.appendChild(this.controlBox),this.controlRect=Oe.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=Oe.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new se,this.addControlGrips(),this.controlBox.style.display="none"},Fe.prototype.adjustControlBox=function(){var Ne=this.controlBox.transform.baseVal.getItem(0);Ne.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(Ne,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},Fe.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},Fe.prototype.createGrip=function(){var Ne=new pe;return Ne.visual.transform.baseVal.appendItem(Oe.createTransform()),this.controlBox.appendChild(Ne.visual),Ne},Fe.prototype.positionGrips=function(){var Ne=this.controlGrips.topLeft.GRIP_SIZE,Qe=-Ne/2,Ke=Qe,Le=(this.width+this.CB_DISTANCE)/2-Ne/2,At=(this.height+this.CB_DISTANCE)/2-Ne/2,Lt=this.height+this.CB_DISTANCE-Ne/2,tn=this.width+this.CB_DISTANCE-Ne/2;this.positionGrip(this.controlGrips.topLeft.visual,Qe,Ke),this.positionGrip(this.controlGrips.topCenter.visual,Le,Ke),this.positionGrip(this.controlGrips.topRight.visual,tn,Ke),this.positionGrip(this.controlGrips.centerLeft.visual,Qe,At),this.positionGrip(this.controlGrips.centerRight.visual,tn,At),this.positionGrip(this.controlGrips.bottomLeft.visual,Qe,Lt),this.positionGrip(this.controlGrips.bottomCenter.visual,Le,Lt),this.positionGrip(this.controlGrips.bottomRight.visual,tn,Lt),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Le,Ke-3*this.CB_DISTANCE)},Fe.prototype.positionGrip=function(Ne,Qe,Ke){var Le=Ne.transform.baseVal.getItem(0);Le.setTranslate(Qe,Ke),Ne.transform.baseVal.replaceItem(Le,0)},Fe.prototype.hideControlBox=function(){this.controlBox.style.display="none"},Fe.prototype.showControlBox=function(){this.controlBox.style.display=""},Fe.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:Se.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Se.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},$e.prototype.getState.call(this))},Fe.prototype.restoreState=function(Ne){$e.prototype.restoreState.call(this,Ne);var Qe=Ne;this.left=Qe.left,this.top=Qe.top,this.width=Qe.width,this.height=Qe.height,this.rotationAngle=Qe.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(Se.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Qe.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Se.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Qe.containerTransformMatrix))},Fe.prototype.scale=function(Ne,Qe){$e.prototype.scale.call(this,Ne,Qe);var Ke=this.rotatePoint({x:this.left,y:this.top}),Le=this.unrotatePoint({x:Ke.x*Ne,y:Ke.y*Qe});this.left=Le.x,this.top=Le.y,this.width=this.width*Ne,this.height=this.height*Qe,this.adjustControlBox()},Fe}(fe),De=function($e){function Fe(Ne,Qe,Ke){var Le=$e.call(this,Ne,Qe,Ke)||this;return Le.fillColor="transparent",Le.strokeColor="transparent",Le.strokeWidth=0,Le.strokeDasharray="",Le.opacity=1,Le.setStrokeColor=Le.setStrokeColor.bind(Le),Le.setFillColor=Le.setFillColor.bind(Le),Le.setStrokeWidth=Le.setStrokeWidth.bind(Le),Le.setStrokeDasharray=Le.setStrokeDasharray.bind(Le),Le.createVisual=Le.createVisual.bind(Le),Le}return Me(Fe,$e),Fe.prototype.ownsTarget=function(Ne){return!(!$e.prototype.ownsTarget.call(this,Ne)&&Ne!==this.visual)},Fe.prototype.createVisual=function(){this.visual=Oe.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},Fe.prototype.pointerDown=function(Ne,Qe){$e.prototype.pointerDown.call(this,Ne,Qe),this.state==="new"&&(this.createVisual(),this.moveVisual(Ne),this._state="creating")},Fe.prototype.manipulate=function(Ne){$e.prototype.manipulate.call(this,Ne)},Fe.prototype.resize=function(Ne){$e.prototype.resize.call(this,Ne),this.setSize()},Fe.prototype.setSize=function(){$e.prototype.setSize.call(this),Oe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},Fe.prototype.pointerUp=function(Ne){$e.prototype.pointerUp.call(this,Ne),this.setSize()},Fe.prototype.setStrokeColor=function(Ne){this.strokeColor=Ne,this.visual&&Oe.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Ne),this.stateChanged()},Fe.prototype.setFillColor=function(Ne){this.fillColor=Ne,this.visual&&Oe.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},Fe.prototype.setStrokeWidth=function(Ne){this.strokeWidth=Ne,this.visual&&Oe.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Fe.prototype.setStrokeDasharray=function(Ne){this.strokeDasharray=Ne,this.visual&&Oe.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Fe.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},$e.prototype.getState.call(this))},Fe.prototype.restoreState=function(Ne){var Qe=Ne;this.fillColor=Qe.fillColor,this.strokeColor=Qe.strokeColor,this.strokeWidth=Qe.strokeWidth,this.strokeDasharray=Qe.strokeDasharray,this.opacity=Qe.opacity,this.createVisual(),$e.prototype.restoreState.call(this,Ne),this.setSize()},Fe.prototype.scale=function(Ne,Qe){$e.prototype.scale.call(this,Ne,Qe),this.setSize()},Fe.title="Rectangle marker",Fe}(we),Re=function($e){function Fe(Ne,Qe,Ke,Le){var At=$e.call(this,Ne,Le||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return At.widths=[],At.widthBoxes=[],At.widths=Qe,At.currentWidth=Ke,At.setCurrentWidth=At.setCurrentWidth.bind(At),At}return Me(Fe,$e),Fe.prototype.getUi=function(){var Ne=this,Qe=document.createElement("div");return Qe.style.display="flex",Qe.style.overflow="hidden",Qe.style.flexGrow="2",this.widths.forEach(function(Ke){var Le=document.createElement("div");Le.style.display="flex",Le.style.flexGrow="2",Le.style.alignItems="center",Le.style.justifyContent="space-between",Le.style.padding="5px",Le.style.borderWidth="2px",Le.style.borderStyle="solid",Le.style.borderColor=Ke===Ne.currentWidth?Ne.uiStyleSettings.toolboxAccentColor:"transparent",Le.addEventListener("click",function(){Ne.setCurrentWidth(Ke,Le)}),Qe.appendChild(Le);var At=document.createElement("div");At.innerText=Ke.toString(),At.style.marginRight="5px",Le.appendChild(At);var Lt=document.createElement("div");Lt.style.minHeight="20px",Lt.style.flexGrow="2",Lt.style.display="flex",Lt.style.alignItems="center";var tn=document.createElement("hr");tn.style.minWidth="20px",tn.style.border="0px",tn.style.borderTop=Ke+"px solid "+Ne.uiStyleSettings.toolboxColor,tn.style.flexGrow="2",Lt.appendChild(tn),Le.appendChild(Lt),Ne.widthBoxes.push(Le)}),Qe},Fe.prototype.setCurrentWidth=function(Ne,Qe){var Ke=this;this.currentWidth=Ne,this.widthBoxes.forEach(function(Le){Le.style.borderColor=Le===Qe?Ke.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},Fe}(te),Ze=function($e){function Fe(Ne,Qe,Ke,Le){var At=$e.call(this,Ne,Le||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return At.styles=[],At.styleBoxes=[],At.styles=Qe,At.currentStyle=Ke,At.setCurrentStyle=At.setCurrentStyle.bind(At),At}return Me(Fe,$e),Fe.prototype.getUi=function(){var Ne=this,Qe=document.createElement("div");return Qe.style.display="flex",Qe.style.overflow="hidden",Qe.style.flexGrow="2",this.styles.forEach(function(Ke){var Le=document.createElement("div");Le.style.display="flex",Le.style.alignItems="center",Le.style.justifyContent="space-between",Le.style.padding="5px",Le.style.borderWidth="2px",Le.style.borderStyle="solid",Le.style.overflow="hidden",Le.style.maxWidth=100/Ne.styles.length-5+"%",Le.style.borderColor=Ke===Ne.currentStyle?Ne.uiStyleSettings.toolboxAccentColor:"transparent",Le.addEventListener("click",function(){Ne.setCurrentStyle(Ke,Le)}),Qe.appendChild(Le);var At=document.createElement("div");At.style.minHeight="20px",At.style.flexGrow="2",At.style.overflow="hidden";var Lt=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+Ne.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(Ke!==""?'stroke-dasharray="'+Ke+'"':"")+` />
</svg>`;At.innerHTML=Lt,Le.appendChild(At),Ne.styleBoxes.push(Le)}),Qe},Fe.prototype.setCurrentStyle=function(Ne,Qe){var Ke=this;this.currentStyle=Ne,this.styleBoxes.forEach(function(Le){Le.style.borderColor=Le===Qe?Ke.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},Fe}(te),nt=function($e){function Fe(Ne,Qe,Ke){var Le=$e.call(this,Ne,Qe,Ke)||this;return Le.strokeColor=Ke.defaultColor,Le.strokeWidth=Ke.defaultStrokeWidth,Le.strokeDasharray=Ke.defaultStrokeDasharray,Le.strokePanel=new ne("Line color",Ke.defaultColorSet,Ke.defaultColor),Le.strokePanel.onColorChanged=Le.setStrokeColor,Le.strokeWidthPanel=new Re("Line width",Ke.defaultStrokeWidths,Ke.defaultStrokeWidth),Le.strokeWidthPanel.onWidthChanged=Le.setStrokeWidth,Le.strokeStylePanel=new Ze("Line style",Ke.defaultStrokeDasharrays,Ke.defaultStrokeDasharray),Le.strokeStylePanel.onStyleChanged=Le.setStrokeDasharray,Le}return Me(Fe,$e),Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var Ne=$e.prototype.getState.call(this);return Ne.typeName=Fe.typeName,Ne},Fe.typeName="FrameMarker",Fe.title="Frame marker",Fe.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',Fe}(De),rt=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1,this.defaultCaptionFontSize="1rem",this.defaultCaptionText="Text"},ft=function($e){function Fe(Ne,Qe,Ke){var Le=$e.call(this,Ne,Qe,Ke)||this;return Le.x1=0,Le.y1=0,Le.x2=0,Le.y2=0,Le.defaultLength=50,Le.manipulationStartX=0,Le.manipulationStartY=0,Le.manipulationStartX1=0,Le.manipulationStartY1=0,Le.manipulationStartX2=0,Le.manipulationStartY2=0,Le.setupControlBox(),Le}return Me(Fe,$e),Fe.prototype.ownsTarget=function(Ne){return!!$e.prototype.ownsTarget.call(this,Ne)||!(!this.grip1.ownsTarget(Ne)&&!this.grip2.ownsTarget(Ne))},Fe.prototype.pointerDown=function(Ne,Qe){$e.prototype.pointerDown.call(this,Ne,Qe),this.manipulationStartX=Ne.x,this.manipulationStartY=Ne.y,this.state==="new"&&(this.x1=Ne.x,this.y1=Ne.y,this.x2=Ne.x,this.y2=Ne.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(Qe)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Qe)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},Fe.prototype.pointerUp=function(Ne){var Qe=this.state;$e.prototype.pointerUp.call(this,Ne),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(Ne),this._state="select",Qe==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},Fe.prototype.adjustVisual=function(){},Fe.prototype.manipulate=function(Ne){this.state==="creating"?this.resize(Ne):this.state==="move"?(this.x1=this.manipulationStartX1+Ne.x-this.manipulationStartX,this.y1=this.manipulationStartY1+Ne.y-this.manipulationStartY,this.x2=this.manipulationStartX2+Ne.x-this.manipulationStartX,this.y2=this.manipulationStartY2+Ne.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(Ne)},Fe.prototype.resize=function(Ne){switch(this.activeGrip){case this.grip1:this.x1=Ne.x,this.y1=Ne.y;break;case this.grip2:case void 0:this.x2=Ne.x,this.y2=Ne.y}this.adjustVisual(),this.adjustControlBox()},Fe.prototype.select=function(){$e.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Fe.prototype.deselect=function(){$e.prototype.deselect.call(this),this.controlBox.style.display="none"},Fe.prototype.setupControlBox=function(){this.controlBox=Oe.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},Fe.prototype.adjustControlBox=function(){this.positionGrips()},Fe.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},Fe.prototype.createGrip=function(){var Ne=new pe;return Ne.visual.transform.baseVal.appendItem(Oe.createTransform()),this.controlBox.appendChild(Ne.visual),Ne},Fe.prototype.positionGrips=function(){var Ne=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-Ne/2,this.y1-Ne/2),this.positionGrip(this.grip2.visual,this.x2-Ne/2,this.y2-Ne/2)},Fe.prototype.positionGrip=function(Ne,Qe,Ke){var Le=Ne.transform.baseVal.getItem(0);Le.setTranslate(Qe,Ke),Ne.transform.baseVal.replaceItem(Le,0)},Fe.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},$e.prototype.getState.call(this))},Fe.prototype.restoreState=function(Ne){$e.prototype.restoreState.call(this,Ne);var Qe=Ne;this.x1=Qe.x1,this.y1=Qe.y1,this.x2=Qe.x2,this.y2=Qe.y2},Fe.prototype.scale=function(Ne,Qe){$e.prototype.scale.call(this,Ne,Qe),this.x1=this.x1*Ne,this.y1=this.y1*Qe,this.x2=this.x2*Ne,this.y2=this.y2*Qe,this.adjustVisual(),this.adjustControlBox()},Fe}(fe),xt=function($e){function Fe(Ne,Qe,Ke){var Le=$e.call(this,Ne,Qe,Ke)||this;return Le.strokeColor="transparent",Le.strokeWidth=0,Le.strokeDasharray="",Le.setStrokeColor=Le.setStrokeColor.bind(Le),Le.setStrokeWidth=Le.setStrokeWidth.bind(Le),Le.setStrokeDasharray=Le.setStrokeDasharray.bind(Le),Le.strokeColor=Ke.defaultColor,Le.strokeWidth=Ke.defaultStrokeWidth,Le.strokeDasharray=Ke.defaultStrokeDasharray,Le.strokePanel=new ne("Line color",Ke.defaultColorSet,Ke.defaultColor),Le.strokePanel.onColorChanged=Le.setStrokeColor,Le.strokeWidthPanel=new Re("Line width",Ke.defaultStrokeWidths,Ke.defaultStrokeWidth),Le.strokeWidthPanel.onWidthChanged=Le.setStrokeWidth,Le.strokeStylePanel=new Ze("Line style",Ke.defaultStrokeDasharrays,Ke.defaultStrokeDasharray),Le.strokeStylePanel.onStyleChanged=Le.setStrokeDasharray,Le}return Me(Fe,$e),Fe.prototype.ownsTarget=function(Ne){return!(!$e.prototype.ownsTarget.call(this,Ne)&&Ne!==this.visual&&Ne!==this.selectorLine&&Ne!==this.visibleLine)},Fe.prototype.createVisual=function(){this.visual=Oe.createGroup(),this.selectorLine=Oe.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Oe.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},Fe.prototype.pointerDown=function(Ne,Qe){$e.prototype.pointerDown.call(this,Ne,Qe),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},Fe.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),Oe.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Oe.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Oe.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Fe.prototype.setStrokeColor=function(Ne){this.strokeColor=Ne,this.adjustVisual(),this.colorChanged(Ne)},Fe.prototype.setStrokeWidth=function(Ne){this.strokeWidth=Ne,this.adjustVisual()},Fe.prototype.setStrokeDasharray=function(Ne){this.strokeDasharray=Ne,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var Ne=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},$e.prototype.getState.call(this));return Ne.typeName=Fe.typeName,Ne},Fe.prototype.restoreState=function(Ne){$e.prototype.restoreState.call(this,Ne);var Qe=Ne;this.strokeColor=Qe.strokeColor,this.strokeWidth=Qe.strokeWidth,this.strokeDasharray=Qe.strokeDasharray,this.createVisual(),this.adjustVisual()},Fe.typeName="LineMarker",Fe.title="Line marker",Fe.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',Fe}(ft),at=function($e){function Fe(Ne,Qe,Ke,Le){var At=$e.call(this,Ne,Le||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return At.fonts=[],At.fontBoxes=[],At.fonts=Qe,At.currentFont=Ke,At.setCurrentFont=At.setCurrentFont.bind(At),At}return Me(Fe,$e),Fe.prototype.getUi=function(){var Ne=this,Qe=document.createElement("div");return Qe.style.overflow="hidden",Qe.style.flexGrow="2",this.fonts.forEach(function(Ke){var Le=document.createElement("div");Le.style.display="inline-block",Le.style.alignItems="center",Le.style.justifyContent="space-between",Le.style.padding="5px",Le.style.borderWidth="2px",Le.style.borderStyle="solid",Le.style.overflow="hidden",Le.style.maxWidth=100/Ne.fonts.length-5+"%",Le.style.borderColor=Ke===Ne.currentFont?Ne.uiStyleSettings.toolboxAccentColor:"transparent",Le.addEventListener("click",function(){Ne.setCurrentFont(Ke,Le)}),Qe.appendChild(Le);var At=document.createElement("div");At.style.display="flex",At.style.minHeight="20px",At.style.flexGrow="2",At.style.fontFamily=Ke,At.style.overflow="hidden";var Lt=document.createElement("div");Lt.style.whiteSpace="nowrap",Lt.style.overflow="hidden",Lt.style.textOverflow="ellipsis",Lt.innerHTML="The quick brown fox jumps over the lazy dog",At.appendChild(Lt),Le.appendChild(At),Ne.fontBoxes.push(Le)}),Qe},Fe.prototype.setCurrentFont=function(Ne,Qe){var Ke=this;this.currentFont=Ne,this.fontBoxes.forEach(function(Le){Le.style.borderColor=Le===Qe?Ke.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},Fe}(te),wt=function($e){function Fe(Ne,Qe,Ke){var Le=$e.call(this,Ne,Qe,Ke)||this;return Le.color="transparent",Le.padding=5,Le.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",Le.text=Le.DEFAULT_TEXT,Le.isMoved=!1,Le.color=Ke.defaultColor,Le.fontFamily=Ke.defaultFontFamily,Le.defaultSize={x:100,y:30},Le.setColor=Le.setColor.bind(Le),Le.setFont=Le.setFont.bind(Le),Le.renderText=Le.renderText.bind(Le),Le.sizeText=Le.sizeText.bind(Le),Le.textEditDivClicked=Le.textEditDivClicked.bind(Le),Le.showTextEditor=Le.showTextEditor.bind(Le),Le.setSize=Le.setSize.bind(Le),Le.positionTextEditor=Le.positionTextEditor.bind(Le),Le.colorPanel=new ne("Color",Ke.defaultColorSet,Ke.defaultColor),Le.colorPanel.onColorChanged=Le.setColor,Le.fontFamilyPanel=new at("Font",Ke.defaultFontFamilies,Ke.defaultFontFamily),Le.fontFamilyPanel.onFontChanged=Le.setFont,Le}return Me(Fe,$e),Fe.prototype.ownsTarget=function(Ne){if($e.prototype.ownsTarget.call(this,Ne)||Ne===this.visual||Ne===this.textElement||Ne===this.bgRectangle)return!0;var Qe=!1;return this.textElement.childNodes.forEach(function(Ke){Ke===Ne&&(Qe=!0)}),Qe},Fe.prototype.createVisual=function(){this.visual=Oe.createGroup(),this.bgRectangle=Oe.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Oe.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Oe.createTransform()),this.textElement.transform.baseVal.appendItem(Oe.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},Fe.prototype.pointerDown=function(Ne,Qe){$e.prototype.pointerDown.call(this,Ne,Qe),this.isMoved=!1,this.pointerDownPoint=Ne,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Ne),this._state="creating")},Fe.prototype.renderText=function(){var Ne=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(Qe){Ne.textElement.appendChild(Oe.createTSpan(Qe.trim()===""?" ":Qe.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},Fe.prototype.getTextScale=function(){var Ne=this.textElement.getBBox(),Qe=1;if(Ne.width>0&&Ne.height>0){var Ke=(1*this.width-this.width*this.padding*2/100)/Ne.width,Le=(1*this.height-this.height*this.padding*2/100)/Ne.height;Qe=Math.min(Ke,Le)}return Qe},Fe.prototype.getTextPosition=function(Ne){var Qe=this.textElement.getBBox(),Ke=0,Le=0;return Qe.width>0&&Qe.height>0&&(Ke=(this.width-Qe.width*Ne)/2,Le=this.height/2-Qe.height*Ne/2),{x:Ke,y:Le}},Fe.prototype.sizeText=function(){var Ne=this.textElement.getBBox(),Qe=this.getTextScale(),Ke=this.getTextPosition(Qe);Ke.y-=Ne.y*Qe,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+Ke.x+"px, "+Ke.y+"px) scale("+Qe+", "+Qe+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(Ke.x,Ke.y),this.textElement.transform.baseVal.getItem(1).setScale(Qe,Qe))},Fe.prototype.manipulate=function(Ne){$e.prototype.manipulate.call(this,Ne),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(Ne.x-this.pointerDownPoint.x)>5||Math.abs(Ne.y-this.pointerDownPoint.y)>5)},Fe.prototype.resize=function(Ne){$e.prototype.resize.call(this,Ne),this.isMoved=!0,this.setSize(),this.sizeText()},Fe.prototype.setSize=function(){$e.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Oe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Oe.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},Fe.prototype.pointerUp=function(Ne){var Qe=this.state;Qe==="creating"&&(this._suppressMarkerCreateEvent=!0),$e.prototype.pointerUp.call(this,Ne),this.setSize(),(Qe==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},Fe.prototype.showTextEditor=function(){var Ne=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(Qe){Qe.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Qe=Number.parseFloat(Ne.textEditor.style.fontSize);Ne.textEditor.clientWidth>=Number.parseInt(Ne.textEditor.style.maxWidth)&&Qe>.9;)Qe-=.1,Ne.textEditor.style.fontSize=Math.max(Qe,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Qe){Qe.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Qe){if(Qe.clipboardData){var Ke=Qe.clipboardData.getData("text"),Le=window.getSelection();if(!Le.rangeCount)return!1;Le.deleteFromDocument(),Le.getRangeAt(0).insertNode(document.createTextNode(Ke)),Qe.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){Ne.textEditDivClicked(Ne.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},Fe.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var Ne=this.getTextScale(),Qe=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),Ke=this.textElement.getBBox(),Le={x:Ke.width*Ne,y:Ke.height*Ne};Qe.x-=Le.x/2,Qe.y-=Le.y/2,this.textEditor.style.top=Qe.y+"px",this.textEditor.style.left=Qe.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Qe.x+"px",this.textEditor.style.fontSize=Math.max(16*Ne,12)+"px",this.textElement.style.display="none"}},Fe.prototype.textEditDivClicked=function(Ne){this.text=Ne.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},Fe.prototype.select=function(){$e.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},Fe.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),$e.prototype.deselect.call(this)},Fe.prototype.dblClick=function(Ne,Qe){$e.prototype.dblClick.call(this,Ne,Qe),this.showTextEditor()},Fe.prototype.setColor=function(Ne){this.textElement&&Oe.setAttributes(this.textElement,[["fill",Ne]]),this.color=Ne,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(Ne)},Fe.prototype.setFont=function(Ne){this.textElement&&Oe.setAttributes(this.textElement,[["font-family",Ne]]),this.fontFamily=Ne,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},Fe.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},Fe.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var Ne=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},$e.prototype.getState.call(this));return Ne.typeName=Fe.typeName,Ne},Fe.prototype.restoreState=function(Ne){var Qe=Ne;this.color=Qe.color,this.fontFamily=Qe.fontFamily,this.padding=Qe.padding,this.text=Qe.text,this.createVisual(),$e.prototype.restoreState.call(this,Ne),this.setSize()},Fe.prototype.scale=function(Ne,Qe){$e.prototype.scale.call(this,Ne,Qe),this.setSize(),this.sizeText(),this.positionTextEditor()},Fe.typeName="TextMarker",Fe.title="Text marker",Fe.icon='<svg viewBox="0 0 24 24"><path d="M9.6 14L12 7.7l2.4 6.3M11 5L5.5 19h2.2l1.1-3H15l1.1 3h2.2L13 5h-2z"/></svg>',Fe}(we),Mt=function($e){function Fe(Ne,Qe,Ke){var Le=$e.call(this,Ne,Qe,Ke)||this;return Le.color="transparent",Le.lineWidth=3,Le.drawing=!1,Le.pixelRatio=1,Le.color=Ke.defaultColor,Le.lineWidth=Ke.defaultStrokeWidth,Le.pixelRatio=Ke.freehandPixelRatio,Le.setColor=Le.setColor.bind(Le),Le.addCanvas=Le.addCanvas.bind(Le),Le.finishCreation=Le.finishCreation.bind(Le),Le.setLineWidth=Le.setLineWidth.bind(Le),Le.colorPanel=new ne("Color",Ke.defaultColorSet,Ke.defaultColor),Le.colorPanel.onColorChanged=Le.setColor,Le.lineWidthPanel=new Re("Line width",Ke.defaultStrokeWidths,Ke.defaultStrokeWidth),Le.lineWidthPanel.onWidthChanged=Le.setLineWidth,Le}return Me(Fe,$e),Fe.prototype.ownsTarget=function(Ne){return!(!$e.prototype.ownsTarget.call(this,Ne)&&Ne!==this.visual&&Ne!==this.drawingImage)},Fe.prototype.createVisual=function(){this.visual=Oe.createGroup(),this.drawingImage=Oe.createImage(),this.visual.appendChild(this.drawingImage);var Ne=Oe.createTransform();this.visual.transform.baseVal.appendItem(Ne),this.addMarkerVisualToContainer(this.visual)},Fe.prototype.pointerDown=function(Ne,Qe){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(Ne.x,Ne.y),this.drawing=!0):$e.prototype.pointerDown.call(this,Ne,Qe)},Fe.prototype.manipulate=function(Ne){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(Ne.x,Ne.y),this.canvasContext.stroke()):$e.prototype.manipulate.call(this,Ne)},Fe.prototype.resize=function(Ne){$e.prototype.resize.call(this,Ne),Oe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Oe.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},Fe.prototype.pointerUp=function(Ne){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):$e.prototype.pointerUp.call(this,Ne)},Fe.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},Fe.prototype.select=function(){this.state==="creating"&&this.finishCreation(),$e.prototype.select.call(this)},Fe.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),$e.prototype.deselect.call(this)},Fe.prototype.finishCreation=function(){for(var Ne=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Qe=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],Ke=Qe[0],Le=Qe[1],At=Qe[2],Lt=Qe[3],tn=!1,$t=0;$t<this.canvasElement.height;$t++)for(var Ht=0;Ht<this.canvasElement.width;Ht++)Ne.data[$t*this.canvasElement.width*4+4*Ht+3]>0&&(tn=!0,$t<Le&&(Le=$t),Ht<Ke&&(Ke=Ht),$t>Lt&&(Lt=$t),Ht>At&&(At=Ht));if(tn){this.left=Ke/this.pixelRatio,this.top=Le/this.pixelRatio,this.width=(At-Ke)/this.pixelRatio,this.height=(Lt-Le)/this.pixelRatio;var rn=document.createElement("canvas");rn.width=At-Ke,rn.height=Lt-Le,rn.getContext("2d").putImageData(this.canvasContext.getImageData(Ke,Le,At-Ke,Lt-Le),0,0),this.drawingImgUrl=rn.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},Fe.prototype.setDrawingImage=function(){Oe.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Oe.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},Fe.prototype.setColor=function(Ne){this.color=Ne,this.colorChanged(Ne)},Fe.prototype.setLineWidth=function(Ne){this.lineWidth=Ne},Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var Ne=Object.assign({drawingImgUrl:this.drawingImgUrl},$e.prototype.getState.call(this));return Ne.typeName=Fe.typeName,Ne},Fe.prototype.restoreState=function(Ne){this.createVisual(),$e.prototype.restoreState.call(this,Ne),this.drawingImgUrl=Ne.drawingImgUrl,this.setDrawingImage()},Fe.prototype.scale=function(Ne,Qe){$e.prototype.scale.call(this,Ne,Qe),this.setDrawingImage()},Fe.typeName="FreehandMarker",Fe.title="Freehand marker",Fe.icon='<svg viewBox="0 0 24 24"><path d="M9.75 20.85c1.78-.7 1.39-2.63.49-3.85-.89-1.25-2.12-2.11-3.36-2.94A9.817 9.817 0 014.54 12c-.28-.33-.85-.94-.27-1.06.59-.12 1.61.46 2.13.68.91.38 1.81.82 2.65 1.34l1.01-1.7C8.5 10.23 6.5 9.32 4.64 9.05c-1.06-.16-2.18.06-2.54 1.21-.32.99.19 1.99.77 2.77 1.37 1.83 3.5 2.71 5.09 4.29.34.33.75.72.95 1.18.21.44.16.47-.31.47-1.24 0-2.79-.97-3.8-1.61l-1.01 1.7c1.53.94 4.09 2.41 5.96 1.79m11.09-15.6c.22-.22.22-.58 0-.79l-1.3-1.3a.562.562 0 00-.78 0l-1.02 1.02 2.08 2.08M11 10.92V13h2.08l6.15-6.15-2.08-2.08L11 10.92z"/></svg>',Fe}(we),Xt=function($e){function Fe(Ne,Qe,Ke){var Le=$e.call(this,Ne,Ke||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return Le.typeBoxes=[],Le.currentType=Qe,Le.setCurrentType=Le.setCurrentType.bind(Le),Le}return Me(Fe,$e),Fe.prototype.getUi=function(){var Ne=this,Qe=document.createElement("div");Qe.style.display="flex",Qe.style.overflow="hidden",Qe.style.flexGrow="2";for(var Ke=function(Lt){var tn="both";switch(Lt){case 0:tn="both";break;case 1:tn="start";break;case 2:tn="end";break;case 3:tn="none"}var $t=document.createElement("div");if($t.style.display="flex",$t.style.flexGrow="2",$t.style.alignItems="center",$t.style.justifyContent="space-between",$t.style.padding="5px",$t.style.borderWidth="2px",$t.style.borderStyle="solid",$t.style.borderColor=tn===Le.currentType?Le.uiStyleSettings.toolboxAccentColor:"transparent",$t.addEventListener("click",function(){Ne.setCurrentType(tn,$t)}),Qe.appendChild($t),tn==="both"||tn==="start"){var Ht=document.createElement("div");Ht.style.display="flex",Ht.style.alignItems="center",Ht.style.minHeight="20px",Ht.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,5 10,0 10,10" fill="`+(Le.uiStyleSettings!==void 0?Le.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,Ht.style.marginLeft="5px",$t.appendChild(Ht)}var rn=document.createElement("div");rn.style.display="flex",rn.style.alignItems="center",rn.style.minHeight="20px",rn.style.flexGrow="2";var vn=document.createElement("hr");if(vn.style.minWidth="20px",vn.style.border="0px",vn.style.borderTop="3px solid "+(Le.uiStyleSettings!==void 0?Le.uiStyleSettings.toolboxColor:"#eeeeee"),vn.style.flexGrow="2",rn.appendChild(vn),$t.appendChild(rn),tn==="both"||tn==="end"){var cn=document.createElement("div");cn.style.display="flex",cn.style.alignItems="center",cn.style.minHeight="20px",cn.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,0 10,5 0,10" fill="`+(Le.uiStyleSettings!==void 0?Le.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,cn.style.marginRight="5px",$t.appendChild(cn)}Le.typeBoxes.push($t)},Le=this,At=0;At<4;At++)Ke(At);return Qe},Fe.prototype.setCurrentType=function(Ne,Qe){var Ke=this;this.currentType=Ne,this.typeBoxes.forEach(function(Le){Le.style.borderColor=Le===Qe?Ke.uiStyleSettings!==void 0?Ke.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},Fe}(te),bn=function($e){function Fe(Ne,Qe,Ke){var Le=$e.call(this,Ne,Qe,Ke)||this;return Le.arrowType="end",Le.arrowBaseHeight=10,Le.arrowBaseWidth=10,Le.getArrowPoints=Le.getArrowPoints.bind(Le),Le.setArrowType=Le.setArrowType.bind(Le),Le.arrowTypePanel=new Xt("Arrow type","end"),Le.arrowTypePanel.onArrowTypeChanged=Le.setArrowType,Le}return Me(Fe,$e),Fe.prototype.ownsTarget=function(Ne){return!(!$e.prototype.ownsTarget.call(this,Ne)&&Ne!==this.arrow1&&Ne!==this.arrow2)},Fe.prototype.getArrowPoints=function(Ne,Qe){var Ke=this.arrowBaseWidth+2*this.strokeWidth,Le=this.arrowBaseHeight+2*this.strokeWidth;return Ne-Ke/2+","+(Qe+Le/2)+" "+Ne+","+(Qe-Le/2)+" "+(Ne+Ke/2)+","+(Qe+Le/2)},Fe.prototype.createTips=function(){this.arrow1=Oe.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Oe.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Oe.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Oe.createTransform()),this.visual.appendChild(this.arrow2)},Fe.prototype.pointerDown=function(Ne,Qe){$e.prototype.pointerDown.call(this,Ne,Qe),this.state==="creating"&&this.createTips()},Fe.prototype.adjustVisual=function(){if($e.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",Oe.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Oe.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var Ne=0;Math.abs(this.x1-this.x2)>.1&&(Ne=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var Qe=this.arrow1.transform.baseVal.getItem(0);Qe.setRotate(Ne,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Qe,0);var Ke=this.arrow2.transform.baseVal.getItem(0);Ke.setRotate(Ne+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(Ke,0)}},Fe.prototype.setArrowType=function(Ne){this.arrowType=Ne,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var Ne=Object.assign({arrowType:this.arrowType},$e.prototype.getState.call(this));return Ne.typeName=Fe.typeName,Ne},Fe.prototype.restoreState=function(Ne){$e.prototype.restoreState.call(this,Ne);var Qe=Ne;this.arrowType=Qe.arrowType,this.createTips(),this.adjustVisual()},Fe.typeName="ArrowMarker",Fe.title="Arrow marker",Fe.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',Fe}(xt),pn=function($e){function Fe(Ne,Qe,Ke){var Le=$e.call(this,Ne,Qe,Ke)||this;return Le.fillColor=Ke.defaultFillColor,Le.strokeWidth=0,Le.fillPanel=new ne("Color",Ke.defaultColorSet,Ke.defaultFillColor),Le.fillPanel.onColorChanged=Le.setFillColor,Le}return Me(Fe,$e),Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var Ne=$e.prototype.getState.call(this);return Ne.typeName=Fe.typeName,Ne},Fe.typeName="CoverMarker",Fe.title="Cover marker",Fe.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',Fe}(De),fn=function($e){function Fe(Ne,Qe,Ke,Le){var At=$e.call(this,Ne,Le||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return At.opacities=[],At.opacityBoxes=[],At.opacities=Qe,At.currentOpacity=Ke,At.setCurrentOpacity=At.setCurrentOpacity.bind(At),At}return Me(Fe,$e),Fe.prototype.getUi=function(){var Ne=this,Qe=document.createElement("div");return Qe.style.display="flex",Qe.style.overflow="hidden",Qe.style.flexGrow="2",Qe.style.justifyContent="space-between",this.opacities.forEach(function(Ke){var Le=document.createElement("div");Le.style.display="flex",Le.style.alignItems="center",Le.style.justifyContent="center",Le.style.padding="5px",Le.style.borderWidth="2px",Le.style.borderStyle="solid",Le.style.borderColor=Ke===Ne.currentOpacity?Ne.uiStyleSettings.toolboxAccentColor:"transparent",Le.addEventListener("click",function(){Ne.setCurrentOpacity(Ke,Le)}),Qe.appendChild(Le);var At=document.createElement("div");At.innerText=100*Ke+"%",Le.appendChild(At),Ne.opacityBoxes.push(Le)}),Qe},Fe.prototype.setCurrentOpacity=function(Ne,Qe){var Ke=this;this.currentOpacity=Ne,this.opacityBoxes.forEach(function(Le){Le.style.borderColor=Le===Qe?Ke.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},Fe}(te),gn=function($e){function Fe(Ne,Qe,Ke){var Le=$e.call(this,Ne,Qe,Ke)||this;return Le.setOpacity=Le.setOpacity.bind(Le),Le.fillColor=Ke.defaultHighlightColor,Le.strokeWidth=0,Le.opacity=Ke.defaultHighlightOpacity,Le.fillPanel=new ne("Color",Ke.defaultColorSet,Le.fillColor),Le.fillPanel.onColorChanged=Le.setFillColor,Le.opacityPanel=new fn("Opacity",Ke.defaultOpacitySteps,Le.opacity),Le.opacityPanel.onOpacityChanged=Le.setOpacity,Le}return Me(Fe,$e),Fe.prototype.setOpacity=function(Ne){this.opacity=Ne,this.visual&&Oe.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var Ne=$e.prototype.getState.call(this);return Ne.typeName=Fe.typeName,Ne},Fe.typeName="HighlightMarker",Fe.title="Highlight marker",Fe.icon='<svg viewBox="0 0 24 24"><path d="M18.5 1.15c-.53 0-1.04.19-1.43.58l-5.81 5.82 5.65 5.65 5.82-5.81c.77-.78.77-2.04 0-2.83l-2.84-2.83c-.39-.39-.89-.58-1.39-.58M10.3 8.5l-5.96 5.96c-.78.78-.78 2.04.02 2.85C3.14 18.54 1.9 19.77.67 21h5.66l.86-.86c.78.76 2.03.75 2.81-.02l5.95-5.96"/></svg>',Fe}(pn),Nt='<svg viewBox="0 0 24 24"><path d="M9.62 12L12 5.67 14.37 12M11 3L5.5 17h2.25l1.12-3h6.25l1.13 3h2.25L13 3h-2z"/></svg>',ut='<svg viewBox="0 0 24 24"><path d="M19 11.5s-2 2.17-2 3.5a2 2 0 002 2 2 2 0 002-2c0-1.33-2-3.5-2-3.5M5.21 10L10 5.21 14.79 10m1.77-1.06L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.56-.59 1.53 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.59.59-1.56 0-2.12z"/></svg>',it=function($e){function Fe(Ne,Qe,Ke){var Le=$e.call(this,Ne,Qe,Ke)||this;return Le.bgColor="transparent",Le.tipPosition={x:0,y:0},Le.tipBase1Position={x:0,y:0},Le.tipBase2Position={x:0,y:0},Le.tipMoving=!1,Le.color=Ke.defaultStrokeColor,Le.bgColor=Ke.defaultFillColor,Le.fontFamily=Ke.defaultFontFamily,Le.defaultSize={x:100,y:30},Le.setBgColor=Le.setBgColor.bind(Le),Le.getTipPoints=Le.getTipPoints.bind(Le),Le.positionTip=Le.positionTip.bind(Le),Le.setTipPoints=Le.setTipPoints.bind(Le),Le.colorPanel=new ne("Text color",Ke.defaultColorSet,Le.color,Nt),Le.colorPanel.onColorChanged=Le.setColor,Le.bgColorPanel=new ne("Fill color",Ke.defaultColorSet,Le.bgColor,ut),Le.bgColorPanel.onColorChanged=Le.setBgColor,Le.fontFamilyPanel=new at("Font",Ke.defaultFontFamilies,Ke.defaultFontFamily),Le.fontFamilyPanel.onFontChanged=Le.setFont,Le.tipGrip=new pe,Le.tipGrip.visual.transform.baseVal.appendItem(Oe.createTransform()),Le.controlBox.appendChild(Le.tipGrip.visual),Le}return Me(Fe,$e),Fe.prototype.ownsTarget=function(Ne){return $e.prototype.ownsTarget.call(this,Ne)||this.tipGrip.ownsTarget(Ne)||this.tip===Ne},Fe.prototype.createTip=function(){Oe.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Oe.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},Fe.prototype.pointerDown=function(Ne,Qe){this.state==="new"&&$e.prototype.pointerDown.call(this,Ne,Qe),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Qe)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):$e.prototype.pointerDown.call(this,Ne,Qe)},Fe.prototype.pointerUp=function(Ne){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,$e.prototype.pointerUp.call(this,Ne);else{var Qe=this.state==="creating";$e.prototype.pointerUp.call(this,Ne),this.setTipPoints(Qe),this.positionTip()}},Fe.prototype.manipulate=function(Ne){if(this.tipMoving){var Qe=this.unrotatePoint(Ne);this.tipPosition={x:Qe.x-this.manipulationStartLeft,y:Qe.y-this.manipulationStartTop},this.positionTip()}else $e.prototype.manipulate.call(this,Ne)},Fe.prototype.setBgColor=function(Ne){this.bgRectangle&&this.tip&&(Oe.setAttributes(this.bgRectangle,[["fill",Ne]]),Oe.setAttributes(this.tip,[["fill",Ne]])),this.bgColor=Ne,this.fillColorChanged(Ne)},Fe.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},Fe.prototype.setTipPoints=function(Ne){Ne===void 0&&(Ne=!1);var Qe=Math.min(this.height/2,15),Ke=this.height/5;Ne&&(this.tipPosition={x:Qe+Ke/2,y:this.height+20});var Le=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?Le<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(Ke=this.width/5,Qe=Math.min(this.width/2,15),this.tipBase1Position={x:Qe,y:0},this.tipBase2Position={x:Qe+Ke,y:0}):(this.tipBase1Position={x:0,y:Qe},this.tipBase2Position={x:0,y:Qe+Ke}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?Le<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(Ke=this.width/5,Qe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Qe-Ke,y:0},this.tipBase2Position={x:this.width-Qe,y:0}):(this.tipBase1Position={x:this.width,y:Qe},this.tipBase2Position={x:this.width,y:Qe+Ke}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?Le<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(Ke=this.width/5,Qe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Qe-Ke,y:this.height},this.tipBase2Position={x:this.width-Qe,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-Qe-Ke},this.tipBase2Position={x:this.width,y:this.height-Qe}):Le<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(Ke=this.width/5,Qe=Math.min(this.width/2,15),this.tipBase1Position={x:Qe,y:this.height},this.tipBase2Position={x:Qe+Ke,y:this.height}):(this.tipBase1Position={x:0,y:this.height-Qe},this.tipBase2Position={x:0,y:this.height-Qe-Ke})},Fe.prototype.resize=function(Ne){$e.prototype.resize.call(this,Ne),this.positionTip()},Fe.prototype.positionTip=function(){Oe.setAttributes(this.tip,[["points",this.getTipPoints()]]);var Ne=this.tipGrip.visual.transform.baseVal.getItem(0);Ne.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(Ne,0)},Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Fe.prototype.select=function(){this.positionTip(),$e.prototype.select.call(this)},Fe.prototype.getState=function(){var Ne=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},$e.prototype.getState.call(this));return Ne.typeName=Fe.typeName,Ne},Fe.prototype.restoreState=function(Ne){var Qe=Ne;this.bgColor=Qe.bgColor,this.tipPosition=Qe.tipPosition,$e.prototype.restoreState.call(this,Ne),this.createTip(),this.setTipPoints()},Fe.prototype.scale=function(Ne,Qe){$e.prototype.scale.call(this,Ne,Qe),this.tipPosition={x:this.tipPosition.x*Ne,y:this.tipPosition.y*Qe},this.positionTip()},Fe.typeName="CalloutMarker",Fe.title="Callout marker",Fe.icon='<svg viewBox="0 0 24 24"><path d="M4 2h16a2 2 0 012 2v12a2 2 0 01-2 2h-4l-4 4-4-4H4a2 2 0 01-2-2V4a2 2 0 012-2m0 2v12h4.83L12 19.17 15.17 16H20V4H4m2 3h12v2H6V7m0 4h10v2H6v-2z"/></svg>',Fe}(wt),an=function($e){function Fe(Ne,Qe,Ke){var Le=$e.call(this,Ne,Qe,Ke)||this;return Le.fillColor="transparent",Le.strokeColor="transparent",Le.strokeWidth=0,Le.strokeDasharray="",Le.opacity=1,Le.strokeColor=Ke.defaultColor,Le.strokeWidth=Ke.defaultStrokeWidth,Le.strokeDasharray=Ke.defaultStrokeDasharray,Le.fillColor=Ke.defaultFillColor,Le.setStrokeColor=Le.setStrokeColor.bind(Le),Le.setFillColor=Le.setFillColor.bind(Le),Le.setStrokeWidth=Le.setStrokeWidth.bind(Le),Le.setStrokeDasharray=Le.setStrokeDasharray.bind(Le),Le.setOpacity=Le.setOpacity.bind(Le),Le.createVisual=Le.createVisual.bind(Le),Le.strokePanel=new ne("Line color",Ge(Ke.defaultColorSet,["transparent"]),Ke.defaultColor),Le.strokePanel.onColorChanged=Le.setStrokeColor,Le.fillPanel=new ne("Fill color",Ge(Ke.defaultColorSet,["transparent"]),Le.fillColor,ut),Le.fillPanel.onColorChanged=Le.setFillColor,Le.strokeWidthPanel=new Re("Line width",Ke.defaultStrokeWidths,Ke.defaultStrokeWidth),Le.strokeWidthPanel.onWidthChanged=Le.setStrokeWidth,Le.strokeStylePanel=new Ze("Line style",Ke.defaultStrokeDasharrays,Ke.defaultStrokeDasharray),Le.strokeStylePanel.onStyleChanged=Le.setStrokeDasharray,Le.opacityPanel=new fn("Opacity",Ke.defaultOpacitySteps,Le.opacity),Le.opacityPanel.onOpacityChanged=Le.setOpacity,Le}return Me(Fe,$e),Fe.prototype.ownsTarget=function(Ne){return!(!$e.prototype.ownsTarget.call(this,Ne)&&Ne!==this.visual)},Fe.prototype.createVisual=function(){this.visual=Oe.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},Fe.prototype.pointerDown=function(Ne,Qe){$e.prototype.pointerDown.call(this,Ne,Qe),this.state==="new"&&(this.createVisual(),this.moveVisual(Ne),this._state="creating")},Fe.prototype.manipulate=function(Ne){$e.prototype.manipulate.call(this,Ne)},Fe.prototype.resize=function(Ne){$e.prototype.resize.call(this,Ne),this.setSize()},Fe.prototype.setSize=function(){$e.prototype.setSize.call(this),Oe.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},Fe.prototype.pointerUp=function(Ne){$e.prototype.pointerUp.call(this,Ne),this.setSize()},Fe.prototype.setStrokeColor=function(Ne){this.strokeColor=Ne,this.visual&&Oe.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Ne),this.stateChanged()},Fe.prototype.setFillColor=function(Ne){this.fillColor=Ne,this.visual&&Oe.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(Ne),this.stateChanged()},Fe.prototype.setStrokeWidth=function(Ne){this.strokeWidth=Ne,this.visual&&Oe.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Fe.prototype.setStrokeDasharray=function(Ne){this.strokeDasharray=Ne,this.visual&&Oe.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Fe.prototype.setOpacity=function(Ne){this.opacity=Ne,this.visual&&Oe.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var Ne=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},$e.prototype.getState.call(this));return Ne.typeName=Fe.typeName,Ne},Fe.prototype.restoreState=function(Ne){var Qe=Ne;this.fillColor=Qe.fillColor,this.strokeColor=Qe.strokeColor,this.strokeWidth=Qe.strokeWidth,this.strokeDasharray=Qe.strokeDasharray,this.opacity=Qe.opacity,this.createVisual(),$e.prototype.restoreState.call(this,Ne),this.setSize()},Fe.prototype.scale=function(Ne,Qe){$e.prototype.scale.call(this,Ne,Qe),this.setSize()},Fe.typeName="EllipseMarker",Fe.title="Ellipse marker",Fe.icon='<svg viewBox="0 0 24 24"><path d="M12 4C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',Fe}(we),mn=function($e){function Fe(Ne,Qe,Ke){return $e.call(this,Ne,Qe,Ke)||this}return Me(Fe,$e),Object.defineProperty(Fe.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),Fe.prototype.ownsTarget=function(Ne){return!(!$e.prototype.ownsTarget.call(this,Ne)&&Ne!==this.tip1&&Ne!==this.tip2)},Fe.prototype.createTips=function(){this.tip1=Oe.createLine(this.x1-this.tipLength/2,this.y1,this.x1+this.tipLength/2,this.y1,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip1.transform.baseVal.appendItem(Oe.createTransform()),this.visual.appendChild(this.tip1),this.tip2=Oe.createLine(this.x2-this.tipLength/2,this.y2,this.x2+this.tipLength/2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip2.transform.baseVal.appendItem(Oe.createTransform()),this.visual.appendChild(this.tip2)},Fe.prototype.pointerDown=function(Ne,Qe){$e.prototype.pointerDown.call(this,Ne,Qe),this.state==="creating"&&this.createTips()},Fe.prototype.adjustVisual=function(){if($e.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(Oe.setAttributes(this.tip1,[["x1",(this.x1-this.tipLength/2).toString()],["y1",this.y1.toString()],["x2",(this.x1+this.tipLength/2).toString()],["y2",this.y1.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Oe.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var Ne=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Qe=this.tip1.transform.baseVal.getItem(0);Qe.setRotate(Ne,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Qe,0);var Ke=this.tip2.transform.baseVal.getItem(0);Ke.setRotate(Ne+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(Ke,0)}},Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var Ne=$e.prototype.getState.call(this);return Ne.typeName=Fe.typeName,Ne},Fe.prototype.restoreState=function(Ne){$e.prototype.restoreState.call(this,Ne),this.createTips(),this.adjustVisual()},Fe.typeName="MeasurementMarker",Fe.title="Measurement marker",Fe.icon='<svg viewBox="0 0 24 24"><path d="M1.39 18.36l1.77-1.76L4.58 18l1.06-1.05-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.42 1.41L10.59 12l-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.41 1.41 1.07-1.06-1.42-1.41 1.42-1.42L18 6.7l1.07-1.06-2.47-2.48 1.76-1.77 4.25 4.25L5.64 22.61l-4.25-4.25z"/></svg>',Fe}(xt),Ct=function($e){function Fe(Ne,Qe,Ke){var Le=$e.call(this,Ne,Qe,Ke)||this;return Le.strokePanel.colors=Ke.defaultColorSet,Le.fillColor="transparent",Le}return Me(Fe,$e),Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var Ne=$e.prototype.getState.call(this);return Ne.typeName=Fe.typeName,Ne},Fe.typeName="EllipseFrameMarker",Fe.title="Ellipse frame marker",Fe.icon='<svg viewBox="0 0 24 24"><path d="M12 6c4.41 0 8 2.69 8 6s-3.59 6-8 6-8-2.69-8-6 3.59-6 8-6m0-2C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',Fe}(an),un=function(){function $e(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty($e.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),$e.prototype.addUndoStep=function(Fe){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(Fe)||(this.undoStack.push(Fe),JSON.stringify(this.lastRedoStep)!==JSON.stringify(Fe)&&this.redoStack.splice(0,this.redoStack.length))},$e.prototype.replaceLastUndoStep=function(Fe){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=Fe)},$e.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},$e.prototype.undo=function(){if(this.undoStack.length>1){var Fe=this.undoStack.pop();return Fe!==void 0&&this.redoStack.push(Fe),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},$e.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},$e}(),on=function($e){function Fe(Ne,Qe,Ke){var Le=$e.call(this,Ne,Qe,Ke)||this;return Le.strokeColor="transparent",Le.strokeWidth=0,Le.strokeDasharray="",Le.curveX=0,Le.curveY=0,Le.manipulationStartCurveX=0,Le.manipulationStartCurveY=0,Le.setStrokeColor=Le.setStrokeColor.bind(Le),Le.setStrokeWidth=Le.setStrokeWidth.bind(Le),Le.setStrokeDasharray=Le.setStrokeDasharray.bind(Le),Le.positionGrips=Le.positionGrips.bind(Le),Le.addControlGrips=Le.addControlGrips.bind(Le),Le.adjustVisual=Le.adjustVisual.bind(Le),Le.setupControlBox=Le.setupControlBox.bind(Le),Le.resize=Le.resize.bind(Le),Le.strokeColor=Ke.defaultColor,Le.strokeWidth=Ke.defaultStrokeWidth,Le.strokeDasharray=Ke.defaultStrokeDasharray,Le.strokePanel=new ne("Line color",Ke.defaultColorSet,Ke.defaultColor),Le.strokePanel.onColorChanged=Le.setStrokeColor,Le.strokeWidthPanel=new Re("Line width",Ke.defaultStrokeWidths,Ke.defaultStrokeWidth),Le.strokeWidthPanel.onWidthChanged=Le.setStrokeWidth,Le.strokeStylePanel=new Ze("Line style",Ke.defaultStrokeDasharrays,Ke.defaultStrokeDasharray),Le.strokeStylePanel.onStyleChanged=Le.setStrokeDasharray,Le}return Me(Fe,$e),Fe.prototype.ownsTarget=function(Ne){return!(!$e.prototype.ownsTarget.call(this,Ne)&&Ne!==this.visual&&Ne!==this.selectorCurve&&Ne!==this.visibleCurve&&!this.curveGrip.ownsTarget(Ne))},Fe.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},Fe.prototype.createVisual=function(){this.visual=Oe.createGroup(),this.selectorCurve=Oe.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Oe.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},Fe.prototype.pointerDown=function(Ne,Qe){$e.prototype.pointerDown.call(this,Ne,Qe),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=Ne.x,this.curveY=Ne.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Qe)&&(this.activeGrip=this.curveGrip,this._state="resize")},Fe.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Oe.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Oe.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Oe.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Fe.prototype.setupControlBox=function(){$e.prototype.setupControlBox.call(this),this.curveControlLine1=Oe.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Oe.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},Fe.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,$e.prototype.addControlGrips.call(this)},Fe.prototype.positionGrips=function(){$e.prototype.positionGrips.call(this);var Ne=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-Ne/2,this.curveY-Ne/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},Fe.prototype.manipulate=function(Ne){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+Ne.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+Ne.y-this.manipulationStartY),$e.prototype.manipulate.call(this,Ne)},Fe.prototype.resize=function(Ne){this.activeGrip===this.curveGrip&&(this.curveX=Ne.x,this.curveY=Ne.y),$e.prototype.resize.call(this,Ne),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},Fe.prototype.setStrokeColor=function(Ne){this.strokeColor=Ne,this.adjustVisual(),this.colorChanged(Ne)},Fe.prototype.setStrokeWidth=function(Ne){this.strokeWidth=Ne,this.adjustVisual()},Fe.prototype.setStrokeDasharray=function(Ne){this.strokeDasharray=Ne,this.adjustVisual()},Fe.prototype.scale=function(Ne,Qe){this.curveX=this.curveX*Ne,this.curveY=this.curveY*Qe,$e.prototype.scale.call(this,Ne,Qe)},Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var Ne=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},$e.prototype.getState.call(this));return Ne.typeName=Fe.typeName,Ne},Fe.prototype.restoreState=function(Ne){$e.prototype.restoreState.call(this,Ne);var Qe=Ne;this.strokeColor=Qe.strokeColor,this.strokeWidth=Qe.strokeWidth,this.strokeDasharray=Qe.strokeDasharray,this.curveX=Qe.curveX,this.curveY=Qe.curveY,this.createVisual(),this.adjustVisual()},Fe.typeName="CurveMarker",Fe.title="Curve marker",Fe.icon='<svg viewBox="0 0 24 24"><path d="M18.5 2A1.5 1.5 0 0120 3.5 1.5 1.5 0 0118.5 5c-.23 0-.45-.05-.65-.15l-3.69 3.7.34.45c2.19-1.26 4.76-2 7.5-2l1 .03v2.01L22 9c-2.58 0-5 .75-7 2.04A3.96 3.96 0 0111.04 15C9.75 17 9 19.42 9 22l.04 1H7.03L7 22c0-2.74.74-5.31 2-7.5l-.45-.34-3.7 3.69c.1.2.15.42.15.65A1.5 1.5 0 013.5 20 1.5 1.5 0 012 18.5 1.5 1.5 0 013.5 17c.23 0 .45.05.65.15l3.69-3.7C7.31 12.78 7 11.92 7 11a4 4 0 014-4c.92 0 1.78.31 2.45.84l3.7-3.69c-.1-.2-.15-.42-.15-.65A1.5 1.5 0 0118.5 2M11 9a2 2 0 00-2 2 2 2 0 002 2 2 2 0 002-2 2 2 0 00-2-2z"/></svg>',Fe}(ft),Bn=function($e){function Fe(Ne,Qe,Ke){var Le=$e.call(this,Ne,Qe,Ke)||this;return Le.fillColor="transparent",Le.strokeColor="transparent",Le.strokeWidth=0,Le.strokeDasharray="",Le.textColor="transparent",Le.fontSize="1rem",Le.isMoved=!1,Le.captionText="Caption",Le.PADDING=5,Le.captionBoxWidth=0,Le.captionBoxHeight=0,Le.strokeColor=Ke.defaultColor,Le.strokeWidth=Ke.defaultStrokeWidth,Le.strokeDasharray=Ke.defaultStrokeDasharray,Le.fillColor=Ke.defaultFillColor,Le.textColor=Ke.defaultStrokeColor,Le.fontFamily=Ke.defaultFontFamily,Le.fontSize=Ke.defaultCaptionFontSize,Le.captionText=Ke.defaultCaptionText,Le.setStrokeColor=Le.setStrokeColor.bind(Le),Le.setFillColor=Le.setFillColor.bind(Le),Le.setStrokeWidth=Le.setStrokeWidth.bind(Le),Le.setStrokeDasharray=Le.setStrokeDasharray.bind(Le),Le.createVisual=Le.createVisual.bind(Le),Le.sizeCaption=Le.sizeCaption.bind(Le),Le.setCaptionText=Le.setCaptionText.bind(Le),Le.showTextEditor=Le.showTextEditor.bind(Le),Le.positionTextEditor=Le.positionTextEditor.bind(Le),Le.finishTextEditing=Le.finishTextEditing.bind(Le),Le.setFont=Le.setFont.bind(Le),Le.setTextColor=Le.setTextColor.bind(Le),Le.strokePanel=new ne("Line color",Ge(Ke.defaultColorSet,["transparent"]),Le.strokeColor),Le.strokePanel.onColorChanged=Le.setStrokeColor,Le.fillPanel=new ne("Fill color",Ge(Ke.defaultColorSet,["transparent"]),Le.fillColor,ut),Le.fillPanel.onColorChanged=Le.setFillColor,Le.strokeWidthPanel=new Re("Line width",Ke.defaultStrokeWidths,Ke.defaultStrokeWidth),Le.strokeWidthPanel.onWidthChanged=Le.setStrokeWidth,Le.strokeStylePanel=new Ze("Line style",Ke.defaultStrokeDasharrays,Ke.defaultStrokeDasharray),Le.strokeStylePanel.onStyleChanged=Le.setStrokeDasharray,Le.fontFamilyPanel=new at("Font",Ke.defaultFontFamilies,Ke.defaultFontFamily),Le.fontFamilyPanel.onFontChanged=Le.setFont,Le.textColorPanel=new ne("Text color",Ke.defaultColorSet,Le.textColor,Nt),Le.textColorPanel.onColorChanged=Le.setTextColor,Le}return Me(Fe,$e),Fe.prototype.ownsTarget=function(Ne){return!(!$e.prototype.ownsTarget.call(this,Ne)&&Ne!==this.visual&&Ne!==this.frame&&Ne!==this.captionBg&&Ne!==this.captionElement)},Fe.prototype.createVisual=function(){this.visual=Oe.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Oe.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Oe.createText([["fill",this.textColor],["font-family",this.fontFamily]]),this.captionElement.style.fontSize=this.fontSize,this.captionElement.style.textAnchor="start",this.captionElement.style.dominantBaseline="text-before-edge",this.captionElement.textContent=this.captionText,this.visual.appendChild(this.captionElement),this.frame=Oe.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},Fe.prototype.setCaptionText=function(Ne){this.captionText=Ne,this.captionElement.textContent=this.captionText,this.sizeCaption()},Fe.prototype.pointerDown=function(Ne,Qe){$e.prototype.pointerDown.call(this,Ne,Qe),this.isMoved=!1,this.pointerDownPoint=Ne,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Ne),this._state="creating")},Fe.prototype.manipulate=function(Ne){$e.prototype.manipulate.call(this,Ne),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(Ne.x-this.pointerDownPoint.x)>5||Math.abs(Ne.y-this.pointerDownPoint.y)>5)},Fe.prototype.resize=function(Ne){$e.prototype.resize.call(this,Ne),this.setSize()},Fe.prototype.sizeCaption=function(){var Ne=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=Ne.width+2*this.PADDING,this.captionBoxHeight=Ne.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),Oe.setAttributes(this.captionBg,[["width",this.captionBoxWidth.toString()],["height",this.captionBoxHeight.toString()],["clip-path","path('M0,0 H"+this.width+" V"+this.height+" H"+-this.width+" Z')"]]),Oe.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},Fe.prototype.showTextEditor=function(){var Ne=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditBox=document.createElement("input"),this.textEditBox.style.position="absolute",this.textEditBox.style.width=this.width+"px",this.captionBoxHeight>0&&(this.textEditBox.style.height=this.captionBoxHeight+"px"),this.textEditBox.style.fontSize=this.fontSize,this.textEditBox.style.fontFamily=this.fontFamily,this.textEditBox.style.backgroundColor=this.fillColor,this.textEditBox.style.color=this.textColor,this.textEditBox.style.borderWidth="0",this.textEditBox.setAttribute("value",this.captionText),this.textEditBox.select(),this.textEditDiv.appendChild(this.textEditBox),this.overlayContainer.appendChild(this.textEditDiv),this.textEditBox.addEventListener("pointerup",function(Qe){Qe.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Qe){Qe.key==="Enter"&&Ne.finishTextEditing(Ne.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Qe){Qe.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){Ne.finishTextEditing(Ne.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){Ne.finishTextEditing(Ne.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},Fe.prototype.positionTextEditor=function(){this.state==="edit"&&(this.textEditBox===void 0?this.showTextEditor():(this.textEditBox.style.left=this.left+"px",this.textEditBox.style.top=this.top+"px",this.textEditBox.style.transform="rotate("+this.rotationAngle+"deg)",this.textEditBox.style.transformOrigin=this.width/2+"px "+this.height/2+"px"))},Fe.prototype.finishTextEditing=function(Ne){this.setCaptionText(Ne.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},Fe.prototype.setFont=function(Ne){this.captionElement&&Oe.setAttributes(this.captionElement,[["font-family",Ne]]),this.fontFamily=Ne,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},Fe.prototype.setTextColor=function(Ne){this.captionElement&&Oe.setAttributes(this.captionElement,[["fill",Ne]]),this.textColor=Ne,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},Fe.prototype.setSize=function(){$e.prototype.setSize.call(this),Oe.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},Fe.prototype.pointerUp=function(Ne){$e.prototype.pointerUp.call(this,Ne),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},Fe.prototype.dblClick=function(Ne,Qe){$e.prototype.dblClick.call(this,Ne,Qe),this.showTextEditor()},Fe.prototype.setStrokeColor=function(Ne){this.strokeColor=Ne,this.frame&&Oe.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(Ne),this.stateChanged()},Fe.prototype.setFillColor=function(Ne){this.fillColor=Ne,this.captionBg&&Oe.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(Ne),this.stateChanged()},Fe.prototype.setStrokeWidth=function(Ne){this.strokeWidth=Ne,this.frame&&Oe.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Fe.prototype.setStrokeDasharray=function(Ne){this.strokeDasharray=Ne,this.frame&&Oe.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var Ne=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:1,textColor:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,captionText:this.captionText},$e.prototype.getState.call(this));return Ne.typeName=this.typeName,Ne},Fe.prototype.restoreState=function(Ne){var Qe=Ne;this.fillColor=Qe.fillColor,this.strokeColor=Qe.strokeColor,this.strokeWidth=Qe.strokeWidth,this.strokeDasharray=Qe.strokeDasharray,this.textColor=Qe.textColor,this.fontFamily=Qe.fontFamily,this.captionText=Qe.captionText,this.fontSize=Qe.fontSize,this.createVisual(),$e.prototype.restoreState.call(this,Ne),this.setSize()},Fe.prototype.scale=function(Ne,Qe){$e.prototype.scale.call(this,Ne,Qe),this.setSize()},Fe.typeName="CaptionFrameMarker",Fe.title="Caption frame marker",Fe.icon='<svg viewBox="0 0 24 24"><path d="M5 3c-1.11 0-2 .89-2 2v14c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2H5m0 2h14v14H5V5m2 2v2h10V7H7z"/></svg>',Fe}(we),Nn=function(){function $e(Fe,Ne){Ne===void 0&&(Ne=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=Fe,this.cancelable=Ne}return Object.defineProperty($e.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),$e.prototype.preventDefault=function(){this._defaultPrevented=!0},$e}(),si=function($e){function Fe(Ne,Qe,Ke){var Le=$e.call(this,Ne,!1)||this;return Le.dataUrl=Qe,Le.state=Ke,Le}return Me(Fe,$e),Fe}(Nn),Pt=function($e){function Fe(Ne,Qe,Ke){Ke===void 0&&(Ke=!1);var Le=$e.call(this,Ne,Ke)||this;return Le.marker=Qe,Le}return Me(Fe,$e),Fe}(Nn),qn=function(){function $e(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return $e.prototype.addEventListener=function(Fe,Ne){this[Fe].push(Ne)},$e.prototype.removeEventListener=function(Fe,Ne){var Qe=this[Fe].indexOf(Ne);Qe>-1&&this[Fe].splice(Qe,1)},$e}(),Ei=function(){function $e(Fe){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new rt,this._isOpen=!1,this.undoRedoManager=new un,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new qn,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=$e.instanceCounter++,this.styles=new Xe(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=Fe,this.targetRoot=document.body,this.width=Fe.clientWidth,this.height=Fe.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty($e.prototype,"ALL_MARKER_TYPES",{get:function(){return[nt,Mt,bn,wt,Ct,an,gn,it,mn,pn,xt,on,Bn]},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[nt,Mt,bn,wt,an,gn,it]},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"BASIC_MARKER_TYPES",{get:function(){return[nt,Mt,bn,wt,gn]},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(Fe){var Ne=this;this._availableMarkerTypes.splice(0),Fe.forEach(function(Qe){if(typeof Qe=="string"){var Ke=Ne.ALL_MARKER_TYPES.find(function(Le){return Le.typeName===Qe});Ke!==void 0&&Ne._availableMarkerTypes.push(Ke)}else Ne._availableMarkerTypes.push(Qe)})},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(Fe){this._zoomLevel=Fe,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty($e.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),$e.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Ve.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},$e.prototype.show=function(){var Fe=this;this.styles.styleSheetRoot===void 0&&Je.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Je.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(Ne){return Ne(new Nn(Fe))})},$e.prototype.render=function(){return Ie(this,void 0,void 0,function(){var Fe;return Pe(this,function(Ne){switch(Ne.label){case 0:return this.setCurrentMarker(),(Fe=new ot).naturalSize=this.renderAtNaturalSize,Fe.imageType=this.renderImageType,Fe.imageQuality=this.renderImageQuality,Fe.markersOnly=this.renderMarkersOnly,Fe.width=this.renderWidth,Fe.height=this.renderHeight,[4,Fe.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return Ne.sent(),[4,Fe.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,Ne.sent()]}})})},$e.prototype.close=function(Fe){var Ne=this;if(Fe===void 0&&(Fe=!1),this.isOpen){var Qe=!1;Fe||this.eventListeners.beforeclose.forEach(function(Ke){var Le=new Nn(Ne,!0);Ke(Le),Le.defaultPrevented&&(Qe=!0)}),Qe||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(Ke){return Ke(new Nn(Ne))}),this.detachEvents(),this._isOpen=!1)}},$e.prototype.addMarkersToToolbar=function(){for(var Fe,Ne=[],Qe=0;Qe<arguments.length;Qe++)Ne[Qe]=arguments[Qe];(Fe=this._availableMarkerTypes).push.apply(Fe,Ne)},$e.prototype.addRenderEventListener=function(Fe){this.addEventListener("render",function(Ne){Fe(Ne.dataUrl,Ne.state)})},$e.prototype.removeRenderEventListener=function(Fe){},$e.prototype.addCloseEventListener=function(Fe){this.addEventListener("close",function(){Fe()})},$e.prototype.removeCloseEventListener=function(Fe){},$e.prototype.setupResizeObserver=function(){var Fe=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){Fe.resize(Fe.target.clientWidth,Fe.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return Fe.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},$e.prototype.onPopupTargetResize=function(){var Fe=1*this.target.clientWidth/this.target.clientHeight,Ne=this.editorCanvas.clientWidth/Fe>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*Fe:this.editorCanvas.clientWidth,Qe=Ne<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/Fe;this.resize(Ne,Qe)},$e.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},$e.prototype.resize=function(Fe,Ne){this._isResizing=!0;var Qe=Fe/this.imageWidth,Ke=Ne/this.imageHeight;this.imageWidth=Math.round(Fe),this.imageHeight=Math.round(Ne),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.settings.displayMode!=="popup"?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),this.toolbar!==void 0&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(Qe,Ke),this._isResizing=!1},$e.prototype.scaleMarkers=function(Fe,Ne){var Qe,Ke=this;this._currentMarker&&this._currentMarker instanceof wt?this._currentMarker.scale(Fe,Ne):(Qe=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(Le){Le!==Ke._currentMarker&&Le.scale(Fe,Ne)}),Qe!==void 0&&this.setCurrentMarker(Qe)},$e.prototype.setEditingTarget=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px"},$e.prototype.setTopLeft=function(){var Fe=this.editingTarget.getBoundingClientRect(),Ne=this.editorCanvas.getBoundingClientRect();this.left=Fe.left-Ne.left,this.top=Fe.top-Ne.top},$e.prototype.initMarkerCanvas=function(){this.markerImageHolder=document.createElement("div"),this.markerImageHolder.style.setProperty("touch-action","pinch-zoom"),this.markerImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.markerImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImage.style.pointerEvents="auto",this.markerImageHolder.style.position="absolute",this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.markerImageHolder.style.transformOrigin="top left",this.positionMarkerImage(),this.markerImageHolder.appendChild(this.markerImage),this.editorCanvas.appendChild(this.markerImageHolder)},$e.prototype.addDefs=function(){for(var Fe,Ne=[],Qe=0;Qe<arguments.length;Qe++)Ne[Qe]=arguments[Qe];this.defs=Oe.createDefs(),this.addDefsToImage(),(Fe=this.defs).append.apply(Fe,Ne)},$e.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},$e.prototype.initOverlay=function(){this.overlayContainer=document.createElement("div"),this.overlayContainer.style.position="absolute",this.overlayContainer.style.left="0px",this.overlayContainer.style.top="0px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.overlayContainer.style.display="flex",this.markerImageHolder.appendChild(this.overlayContainer)},$e.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},$e.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},$e.prototype.attachWindowEvents=function(){window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerOut),window.addEventListener("pointerout",this.onPointerOut),window.addEventListener("pointerleave",this.onPointerUp),window.addEventListener("resize",this.onWindowResize),window.addEventListener("keyup",this.onKeyUp)},$e.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},$e.prototype.detachWindowEvents=function(){window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerOut),window.removeEventListener("pointerout",this.onPointerOut),window.removeEventListener("pointerleave",this.onPointerUp),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("keyup",this.onKeyUp)},$e.prototype.addLogo=function(){this.logoUI=document.createElement("div"),this.logoUI.style.display="inline-block",this.logoUI.style.margin="0px",this.logoUI.style.padding="0px",this.logoUI.style.fill="#333333";var Fe=document.createElement("a");Fe.href="https://markerjs.com/",Fe.target="_blank",Fe.innerHTML='<svg viewBox="0 0 112 96" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="#e5f20d" fill-opacity=".647" d="M0 40.386h111.96V95.62H0z"/><path d="M93.61 61.452c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.591 1.048-1.481 0-2.222-.74-2.222-2.22 0-16.617-.533-29.347-1.604-38.192-1.068-8.842-2.92-13.265-5.552-13.265-4.443 0-10.94 15.509-19.497 46.52v.124c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.592 1.048-1.48 0-2.22-.74-2.22-2.22 0-3.29.165-8.392.493-15.302.33-7.732.494-13.82.494-18.262 0-6.17-.186-10.55-.556-13.142-.37-2.591-1.172-3.887-2.406-3.887-2.796 0-6.333 5.12-10.612 15.363C38.494 34.367 34.01 46.44 29.32 60.34l-1.11 3.209a5.714 5.714 0 01-1.42 2.097c-.617.578-1.295.864-2.036.864-.987 0-1.644-.081-1.974-.247-.328-.162-.533-.656-.617-1.48-.41-4.03-.74-9.418-.987-16.165-.163-1.728-.329-4.566-.494-8.515-.822-13.901-1.562-23.3-2.221-28.196-.657-4.893-.987-7.628-.987-8.205 0-.657.33-1.44.987-2.345.659-.903 1.276-1.357 1.85-1.357 1.319 0 2.387.947 3.21 2.838.411.906.863 4.526 1.357 10.859.493 6.335.905 14.19 1.233 23.568l.617 18.88c4.527-13.983 9.216-26.673 14.068-38.068C45.65 6.686 50.093.988 54.123.988c2.715 0 4.566 1.974 5.553 5.923.987 3.949 1.481 9.667 1.481 17.152 0 3.949-.081 9.625-.247 17.029l-.123 5.676c3.373-11.762 6.725-21.634 10.057-29.615 3.331-7.979 6.685-11.97 10.056-11.97 8.475 0 12.71 18.757 12.71 56.269z" fill-rule="nonzero"/></svg>',Fe.title="Powered by marker.js",Fe.style.display="grid",Fe.style.alignItems="center",Fe.style.justifyItems="center",Fe.style.padding="3px",Fe.style.width="20px",Fe.style.height="20px",this.logoUI.appendChild(Fe),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},$e.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},$e.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},$e.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},$e.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var Fe=this.settings.uiOffsetTop!==void 0?this.target.offsetTop+this.settings.uiOffsetTop:this.target.offsetTop>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=Fe+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new _t(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.settings.uiOffsetTop===void 0&&this.target.offsetTop<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new Ue(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},$e.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},$e.prototype.removeMarker=function(Fe){this.markerImage.removeChild(Fe.container),this.markers.indexOf(Fe)>-1&&this.markers.splice(this.markers.indexOf(Fe),1),Fe.dispose()},$e.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},$e.prototype.toolbarButtonClicked=function(Fe,Ne){if(Fe==="marker"&&Ne!==void 0)this.createNewMarker(Ne);else if(Fe==="action")switch(Ne){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},$e.prototype.deleteSelectedMarker=function(){var Fe=this;if(this._currentMarker!==void 0){var Ne=!1;if(this.eventListeners.markerbeforedelete.forEach(function(Ke){var Le=new Pt(Fe,Fe._currentMarker,!0);Ke(Le),Le.defaultPrevented&&(Ne=!0)}),!Ne){var Qe=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(Ke){return Ke(new Pt(Fe,Qe))})}}},$e.prototype.clear=function(){var Fe=this,Ne=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(At){var Lt=new Pt(Fe,void 0,!0);At(Lt),Lt.defaultPrevented&&(Ne=!0)}),!Ne)){this.setCurrentMarker();for(var Qe=function(At){var Lt=Ke.markers[At];Ke.setCurrentMarker(Ke.markers[At]),Ke._currentMarker.dispose(),Ke.markerImage.removeChild(Ke._currentMarker.container),Ke.markers.splice(Ke.markers.indexOf(Ke._currentMarker),1),Ke.eventListeners.markerdelete.forEach(function(tn){return tn(new Pt(Fe,Lt))})},Ke=this,Le=this.markers.length-1;Le>=0;Le--)Qe(Le);this.addUndoStep()}},Object.defineProperty($e.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),$e.prototype.showNotesEditor=function(){var Fe;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(Fe=this._currentMarker.notes)!==null&&Fe!==void 0?Fe:"",this.overlayContainer.appendChild(this.notesArea))},$e.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},$e.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},$e.prototype.addUndoStep=function(){var Fe=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var Ne=this.getState(),Qe=this.undoRedoManager.getLastUndoStep();if(!Qe||Qe.width===Ne.width&&Qe.height===Ne.height){var Ke=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(Ne),Ke<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(Le){return Le(new Nn(Fe))})}else this.undoRedoManager.replaceLastUndoStep(Ne),this.eventListeners.statechange.forEach(function(Le){return Le(new Nn(Fe))})}},$e.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},$e.prototype.undoStep=function(){var Fe=this,Ne=this.undoRedoManager.undo();Ne!==void 0&&(this.restoreState(Ne),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Qe){return Qe(new Nn(Fe))}))},$e.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},$e.prototype.redoStep=function(){var Fe=this,Ne=this.undoRedoManager.redo();Ne!==void 0&&(this.restoreState(Ne),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Qe){return Qe(new Nn(Fe))}))},$e.prototype.stepZoom=function(){var Fe=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=Fe<this.zoomSteps.length-1?this.zoomSteps[Fe+1]:this.zoomSteps[0]},$e.prototype.panTo=function(Fe){this.contentDiv.scrollBy({left:this.prevPanPoint.x-Fe.x,top:this.prevPanPoint.y-Fe.y}),this.prevPanPoint=Fe},$e.prototype.startRenderAndClose=function(){return Ie(this,void 0,void 0,function(){var Fe,Ne,Qe=this;return Pe(this,function(Ke){switch(Ke.label){case 0:return[4,this.render()];case 1:return Fe=Ke.sent(),Ne=this.getState(),this.eventListeners.render.forEach(function(Le){return Le(new si(Qe,Fe,Ne))}),this.close(!0),[2]}})})},$e.prototype.getState=function(Fe){Fe===!0&&this.setCurrentMarker();var Ne={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(Qe){return Ne.markers.push(Qe.getState())}),Ne},$e.prototype.restoreState=function(Fe){var Ne=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);Fe.markers.forEach(function(Qe){var Ke=Ne._availableMarkerTypes.find(function(At){return At.typeName===Qe.typeName});if(Ke!==void 0){var Le=Ne.addNewMarker(Ke);Le.restoreState(Qe),Ne.markers.push(Le)}}),Fe.width&&Fe.height&&(Fe.width!==this.imageWidth||Fe.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/Fe.width,this.imageHeight/Fe.height),this.eventListeners.restorestate.forEach(function(Qe){return Qe(new Nn(Ne))})},$e.prototype.addNewMarker=function(Fe){var Ne=Oe.createGroup();return this.markerImage.appendChild(Ne),new Fe(Ne,this.overlayContainer,this.settings)},$e.prototype.createNewMarker=function(Fe){var Ne,Qe=this;(Ne=typeof Fe=="string"?this._availableMarkerTypes.find(function(Ke){return Ke.typeName===Fe}):Fe)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(Ne),this._currentMarker.onMarkerCreated=this.markerCreated,this._currentMarker.onColorChanged=this.colorChanged,this._currentMarker.onFillColorChanged=this.fillColorChanged,this._currentMarker.onStateChanged=this.markerStateChanged,this.markerImage.style.cursor="crosshair",this.toolbar.setActiveMarkerButton(Ne.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(Ke){return Ke(new Pt(Qe,Qe._currentMarker))}))},$e.prototype.markerCreated=function(Fe){var Ne=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(Fe),this.setCurrentMarker(Fe),Fe instanceof Mt&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Mt):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(Qe){return Qe(new Pt(Ne,Ne._currentMarker))})},$e.prototype.colorChanged=function(Fe){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=Fe,this.settings.defaultStrokeColor=Fe)},$e.prototype.fillColorChanged=function(Fe){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=Fe)},$e.prototype.markerStateChanged=function(Fe){var Ne=this;this.eventListeners.markerchange.forEach(function(Qe){return Qe(new Pt(Ne,Fe))})},$e.prototype.setCurrentMarker=function(Fe){var Ne=this;this._currentMarker!==Fe&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(Qe){return Qe(new Pt(Ne,Ne._currentMarker))})),this._currentMarker=Fe,this._currentMarker===void 0||this._currentMarker.isSelected||(this._currentMarker.state!=="new"&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach(function(Qe){return Qe(new Pt(Ne,Ne._currentMarker))}))},$e.prototype.onPointerDown=function(Fe){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||Fe.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var Ne=this.markers.find(function(Qe){return Qe.ownsTarget(Fe.target)});Ne!==void 0?(this.setCurrentMarker(Ne),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Fe.clientX,Fe.clientY),Fe.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:Fe.clientX,y:Fe.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Fe.clientX,Fe.clientY))},$e.prototype.onDblClick=function(Fe){if(this._isFocused||this.focus(),this.mode==="select"){var Ne=this.markers.find(function(Qe){return Qe.ownsTarget(Fe.target)});Ne!==void 0&&Ne!==this._currentMarker&&this.setCurrentMarker(Ne),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(Fe.clientX,Fe.clientY),Fe.target):this.setCurrentMarker()}},$e.prototype.onPointerMove=function(Fe){this.touchPoints!==1&&Fe.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||Fe.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(Fe.clientX,Fe.clientY)):this.zoomLevel>1&&this.panTo({x:Fe.clientX,y:Fe.clientY}))},$e.prototype.onPointerUp=function(Fe){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(Fe.clientX,Fe.clientY)),this.isDragging=!1,this.addUndoStep()},$e.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},$e.prototype.onKeyUp=function(Fe){this._currentMarker===void 0||this.notesArea!==void 0||Fe.key!=="Delete"&&Fe.key!=="Backspace"||this.deleteSelectedMarker()},$e.prototype.clientToLocalCoordinates=function(Fe,Ne){var Qe=this.markerImage.getBoundingClientRect();return{x:(Fe-Qe.left)/this.zoomLevel,y:(Ne-Qe.top)/this.zoomLevel}},$e.prototype.onWindowResize=function(){this.positionUI()},$e.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var Fe=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=Fe+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},$e.prototype.addLicenseKey=function(Fe){Ve.addKey(Fe)},$e.prototype.addEventListener=function(Fe,Ne){this.eventListeners.addEventListener(Fe,Ne)},$e.prototype.removeEventListener=function(Fe,Ne){this.eventListeners.removeEventListener(Fe,Ne)},$e.prototype.renderState=function(Fe){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(Fe),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty($e.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),$e.prototype.focus=function(){var Fe=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(Ne){return Ne(new Nn(Fe))}))},$e.prototype.blur=function(){var Fe=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(Ne){return Ne(new Nn(Fe))}))},$e.instanceCounter=0,$e}()},67842:function(ze){"use strict";var be,de=59;ze.exports=le;function le(Me){var Ie="&"+Me+";",Pe;return be=be||document.createElement("i"),be.innerHTML=Ie,Pe=be.textContent,Pe.charCodeAt(Pe.length-1)===de&&Me!=="semi"||Pe===Ie?!1:Pe}},12256:function(ze,be,de){"use strict";var le=de(47854),Me=de(80501),Ie=de(22347),Pe=de(65207),Ge=de(21127),Oe=de(67842);ze.exports=gn;var Ve={}.hasOwnProperty,ot=String.fromCharCode,Je=Function.prototype,Xe={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},vt=9,st=10,_t=12,Ue=32,te=38,ne=59,fe=60,se=61,pe=35,Se=88,we=120,De=65533,Re="named",Ze="hexadecimal",nt="decimal",rt={};rt[Ze]=16,rt[nt]=10;var ft={};ft[Re]=Ge,ft[nt]=Ie,ft[Ze]=Pe;var xt=1,at=2,wt=3,Mt=4,Xt=5,bn=6,pn=7,fn={};fn[xt]="Named character references must be terminated by a semicolon",fn[at]="Numeric character references must be terminated by a semicolon",fn[wt]="Named character references cannot be empty",fn[Mt]="Numeric character references cannot be empty",fn[Xt]="Named character references must be known",fn[bn]="Numeric character references cannot be disallowed",fn[pn]="Numeric character references cannot be outside the permissible Unicode range";function gn(an,mn){var Ct={},un,on;mn||(mn={});for(on in Xe)un=mn[on],Ct[on]=un==null?Xe[on]:un;return(Ct.position.indent||Ct.position.start)&&(Ct.indent=Ct.position.indent||[],Ct.position=Ct.position.start),Nt(an,Ct)}function Nt(an,mn){var Ct=mn.additional,un=mn.nonTerminated,on=mn.text,Bn=mn.reference,Nn=mn.warning,si=mn.textContext,Pt=mn.referenceContext,qn=mn.warningContext,Ei=mn.position,$e=mn.indent||[],Fe=an.length,Ne=0,Qe=-1,Ke=Ei.column||1,Le=Ei.line||1,At="",Lt=[],tn,$t,Ht,rn,vn,cn,wn,sn,Ft,jn,dn,En,Jt,ui,Gn,mt,On,Cn,jt;for(typeof Ct=="string"&&(Ct=Ct.charCodeAt(0)),mt=mi(),sn=Nn?Hi:Je,Ne--,Fe++;++Ne<Fe;)if(vn===st&&(Ke=$e[Qe]||1),vn=an.charCodeAt(Ne),vn===te){if(wn=an.charCodeAt(Ne+1),wn===vt||wn===st||wn===_t||wn===Ue||wn===te||wn===fe||wn!==wn||Ct&&wn===Ct){At+=ot(vn),Ke++;continue}for(Jt=Ne+1,En=Jt,jt=Jt,wn===pe?(jt=++En,wn=an.charCodeAt(jt),wn===Se||wn===we?(ui=Ze,jt=++En):ui=nt):ui=Re,tn="",dn="",rn="",Gn=ft[ui],jt--;++jt<Fe&&(wn=an.charCodeAt(jt),!!Gn(wn));)rn+=ot(wn),ui===Re&&Ve.call(le,rn)&&(tn=rn,dn=le[rn]);Ht=an.charCodeAt(jt)===ne,Ht&&(jt++,$t=ui===Re?Oe(rn):!1,$t&&(tn=rn,dn=$t)),Cn=1+jt-Jt,!Ht&&!un||(rn?ui===Re?(Ht&&!dn?sn(Xt,1):(tn!==rn&&(jt=En+tn.length,Cn=1+jt-En,Ht=!1),Ht||(Ft=tn?xt:wt,mn.attribute?(wn=an.charCodeAt(jt),wn===se?(sn(Ft,Cn),dn=null):Ge(wn)?dn=null:sn(Ft,Cn)):sn(Ft,Cn))),cn=dn):(Ht||sn(at,Cn),cn=parseInt(rn,rt[ui]),ut(cn)?(sn(pn,Cn),cn=ot(De)):cn in Me?(sn(bn,Cn),cn=Me[cn]):(jn="",it(cn)&&sn(bn,Cn),cn>65535&&(cn-=65536,jn+=ot(cn>>>10|55296),cn=56320|cn&1023),cn=jn+ot(cn))):ui!==Re&&sn(Mt,Cn)),cn?(Oi(),mt=mi(),Ne=jt-1,Ke+=jt-Jt+1,Lt.push(cn),On=mi(),On.offset++,Bn&&Bn.call(Pt,cn,{start:mt,end:On},an.slice(Jt-1,jt)),mt=On):(rn=an.slice(Jt-1,jt),At+=rn,Ke+=rn.length,Ne=jt-1)}else vn===10&&(Le++,Qe++,Ke=0),vn===vn?(At+=ot(vn),Ke++):Oi();return Lt.join("");function mi(){return{line:Le,column:Ke,offset:Ne+(Ei.offset||0)}}function Hi(Mn,lr){var Gi=mi();Gi.column+=lr,Gi.offset+=lr,Nn.call(qn,fn[Mn],Gi,Mn)}function Oi(){At&&(Lt.push(At),on&&on.call(si,At,{start:mt,end:mi()}),At="")}}function ut(an){return an>=55296&&an<=57343||an>1114111}function it(an){return an>=1&&an<=8||an===11||an>=13&&an<=31||an>=127&&an<=159||an>=64976&&an<=65007||(an&65535)===65535||(an&65535)===65534}},68398:function(ze,be,de){var le=typeof window!="undefined"?window:typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope?self:{};var Me=function(Ie){var Pe=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,Ge=0,Oe={},Ve={manual:Ie.Prism&&Ie.Prism.manual,disableWorkerMessageHandler:Ie.Prism&&Ie.Prism.disableWorkerMessageHandler,util:{encode:function se(pe){return pe instanceof ot?new ot(pe.type,se(pe.content),pe.alias):Array.isArray(pe)?pe.map(se):pe.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(se){return Object.prototype.toString.call(se).slice(8,-1)},objId:function(se){return se.__id||Object.defineProperty(se,"__id",{value:++Ge}),se.__id},clone:function se(pe,Se){Se=Se||{};var we,De;switch(Ve.util.type(pe)){case"Object":if(De=Ve.util.objId(pe),Se[De])return Se[De];we={},Se[De]=we;for(var Re in pe)pe.hasOwnProperty(Re)&&(we[Re]=se(pe[Re],Se));return we;case"Array":return De=Ve.util.objId(pe),Se[De]?Se[De]:(we=[],Se[De]=we,pe.forEach(function(Ze,nt){we[nt]=se(Ze,Se)}),we);default:return pe}},getLanguage:function(se){for(;se;){var pe=Pe.exec(se.className);if(pe)return pe[1].toLowerCase();se=se.parentElement}return"none"},setLanguage:function(se,pe){se.className=se.className.replace(RegExp(Pe,"gi"),""),se.classList.add("language-"+pe)},currentScript:function(){if(typeof document=="undefined")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(we){var se=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(we.stack)||[])[1];if(se){var pe=document.getElementsByTagName("script");for(var Se in pe)if(pe[Se].src==se)return pe[Se]}return null}},isActive:function(se,pe,Se){for(var we="no-"+pe;se;){var De=se.classList;if(De.contains(pe))return!0;if(De.contains(we))return!1;se=se.parentElement}return!!Se}},languages:{plain:Oe,plaintext:Oe,text:Oe,txt:Oe,extend:function(se,pe){var Se=Ve.util.clone(Ve.languages[se]);for(var we in pe)Se[we]=pe[we];return Se},insertBefore:function(se,pe,Se,we){we=we||Ve.languages;var De=we[se],Re={};for(var Ze in De)if(De.hasOwnProperty(Ze)){if(Ze==pe)for(var nt in Se)Se.hasOwnProperty(nt)&&(Re[nt]=Se[nt]);Se.hasOwnProperty(Ze)||(Re[Ze]=De[Ze])}var rt=we[se];return we[se]=Re,Ve.languages.DFS(Ve.languages,function(ft,xt){xt===rt&&ft!=se&&(this[ft]=Re)}),Re},DFS:function se(pe,Se,we,De){De=De||{};var Re=Ve.util.objId;for(var Ze in pe)if(pe.hasOwnProperty(Ze)){Se.call(pe,Ze,pe[Ze],we||Ze);var nt=pe[Ze],rt=Ve.util.type(nt);rt==="Object"&&!De[Re(nt)]?(De[Re(nt)]=!0,se(nt,Se,null,De)):rt==="Array"&&!De[Re(nt)]&&(De[Re(nt)]=!0,se(nt,Se,Ze,De))}}},plugins:{},highlightAll:function(se,pe){Ve.highlightAllUnder(document,se,pe)},highlightAllUnder:function(se,pe,Se){var we={callback:Se,container:se,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};Ve.hooks.run("before-highlightall",we),we.elements=Array.prototype.slice.apply(we.container.querySelectorAll(we.selector)),Ve.hooks.run("before-all-elements-highlight",we);for(var De=0,Re;Re=we.elements[De++];)Ve.highlightElement(Re,pe===!0,we.callback)},highlightElement:function(se,pe,Se){var we=Ve.util.getLanguage(se),De=Ve.languages[we];Ve.util.setLanguage(se,we);var Re=se.parentElement;Re&&Re.nodeName.toLowerCase()==="pre"&&Ve.util.setLanguage(Re,we);var Ze=se.textContent,nt={element:se,language:we,grammar:De,code:Ze};function rt(xt){nt.highlightedCode=xt,Ve.hooks.run("before-insert",nt),nt.element.innerHTML=nt.highlightedCode,Ve.hooks.run("after-highlight",nt),Ve.hooks.run("complete",nt),Se&&Se.call(nt.element)}if(Ve.hooks.run("before-sanity-check",nt),Re=nt.element.parentElement,Re&&Re.nodeName.toLowerCase()==="pre"&&!Re.hasAttribute("tabindex")&&Re.setAttribute("tabindex","0"),!nt.code){Ve.hooks.run("complete",nt),Se&&Se.call(nt.element);return}if(Ve.hooks.run("before-highlight",nt),!nt.grammar){rt(Ve.util.encode(nt.code));return}if(pe&&Ie.Worker){var ft=new Worker(Ve.filename);ft.onmessage=function(xt){rt(xt.data)},ft.postMessage(JSON.stringify({language:nt.language,code:nt.code,immediateClose:!0}))}else rt(Ve.highlight(nt.code,nt.grammar,nt.language))},highlight:function(se,pe,Se){var we={code:se,grammar:pe,language:Se};if(Ve.hooks.run("before-tokenize",we),!we.grammar)throw new Error('The language "'+we.language+'" has no grammar.');return we.tokens=Ve.tokenize(we.code,we.grammar),Ve.hooks.run("after-tokenize",we),ot.stringify(Ve.util.encode(we.tokens),we.language)},tokenize:function(se,pe){var Se=pe.rest;if(Se){for(var we in Se)pe[we]=Se[we];delete pe.rest}var De=new vt;return st(De,De.head,se),Xe(se,De,pe,De.head,0),Ue(De)},hooks:{all:{},add:function(se,pe){var Se=Ve.hooks.all;Se[se]=Se[se]||[],Se[se].push(pe)},run:function(se,pe){var Se=Ve.hooks.all[se];if(!(!Se||!Se.length))for(var we=0,De;De=Se[we++];)De(pe)}},Token:ot};Ie.Prism=Ve;function ot(se,pe,Se,we){this.type=se,this.content=pe,this.alias=Se,this.length=(we||"").length|0}ot.stringify=function se(pe,Se){if(typeof pe=="string")return pe;if(Array.isArray(pe)){var we="";return pe.forEach(function(rt){we+=se(rt,Se)}),we}var De={type:pe.type,content:se(pe.content,Se),tag:"span",classes:["token",pe.type],attributes:{},language:Se},Re=pe.alias;Re&&(Array.isArray(Re)?Array.prototype.push.apply(De.classes,Re):De.classes.push(Re)),Ve.hooks.run("wrap",De);var Ze="";for(var nt in De.attributes)Ze+=" "+nt+'="'+(De.attributes[nt]||"").replace(/"/g,"&quot;")+'"';return"<"+De.tag+' class="'+De.classes.join(" ")+'"'+Ze+">"+De.content+"</"+De.tag+">"};function Je(se,pe,Se,we){se.lastIndex=pe;var De=se.exec(Se);if(De&&we&&De[1]){var Re=De[1].length;De.index+=Re,De[0]=De[0].slice(Re)}return De}function Xe(se,pe,Se,we,De,Re){for(var Ze in Se)if(!(!Se.hasOwnProperty(Ze)||!Se[Ze])){var nt=Se[Ze];nt=Array.isArray(nt)?nt:[nt];for(var rt=0;rt<nt.length;++rt){if(Re&&Re.cause==Ze+","+rt)return;var ft=nt[rt],xt=ft.inside,at=!!ft.lookbehind,wt=!!ft.greedy,Mt=ft.alias;if(wt&&!ft.pattern.global){var Xt=ft.pattern.toString().match(/[imsuy]*$/)[0];ft.pattern=RegExp(ft.pattern.source,Xt+"g")}for(var bn=ft.pattern||ft,pn=we.next,fn=De;pn!==pe.tail&&!(Re&&fn>=Re.reach);fn+=pn.value.length,pn=pn.next){var gn=pn.value;if(pe.length>se.length)return;if(!(gn instanceof ot)){var Nt=1,ut;if(wt){if(ut=Je(bn,fn,se,at),!ut||ut.index>=se.length)break;var Ct=ut.index,it=ut.index+ut[0].length,an=fn;for(an+=pn.value.length;Ct>=an;)pn=pn.next,an+=pn.value.length;if(an-=pn.value.length,fn=an,pn.value instanceof ot)continue;for(var mn=pn;mn!==pe.tail&&(an<it||typeof mn.value=="string");mn=mn.next)Nt++,an+=mn.value.length;Nt--,gn=se.slice(fn,an),ut.index-=fn}else if(ut=Je(bn,0,gn,at),!ut)continue;var Ct=ut.index,un=ut[0],on=gn.slice(0,Ct),Bn=gn.slice(Ct+un.length),Nn=fn+gn.length;Re&&Nn>Re.reach&&(Re.reach=Nn);var si=pn.prev;on&&(si=st(pe,si,on),fn+=on.length),_t(pe,si,Nt);var Pt=new ot(Ze,xt?Ve.tokenize(un,xt):un,Mt,un);if(pn=st(pe,si,Pt),Bn&&st(pe,pn,Bn),Nt>1){var qn={cause:Ze+","+rt,reach:Nn};Xe(se,pe,Se,pn.prev,fn,qn),Re&&qn.reach>Re.reach&&(Re.reach=qn.reach)}}}}}}function vt(){var se={value:null,prev:null,next:null},pe={value:null,prev:se,next:null};se.next=pe,this.head=se,this.tail=pe,this.length=0}function st(se,pe,Se){var we=pe.next,De={value:Se,prev:pe,next:we};return pe.next=De,we.prev=De,se.length++,De}function _t(se,pe,Se){for(var we=pe.next,De=0;De<Se&&we!==se.tail;De++)we=we.next;pe.next=we,we.prev=pe,se.length-=De}function Ue(se){for(var pe=[],Se=se.head.next;Se!==se.tail;)pe.push(Se.value),Se=Se.next;return pe}if(!Ie.document)return Ie.addEventListener&&(Ve.disableWorkerMessageHandler||Ie.addEventListener("message",function(se){var pe=JSON.parse(se.data),Se=pe.language,we=pe.code,De=pe.immediateClose;Ie.postMessage(Ve.highlight(we,Ve.languages[Se],Se)),De&&Ie.close()},!1)),Ve;var te=Ve.util.currentScript();te&&(Ve.filename=te.src,te.hasAttribute("data-manual")&&(Ve.manual=!0));function ne(){Ve.manual||Ve.highlightAll()}if(!Ve.manual){var fe=document.readyState;fe==="loading"||fe==="interactive"&&te&&te.defer?document.addEventListener("DOMContentLoaded",ne):window.requestAnimationFrame?window.requestAnimationFrame(ne):window.setTimeout(ne,16)}return Ve}(le);ze.exports&&(ze.exports=Me),typeof de.g!="undefined"&&(de.g.Prism=Me)},88914:function(ze,be,de){"use strict";var le=de(47178),Me=de(19095),Ie=de(1969),Pe="data";ze.exports=ot;var Ge=/^data[-\w.:]+$/i,Oe=/-[a-z]/g,Ve=/[A-Z]/g;function ot(_t,Ue){var te=le(Ue),ne=Ue,fe=Ie;return te in _t.normal?_t.property[_t.normal[te]]:(te.length>4&&te.slice(0,4)===Pe&&Ge.test(Ue)&&(Ue.charAt(4)==="-"?ne=Je(Ue):Ue=Xe(Ue),fe=Me),new fe(ne,Ue))}function Je(_t){var Ue=_t.slice(5).replace(Oe,st);return Pe+Ue.charAt(0).toUpperCase()+Ue.slice(1)}function Xe(_t){var Ue=_t.slice(4);return Oe.test(Ue)?_t:(Ue=Ue.replace(Ve,vt),Ue.charAt(0)!=="-"&&(Ue="-"+Ue),Pe+Ue)}function vt(_t){return"-"+_t.toLowerCase()}function st(_t){return _t.charAt(1).toUpperCase()}},18795:function(ze,be,de){"use strict";var le=de(83576),Me=de(8179),Ie=de(59780),Pe=de(68244),Ge=de(20019),Oe=de(38567);ze.exports=le([Ie,Me,Pe,Ge,Oe])},20019:function(ze,be,de){"use strict";var le=de(70167),Me=de(79318),Ie=le.booleanish,Pe=le.number,Ge=le.spaceSeparated;ze.exports=Me({transform:Oe,properties:{ariaActiveDescendant:null,ariaAtomic:Ie,ariaAutoComplete:null,ariaBusy:Ie,ariaChecked:Ie,ariaColCount:Pe,ariaColIndex:Pe,ariaColSpan:Pe,ariaControls:Ge,ariaCurrent:null,ariaDescribedBy:Ge,ariaDetails:null,ariaDisabled:Ie,ariaDropEffect:Ge,ariaErrorMessage:null,ariaExpanded:Ie,ariaFlowTo:Ge,ariaGrabbed:Ie,ariaHasPopup:null,ariaHidden:Ie,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ge,ariaLevel:Pe,ariaLive:null,ariaModal:Ie,ariaMultiLine:Ie,ariaMultiSelectable:Ie,ariaOrientation:null,ariaOwns:Ge,ariaPlaceholder:null,ariaPosInSet:Pe,ariaPressed:Ie,ariaReadOnly:Ie,ariaRelevant:null,ariaRequired:Ie,ariaRoleDescription:Ge,ariaRowCount:Pe,ariaRowIndex:Pe,ariaRowSpan:Pe,ariaSelected:Ie,ariaSetSize:Pe,ariaSort:null,ariaValueMax:Pe,ariaValueMin:Pe,ariaValueNow:Pe,ariaValueText:null,role:null}});function Oe(Ve,ot){return ot==="role"?ot:"aria-"+ot.slice(4).toLowerCase()}},38567:function(ze,be,de){"use strict";var le=de(70167),Me=de(79318),Ie=de(85804),Pe=le.boolean,Ge=le.overloadedBoolean,Oe=le.booleanish,Ve=le.number,ot=le.spaceSeparated,Je=le.commaSeparated;ze.exports=Me({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Ie,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Je,acceptCharset:ot,accessKey:ot,action:null,allow:null,allowFullScreen:Pe,allowPaymentRequest:Pe,allowUserMedia:Pe,alt:null,as:null,async:Pe,autoCapitalize:null,autoComplete:ot,autoFocus:Pe,autoPlay:Pe,capture:Pe,charSet:null,checked:Pe,cite:null,className:ot,cols:Ve,colSpan:null,content:null,contentEditable:Oe,controls:Pe,controlsList:ot,coords:Ve|Je,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Pe,defer:Pe,dir:null,dirName:null,disabled:Pe,download:Ge,draggable:Oe,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Pe,formTarget:null,headers:ot,height:Ve,hidden:Pe,high:Ve,href:null,hrefLang:null,htmlFor:ot,httpEquiv:ot,id:null,imageSizes:null,imageSrcSet:Je,inputMode:null,integrity:null,is:null,isMap:Pe,itemId:null,itemProp:ot,itemRef:ot,itemScope:Pe,itemType:ot,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Pe,low:Ve,manifest:null,max:null,maxLength:Ve,media:null,method:null,min:null,minLength:Ve,multiple:Pe,muted:Pe,name:null,nonce:null,noModule:Pe,noValidate:Pe,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Pe,optimum:Ve,pattern:null,ping:ot,placeholder:null,playsInline:Pe,poster:null,preload:null,readOnly:Pe,referrerPolicy:null,rel:ot,required:Pe,reversed:Pe,rows:Ve,rowSpan:Ve,sandbox:ot,scope:null,scoped:Pe,seamless:Pe,selected:Pe,shape:null,size:Ve,sizes:null,slot:null,span:Ve,spellCheck:Oe,src:null,srcDoc:null,srcLang:null,srcSet:Je,start:Ve,step:null,style:null,tabIndex:Ve,target:null,title:null,translate:null,type:null,typeMustMatch:Pe,useMap:null,value:Oe,width:Ve,wrap:null,align:null,aLink:null,archive:ot,axis:null,background:null,bgColor:null,border:Ve,borderColor:null,bottomMargin:Ve,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Pe,declare:Pe,event:null,face:null,frame:null,frameBorder:null,hSpace:Ve,leftMargin:Ve,link:null,longDesc:null,lowSrc:null,marginHeight:Ve,marginWidth:Ve,noResize:Pe,noHref:Pe,noShade:Pe,noWrap:Pe,object:null,profile:null,prompt:null,rev:null,rightMargin:Ve,rules:null,scheme:null,scrolling:Oe,standby:null,summary:null,text:null,topMargin:Ve,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ve,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Pe,disableRemotePlayback:Pe,prefix:null,property:null,results:Ve,security:null,unselectable:null}})},85804:function(ze,be,de){"use strict";var le=de(56432);ze.exports=Me;function Me(Ie,Pe){return le(Ie,Pe.toLowerCase())}},56432:function(ze){"use strict";ze.exports=be;function be(de,le){return le in de?de[le]:le}},79318:function(ze,be,de){"use strict";var le=de(47178),Me=de(44347),Ie=de(19095);ze.exports=Pe;function Pe(Ge){var Oe=Ge.space,Ve=Ge.mustUseProperty||[],ot=Ge.attributes||{},Je=Ge.properties,Xe=Ge.transform,vt={},st={},_t,Ue;for(_t in Je)Ue=new Ie(_t,Xe(ot,_t),Je[_t],Oe),Ve.indexOf(_t)!==-1&&(Ue.mustUseProperty=!0),vt[_t]=Ue,st[le(_t)]=_t,st[le(Ue.attribute)]=_t;return new Me(vt,st,Oe)}},19095:function(ze,be,de){"use strict";var le=de(1969),Me=de(70167);ze.exports=Ge,Ge.prototype=new le,Ge.prototype.defined=!0;var Ie=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],Pe=Ie.length;function Ge(Ve,ot,Je,Xe){var vt=-1,st;for(Oe(this,"space",Xe),le.call(this,Ve,ot);++vt<Pe;)st=Ie[vt],Oe(this,st,(Je&Me[st])===Me[st])}function Oe(Ve,ot,Je){Je&&(Ve[ot]=Je)}},1969:function(ze){"use strict";ze.exports=de;var be=de.prototype;be.space=null,be.attribute=null,be.property=null,be.boolean=!1,be.booleanish=!1,be.overloadedBoolean=!1,be.number=!1,be.commaSeparated=!1,be.spaceSeparated=!1,be.commaOrSpaceSeparated=!1,be.mustUseProperty=!1,be.defined=!1;function de(le,Me){this.property=le,this.attribute=Me}},83576:function(ze,be,de){"use strict";var le=de(97270),Me=de(44347);ze.exports=Ie;function Ie(Pe){for(var Ge=Pe.length,Oe=[],Ve=[],ot=-1,Je,Xe;++ot<Ge;)Je=Pe[ot],Oe.push(Je.property),Ve.push(Je.normal),Xe=Je.space;return new Me(le.apply(null,Oe),le.apply(null,Ve),Xe)}},44347:function(ze){"use strict";ze.exports=de;var be=de.prototype;be.space=null,be.normal={},be.property={};function de(le,Me,Ie){this.property=le,this.normal=Me,Ie&&(this.space=Ie)}},70167:function(ze,be){"use strict";var de=0;be.boolean=le(),be.booleanish=le(),be.overloadedBoolean=le(),be.number=le(),be.spaceSeparated=le(),be.commaSeparated=le(),be.commaOrSpaceSeparated=le();function le(){return Math.pow(2,++de)}},8179:function(ze,be,de){"use strict";var le=de(79318);ze.exports=le({space:"xlink",transform:Me,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function Me(Ie,Pe){return"xlink:"+Pe.slice(5).toLowerCase()}},59780:function(ze,be,de){"use strict";var le=de(79318);ze.exports=le({space:"xml",transform:Me,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Me(Ie,Pe){return"xml:"+Pe.slice(3).toLowerCase()}},68244:function(ze,be,de){"use strict";var le=de(79318),Me=de(85804);ze.exports=le({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Me,properties:{xmlns:null,xmlnsXLink:null}})},47178:function(ze){"use strict";ze.exports=be;function be(de){return de.toLowerCase()}},66042:function(ze,be,de){"use strict";de.d(be,{Z:function(){return wt}});var le=de(77321),Me=de(52487),Ie=de(43403),Pe=de(34280),Ge=de(59301),Oe=Ge.createContext(null),Ve=Ge.createContext({}),ot=Oe,Je=de(49618),Xe=de(72308),vt=de(92310),st=de.n(vt),_t=de(77900),Ue=de(10228),te=de(26112),ne=de(74416),fe=de(8654),se=["prefixCls","className","containerRef"],pe=function(Xt){var bn=Xt.prefixCls,pn=Xt.className,fn=Xt.containerRef,gn=(0,ne.Z)(Xt,se),Nt=Ge.useContext(Ve),ut=Nt.panel,it=(0,fe.x1)(ut,fn);return Ge.createElement("div",(0,Xe.Z)({className:st()("".concat(bn,"-content"),pn),role:"dialog",ref:it},(0,te.Z)(Xt,{aria:!0}),{"aria-modal":"true"},gn))},Se=pe,we=de(48736);function De(Mt){return typeof Mt=="string"&&String(Number(Mt))===Mt?((0,we.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Mt)):Mt}function Re(Mt){warning(!("wrapperClassName"in Mt),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Mt.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Ze={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function nt(Mt,Xt){var bn,pn,fn,gn=Mt.prefixCls,Nt=Mt.open,ut=Mt.placement,it=Mt.inline,an=Mt.push,mn=Mt.forceRender,Ct=Mt.autoFocus,un=Mt.keyboard,on=Mt.classNames,Bn=Mt.rootClassName,Nn=Mt.rootStyle,si=Mt.zIndex,Pt=Mt.className,qn=Mt.id,Ei=Mt.style,$e=Mt.motion,Fe=Mt.width,Ne=Mt.height,Qe=Mt.children,Ke=Mt.mask,Le=Mt.maskClosable,At=Mt.maskMotion,Lt=Mt.maskClassName,tn=Mt.maskStyle,$t=Mt.afterOpenChange,Ht=Mt.onClose,rn=Mt.onMouseEnter,vn=Mt.onMouseOver,cn=Mt.onMouseLeave,wn=Mt.onClick,sn=Mt.onKeyDown,Ft=Mt.onKeyUp,jn=Mt.styles,dn=Mt.drawerRender,En=Ge.useRef(),Jt=Ge.useRef(),ui=Ge.useRef();Ge.useImperativeHandle(Xt,function(){return En.current});var Gn=function(Bi){var Ri=Bi.keyCode,Wn=Bi.shiftKey;switch(Ri){case Ue.Z.TAB:{if(Ri===Ue.Z.TAB){if(!Wn&&document.activeElement===ui.current){var ci;(ci=Jt.current)===null||ci===void 0||ci.focus({preventScroll:!0})}else if(Wn&&document.activeElement===Jt.current){var ti;(ti=ui.current)===null||ti===void 0||ti.focus({preventScroll:!0})}}break}case Ue.Z.ESC:{Ht&&un&&(Bi.stopPropagation(),Ht(Bi));break}}};Ge.useEffect(function(){if(Nt&&Ct){var Ci;(Ci=En.current)===null||Ci===void 0||Ci.focus({preventScroll:!0})}},[Nt]);var mt=Ge.useState(!1),On=(0,Me.Z)(mt,2),Cn=On[0],jt=On[1],mi=Ge.useContext(ot),Hi;typeof an=="boolean"?Hi=an?{}:{distance:0}:Hi=an||{};var Oi=(bn=(pn=(fn=Hi)===null||fn===void 0?void 0:fn.distance)!==null&&pn!==void 0?pn:mi==null?void 0:mi.pushDistance)!==null&&bn!==void 0?bn:180,Mn=Ge.useMemo(function(){return{pushDistance:Oi,push:function(){jt(!0)},pull:function(){jt(!1)}}},[Oi]);Ge.useEffect(function(){if(Nt){var Ci;mi==null||(Ci=mi.push)===null||Ci===void 0||Ci.call(mi)}else{var Bi;mi==null||(Bi=mi.pull)===null||Bi===void 0||Bi.call(mi)}},[Nt]),Ge.useEffect(function(){return function(){var Ci;mi==null||(Ci=mi.pull)===null||Ci===void 0||Ci.call(mi)}},[]);var lr=Ke&&Ge.createElement(_t.default,(0,Xe.Z)({key:"mask"},At,{visible:Nt}),function(Ci,Bi){var Ri=Ci.className,Wn=Ci.style;return Ge.createElement("div",{className:st()("".concat(gn,"-mask"),Ri,on==null?void 0:on.mask,Lt),style:(0,le.Z)((0,le.Z)((0,le.Z)({},Wn),tn),jn==null?void 0:jn.mask),onClick:Le&&Nt?Ht:void 0,ref:Bi})}),Gi=typeof $e=="function"?$e(ut):$e,fi={};if(Cn&&Oi)switch(ut){case"top":fi.transform="translateY(".concat(Oi,"px)");break;case"bottom":fi.transform="translateY(".concat(-Oi,"px)");break;case"left":fi.transform="translateX(".concat(Oi,"px)");break;default:fi.transform="translateX(".concat(-Oi,"px)");break}ut==="left"||ut==="right"?fi.width=De(Fe):fi.height=De(Ne);var wi={onMouseEnter:rn,onMouseOver:vn,onMouseLeave:cn,onClick:wn,onKeyDown:sn,onKeyUp:Ft},Li=Ge.createElement(_t.default,(0,Xe.Z)({key:"panel"},Gi,{visible:Nt,forceRender:mn,onVisibleChanged:function(Bi){$t==null||$t(Bi)},removeOnLeave:!1,leavedClassName:"".concat(gn,"-content-wrapper-hidden")}),function(Ci,Bi){var Ri=Ci.className,Wn=Ci.style,ci=Ge.createElement(Se,(0,Xe.Z)({id:qn,containerRef:Bi,prefixCls:gn,className:st()(Pt,on==null?void 0:on.content),style:(0,le.Z)((0,le.Z)({},Ei),jn==null?void 0:jn.content)},(0,te.Z)(Mt,{aria:!0}),wi),Qe);return Ge.createElement("div",(0,Xe.Z)({className:st()("".concat(gn,"-content-wrapper"),on==null?void 0:on.wrapper,Ri),style:(0,le.Z)((0,le.Z)((0,le.Z)({},fi),Wn),jn==null?void 0:jn.wrapper)},(0,te.Z)(Mt,{data:!0})),dn?dn(ci):ci)}),Ce=(0,le.Z)({},Nn);return si&&(Ce.zIndex=si),Ge.createElement(ot.Provider,{value:Mn},Ge.createElement("div",{className:st()(gn,"".concat(gn,"-").concat(ut),Bn,(0,Je.Z)((0,Je.Z)({},"".concat(gn,"-open"),Nt),"".concat(gn,"-inline"),it)),style:Ce,tabIndex:-1,ref:En,onKeyDown:Gn},lr,Ge.createElement("div",{tabIndex:0,ref:Jt,style:Ze,"aria-hidden":"true","data-sentinel":"start"}),Li,Ge.createElement("div",{tabIndex:0,ref:ui,style:Ze,"aria-hidden":"true","data-sentinel":"end"})))}var rt=Ge.forwardRef(nt),ft=rt,xt=function(Xt){var bn=Xt.open,pn=bn===void 0?!1:bn,fn=Xt.prefixCls,gn=fn===void 0?"rc-drawer":fn,Nt=Xt.placement,ut=Nt===void 0?"right":Nt,it=Xt.autoFocus,an=it===void 0?!0:it,mn=Xt.keyboard,Ct=mn===void 0?!0:mn,un=Xt.width,on=un===void 0?378:un,Bn=Xt.mask,Nn=Bn===void 0?!0:Bn,si=Xt.maskClosable,Pt=si===void 0?!0:si,qn=Xt.getContainer,Ei=Xt.forceRender,$e=Xt.afterOpenChange,Fe=Xt.destroyOnClose,Ne=Xt.onMouseEnter,Qe=Xt.onMouseOver,Ke=Xt.onMouseLeave,Le=Xt.onClick,At=Xt.onKeyDown,Lt=Xt.onKeyUp,tn=Xt.panelRef,$t=Ge.useState(!1),Ht=(0,Me.Z)($t,2),rn=Ht[0],vn=Ht[1],cn=Ge.useState(!1),wn=(0,Me.Z)(cn,2),sn=wn[0],Ft=wn[1];(0,Pe.Z)(function(){Ft(!0)},[]);var jn=sn?pn:!1,dn=Ge.useRef(),En=Ge.useRef();(0,Pe.Z)(function(){jn&&(En.current=document.activeElement)},[jn]);var Jt=function(Cn){var jt;if(vn(Cn),$e==null||$e(Cn),!Cn&&En.current&&!((jt=dn.current)!==null&&jt!==void 0&&jt.contains(En.current))){var mi;(mi=En.current)===null||mi===void 0||mi.focus({preventScroll:!0})}},ui=Ge.useMemo(function(){return{panel:tn}},[tn]);if(!Ei&&!rn&&!jn&&Fe)return null;var Gn={onMouseEnter:Ne,onMouseOver:Qe,onMouseLeave:Ke,onClick:Le,onKeyDown:At,onKeyUp:Lt},mt=(0,le.Z)((0,le.Z)({},Xt),{},{open:jn,prefixCls:gn,placement:ut,autoFocus:an,keyboard:Ct,width:on,mask:Nn,maskClosable:Pt,inline:qn===!1,afterOpenChange:Jt,ref:dn},Gn);return Ge.createElement(Ve.Provider,{value:ui},Ge.createElement(Ie.Z,{open:jn||Ei||rn,autoDestroy:!1,getContainer:qn,autoLock:Nn&&(jn||rn)},Ge.createElement(ft,mt)))},at=xt,wt=at},91574:function(ze,be,de){"use strict";de.d(be,{Z:function(){return wn}});var le=de(72308),Me=de(77321),Ie=de(49618),Pe=de(52487),Ge=de(62853),Oe=de(74416),Ve=de(92310),ot=de.n(Ve),Je=/margin|padding|width|height|max|min|offset/,Xe={left:!0,top:!0},vt={cssFloat:1,styleFloat:1,float:1};function st(sn){return sn.nodeType===1?sn.ownerDocument.defaultView.getComputedStyle(sn,null):{}}function _t(sn,Ft,jn){if(Ft=Ft.toLowerCase(),jn==="auto"){if(Ft==="height")return sn.offsetHeight;if(Ft==="width")return sn.offsetWidth}return Ft in Xe||(Xe[Ft]=Je.test(Ft)),Xe[Ft]?parseFloat(jn)||0:jn}function Ue(sn,Ft){var jn=arguments.length,dn=st(sn);return Ft=vt[Ft]?"cssFloat"in sn.style?"cssFloat":"styleFloat":Ft,jn===1?dn:_t(sn,Ft,dn[Ft]||sn.style[Ft])}function te(sn,Ft,jn){var dn=arguments.length;if(Ft=vt[Ft]?"cssFloat"in sn.style?"cssFloat":"styleFloat":Ft,dn===3)return typeof jn=="number"&&Je.test(Ft)&&(jn="".concat(jn,"px")),sn.style[Ft]=jn,jn;for(var En in Ft)Ft.hasOwnProperty(En)&&te(sn,En,Ft[En]);return st(sn)}function ne(sn){return sn===document.body?document.documentElement.clientWidth:sn.offsetWidth}function fe(sn){return sn===document.body?window.innerHeight||document.documentElement.clientHeight:sn.offsetHeight}function se(){var sn=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),Ft=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:sn,height:Ft}}function pe(){var sn=document.documentElement.clientWidth,Ft=window.innerHeight||document.documentElement.clientHeight;return{width:sn,height:Ft}}function Se(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function we(sn){var Ft=sn.getBoundingClientRect(),jn=document.documentElement;return{left:Ft.left+(window.pageXOffset||jn.scrollLeft)-(jn.clientLeft||document.body.clientLeft||0),top:Ft.top+(window.pageYOffset||jn.scrollTop)-(jn.clientTop||document.body.clientTop||0)}}var De=de(18929),Re=de(59301),Ze=de(55311),nt=de(8224),rt=de(10228),ft=de(43403),xt=de(77900),at=Re.createContext(null),wt=function(Ft){var jn=Ft.visible,dn=Ft.maskTransitionName,En=Ft.getContainer,Jt=Ft.prefixCls,ui=Ft.rootClassName,Gn=Ft.icons,mt=Ft.countRender,On=Ft.showSwitch,Cn=Ft.showProgress,jt=Ft.current,mi=Ft.transform,Hi=Ft.count,Oi=Ft.scale,Mn=Ft.minScale,lr=Ft.maxScale,Gi=Ft.closeIcon,fi=Ft.onActive,wi=Ft.onClose,Li=Ft.onZoomIn,Ce=Ft.onZoomOut,Ci=Ft.onRotateRight,Bi=Ft.onRotateLeft,Ri=Ft.onFlipX,Wn=Ft.onFlipY,ci=Ft.onReset,ti=Ft.toolbarRender,ki=Ft.zIndex,ni=Ft.image,Vt=(0,Re.useContext)(at),Ut=Gn.rotateLeft,It=Gn.rotateRight,$n=Gn.zoomIn,Yn=Gn.zoomOut,yi=Gn.close,Rn=Gn.left,oi=Gn.right,qt=Gn.flipX,Gt=Gn.flipY,li="".concat(Jt,"-operations-operation");Re.useEffect(function(){var Pn=function(Qi){Qi.keyCode===rt.Z.ESC&&wi()};return jn&&window.addEventListener("keydown",Pn),function(){window.removeEventListener("keydown",Pn)}},[jn]);var pt=function(Yi,Qi){Yi.preventDefault(),Yi.stopPropagation(),fi(Qi)},yn=Re.useCallback(function(Pn){var Yi=Pn.type,Qi=Pn.disabled,er=Pn.onClick,Tn=Pn.icon;return Re.createElement("div",{key:Yi,className:ot()(li,"".concat(Jt,"-operations-operation-").concat(Yi),(0,Ie.Z)({},"".concat(Jt,"-operations-operation-disabled"),!!Qi)),onClick:er},Tn)},[li,Jt]),ii=On?yn({icon:Rn,onClick:function(Yi){return pt(Yi,-1)},type:"prev",disabled:jt===0}):void 0,Ti=On?yn({icon:oi,onClick:function(Yi){return pt(Yi,1)},type:"next",disabled:jt===Hi-1}):void 0,zt=yn({icon:Gt,onClick:Wn,type:"flipY"}),xn=yn({icon:qt,onClick:Ri,type:"flipX"}),vi=yn({icon:Ut,onClick:Bi,type:"rotateLeft"}),nn=yn({icon:It,onClick:Ci,type:"rotateRight"}),_e=yn({icon:Yn,onClick:Ce,type:"zoomOut",disabled:Oi<=Mn}),Ni=yn({icon:$n,onClick:Li,type:"zoomIn",disabled:Oi===lr}),hi=Re.createElement("div",{className:"".concat(Jt,"-operations")},zt,xn,vi,nn,_e,Ni);return Re.createElement(xt.default,{visible:jn,motionName:dn},function(Pn){var Yi=Pn.className,Qi=Pn.style;return Re.createElement(ft.Z,{open:!0,getContainer:En!=null?En:document.body},Re.createElement("div",{className:ot()("".concat(Jt,"-operations-wrapper"),Yi,ui),style:(0,Me.Z)((0,Me.Z)({},Qi),{},{zIndex:ki})},Gi===null?null:Re.createElement("button",{className:"".concat(Jt,"-close"),onClick:wi},Gi||yi),On&&Re.createElement(Re.Fragment,null,Re.createElement("div",{className:ot()("".concat(Jt,"-switch-left"),(0,Ie.Z)({},"".concat(Jt,"-switch-left-disabled"),jt===0)),onClick:function(Tn){return pt(Tn,-1)}},Rn),Re.createElement("div",{className:ot()("".concat(Jt,"-switch-right"),(0,Ie.Z)({},"".concat(Jt,"-switch-right-disabled"),jt===Hi-1)),onClick:function(Tn){return pt(Tn,1)}},oi)),Re.createElement("div",{className:"".concat(Jt,"-footer")},Cn&&Re.createElement("div",{className:"".concat(Jt,"-progress")},mt?mt(jt+1,Hi):"".concat(jt+1," / ").concat(Hi)),ti?ti(hi,(0,Me.Z)((0,Me.Z)({icons:{prevIcon:ii,nextIcon:Ti,flipYIcon:zt,flipXIcon:xn,rotateLeftIcon:vi,rotateRightIcon:nn,zoomOutIcon:_e,zoomInIcon:Ni},actions:{onActive:fi,onFlipY:Wn,onFlipX:Ri,onRotateLeft:Bi,onRotateRight:Ci,onZoomOut:Ce,onZoomIn:Li,onReset:ci,onClose:wi},transform:mi},Vt?{current:jt,total:Hi}:{}),{},{image:ni})):hi)))})},Mt=wt,Xt=de(13697),bn=de(16089),pn={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function fn(sn,Ft,jn,dn){var En=(0,Re.useRef)(null),Jt=(0,Re.useRef)([]),ui=(0,Re.useState)(pn),Gn=(0,Pe.Z)(ui,2),mt=Gn[0],On=Gn[1],Cn=function(Oi){On(pn),(0,Xt.Z)(pn,mt)||dn==null||dn({transform:pn,action:Oi})},jt=function(Oi,Mn){En.current===null&&(Jt.current=[],En.current=(0,bn.Z)(function(){On(function(lr){var Gi=lr;return Jt.current.forEach(function(fi){Gi=(0,Me.Z)((0,Me.Z)({},Gi),fi)}),En.current=null,dn==null||dn({transform:Gi,action:Mn}),Gi})})),Jt.current.push((0,Me.Z)((0,Me.Z)({},mt),Oi))},mi=function(Oi,Mn,lr,Gi,fi){var wi=sn.current,Li=wi.width,Ce=wi.height,Ci=wi.offsetWidth,Bi=wi.offsetHeight,Ri=wi.offsetLeft,Wn=wi.offsetTop,ci=Oi,ti=mt.scale*Oi;ti>jn?(ti=jn,ci=jn/mt.scale):ti<Ft&&(ti=fi?ti:Ft,ci=ti/mt.scale);var ki=lr!=null?lr:innerWidth/2,ni=Gi!=null?Gi:innerHeight/2,Vt=ci-1,Ut=Vt*Li*.5,It=Vt*Ce*.5,$n=Vt*(ki-mt.x-Ri),Yn=Vt*(ni-mt.y-Wn),yi=mt.x-($n-Ut),Rn=mt.y-(Yn-It);if(Oi<1&&ti===1){var oi=Ci*ti,qt=Bi*ti,Gt=pe(),li=Gt.width,pt=Gt.height;oi<=li&&qt<=pt&&(yi=0,Rn=0)}jt({x:yi,y:Rn,scale:ti},Mn)};return{transform:mt,resetTransform:Cn,updateTransform:jt,dispatchZoomChange:mi}}var gn=de(48736);function Nt(sn,Ft,jn,dn){var En=Ft+jn,Jt=(jn-dn)/2;if(jn>dn){if(Ft>0)return(0,Ie.Z)({},sn,Jt);if(Ft<0&&En<dn)return(0,Ie.Z)({},sn,-Jt)}else if(Ft<0||En>dn)return(0,Ie.Z)({},sn,Ft<0?Jt:-Jt);return{}}function ut(sn,Ft,jn,dn){var En=pe(),Jt=En.width,ui=En.height,Gn=null;return sn<=Jt&&Ft<=ui?Gn={x:0,y:0}:(sn>Jt||Ft>ui)&&(Gn=(0,Me.Z)((0,Me.Z)({},Nt("x",jn,sn,Jt)),Nt("y",dn,Ft,ui))),Gn}var it=1,an=1;function mn(sn,Ft,jn,dn,En,Jt,ui){var Gn=En.rotate,mt=En.scale,On=En.x,Cn=En.y,jt=(0,Re.useState)(!1),mi=(0,Pe.Z)(jt,2),Hi=mi[0],Oi=mi[1],Mn=(0,Re.useRef)({diffX:0,diffY:0,transformX:0,transformY:0}),lr=function(Ce){!Ft||Ce.button!==0||(Ce.preventDefault(),Ce.stopPropagation(),Mn.current={diffX:Ce.pageX-On,diffY:Ce.pageY-Cn,transformX:On,transformY:Cn},Oi(!0))},Gi=function(Ce){jn&&Hi&&Jt({x:Ce.pageX-Mn.current.diffX,y:Ce.pageY-Mn.current.diffY},"move")},fi=function(){if(jn&&Hi){Oi(!1);var Ce=Mn.current,Ci=Ce.transformX,Bi=Ce.transformY,Ri=On!==Ci&&Cn!==Bi;if(!Ri)return;var Wn=sn.current.offsetWidth*mt,ci=sn.current.offsetHeight*mt,ti=sn.current.getBoundingClientRect(),ki=ti.left,ni=ti.top,Vt=Gn%180!==0,Ut=ut(Vt?ci:Wn,Vt?Wn:ci,ki,ni);Ut&&Jt((0,Me.Z)({},Ut),"dragRebound")}},wi=function(Ce){if(!(!jn||Ce.deltaY==0)){var Ci=Math.abs(Ce.deltaY/100),Bi=Math.min(Ci,an),Ri=it+Bi*dn;Ce.deltaY>0&&(Ri=it/Ri),ui(Ri,"wheel",Ce.clientX,Ce.clientY)}};return(0,Re.useEffect)(function(){var Li,Ce,Ci,Bi;if(Ft){Ci=(0,nt.Z)(window,"mouseup",fi,!1),Bi=(0,nt.Z)(window,"mousemove",Gi,!1);try{window.top!==window.self&&(Li=(0,nt.Z)(window.top,"mouseup",fi,!1),Ce=(0,nt.Z)(window.top,"mousemove",Gi,!1))}catch(Ri){(0,gn.Kp)(!1,"[rc-image] ".concat(Ri))}}return function(){var Ri,Wn,ci,ti;(Ri=Ci)===null||Ri===void 0||Ri.remove(),(Wn=Bi)===null||Wn===void 0||Wn.remove(),(ci=Li)===null||ci===void 0||ci.remove(),(ti=Ce)===null||ti===void 0||ti.remove()}},[jn,Hi,On,Cn,Gn,Ft]),{isMoving:Hi,onMouseDown:lr,onMouseMove:Gi,onMouseUp:fi,onWheel:wi}}function Ct(sn){return new Promise(function(Ft){if(!sn){Ft(!1);return}var jn=document.createElement("img");jn.onerror=function(){return Ft(!1)},jn.onload=function(){return Ft(!0)},jn.src=sn})}function un(sn){var Ft=sn.src,jn=sn.isCustomPlaceholder,dn=sn.fallback,En=(0,Re.useState)(jn?"loading":"normal"),Jt=(0,Pe.Z)(En,2),ui=Jt[0],Gn=Jt[1],mt=(0,Re.useRef)(!1),On=ui==="error";(0,Re.useEffect)(function(){var Hi=!0;return Ct(Ft).then(function(Oi){!Oi&&Hi&&Gn("error")}),function(){Hi=!1}},[Ft]),(0,Re.useEffect)(function(){jn&&!mt.current?Gn("loading"):On&&Gn("normal")},[Ft]);var Cn=function(){Gn("normal")},jt=function(Oi){mt.current=!1,ui==="loading"&&Oi!==null&&Oi!==void 0&&Oi.complete&&(Oi.naturalWidth||Oi.naturalHeight)&&(mt.current=!0,Cn())},mi=On&&dn?{src:dn}:{onLoad:Cn,src:Ft};return[jt,mi,ui]}function on(sn,Ft){var jn=sn.x-Ft.x,dn=sn.y-Ft.y;return Math.hypot(jn,dn)}function Bn(sn,Ft,jn,dn){var En=on(sn,jn),Jt=on(Ft,dn);if(En===0&&Jt===0)return[sn.x,sn.y];var ui=En/(En+Jt),Gn=sn.x+ui*(Ft.x-sn.x),mt=sn.y+ui*(Ft.y-sn.y);return[Gn,mt]}function Nn(sn,Ft,jn,dn,En,Jt,ui){var Gn=En.rotate,mt=En.scale,On=En.x,Cn=En.y,jt=(0,Re.useState)(!1),mi=(0,Pe.Z)(jt,2),Hi=mi[0],Oi=mi[1],Mn=(0,Re.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),lr=function(Ce){Mn.current=(0,Me.Z)((0,Me.Z)({},Mn.current),Ce)},Gi=function(Ce){if(Ft){Ce.stopPropagation(),Oi(!0);var Ci=Ce.touches,Bi=Ci===void 0?[]:Ci;Bi.length>1?lr({point1:{x:Bi[0].clientX,y:Bi[0].clientY},point2:{x:Bi[1].clientX,y:Bi[1].clientY},eventType:"touchZoom"}):lr({point1:{x:Bi[0].clientX-On,y:Bi[0].clientY-Cn},eventType:"move"})}},fi=function(Ce){var Ci=Ce.touches,Bi=Ci===void 0?[]:Ci,Ri=Mn.current,Wn=Ri.point1,ci=Ri.point2,ti=Ri.eventType;if(Bi.length>1&&ti==="touchZoom"){var ki={x:Bi[0].clientX,y:Bi[0].clientY},ni={x:Bi[1].clientX,y:Bi[1].clientY},Vt=Bn(Wn,ci,ki,ni),Ut=(0,Pe.Z)(Vt,2),It=Ut[0],$n=Ut[1],Yn=on(ki,ni)/on(Wn,ci);ui(Yn,"touchZoom",It,$n,!0),lr({point1:ki,point2:ni,eventType:"touchZoom"})}else ti==="move"&&(Jt({x:Bi[0].clientX-Wn.x,y:Bi[0].clientY-Wn.y},"move"),lr({eventType:"move"}))},wi=function(){if(jn){if(Hi&&Oi(!1),lr({eventType:"none"}),dn>mt)return Jt({x:0,y:0,scale:dn},"touchZoom");var Ce=sn.current.offsetWidth*mt,Ci=sn.current.offsetHeight*mt,Bi=sn.current.getBoundingClientRect(),Ri=Bi.left,Wn=Bi.top,ci=Gn%180!==0,ti=ut(ci?Ci:Ce,ci?Ce:Ci,Ri,Wn);ti&&Jt((0,Me.Z)({},ti),"dragRebound")}};return(0,Re.useEffect)(function(){var Li;return jn&&Ft&&(Li=(0,nt.Z)(window,"touchmove",function(Ce){return Ce.preventDefault()},{passive:!1})),function(){var Ce;(Ce=Li)===null||Ce===void 0||Ce.remove()}},[jn,Ft]),{isTouching:Hi,onTouchStart:Gi,onTouchMove:fi,onTouchEnd:wi}}var si=["fallback","src","imgRef"],Pt=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],qn=function(Ft){var jn=Ft.fallback,dn=Ft.src,En=Ft.imgRef,Jt=(0,Oe.Z)(Ft,si),ui=un({src:dn,fallback:jn}),Gn=(0,Pe.Z)(ui,2),mt=Gn[0],On=Gn[1];return Re.createElement("img",(0,le.Z)({ref:function(jt){En.current=jt,mt(jt)}},Jt,On))},Ei=function(Ft){var jn=Ft.prefixCls,dn=Ft.src,En=Ft.alt,Jt=Ft.imageInfo,ui=Ft.fallback,Gn=Ft.movable,mt=Gn===void 0?!0:Gn,On=Ft.onClose,Cn=Ft.visible,jt=Ft.icons,mi=jt===void 0?{}:jt,Hi=Ft.rootClassName,Oi=Ft.closeIcon,Mn=Ft.getContainer,lr=Ft.current,Gi=lr===void 0?0:lr,fi=Ft.count,wi=fi===void 0?1:fi,Li=Ft.countRender,Ce=Ft.scaleStep,Ci=Ce===void 0?.5:Ce,Bi=Ft.minScale,Ri=Bi===void 0?1:Bi,Wn=Ft.maxScale,ci=Wn===void 0?50:Wn,ti=Ft.transitionName,ki=ti===void 0?"zoom":ti,ni=Ft.maskTransitionName,Vt=ni===void 0?"fade":ni,Ut=Ft.imageRender,It=Ft.imgCommonProps,$n=Ft.toolbarRender,Yn=Ft.onTransform,yi=Ft.onChange,Rn=(0,Oe.Z)(Ft,Pt),oi=(0,Re.useRef)(),qt=(0,Re.useContext)(at),Gt=qt&&wi>1,li=qt&&wi>=1,pt=(0,Re.useState)(!0),yn=(0,Pe.Z)(pt,2),ii=yn[0],Ti=yn[1],zt=fn(oi,Ri,ci,Yn),xn=zt.transform,vi=zt.resetTransform,nn=zt.updateTransform,_e=zt.dispatchZoomChange,Ni=mn(oi,mt,Cn,Ci,xn,nn,_e),hi=Ni.isMoving,Pn=Ni.onMouseDown,Yi=Ni.onWheel,Qi=Nn(oi,mt,Cn,Ri,xn,nn,_e),er=Qi.isTouching,Tn=Qi.onTouchStart,Zt=Qi.onTouchMove,$i=Qi.onTouchEnd,Vr=xn.rotate,en=xn.scale,gi=ot()((0,Ie.Z)({},"".concat(jn,"-moving"),hi));(0,Re.useEffect)(function(){ii||Ti(!0)},[ii]);var Mi=function(){vi("close")},ji=function(){_e(it+Ci,"zoomIn")},Fi=function(){_e(it/(it+Ci),"zoomOut")},Zi=function(){nn({rotate:Vr+90},"rotateRight")},Sr=function(){nn({rotate:Vr-90},"rotateLeft")},gr=function(){nn({flipX:!xn.flipX},"flipX")},mr=function(){nn({flipY:!xn.flipY},"flipY")},br=function(){vi("reset")},Fn=function(mo){var ao=Gi+mo;!Number.isInteger(ao)||ao<0||ao>wi-1||(Ti(!1),vi(mo<0?"prev":"next"),yi==null||yi(ao,Gi))},dr=function(mo){!Cn||!Gt||(mo.keyCode===rt.Z.LEFT?Fn(-1):mo.keyCode===rt.Z.RIGHT&&Fn(1))},In=function(mo){Cn&&(en!==1?nn({x:0,y:0,scale:1},"doubleClick"):_e(it+Ci,"doubleClick",mo.clientX,mo.clientY))};(0,Re.useEffect)(function(){var Tr=(0,nt.Z)(window,"keydown",dr,!1);return function(){Tr.remove()}},[Cn,Gt,Gi]);var wr=Re.createElement(qn,(0,le.Z)({},It,{width:Ft.width,height:Ft.height,imgRef:oi,className:"".concat(jn,"-img"),alt:En,style:{transform:"translate3d(".concat(xn.x,"px, ").concat(xn.y,"px, 0) scale3d(").concat(xn.flipX?"-":"").concat(en,", ").concat(xn.flipY?"-":"").concat(en,", 1) rotate(").concat(Vr,"deg)"),transitionDuration:(!ii||er)&&"0s"},fallback:ui,src:dn,onWheel:Yi,onMouseDown:Pn,onDoubleClick:In,onTouchStart:Tn,onTouchMove:Zt,onTouchEnd:$i,onTouchCancel:$i})),Cr=(0,Me.Z)({url:dn,alt:En},Jt);return Re.createElement(Re.Fragment,null,Re.createElement(Ze.Z,(0,le.Z)({transitionName:ki,maskTransitionName:Vt,closable:!1,keyboard:!0,prefixCls:jn,onClose:On,visible:Cn,classNames:{wrapper:gi},rootClassName:Hi,getContainer:Mn},Rn,{afterClose:Mi}),Re.createElement("div",{className:"".concat(jn,"-img-wrapper")},Ut?Ut(wr,(0,Me.Z)({transform:xn,image:Cr},qt?{current:Gi}:{})):wr)),Re.createElement(Mt,{visible:Cn,transform:xn,maskTransitionName:Vt,closeIcon:Oi,getContainer:Mn,prefixCls:jn,rootClassName:Hi,icons:mi,countRender:Li,showSwitch:Gt,showProgress:li,current:Gi,count:wi,scale:en,minScale:Ri,maxScale:ci,toolbarRender:$n,onActive:Fn,onZoomIn:ji,onZoomOut:Fi,onRotateRight:Zi,onRotateLeft:Sr,onFlipX:gr,onFlipY:mr,onClose:On,onReset:br,zIndex:Rn.zIndex!==void 0?Rn.zIndex+1:void 0,image:Cr}))},$e=Ei,Fe=de(80702),Ne=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function Qe(sn){var Ft=Re.useState({}),jn=(0,Pe.Z)(Ft,2),dn=jn[0],En=jn[1],Jt=Re.useCallback(function(Gn,mt){return En(function(On){return(0,Me.Z)((0,Me.Z)({},On),{},(0,Ie.Z)({},Gn,mt))}),function(){En(function(On){var Cn=(0,Me.Z)({},On);return delete Cn[Gn],Cn})}},[]),ui=Re.useMemo(function(){return sn?sn.map(function(Gn){if(typeof Gn=="string")return{data:{src:Gn}};var mt={};return Object.keys(Gn).forEach(function(On){["src"].concat((0,Fe.Z)(Ne)).includes(On)&&(mt[On]=Gn[On])}),{data:mt}}):Object.keys(dn).reduce(function(Gn,mt){var On=dn[mt],Cn=On.canPreview,jt=On.data;return Cn&&Gn.push({data:jt,id:mt}),Gn},[])},[sn,dn]);return[ui,Jt,!!sn]}var Ke=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],Le=["src"],At=function(Ft){var jn,dn=Ft.previewPrefixCls,En=dn===void 0?"rc-image-preview":dn,Jt=Ft.children,ui=Ft.icons,Gn=ui===void 0?{}:ui,mt=Ft.items,On=Ft.preview,Cn=Ft.fallback,jt=(0,Ge.Z)(On)==="object"?On:{},mi=jt.visible,Hi=jt.onVisibleChange,Oi=jt.getContainer,Mn=jt.current,lr=jt.movable,Gi=jt.minScale,fi=jt.maxScale,wi=jt.countRender,Li=jt.closeIcon,Ce=jt.onChange,Ci=jt.onTransform,Bi=jt.toolbarRender,Ri=jt.imageRender,Wn=(0,Oe.Z)(jt,Ke),ci=Qe(mt),ti=(0,Pe.Z)(ci,3),ki=ti[0],ni=ti[1],Vt=ti[2],Ut=(0,De.Z)(0,{value:Mn}),It=(0,Pe.Z)(Ut,2),$n=It[0],Yn=It[1],yi=(0,Re.useState)(!1),Rn=(0,Pe.Z)(yi,2),oi=Rn[0],qt=Rn[1],Gt=((jn=ki[$n])===null||jn===void 0?void 0:jn.data)||{},li=Gt.src,pt=(0,Oe.Z)(Gt,Le),yn=(0,De.Z)(!!mi,{value:mi,onChange:function(er,Tn){Hi==null||Hi(er,Tn,$n)}}),ii=(0,Pe.Z)(yn,2),Ti=ii[0],zt=ii[1],xn=(0,Re.useState)(null),vi=(0,Pe.Z)(xn,2),nn=vi[0],_e=vi[1],Ni=Re.useCallback(function(Qi,er,Tn,Zt){var $i=Vt?ki.findIndex(function(Vr){return Vr.data.src===er}):ki.findIndex(function(Vr){return Vr.id===Qi});Yn($i<0?0:$i),zt(!0),_e({x:Tn,y:Zt}),qt(!0)},[ki,Vt]);Re.useEffect(function(){Ti?oi||Yn(0):qt(!1)},[Ti]);var hi=function(er,Tn){Yn(er),Ce==null||Ce(er,Tn)},Pn=function(){zt(!1),_e(null)},Yi=Re.useMemo(function(){return{register:ni,onPreview:Ni}},[ni,Ni]);return Re.createElement(at.Provider,{value:Yi},Jt,Re.createElement($e,(0,le.Z)({"aria-hidden":!Ti,movable:lr,visible:Ti,prefixCls:En,closeIcon:Li,onClose:Pn,mousePosition:nn,imgCommonProps:pt,src:li,fallback:Cn,icons:Gn,minScale:Gi,maxScale:fi,getContainer:Oi,current:$n,count:ki.length,countRender:wi,onTransform:Ci,toolbarRender:Bi,imageRender:Ri,onChange:hi},Wn)))},Lt=At,tn=0;function $t(sn,Ft){var jn=Re.useState(function(){return tn+=1,String(tn)}),dn=(0,Pe.Z)(jn,1),En=dn[0],Jt=Re.useContext(at),ui={data:Ft,canPreview:sn};return Re.useEffect(function(){if(Jt)return Jt.register(En,ui)},[]),Re.useEffect(function(){Jt&&Jt.register(En,ui)},[sn,Ft]),En}var Ht=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],rn=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],vn=function(Ft){var jn=Ft.src,dn=Ft.alt,En=Ft.onPreviewClose,Jt=Ft.prefixCls,ui=Jt===void 0?"rc-image":Jt,Gn=Ft.previewPrefixCls,mt=Gn===void 0?"".concat(ui,"-preview"):Gn,On=Ft.placeholder,Cn=Ft.fallback,jt=Ft.width,mi=Ft.height,Hi=Ft.style,Oi=Ft.preview,Mn=Oi===void 0?!0:Oi,lr=Ft.className,Gi=Ft.onClick,fi=Ft.onError,wi=Ft.wrapperClassName,Li=Ft.wrapperStyle,Ce=Ft.rootClassName,Ci=(0,Oe.Z)(Ft,Ht),Bi=On&&On!==!0,Ri=(0,Ge.Z)(Mn)==="object"?Mn:{},Wn=Ri.src,ci=Ri.visible,ti=ci===void 0?void 0:ci,ki=Ri.onVisibleChange,ni=ki===void 0?En:ki,Vt=Ri.getContainer,Ut=Vt===void 0?void 0:Vt,It=Ri.mask,$n=Ri.maskClassName,Yn=Ri.movable,yi=Ri.icons,Rn=Ri.scaleStep,oi=Ri.minScale,qt=Ri.maxScale,Gt=Ri.imageRender,li=Ri.toolbarRender,pt=(0,Oe.Z)(Ri,rn),yn=Wn!=null?Wn:jn,ii=(0,De.Z)(!!ti,{value:ti,onChange:ni}),Ti=(0,Pe.Z)(ii,2),zt=Ti[0],xn=Ti[1],vi=un({src:jn,isCustomPlaceholder:Bi,fallback:Cn}),nn=(0,Pe.Z)(vi,3),_e=nn[0],Ni=nn[1],hi=nn[2],Pn=(0,Re.useState)(null),Yi=(0,Pe.Z)(Pn,2),Qi=Yi[0],er=Yi[1],Tn=(0,Re.useContext)(at),Zt=!!Mn,$i=function(){xn(!1),er(null)},Vr=ot()(ui,wi,Ce,(0,Ie.Z)({},"".concat(ui,"-error"),hi==="error")),en=(0,Re.useMemo)(function(){var Fi={};return Ne.forEach(function(Zi){Ft[Zi]!==void 0&&(Fi[Zi]=Ft[Zi])}),Fi},Ne.map(function(Fi){return Ft[Fi]})),gi=(0,Re.useMemo)(function(){return(0,Me.Z)((0,Me.Z)({},en),{},{src:yn})},[yn,en]),Mi=$t(Zt,gi),ji=function(Zi){var Sr=we(Zi.target),gr=Sr.left,mr=Sr.top;Tn?Tn.onPreview(Mi,yn,gr,mr):(er({x:gr,y:mr}),xn(!0)),Gi==null||Gi(Zi)};return Re.createElement(Re.Fragment,null,Re.createElement("div",(0,le.Z)({},Ci,{className:Vr,onClick:Zt?ji:Gi,style:(0,Me.Z)({width:jt,height:mi},Li)}),Re.createElement("img",(0,le.Z)({},en,{className:ot()("".concat(ui,"-img"),(0,Ie.Z)({},"".concat(ui,"-img-placeholder"),On===!0),lr),style:(0,Me.Z)({height:mi},Hi),ref:_e},Ni,{width:jt,height:mi,onError:fi})),hi==="loading"&&Re.createElement("div",{"aria-hidden":"true",className:"".concat(ui,"-placeholder")},On),It&&Zt&&Re.createElement("div",{className:ot()("".concat(ui,"-mask"),$n),style:{display:(Hi==null?void 0:Hi.display)==="none"?"none":void 0}},It)),!Tn&&Zt&&Re.createElement($e,(0,le.Z)({"aria-hidden":!zt,visible:zt,prefixCls:mt,onClose:$i,mousePosition:Qi,src:yn,alt:dn,imageInfo:{width:jt,height:mi},fallback:Cn,getContainer:Ut,icons:yi,movable:Yn,scaleStep:Rn,minScale:oi,maxScale:qt,rootClassName:Ce,imageRender:Gt,imgCommonProps:en,toolbarRender:li},pt)))};vn.PreviewGroup=Lt;var cn=vn,wn=cn},25930:function(ze,be,de){"use strict";de.d(be,{Cd:function(){return xt}});var le=de(72308),Me=de(77321),Ie=de(74416),Pe=de(59301),Ge=de(92310),Oe=de.n(Ge),Ve={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ot=function(){var Mt=(0,Pe.useRef)([]),Xt=(0,Pe.useRef)(null);return(0,Pe.useEffect)(function(){var bn=Date.now(),pn=!1;Mt.current.forEach(function(fn){if(fn){pn=!0;var gn=fn.style;gn.transitionDuration=".3s, .3s, .3s, .06s",Xt.current&&bn-Xt.current<100&&(gn.transitionDuration="0s, 0s")}}),pn&&(Xt.current=Date.now())}),Mt.current},Je=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],Xe=function(Mt){var Xt=(0,Me.Z)((0,Me.Z)({},Ve),Mt),bn=Xt.className,pn=Xt.percent,fn=Xt.prefixCls,gn=Xt.strokeColor,Nt=Xt.strokeLinecap,ut=Xt.strokeWidth,it=Xt.style,an=Xt.trailColor,mn=Xt.trailWidth,Ct=Xt.transition,un=(0,Ie.Z)(Xt,Je);delete un.gapPosition;var on=Array.isArray(pn)?pn:[pn],Bn=Array.isArray(gn)?gn:[gn],Nn=ot(),si=ut/2,Pt=100-ut/2,qn="M ".concat(Nt==="round"?si:0,",").concat(si,`
L `).concat(Nt==="round"?Pt:100,",").concat(si),Ei="0 0 100 ".concat(ut),$e=0;return Pe.createElement("svg",(0,le.Z)({className:Oe()("".concat(fn,"-line"),bn),viewBox:Ei,preserveAspectRatio:"none",style:it},un),Pe.createElement("path",{className:"".concat(fn,"-line-trail"),d:qn,strokeLinecap:Nt,stroke:an,strokeWidth:mn||ut,fillOpacity:"0"}),on.map(function(Fe,Ne){var Qe=1;switch(Nt){case"round":Qe=1-ut/100;break;case"square":Qe=1-ut/2/100;break;default:Qe=1;break}var Ke={strokeDasharray:"".concat(Fe*Qe,"px, 100px"),strokeDashoffset:"-".concat($e,"px"),transition:Ct||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Le=Bn[Ne]||Bn[Bn.length-1];return $e+=Fe,Pe.createElement("path",{key:Ne,className:"".concat(fn,"-line-path"),d:qn,strokeLinecap:Nt,stroke:Le,strokeWidth:ut,fillOpacity:"0",ref:function(Lt){Nn[Ne]=Lt},style:Ke})}))},vt=Xe,st=de(62853),_t=de(52487),Ue=de(47273),te=0,ne=(0,Ue.Z)();function fe(){var wt;return ne?(wt=te,te+=1):wt="TEST_OR_SSR",wt}var se=function(wt){var Mt=Pe.useState(),Xt=(0,_t.Z)(Mt,2),bn=Xt[0],pn=Xt[1];return Pe.useEffect(function(){pn("rc_progress_".concat(fe()))},[]),wt||bn},pe=function(Mt){var Xt=Mt.bg,bn=Mt.children;return Pe.createElement("div",{style:{width:"100%",height:"100%",background:Xt}},bn)};function Se(wt,Mt){return Object.keys(wt).map(function(Xt){var bn=parseFloat(Xt),pn="".concat(Math.floor(bn*Mt),"%");return"".concat(wt[Xt]," ").concat(pn)})}var we=Pe.forwardRef(function(wt,Mt){var Xt=wt.prefixCls,bn=wt.color,pn=wt.gradientId,fn=wt.radius,gn=wt.style,Nt=wt.ptg,ut=wt.strokeLinecap,it=wt.strokeWidth,an=wt.size,mn=wt.gapDegree,Ct=bn&&(0,st.Z)(bn)==="object",un=Ct?"#FFF":void 0,on=an/2,Bn=Pe.createElement("circle",{className:"".concat(Xt,"-circle-path"),r:fn,cx:on,cy:on,stroke:un,strokeLinecap:ut,strokeWidth:it,opacity:Nt===0?0:1,style:gn,ref:Mt});if(!Ct)return Bn;var Nn="".concat(pn,"-conic"),si=mn?"".concat(180+mn/2,"deg"):"0deg",Pt=Se(bn,(360-mn)/360),qn=Se(bn,1),Ei="conic-gradient(from ".concat(si,", ").concat(Pt.join(", "),")"),$e="linear-gradient(to ".concat(mn?"bottom":"top",", ").concat(qn.join(", "),")");return Pe.createElement(Pe.Fragment,null,Pe.createElement("mask",{id:Nn},Bn),Pe.createElement("foreignObject",{x:0,y:0,width:an,height:an,mask:"url(#".concat(Nn,")")},Pe.createElement(pe,{bg:$e},Pe.createElement(pe,{bg:Ei}))))}),De=we,Re=100,Ze=function(Mt,Xt,bn,pn,fn,gn,Nt,ut,it,an){var mn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Ct=bn/100*360*((360-gn)/360),un=gn===0?0:{bottom:0,top:180,left:90,right:-90}[Nt],on=(100-pn)/100*Xt;it==="round"&&pn!==100&&(on+=an/2,on>=Xt&&(on=Xt-.01));var Bn=Re/2;return{stroke:typeof ut=="string"?ut:void 0,strokeDasharray:"".concat(Xt,"px ").concat(Mt),strokeDashoffset:on+mn,transform:"rotate(".concat(fn+Ct+un,"deg)"),transformOrigin:"".concat(Bn,"px ").concat(Bn,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},nt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function rt(wt){var Mt=wt!=null?wt:[];return Array.isArray(Mt)?Mt:[Mt]}var ft=function(Mt){var Xt=(0,Me.Z)((0,Me.Z)({},Ve),Mt),bn=Xt.id,pn=Xt.prefixCls,fn=Xt.steps,gn=Xt.strokeWidth,Nt=Xt.trailWidth,ut=Xt.gapDegree,it=ut===void 0?0:ut,an=Xt.gapPosition,mn=Xt.trailColor,Ct=Xt.strokeLinecap,un=Xt.style,on=Xt.className,Bn=Xt.strokeColor,Nn=Xt.percent,si=(0,Ie.Z)(Xt,nt),Pt=Re/2,qn=se(bn),Ei="".concat(qn,"-gradient"),$e=Pt-gn/2,Fe=Math.PI*2*$e,Ne=it>0?90+it/2:-90,Qe=Fe*((360-it)/360),Ke=(0,st.Z)(fn)==="object"?fn:{count:fn,gap:2},Le=Ke.count,At=Ke.gap,Lt=rt(Nn),tn=rt(Bn),$t=tn.find(function(Ft){return Ft&&(0,st.Z)(Ft)==="object"}),Ht=$t&&(0,st.Z)($t)==="object",rn=Ht?"butt":Ct,vn=Ze(Fe,Qe,0,100,Ne,it,an,mn,rn,gn),cn=ot(),wn=function(){var jn=0;return Lt.map(function(dn,En){var Jt=tn[En]||tn[tn.length-1],ui=Ze(Fe,Qe,jn,dn,Ne,it,an,Jt,rn,gn);return jn+=dn,Pe.createElement(De,{key:En,color:Jt,ptg:dn,radius:$e,prefixCls:pn,gradientId:Ei,style:ui,strokeLinecap:rn,strokeWidth:gn,gapDegree:it,ref:function(mt){cn[En]=mt},size:Re})}).reverse()},sn=function(){var jn=Math.round(Le*(Lt[0]/100)),dn=100/Le,En=0;return new Array(Le).fill(null).map(function(Jt,ui){var Gn=ui<=jn-1?tn[0]:mn,mt=Gn&&(0,st.Z)(Gn)==="object"?"url(#".concat(Ei,")"):void 0,On=Ze(Fe,Qe,En,dn,Ne,it,an,Gn,"butt",gn,At);return En+=(Qe-On.strokeDashoffset+At)*100/Qe,Pe.createElement("circle",{key:ui,className:"".concat(pn,"-circle-path"),r:$e,cx:Pt,cy:Pt,stroke:mt,strokeWidth:gn,opacity:1,style:On,ref:function(jt){cn[ui]=jt}})})};return Pe.createElement("svg",(0,le.Z)({className:Oe()("".concat(pn,"-circle"),on),viewBox:"0 0 ".concat(Re," ").concat(Re),style:un,id:bn,role:"presentation"},si),!Le&&Pe.createElement("circle",{className:"".concat(pn,"-circle-trail"),r:$e,cx:Pt,cy:Pt,stroke:mn,strokeLinecap:rn,strokeWidth:Nt||gn,style:vn}),Le?sn():wn())},xt=ft,at={Line:vt,Circle:xt}},738:function(ze,be,de){"use strict";de.d(be,{Z:function(){return Se}});var le=de(72308),Me=de(49618),Ie=de(52487),Pe=de(74416),Ge=de(92310),Oe=de.n(Ge),Ve=de(18929),ot=de(10228),Je=de(26112),Xe=de(59301);function vt(we,De){var Re=we.disabled,Ze=we.prefixCls,nt=we.character,rt=we.characterRender,ft=we.index,xt=we.count,at=we.value,wt=we.allowHalf,Mt=we.focused,Xt=we.onHover,bn=we.onClick,pn=function(Ct){Xt(Ct,ft)},fn=function(Ct){bn(Ct,ft)},gn=function(Ct){Ct.keyCode===ot.Z.ENTER&&bn(Ct,ft)},Nt=ft+1,ut=new Set([Ze]);at===0&&ft===0&&Mt?ut.add("".concat(Ze,"-focused")):wt&&at+.5>=Nt&&at<Nt?(ut.add("".concat(Ze,"-half")),ut.add("".concat(Ze,"-active")),Mt&&ut.add("".concat(Ze,"-focused"))):(Nt<=at?ut.add("".concat(Ze,"-full")):ut.add("".concat(Ze,"-zero")),Nt===at&&Mt&&ut.add("".concat(Ze,"-focused")));var it=typeof nt=="function"?nt(we):nt,an=Xe.createElement("li",{className:Oe()(Array.from(ut)),ref:De},Xe.createElement("div",{onClick:Re?null:fn,onKeyDown:Re?null:gn,onMouseMove:Re?null:pn,role:"radio","aria-checked":at>ft?"true":"false","aria-posinset":ft+1,"aria-setsize":xt,tabIndex:Re?-1:0},Xe.createElement("div",{className:"".concat(Ze,"-first")},it),Xe.createElement("div",{className:"".concat(Ze,"-second")},it)));return rt&&(an=rt(an,we)),an}var st=Xe.forwardRef(vt);function _t(){var we=Xe.useRef({});function De(Ze){return we.current[Ze]}function Re(Ze){return function(nt){we.current[Ze]=nt}}return[De,Re]}function Ue(we){var De=we.pageXOffset,Re="scrollLeft";if(typeof De!="number"){var Ze=we.document;De=Ze.documentElement[Re],typeof De!="number"&&(De=Ze.body[Re])}return De}function te(we){var De,Re,Ze=we.ownerDocument,nt=Ze.body,rt=Ze&&Ze.documentElement,ft=we.getBoundingClientRect();return De=ft.left,Re=ft.top,De-=rt.clientLeft||nt.clientLeft||0,Re-=rt.clientTop||nt.clientTop||0,{left:De,top:Re}}function ne(we){var De=te(we),Re=we.ownerDocument,Ze=Re.defaultView||Re.parentWindow;return De.left+=Ue(Ze),De.left}var fe=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function se(we,De){var Re=we.prefixCls,Ze=Re===void 0?"rc-rate":Re,nt=we.className,rt=we.defaultValue,ft=we.value,xt=we.count,at=xt===void 0?5:xt,wt=we.allowHalf,Mt=wt===void 0?!1:wt,Xt=we.allowClear,bn=Xt===void 0?!0:Xt,pn=we.keyboard,fn=pn===void 0?!0:pn,gn=we.character,Nt=gn===void 0?"\u2605":gn,ut=we.characterRender,it=we.disabled,an=we.direction,mn=an===void 0?"ltr":an,Ct=we.tabIndex,un=Ct===void 0?0:Ct,on=we.autoFocus,Bn=we.onHoverChange,Nn=we.onChange,si=we.onFocus,Pt=we.onBlur,qn=we.onKeyDown,Ei=we.onMouseLeave,$e=(0,Pe.Z)(we,fe),Fe=_t(),Ne=(0,Ie.Z)(Fe,2),Qe=Ne[0],Ke=Ne[1],Le=Xe.useRef(null),At=function(){if(!it){var wi;(wi=Le.current)===null||wi===void 0||wi.focus()}};Xe.useImperativeHandle(De,function(){return{focus:At,blur:function(){if(!it){var wi;(wi=Le.current)===null||wi===void 0||wi.blur()}}}});var Lt=(0,Ve.Z)(rt||0,{value:ft}),tn=(0,Ie.Z)(Lt,2),$t=tn[0],Ht=tn[1],rn=(0,Ve.Z)(null),vn=(0,Ie.Z)(rn,2),cn=vn[0],wn=vn[1],sn=function(wi,Li){var Ce=mn==="rtl",Ci=wi+1;if(Mt){var Bi=Qe(wi),Ri=ne(Bi),Wn=Bi.clientWidth;(Ce&&Li-Ri>Wn/2||!Ce&&Li-Ri<Wn/2)&&(Ci-=.5)}return Ci},Ft=function(wi){Ht(wi),Nn==null||Nn(wi)},jn=Xe.useState(!1),dn=(0,Ie.Z)(jn,2),En=dn[0],Jt=dn[1],ui=function(){Jt(!0),si==null||si()},Gn=function(){Jt(!1),Pt==null||Pt()},mt=Xe.useState(null),On=(0,Ie.Z)(mt,2),Cn=On[0],jt=On[1],mi=function(wi,Li){var Ce=sn(Li,wi.pageX);Ce!==cn&&(jt(Ce),wn(null)),Bn==null||Bn(Ce)},Hi=function(wi){it||(jt(null),wn(null),Bn==null||Bn(void 0)),wi&&(Ei==null||Ei(wi))},Oi=function(wi,Li){var Ce=sn(Li,wi.pageX),Ci=!1;bn&&(Ci=Ce===$t),Hi(),Ft(Ci?0:Ce),wn(Ci?Ce:null)},Mn=function(wi){var Li=wi.keyCode,Ce=mn==="rtl",Ci=Mt?.5:1;fn&&(Li===ot.Z.RIGHT&&$t<at&&!Ce?(Ft($t+Ci),wi.preventDefault()):Li===ot.Z.LEFT&&$t>0&&!Ce||Li===ot.Z.RIGHT&&$t>0&&Ce?(Ft($t-Ci),wi.preventDefault()):Li===ot.Z.LEFT&&$t<at&&Ce&&(Ft($t+Ci),wi.preventDefault())),qn==null||qn(wi)};Xe.useEffect(function(){on&&!it&&At()},[]);var lr=new Array(at).fill(0).map(function(fi,wi){return Xe.createElement(st,{ref:Ke(wi),index:wi,count:at,disabled:it,prefixCls:"".concat(Ze,"-star"),allowHalf:Mt,value:Cn===null?$t:Cn,onClick:Oi,onHover:mi,key:fi||wi,character:Nt,characterRender:ut,focused:En})}),Gi=Oe()(Ze,nt,(0,Me.Z)((0,Me.Z)({},"".concat(Ze,"-disabled"),it),"".concat(Ze,"-rtl"),mn==="rtl"));return Xe.createElement("ul",(0,le.Z)({className:Gi,onMouseLeave:Hi,tabIndex:it?-1:un,onFocus:it?null:ui,onBlur:it?null:Gn,onKeyDown:it?null:Mn,ref:Le},(0,Je.Z)($e,{aria:!0,data:!0,attr:!0})),lr)}var pe=Xe.forwardRef(se),Se=pe},69582:function(ze,be,de){"use strict";de.d(be,{ZP:function(){return Ve}});var le=de(52487),Me=de(59301),Ie=de(47273),Pe=0,Ge=(0,Ie.Z)();function Oe(){var ot;return Ge?(ot=Pe,Pe+=1):ot="TEST_OR_SSR",ot}function Ve(ot){var Je=Me.useState(),Xe=(0,le.Z)(Je,2),vt=Xe[0],st=Xe[1];return Me.useEffect(function(){st("rc_select_".concat(Oe()))},[]),ot||vt}},45560:function(ze,be,de){"use strict";de.d(be,{Ac:function(){return jn},Xo:function(){return En},Wx:function(){return ui},ZP:function(){return oi},lk:function(){return Se}});var le=de(72308),Me=de(80702),Ie=de(49618),Pe=de(77321),Ge=de(52487),Oe=de(74416),Ve=de(62853),ot=de(18929),Je=de(48736),Xe=de(59301),vt=de(92310),st=de.n(vt),_t=de(34280),Ue=de(49658),te=de(8654),ne=function(Gt){var li=Gt.className,pt=Gt.customizeIcon,yn=Gt.customizeIconProps,ii=Gt.children,Ti=Gt.onMouseDown,zt=Gt.onClick,xn=typeof pt=="function"?pt(yn):pt;return Xe.createElement("span",{className:li,onMouseDown:function(nn){nn.preventDefault(),Ti==null||Ti(nn)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:zt,"aria-hidden":!0},xn!==void 0?xn:Xe.createElement("span",{className:st()(li.split(/\s+/).map(function(vi){return"".concat(vi,"-icon")}))},ii))},fe=ne,se=function(Gt,li,pt,yn,ii){var Ti=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,zt=arguments.length>6?arguments[6]:void 0,xn=arguments.length>7?arguments[7]:void 0,vi=Xe.useMemo(function(){if((0,Ve.Z)(yn)==="object")return yn.clearIcon;if(ii)return ii},[yn,ii]),nn=Xe.useMemo(function(){return!!(!Ti&&yn&&(pt.length||zt)&&!(xn==="combobox"&&zt===""))},[yn,Ti,pt.length,zt,xn]);return{allowClear:nn,clearIcon:Xe.createElement(fe,{className:"".concat(Gt,"-clear"),onMouseDown:li,customizeIcon:vi},"\xD7")}},pe=Xe.createContext(null);function Se(){return Xe.useContext(pe)}function we(){var qt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Gt=Xe.useState(!1),li=(0,Ge.Z)(Gt,2),pt=li[0],yn=li[1],ii=Xe.useRef(null),Ti=function(){window.clearTimeout(ii.current)};Xe.useEffect(function(){return Ti},[]);var zt=function(vi,nn){Ti(),ii.current=window.setTimeout(function(){yn(vi),nn&&nn()},qt)};return[pt,zt,Ti]}function De(){var qt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Gt=Xe.useRef(null),li=Xe.useRef(null);Xe.useEffect(function(){return function(){window.clearTimeout(li.current)}},[]);function pt(yn){(yn||Gt.current===null)&&(Gt.current=yn),window.clearTimeout(li.current),li.current=window.setTimeout(function(){Gt.current=null},qt)}return[function(){return Gt.current},pt]}function Re(qt,Gt,li,pt){var yn=Xe.useRef(null);yn.current={open:Gt,triggerOpen:li,customizedTrigger:pt},Xe.useEffect(function(){function ii(Ti){var zt;if(!((zt=yn.current)!==null&&zt!==void 0&&zt.customizedTrigger)){var xn=Ti.target;xn.shadowRoot&&Ti.composed&&(xn=Ti.composedPath()[0]||xn),yn.current.open&&qt().filter(function(vi){return vi}).every(function(vi){return!vi.contains(xn)&&vi!==xn})&&yn.current.triggerOpen(!1)}}return window.addEventListener("mousedown",ii),function(){return window.removeEventListener("mousedown",ii)}},[])}var Ze=de(10228);function nt(qt){return qt&&![Ze.Z.ESC,Ze.Z.SHIFT,Ze.Z.BACKSPACE,Ze.Z.TAB,Ze.Z.WIN_KEY,Ze.Z.ALT,Ze.Z.META,Ze.Z.WIN_KEY_RIGHT,Ze.Z.CTRL,Ze.Z.SEMICOLON,Ze.Z.EQUALS,Ze.Z.CAPS_LOCK,Ze.Z.CONTEXT_MENU,Ze.Z.F1,Ze.Z.F2,Ze.Z.F3,Ze.Z.F4,Ze.Z.F5,Ze.Z.F6,Ze.Z.F7,Ze.Z.F8,Ze.Z.F9,Ze.Z.F10,Ze.Z.F11,Ze.Z.F12].includes(qt)}var rt=de(26112),ft=de(11780),xt=function(Gt,li){var pt,yn=Gt.prefixCls,ii=Gt.id,Ti=Gt.inputElement,zt=Gt.disabled,xn=Gt.tabIndex,vi=Gt.autoFocus,nn=Gt.autoComplete,_e=Gt.editable,Ni=Gt.activeDescendantId,hi=Gt.value,Pn=Gt.maxLength,Yi=Gt.onKeyDown,Qi=Gt.onMouseDown,er=Gt.onChange,Tn=Gt.onPaste,Zt=Gt.onCompositionStart,$i=Gt.onCompositionEnd,Vr=Gt.onBlur,en=Gt.open,gi=Gt.attrs,Mi=Ti||Xe.createElement("input",null),ji=Mi,Fi=ji.ref,Zi=ji.props,Sr=Zi.onKeyDown,gr=Zi.onChange,mr=Zi.onMouseDown,br=Zi.onCompositionStart,Fn=Zi.onCompositionEnd,dr=Zi.onBlur,In=Zi.style;return(0,Je.Kp)(!("maxLength"in Mi.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Mi=Xe.cloneElement(Mi,(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({type:"search"},Zi),{},{id:ii,ref:(0,te.sQ)(li,Fi),disabled:zt,tabIndex:xn,autoComplete:nn||"off",autoFocus:vi,className:st()("".concat(yn,"-selection-search-input"),(pt=Mi)===null||pt===void 0||(pt=pt.props)===null||pt===void 0?void 0:pt.className),role:"combobox","aria-expanded":en||!1,"aria-haspopup":"listbox","aria-owns":"".concat(ii,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(ii,"_list"),"aria-activedescendant":en?Ni:void 0},gi),{},{value:_e?hi:"",maxLength:Pn,readOnly:!_e,unselectable:_e?null:"on",style:(0,Pe.Z)((0,Pe.Z)({},In),{},{opacity:_e?null:0}),onKeyDown:function(Cr){Yi(Cr),Sr&&Sr(Cr)},onMouseDown:function(Cr){Qi(Cr),mr&&mr(Cr)},onChange:function(Cr){er(Cr),gr&&gr(Cr)},onCompositionStart:function(Cr){Zt(Cr),br&&br(Cr)},onCompositionEnd:function(Cr){$i(Cr),Fn&&Fn(Cr)},onPaste:Tn,onBlur:function(Cr){Vr(Cr),dr&&dr(Cr)}})),Mi},at=Xe.forwardRef(xt),wt=at;function Mt(qt){return Array.isArray(qt)?qt:qt!==void 0?[qt]:[]}var Xt=typeof window!="undefined"&&window.document&&window.document.documentElement,bn=Xt;function pn(qt){return qt!=null}function fn(qt){return!qt&&qt!==0}function gn(qt){return["string","number"].includes((0,Ve.Z)(qt))}function Nt(qt){var Gt=void 0;return qt&&(gn(qt.title)?Gt=qt.title.toString():gn(qt.label)&&(Gt=qt.label.toString())),Gt}function ut(qt,Gt){bn?Xe.useLayoutEffect(qt,Gt):Xe.useEffect(qt,Gt)}function it(qt){var Gt;return(Gt=qt.key)!==null&&Gt!==void 0?Gt:qt.value}var an=function(Gt){Gt.preventDefault(),Gt.stopPropagation()},mn=function(Gt){var li=Gt.id,pt=Gt.prefixCls,yn=Gt.values,ii=Gt.open,Ti=Gt.searchValue,zt=Gt.autoClearSearchValue,xn=Gt.inputRef,vi=Gt.placeholder,nn=Gt.disabled,_e=Gt.mode,Ni=Gt.showSearch,hi=Gt.autoFocus,Pn=Gt.autoComplete,Yi=Gt.activeDescendantId,Qi=Gt.tabIndex,er=Gt.removeIcon,Tn=Gt.maxTagCount,Zt=Gt.maxTagTextLength,$i=Gt.maxTagPlaceholder,Vr=$i===void 0?function(fo){return"+ ".concat(fo.length," ...")}:$i,en=Gt.tagRender,gi=Gt.onToggleOpen,Mi=Gt.onRemove,ji=Gt.onInputChange,Fi=Gt.onInputPaste,Zi=Gt.onInputKeyDown,Sr=Gt.onInputMouseDown,gr=Gt.onInputCompositionStart,mr=Gt.onInputCompositionEnd,br=Gt.onInputBlur,Fn=Xe.useRef(null),dr=(0,Xe.useState)(0),In=(0,Ge.Z)(dr,2),wr=In[0],Cr=In[1],Tr=(0,Xe.useState)(!1),mo=(0,Ge.Z)(Tr,2),ao=mo[0],Wr=mo[1],Xr="".concat(pt,"-selection"),pa=ii||_e==="multiple"&&zt===!1||_e==="tags"?Ti:"",no=_e==="tags"||_e==="multiple"&&zt===!1||Ni&&(ii||ao);ut(function(){Cr(Fn.current.scrollWidth)},[pa]);var zi=function(Xi,nr,Ir,Ar,kr){return Xe.createElement("span",{title:Nt(Xi),className:st()("".concat(Xr,"-item"),(0,Ie.Z)({},"".concat(Xr,"-item-disabled"),Ir))},Xe.createElement("span",{className:"".concat(Xr,"-item-content")},nr),Ar&&Xe.createElement(fe,{className:"".concat(Xr,"-item-remove"),onMouseDown:an,onClick:kr,customizeIcon:er},"\xD7"))},lt=function(Xi,nr,Ir,Ar,kr,Uo){var hr=function(ri){an(ri),gi(!ii)};return Xe.createElement("span",{onMouseDown:hr},en({label:nr,value:Xi,disabled:Ir,closable:Ar,onClose:kr,isMaxTag:!!Uo}))},Go=function(Xi){var nr=Xi.disabled,Ir=Xi.label,Ar=Xi.value,kr=!nn&&!nr,Uo=Ir;if(typeof Zt=="number"&&(typeof Ir=="string"||typeof Ir=="number")){var hr=String(Uo);hr.length>Zt&&(Uo="".concat(hr.slice(0,Zt),"..."))}var ar=function(Ji){Ji&&Ji.stopPropagation(),Mi(Xi)};return typeof en=="function"?lt(Ar,Uo,nr,kr,ar):zi(Xi,Uo,nr,kr,ar)},Lr=function(Xi){if(!yn.length)return null;var nr=typeof Vr=="function"?Vr(Xi):Vr;return typeof en=="function"?lt(void 0,nr,!1,!1,void 0,!0):zi({title:nr},nr,!1)},zr=Xe.createElement("div",{className:"".concat(Xr,"-search"),style:{width:wr},onFocus:function(){Wr(!0)},onBlur:function(){Wr(!1)}},Xe.createElement(wt,{ref:xn,open:ii,prefixCls:pt,id:li,inputElement:null,disabled:nn,autoFocus:hi,autoComplete:Pn,editable:no,activeDescendantId:Yi,value:pa,onKeyDown:Zi,onMouseDown:Sr,onChange:ji,onPaste:Fi,onCompositionStart:gr,onCompositionEnd:mr,onBlur:br,tabIndex:Qi,attrs:(0,rt.Z)(Gt,!0)}),Xe.createElement("span",{ref:Fn,className:"".concat(Xr,"-search-mirror"),"aria-hidden":!0},pa,"\xA0")),$r=Xe.createElement(ft.Z,{prefixCls:"".concat(Xr,"-overflow"),data:yn,renderItem:Go,renderRest:Lr,suffix:zr,itemKey:it,maxCount:Tn});return Xe.createElement("span",{className:"".concat(Xr,"-wrap")},$r,!yn.length&&!pa&&Xe.createElement("span",{className:"".concat(Xr,"-placeholder")},vi))},Ct=mn,un=function(Gt){var li=Gt.inputElement,pt=Gt.prefixCls,yn=Gt.id,ii=Gt.inputRef,Ti=Gt.disabled,zt=Gt.autoFocus,xn=Gt.autoComplete,vi=Gt.activeDescendantId,nn=Gt.mode,_e=Gt.open,Ni=Gt.values,hi=Gt.placeholder,Pn=Gt.tabIndex,Yi=Gt.showSearch,Qi=Gt.searchValue,er=Gt.activeValue,Tn=Gt.maxLength,Zt=Gt.onInputKeyDown,$i=Gt.onInputMouseDown,Vr=Gt.onInputChange,en=Gt.onInputPaste,gi=Gt.onInputCompositionStart,Mi=Gt.onInputCompositionEnd,ji=Gt.onInputBlur,Fi=Gt.title,Zi=Xe.useState(!1),Sr=(0,Ge.Z)(Zi,2),gr=Sr[0],mr=Sr[1],br=nn==="combobox",Fn=br||Yi,dr=Ni[0],In=Qi||"";br&&er&&!gr&&(In=er),Xe.useEffect(function(){br&&mr(!1)},[br,er]);var wr=nn!=="combobox"&&!_e&&!Yi?!1:!!In,Cr=Fi===void 0?Nt(dr):Fi,Tr=Xe.useMemo(function(){return dr?null:Xe.createElement("span",{className:"".concat(pt,"-selection-placeholder"),style:wr?{visibility:"hidden"}:void 0},hi)},[dr,wr,hi,pt]);return Xe.createElement("span",{className:"".concat(pt,"-selection-wrap")},Xe.createElement("span",{className:"".concat(pt,"-selection-search")},Xe.createElement(wt,{ref:ii,prefixCls:pt,id:yn,open:_e,inputElement:li,disabled:Ti,autoFocus:zt,autoComplete:xn,editable:Fn,activeDescendantId:vi,value:In,onKeyDown:Zt,onMouseDown:$i,onChange:function(ao){mr(!0),Vr(ao)},onPaste:en,onCompositionStart:gi,onCompositionEnd:Mi,onBlur:ji,tabIndex:Pn,attrs:(0,rt.Z)(Gt,!0),maxLength:br?Tn:void 0})),!br&&dr?Xe.createElement("span",{className:"".concat(pt,"-selection-item"),title:Cr,style:wr?{visibility:"hidden"}:void 0},dr.label):null,Tr)},on=un,Bn=function(Gt,li){var pt=(0,Xe.useRef)(null),yn=(0,Xe.useRef)(!1),ii=Gt.prefixCls,Ti=Gt.open,zt=Gt.mode,xn=Gt.showSearch,vi=Gt.tokenWithEnter,nn=Gt.disabled,_e=Gt.prefix,Ni=Gt.autoClearSearchValue,hi=Gt.onSearch,Pn=Gt.onSearchSubmit,Yi=Gt.onToggleOpen,Qi=Gt.onInputKeyDown,er=Gt.onInputBlur,Tn=Gt.domRef;Xe.useImperativeHandle(li,function(){return{focus:function(Cr){pt.current.focus(Cr)},blur:function(){pt.current.blur()}}});var Zt=De(0),$i=(0,Ge.Z)(Zt,2),Vr=$i[0],en=$i[1],gi=function(Cr){var Tr=Cr.which,mo=pt.current instanceof HTMLTextAreaElement;!mo&&Ti&&(Tr===Ze.Z.UP||Tr===Ze.Z.DOWN)&&Cr.preventDefault(),Qi&&Qi(Cr),Tr===Ze.Z.ENTER&&zt==="tags"&&!yn.current&&!Ti&&(Pn==null||Pn(Cr.target.value)),!(mo&&!Ti&&~[Ze.Z.UP,Ze.Z.DOWN,Ze.Z.LEFT,Ze.Z.RIGHT].indexOf(Tr))&&nt(Tr)&&Yi(!0)},Mi=function(){en(!0)},ji=(0,Xe.useRef)(null),Fi=function(Cr){hi(Cr,!0,yn.current)!==!1&&Yi(!0)},Zi=function(){yn.current=!0},Sr=function(Cr){yn.current=!1,zt!=="combobox"&&Fi(Cr.target.value)},gr=function(Cr){var Tr=Cr.target.value;if(vi&&ji.current&&/[\r\n]/.test(ji.current)){var mo=ji.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Tr=Tr.replace(mo,ji.current)}ji.current=null,Fi(Tr)},mr=function(Cr){var Tr=Cr.clipboardData,mo=Tr==null?void 0:Tr.getData("text");ji.current=mo||""},br=function(Cr){var Tr=Cr.target;if(Tr!==pt.current){var mo=document.body.style.msTouchAction!==void 0;mo?setTimeout(function(){pt.current.focus()}):pt.current.focus()}},Fn=function(Cr){var Tr=Vr();Cr.target!==pt.current&&!Tr&&!(zt==="combobox"&&nn)&&Cr.preventDefault(),(zt!=="combobox"&&(!xn||!Tr)||!Ti)&&(Ti&&Ni!==!1&&hi("",!0,!1),Yi())},dr={inputRef:pt,onInputKeyDown:gi,onInputMouseDown:Mi,onInputChange:gr,onInputPaste:mr,onInputCompositionStart:Zi,onInputCompositionEnd:Sr,onInputBlur:er},In=zt==="multiple"||zt==="tags"?Xe.createElement(Ct,(0,le.Z)({},Gt,dr)):Xe.createElement(on,(0,le.Z)({},Gt,dr));return Xe.createElement("div",{ref:Tn,className:"".concat(ii,"-selector"),onClick:br,onMouseDown:Fn},_e&&Xe.createElement("div",{className:"".concat(ii,"-prefix")},_e),In)},Nn=Xe.forwardRef(Bn),si=Nn,Pt=de(65352),qn=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Ei=function(Gt){var li=Gt===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:li,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:li,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:li,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:li,adjustY:1},htmlRegion:"scroll"}}},$e=function(Gt,li){var pt=Gt.prefixCls,yn=Gt.disabled,ii=Gt.visible,Ti=Gt.children,zt=Gt.popupElement,xn=Gt.animation,vi=Gt.transitionName,nn=Gt.dropdownStyle,_e=Gt.dropdownClassName,Ni=Gt.direction,hi=Ni===void 0?"ltr":Ni,Pn=Gt.placement,Yi=Gt.builtinPlacements,Qi=Gt.dropdownMatchSelectWidth,er=Gt.dropdownRender,Tn=Gt.dropdownAlign,Zt=Gt.getPopupContainer,$i=Gt.empty,Vr=Gt.getTriggerDOMNode,en=Gt.onPopupVisibleChange,gi=Gt.onPopupMouseEnter,Mi=(0,Oe.Z)(Gt,qn),ji="".concat(pt,"-dropdown"),Fi=zt;er&&(Fi=er(zt));var Zi=Xe.useMemo(function(){return Yi||Ei(Qi)},[Yi,Qi]),Sr=xn?"".concat(ji,"-").concat(xn):vi,gr=typeof Qi=="number",mr=Xe.useMemo(function(){return gr?null:Qi===!1?"minWidth":"width"},[Qi,gr]),br=nn;gr&&(br=(0,Pe.Z)((0,Pe.Z)({},br),{},{width:Qi}));var Fn=Xe.useRef(null);return Xe.useImperativeHandle(li,function(){return{getPopupElement:function(){var In;return(In=Fn.current)===null||In===void 0?void 0:In.popupElement}}}),Xe.createElement(Pt.Z,(0,le.Z)({},Mi,{showAction:en?["click"]:[],hideAction:en?["click"]:[],popupPlacement:Pn||(hi==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Zi,prefixCls:ji,popupTransitionName:Sr,popup:Xe.createElement("div",{onMouseEnter:gi},Fi),ref:Fn,stretch:mr,popupAlign:Tn,popupVisible:ii,getPopupContainer:Zt,popupClassName:st()(_e,(0,Ie.Z)({},"".concat(ji,"-empty"),$i)),popupStyle:br,getTriggerDOMNode:Vr,onPopupVisibleChange:en}),Ti)},Fe=Xe.forwardRef($e),Ne=Fe,Qe=de(68413);function Ke(qt,Gt){var li=qt.key,pt;return"value"in qt&&(pt=qt.value),li!=null?li:pt!==void 0?pt:"rc-index-key-".concat(Gt)}function Le(qt){return typeof qt!="undefined"&&!Number.isNaN(qt)}function At(qt,Gt){var li=qt||{},pt=li.label,yn=li.value,ii=li.options,Ti=li.groupLabel,zt=pt||(Gt?"children":"label");return{label:zt,value:yn||"value",options:ii||"options",groupLabel:Ti||zt}}function Lt(qt){var Gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},li=Gt.fieldNames,pt=Gt.childrenAsData,yn=[],ii=At(li,!1),Ti=ii.label,zt=ii.value,xn=ii.options,vi=ii.groupLabel;function nn(_e,Ni){Array.isArray(_e)&&_e.forEach(function(hi){if(Ni||!(xn in hi)){var Pn=hi[zt];yn.push({key:Ke(hi,yn.length),groupOption:Ni,data:hi,label:hi[Ti],value:Pn})}else{var Yi=hi[vi];Yi===void 0&&pt&&(Yi=hi.label),yn.push({key:Ke(hi,yn.length),group:!0,data:hi,label:Yi}),nn(hi[xn],!0)}})}return nn(qt,!1),yn}function tn(qt){var Gt=(0,Pe.Z)({},qt);return"props"in Gt||Object.defineProperty(Gt,"props",{get:function(){return(0,Je.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Gt}}),Gt}var $t=function(Gt,li,pt){if(!li||!li.length)return null;var yn=!1,ii=function zt(xn,vi){var nn=(0,Qe.Z)(vi),_e=nn[0],Ni=nn.slice(1);if(!_e)return[xn];var hi=xn.split(_e);return yn=yn||hi.length>1,hi.reduce(function(Pn,Yi){return[].concat((0,Me.Z)(Pn),(0,Me.Z)(zt(Yi,Ni)))},[]).filter(Boolean)},Ti=ii(Gt,li);return yn?typeof pt!="undefined"?Ti.slice(0,pt):Ti:null},Ht=Xe.createContext(null),rn=Ht;function vn(qt){var Gt=qt.visible,li=qt.values;if(!Gt)return null;var pt=50;return Xe.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(li.slice(0,pt).map(function(yn){var ii=yn.label,Ti=yn.value;return["number","string"].includes((0,Ve.Z)(ii))?ii:Ti}).join(", ")),li.length>pt?", ...":null)}var cn=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],wn=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],sn=function(Gt){return Gt==="tags"||Gt==="multiple"},Ft=Xe.forwardRef(function(qt,Gt){var li,pt=qt.id,yn=qt.prefixCls,ii=qt.className,Ti=qt.showSearch,zt=qt.tagRender,xn=qt.direction,vi=qt.omitDomProps,nn=qt.displayValues,_e=qt.onDisplayValuesChange,Ni=qt.emptyOptions,hi=qt.notFoundContent,Pn=hi===void 0?"Not Found":hi,Yi=qt.onClear,Qi=qt.mode,er=qt.disabled,Tn=qt.loading,Zt=qt.getInputElement,$i=qt.getRawInputElement,Vr=qt.open,en=qt.defaultOpen,gi=qt.onDropdownVisibleChange,Mi=qt.activeValue,ji=qt.onActiveValueChange,Fi=qt.activeDescendantId,Zi=qt.searchValue,Sr=qt.autoClearSearchValue,gr=qt.onSearch,mr=qt.onSearchSplit,br=qt.tokenSeparators,Fn=qt.allowClear,dr=qt.prefix,In=qt.suffixIcon,wr=qt.clearIcon,Cr=qt.OptionList,Tr=qt.animation,mo=qt.transitionName,ao=qt.dropdownStyle,Wr=qt.dropdownClassName,Xr=qt.dropdownMatchSelectWidth,pa=qt.dropdownRender,no=qt.dropdownAlign,zi=qt.placement,lt=qt.builtinPlacements,Go=qt.getPopupContainer,Lr=qt.showAction,zr=Lr===void 0?[]:Lr,$r=qt.onFocus,fo=qt.onBlur,Xi=qt.onKeyUp,nr=qt.onKeyDown,Ir=qt.onMouseDown,Ar=(0,Oe.Z)(qt,cn),kr=sn(Qi),Uo=(Ti!==void 0?Ti:kr)||Qi==="combobox",hr=(0,Pe.Z)({},Ar);wn.forEach(function(Yo){delete hr[Yo]}),vi==null||vi.forEach(function(Yo){delete hr[Yo]});var ar=Xe.useState(!1),ri=(0,Ge.Z)(ar,2),Ji=ri[0],Zr=ri[1];Xe.useEffect(function(){Zr((0,Ue.Z)())},[]);var jo=Xe.useRef(null),Do=Xe.useRef(null),Ao=Xe.useRef(null),Ho=Xe.useRef(null),Po=Xe.useRef(null),Sa=Xe.useRef(!1),aa=we(),es=(0,Ge.Z)(aa,3),hn=es[0],ra=es[1],kl=es[2];Xe.useImperativeHandle(Gt,function(){var Yo,xo;return{focus:(Yo=Ho.current)===null||Yo===void 0?void 0:Yo.focus,blur:(xo=Ho.current)===null||xo===void 0?void 0:xo.blur,scrollTo:function(hs){var La;return(La=Po.current)===null||La===void 0?void 0:La.scrollTo(hs)},nativeElement:jo.current||Do.current}});var Ha=Xe.useMemo(function(){var Yo;if(Qi!=="combobox")return Zi;var xo=(Yo=nn[0])===null||Yo===void 0?void 0:Yo.value;return typeof xo=="string"||typeof xo=="number"?String(xo):""},[Zi,Qi,nn]),yl=Qi==="combobox"&&typeof Zt=="function"&&Zt()||null,Lo=typeof $i=="function"&&$i(),lu=(0,te.x1)(Do,Lo==null||(li=Lo.props)===null||li===void 0?void 0:li.ref),An=Xe.useState(!1),zo=(0,Ge.Z)(An,2),ca=zo[0],sl=zo[1];(0,_t.Z)(function(){sl(!0)},[]);var Ga=(0,ot.Z)(!1,{defaultValue:en,value:Vr}),Xs=(0,Ge.Z)(Ga,2),ps=Xs[0],cr=Xs[1],Pa=ca?ps:!1,Dl=!Pn&&Ni;(er||Dl&&Pa&&Qi==="combobox")&&(Pa=!1);var is=Dl?!1:Pa,Kr=Xe.useCallback(function(Yo){var xo=Yo!==void 0?Yo:!Pa;er||(cr(xo),Pa!==xo&&(gi==null||gi(xo)))},[er,Pa,cr,gi]),so=Xe.useMemo(function(){return(br||[]).some(function(Yo){return[`
`,`\r
`].includes(Yo)})},[br]),Yt=Xe.useContext(rn)||{},Pi=Yt.maxCount,Ki=Yt.rawValues,xr=function(xo,Fo,hs){if(!(kr&&Le(Pi)&&(Ki==null?void 0:Ki.size)>=Pi)){var La=!0,Ka=xo;ji==null||ji(null);var ir=$t(xo,br,Le(Pi)?Pi-Ki.size:void 0),cl=hs?null:ir;return Qi!=="combobox"&&cl&&(Ka="",mr==null||mr(cl),Kr(!1),La=!1),gr&&Ha!==Ka&&gr(Ka,{source:Fo?"typing":"effect"}),La}},Qr=function(xo){!xo||!xo.trim()||gr(xo,{source:"submit"})};Xe.useEffect(function(){!Pa&&!kr&&Qi!=="combobox"&&xr("",!1,!1)},[Pa]),Xe.useEffect(function(){ps&&er&&cr(!1),er&&!Sa.current&&ra(!1)},[er]);var Yr=De(),ur=(0,Ge.Z)(Yr,2),yo=ur[0],Jo=ur[1],Io=Xe.useRef(!1),Wo=function(xo){var Fo=yo(),hs=xo.key,La=hs==="Enter";if(La&&(Qi!=="combobox"&&xo.preventDefault(),Pa||Kr(!0)),Jo(!!Ha),hs==="Backspace"&&!Fo&&kr&&!Ha&&nn.length){for(var Ka=(0,Me.Z)(nn),ir=null,cl=Ka.length-1;cl>=0;cl-=1){var Bt=Ka[cl];if(!Bt.disabled){Ka.splice(cl,1),ir=Bt;break}}ir&&_e(Ka,{type:"remove",values:[ir]})}for(var Kn=arguments.length,uu=new Array(Kn>1?Kn-1:0),ac=1;ac<Kn;ac++)uu[ac-1]=arguments[ac];if(Pa&&(!La||!Io.current)){var Js;La&&(Io.current=!0),(Js=Po.current)===null||Js===void 0||Js.onKeyDown.apply(Js,[xo].concat(uu))}nr==null||nr.apply(void 0,[xo].concat(uu))},oa=function(xo){for(var Fo=arguments.length,hs=new Array(Fo>1?Fo-1:0),La=1;La<Fo;La++)hs[La-1]=arguments[La];if(Pa){var Ka;(Ka=Po.current)===null||Ka===void 0||Ka.onKeyUp.apply(Ka,[xo].concat(hs))}xo.key==="Enter"&&(Io.current=!1),Xi==null||Xi.apply(void 0,[xo].concat(hs))},ms=function(xo){var Fo=nn.filter(function(hs){return hs!==xo});_e(Fo,{type:"remove",values:[xo]})},Zo=function(){Io.current=!1},Aa=Xe.useRef(!1),Sl=function(){ra(!0),er||($r&&!Aa.current&&$r.apply(void 0,arguments),zr.includes("focus")&&Kr(!0)),Aa.current=!0},ll=function(){Sa.current=!0,ra(!1,function(){Aa.current=!1,Sa.current=!1,Kr(!1)}),!er&&(Ha&&(Qi==="tags"?gr(Ha,{source:"submit"}):Qi==="multiple"&&gr("",{source:"blur"})),fo&&fo.apply(void 0,arguments))},vs=[];Xe.useEffect(function(){return function(){vs.forEach(function(Yo){return clearTimeout(Yo)}),vs.splice(0,vs.length)}},[]);var ul=function(xo){var Fo,hs=xo.target,La=(Fo=Ao.current)===null||Fo===void 0?void 0:Fo.getPopupElement();if(La&&La.contains(hs)){var Ka=setTimeout(function(){var Kn=vs.indexOf(Ka);if(Kn!==-1&&vs.splice(Kn,1),kl(),!Ji&&!La.contains(document.activeElement)){var uu;(uu=Ho.current)===null||uu===void 0||uu.focus()}});vs.push(Ka)}for(var ir=arguments.length,cl=new Array(ir>1?ir-1:0),Bt=1;Bt<ir;Bt++)cl[Bt-1]=arguments[Bt];Ir==null||Ir.apply(void 0,[xo].concat(cl))},Ol=Xe.useState({}),cs=(0,Ge.Z)(Ol,2),Ts=cs[1];function Ds(){Ts({})}var Hu;Lo&&(Hu=function(xo){Kr(xo)}),Re(function(){var Yo;return[jo.current,(Yo=Ao.current)===null||Yo===void 0?void 0:Yo.getPopupElement()]},is,Kr,!!Lo);var xc=Xe.useMemo(function(){return(0,Pe.Z)((0,Pe.Z)({},qt),{},{notFoundContent:Pn,open:Pa,triggerOpen:is,id:pt,showSearch:Uo,multiple:kr,toggleOpen:Kr})},[qt,Pn,is,Pa,pt,Uo,kr,Kr]),bc=!!In||Tn,Ca;bc&&(Ca=Xe.createElement(fe,{className:st()("".concat(yn,"-arrow"),(0,Ie.Z)({},"".concat(yn,"-arrow-loading"),Tn)),customizeIcon:In,customizeIconProps:{loading:Tn,searchValue:Ha,open:Pa,focused:hn,showSearch:Uo}}));var ad=function(){var xo;Yi==null||Yi(),(xo=Ho.current)===null||xo===void 0||xo.focus(),_e([],{type:"clear",values:nn}),xr("",!1,!1)},wc=se(yn,ad,nn,Fn,wr,er,Ha,Qi),oc=wc.allowClear,Gu=wc.clearIcon,rs=Xe.createElement(Cr,{ref:Po}),ds=st()(yn,ii,(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({},"".concat(yn,"-focused"),hn),"".concat(yn,"-multiple"),kr),"".concat(yn,"-single"),!kr),"".concat(yn,"-allow-clear"),Fn),"".concat(yn,"-show-arrow"),bc),"".concat(yn,"-disabled"),er),"".concat(yn,"-loading"),Tn),"".concat(yn,"-open"),Pa),"".concat(yn,"-customize-input"),yl),"".concat(yn,"-show-search"),Uo)),_a=Xe.createElement(Ne,{ref:Ao,disabled:er,prefixCls:yn,visible:is,popupElement:rs,animation:Tr,transitionName:mo,dropdownStyle:ao,dropdownClassName:Wr,direction:xn,dropdownMatchSelectWidth:Xr,dropdownRender:pa,dropdownAlign:no,placement:zi,builtinPlacements:lt,getPopupContainer:Go,empty:Ni,getTriggerDOMNode:function(xo){return Do.current||xo},onPopupVisibleChange:Hu,onPopupMouseEnter:Ds},Lo?Xe.cloneElement(Lo,{ref:lu}):Xe.createElement(si,(0,le.Z)({},qt,{domRef:Do,prefixCls:yn,inputElement:yl,ref:Ho,id:pt,prefix:dr,showSearch:Uo,autoClearSearchValue:Sr,mode:Qi,activeDescendantId:Fi,tagRender:zt,values:nn,open:Pa,onToggleOpen:Kr,activeValue:Mi,searchValue:Ha,onSearch:xr,onSearchSubmit:Qr,onRemove:ms,tokenWithEnter:so,onInputBlur:Zo}))),Ya;return Lo?Ya=_a:Ya=Xe.createElement("div",(0,le.Z)({className:ds},hr,{ref:jo,onMouseDown:ul,onKeyDown:Wo,onKeyUp:oa,onFocus:Sl,onBlur:ll}),Xe.createElement(vn,{visible:hn&&!Pa,values:nn}),_a,Ca,oc&&Gu),Xe.createElement(pe.Provider,{value:xc},Ya)}),jn=Ft,dn=function(){return null};dn.isSelectOptGroup=!0;var En=dn,Jt=function(){return null};Jt.isSelectOption=!0;var ui=Jt,Gn=de(80547),mt=de(2738),On=de(45680);function Cn(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var jt=["disabled","title","children","style","className"];function mi(qt){return typeof qt=="string"||typeof qt=="number"}var Hi=function(Gt,li){var pt=Se(),yn=pt.prefixCls,ii=pt.id,Ti=pt.open,zt=pt.multiple,xn=pt.mode,vi=pt.searchValue,nn=pt.toggleOpen,_e=pt.notFoundContent,Ni=pt.onPopupScroll,hi=Xe.useContext(rn),Pn=hi.maxCount,Yi=hi.flattenOptions,Qi=hi.onActiveValue,er=hi.defaultActiveFirstOption,Tn=hi.onSelect,Zt=hi.menuItemSelectedIcon,$i=hi.rawValues,Vr=hi.fieldNames,en=hi.virtual,gi=hi.direction,Mi=hi.listHeight,ji=hi.listItemHeight,Fi=hi.optionRender,Zi="".concat(yn,"-item"),Sr=(0,Gn.Z)(function(){return Yi},[Ti,Yi],function(Lr,zr){return zr[0]&&Lr[1]!==zr[1]}),gr=Xe.useRef(null),mr=Xe.useMemo(function(){return zt&&Le(Pn)&&($i==null?void 0:$i.size)>=Pn},[zt,Pn,$i==null?void 0:$i.size]),br=function(zr){zr.preventDefault()},Fn=function(zr){var $r;($r=gr.current)===null||$r===void 0||$r.scrollTo(typeof zr=="number"?{index:zr}:zr)},dr=Xe.useCallback(function(Lr){return xn==="combobox"?!1:$i.has(Lr)},[xn,(0,Me.Z)($i).toString(),$i.size]),In=function(zr){for(var $r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,fo=Sr.length,Xi=0;Xi<fo;Xi+=1){var nr=(zr+Xi*$r+fo)%fo,Ir=Sr[nr]||{},Ar=Ir.group,kr=Ir.data;if(!Ar&&!(kr!=null&&kr.disabled)&&(dr(kr.value)||!mr))return nr}return-1},wr=Xe.useState(function(){return In(0)}),Cr=(0,Ge.Z)(wr,2),Tr=Cr[0],mo=Cr[1],ao=function(zr){var $r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;mo(zr);var fo={source:$r?"keyboard":"mouse"},Xi=Sr[zr];if(!Xi){Qi(null,-1,fo);return}Qi(Xi.value,zr,fo)};(0,Xe.useEffect)(function(){ao(er!==!1?In(0):-1)},[Sr.length,vi]);var Wr=Xe.useCallback(function(Lr){return xn==="combobox"?String(Lr).toLowerCase()===vi.toLowerCase():$i.has(Lr)},[xn,vi,(0,Me.Z)($i).toString(),$i.size]);(0,Xe.useEffect)(function(){var Lr=setTimeout(function(){if(!zt&&Ti&&$i.size===1){var $r=Array.from($i)[0],fo=Sr.findIndex(function(Xi){var nr=Xi.data;return nr.value===$r});fo!==-1&&(ao(fo),Fn(fo))}});if(Ti){var zr;(zr=gr.current)===null||zr===void 0||zr.scrollTo(void 0)}return function(){return clearTimeout(Lr)}},[Ti,vi]);var Xr=function(zr){zr!==void 0&&Tn(zr,{selected:!$i.has(zr)}),zt||nn(!1)};if(Xe.useImperativeHandle(li,function(){return{onKeyDown:function(zr){var $r=zr.which,fo=zr.ctrlKey;switch($r){case Ze.Z.N:case Ze.Z.P:case Ze.Z.UP:case Ze.Z.DOWN:{var Xi=0;if($r===Ze.Z.UP?Xi=-1:$r===Ze.Z.DOWN?Xi=1:Cn()&&fo&&($r===Ze.Z.N?Xi=1:$r===Ze.Z.P&&(Xi=-1)),Xi!==0){var nr=In(Tr+Xi,Xi);Fn(nr),ao(nr,!0)}break}case Ze.Z.TAB:case Ze.Z.ENTER:{var Ir,Ar=Sr[Tr];Ar&&!(Ar!=null&&(Ir=Ar.data)!==null&&Ir!==void 0&&Ir.disabled)&&!mr?Xr(Ar.value):Xr(void 0),Ti&&zr.preventDefault();break}case Ze.Z.ESC:nn(!1),Ti&&zr.stopPropagation()}},onKeyUp:function(){},scrollTo:function(zr){Fn(zr)}}}),Sr.length===0)return Xe.createElement("div",{role:"listbox",id:"".concat(ii,"_list"),className:"".concat(Zi,"-empty"),onMouseDown:br},_e);var pa=Object.keys(Vr).map(function(Lr){return Vr[Lr]}),no=function(zr){return zr.label};function zi(Lr,zr){var $r=Lr.group;return{role:$r?"presentation":"option",id:"".concat(ii,"_list_").concat(zr)}}var lt=function(zr){var $r=Sr[zr];if(!$r)return null;var fo=$r.data||{},Xi=fo.value,nr=$r.group,Ir=(0,rt.Z)(fo,!0),Ar=no($r);return $r?Xe.createElement("div",(0,le.Z)({"aria-label":typeof Ar=="string"&&!nr?Ar:null},Ir,{key:zr},zi($r,zr),{"aria-selected":Wr(Xi)}),Xi):null},Go={role:"listbox",id:"".concat(ii,"_list")};return Xe.createElement(Xe.Fragment,null,en&&Xe.createElement("div",(0,le.Z)({},Go,{style:{height:0,width:0,overflow:"hidden"}}),lt(Tr-1),lt(Tr),lt(Tr+1)),Xe.createElement(On.Z,{itemKey:"key",ref:gr,data:Sr,height:Mi,itemHeight:ji,fullHeight:!1,onMouseDown:br,onScroll:Ni,virtual:en,direction:gi,innerProps:en?null:Go},function(Lr,zr){var $r=Lr.group,fo=Lr.groupOption,Xi=Lr.data,nr=Lr.label,Ir=Lr.value,Ar=Xi.key;if($r){var kr,Uo=(kr=Xi.title)!==null&&kr!==void 0?kr:mi(nr)?nr.toString():void 0;return Xe.createElement("div",{className:st()(Zi,"".concat(Zi,"-group"),Xi.className),title:Uo},nr!==void 0?nr:Ar)}var hr=Xi.disabled,ar=Xi.title,ri=Xi.children,Ji=Xi.style,Zr=Xi.className,jo=(0,Oe.Z)(Xi,jt),Do=(0,mt.Z)(jo,pa),Ao=dr(Ir),Ho=hr||!Ao&&mr,Po="".concat(Zi,"-option"),Sa=st()(Zi,Po,Zr,(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({},"".concat(Po,"-grouped"),fo),"".concat(Po,"-active"),Tr===zr&&!Ho),"".concat(Po,"-disabled"),Ho),"".concat(Po,"-selected"),Ao)),aa=no(Lr),es=!Zt||typeof Zt=="function"||Ao,hn=typeof aa=="number"?aa:aa||Ir,ra=mi(hn)?hn.toString():void 0;return ar!==void 0&&(ra=ar),Xe.createElement("div",(0,le.Z)({},(0,rt.Z)(Do),en?{}:zi(Lr,zr),{"aria-selected":Wr(Ir),className:Sa,title:ra,onMouseMove:function(){Tr===zr||Ho||ao(zr)},onClick:function(){Ho||Xr(Ir)},style:Ji}),Xe.createElement("div",{className:"".concat(Po,"-content")},typeof Fi=="function"?Fi(Lr,{index:zr}):hn),Xe.isValidElement(Zt)||Ao,es&&Xe.createElement(fe,{className:"".concat(Zi,"-option-state"),customizeIcon:Zt,customizeIconProps:{value:Ir,disabled:Ho,isSelected:Ao}},Ao?"\u2713":null))}))},Oi=Xe.forwardRef(Hi),Mn=Oi,lr=function(qt,Gt){var li=Xe.useRef({values:new Map,options:new Map}),pt=Xe.useMemo(function(){var ii=li.current,Ti=ii.values,zt=ii.options,xn=qt.map(function(_e){if(_e.label===void 0){var Ni;return(0,Pe.Z)((0,Pe.Z)({},_e),{},{label:(Ni=Ti.get(_e.value))===null||Ni===void 0?void 0:Ni.label})}return _e}),vi=new Map,nn=new Map;return xn.forEach(function(_e){vi.set(_e.value,_e),nn.set(_e.value,Gt.get(_e.value)||zt.get(_e.value))}),li.current.values=vi,li.current.options=nn,xn},[qt,Gt]),yn=Xe.useCallback(function(ii){return Gt.get(ii)||li.current.options.get(ii)},[Gt]);return[pt,yn]};function Gi(qt,Gt){return Mt(qt).join("").toUpperCase().includes(Gt)}var fi=function(qt,Gt,li,pt,yn){return Xe.useMemo(function(){if(!li||pt===!1)return qt;var ii=Gt.options,Ti=Gt.label,zt=Gt.value,xn=[],vi=typeof pt=="function",nn=li.toUpperCase(),_e=vi?pt:function(hi,Pn){return yn?Gi(Pn[yn],nn):Pn[ii]?Gi(Pn[Ti!=="children"?Ti:"label"],nn):Gi(Pn[zt],nn)},Ni=vi?function(hi){return tn(hi)}:function(hi){return hi};return qt.forEach(function(hi){if(hi[ii]){var Pn=_e(li,Ni(hi));if(Pn)xn.push(hi);else{var Yi=hi[ii].filter(function(Qi){return _e(li,Ni(Qi))});Yi.length&&xn.push((0,Pe.Z)((0,Pe.Z)({},hi),{},(0,Ie.Z)({},ii,Yi)))}return}_e(li,Ni(hi))&&xn.push(hi)}),xn},[qt,pt,yn,li,Gt])},wi=de(69582),Li=de(11592),Ce=["children","value"],Ci=["children"];function Bi(qt){var Gt=qt,li=Gt.key,pt=Gt.props,yn=pt.children,ii=pt.value,Ti=(0,Oe.Z)(pt,Ce);return(0,Pe.Z)({key:li,value:ii!==void 0?ii:li,children:yn},Ti)}function Ri(qt){var Gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Li.Z)(qt).map(function(li,pt){if(!Xe.isValidElement(li)||!li.type)return null;var yn=li,ii=yn.type.isSelectOptGroup,Ti=yn.key,zt=yn.props,xn=zt.children,vi=(0,Oe.Z)(zt,Ci);return Gt||!ii?Bi(li):(0,Pe.Z)((0,Pe.Z)({key:"__RC_SELECT_GRP__".concat(Ti===null?pt:Ti,"__"),label:Ti},vi),{},{options:Ri(xn)})}).filter(function(li){return li})}var Wn=function(Gt,li,pt,yn,ii){return Xe.useMemo(function(){var Ti=Gt,zt=!Gt;zt&&(Ti=Ri(li));var xn=new Map,vi=new Map,nn=function(hi,Pn,Yi){Yi&&typeof Yi=="string"&&hi.set(Pn[Yi],Pn)},_e=function Ni(hi){for(var Pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Yi=0;Yi<hi.length;Yi+=1){var Qi=hi[Yi];!Qi[pt.options]||Pn?(xn.set(Qi[pt.value],Qi),nn(vi,Qi,pt.label),nn(vi,Qi,yn),nn(vi,Qi,ii)):Ni(Qi[pt.options],!0)}};return _e(Ti),{options:Ti,valueOptions:xn,labelOptions:vi}},[Gt,li,pt,yn,ii])},ci=Wn;function ti(qt){var Gt=Xe.useRef();Gt.current=qt;var li=Xe.useCallback(function(){return Gt.current.apply(Gt,arguments)},[]);return li}function ki(qt){var Gt=qt.mode,li=qt.options,pt=qt.children,yn=qt.backfill,ii=qt.allowClear,Ti=qt.placeholder,zt=qt.getInputElement,xn=qt.showSearch,vi=qt.onSearch,nn=qt.defaultOpen,_e=qt.autoFocus,Ni=qt.labelInValue,hi=qt.value,Pn=qt.inputValue,Yi=qt.optionLabelProp,Qi=isMultiple(Gt),er=xn!==void 0?xn:Qi||Gt==="combobox",Tn=li||convertChildrenToData(pt);if(warning(Gt!=="tags"||Tn.every(function(en){return!en.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Gt==="tags"||Gt==="combobox"){var Zt=Tn.some(function(en){return en.options?en.options.some(function(gi){return typeof("value"in gi?gi.value:gi.key)=="number"}):typeof("value"in en?en.value:en.key)=="number"});warning(!Zt,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Gt!=="combobox"||!Yi,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Gt==="combobox"||!yn,"`backfill` only works with `combobox` mode."),warning(Gt==="combobox"||!zt,"`getInputElement` only work with `combobox` mode."),noteOnce(Gt!=="combobox"||!zt||!ii||!Ti,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),vi&&!er&&Gt!=="combobox"&&Gt!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!nn||_e,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),hi!=null){var $i=toArray(hi);warning(!Ni||$i.every(function(en){return _typeof(en)==="object"&&("key"in en||"value"in en)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Qi||Array.isArray(hi),"`value` should be array when `mode` is `multiple` or `tags`")}if(pt){var Vr=null;toNodeArray(pt).some(function(en){if(!React.isValidElement(en)||!en.type)return!1;var gi=en,Mi=gi.type;if(Mi.isSelectOption)return!1;if(Mi.isSelectOptGroup){var ji=toNodeArray(en.props.children).every(function(Fi){return!React.isValidElement(Fi)||!en.type||Fi.type.isSelectOption?!0:(Vr=Fi.type,!1)});return!ji}return Vr=Mi,!0}),Vr&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Vr.displayName||Vr.name||Vr,"`.")),warning(Pn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function ni(qt,Gt){if(qt){var li=function pt(yn){for(var ii=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ti=0;Ti<yn.length;Ti++){var zt=yn[Ti];if(zt[Gt==null?void 0:Gt.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!ii&&Array.isArray(zt[Gt==null?void 0:Gt.options])&&pt(zt[Gt==null?void 0:Gt.options],!0))break}};li(qt)}}var Vt=null,Ut=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],It=["inputValue"];function $n(qt){return!qt||(0,Ve.Z)(qt)!=="object"}var Yn=Xe.forwardRef(function(qt,Gt){var li=qt.id,pt=qt.mode,yn=qt.prefixCls,ii=yn===void 0?"rc-select":yn,Ti=qt.backfill,zt=qt.fieldNames,xn=qt.inputValue,vi=qt.searchValue,nn=qt.onSearch,_e=qt.autoClearSearchValue,Ni=_e===void 0?!0:_e,hi=qt.onSelect,Pn=qt.onDeselect,Yi=qt.dropdownMatchSelectWidth,Qi=Yi===void 0?!0:Yi,er=qt.filterOption,Tn=qt.filterSort,Zt=qt.optionFilterProp,$i=qt.optionLabelProp,Vr=qt.options,en=qt.optionRender,gi=qt.children,Mi=qt.defaultActiveFirstOption,ji=qt.menuItemSelectedIcon,Fi=qt.virtual,Zi=qt.direction,Sr=qt.listHeight,gr=Sr===void 0?200:Sr,mr=qt.listItemHeight,br=mr===void 0?20:mr,Fn=qt.labelRender,dr=qt.value,In=qt.defaultValue,wr=qt.labelInValue,Cr=qt.onChange,Tr=qt.maxCount,mo=(0,Oe.Z)(qt,Ut),ao=(0,wi.ZP)(li),Wr=sn(pt),Xr=!!(!Vr&&gi),pa=Xe.useMemo(function(){return er===void 0&&pt==="combobox"?!1:er},[er,pt]),no=Xe.useMemo(function(){return At(zt,Xr)},[JSON.stringify(zt),Xr]),zi=(0,ot.Z)("",{value:vi!==void 0?vi:xn,postState:function(so){return so||""}}),lt=(0,Ge.Z)(zi,2),Go=lt[0],Lr=lt[1],zr=ci(Vr,gi,no,Zt,$i),$r=zr.valueOptions,fo=zr.labelOptions,Xi=zr.options,nr=Xe.useCallback(function(Kr){var so=Mt(Kr);return so.map(function(Yt){var Pi,Ki,xr,Qr,Yr;if($n(Yt))Pi=Yt;else{var ur;xr=Yt.key,Ki=Yt.label,Pi=(ur=Yt.value)!==null&&ur!==void 0?ur:xr}var yo=$r.get(Pi);if(yo){var Jo;if(Ki===void 0&&(Ki=yo==null?void 0:yo[$i||no.label]),xr===void 0&&(xr=(Jo=yo==null?void 0:yo.key)!==null&&Jo!==void 0?Jo:Pi),Qr=yo==null?void 0:yo.disabled,Yr=yo==null?void 0:yo.title,0)var Io}return{label:Ki,value:Pi,key:xr,disabled:Qr,title:Yr}})},[no,$i,$r]),Ir=(0,ot.Z)(In,{value:dr}),Ar=(0,Ge.Z)(Ir,2),kr=Ar[0],Uo=Ar[1],hr=Xe.useMemo(function(){var Kr,so=Wr&&kr===null?[]:kr,Yt=nr(so);return pt==="combobox"&&fn((Kr=Yt[0])===null||Kr===void 0?void 0:Kr.value)?[]:Yt},[kr,nr,pt,Wr]),ar=lr(hr,$r),ri=(0,Ge.Z)(ar,2),Ji=ri[0],Zr=ri[1],jo=Xe.useMemo(function(){if(!pt&&Ji.length===1){var Kr=Ji[0];if(Kr.value===null&&(Kr.label===null||Kr.label===void 0))return[]}return Ji.map(function(so){var Yt;return(0,Pe.Z)((0,Pe.Z)({},so),{},{label:(Yt=typeof Fn=="function"?Fn(so):so.label)!==null&&Yt!==void 0?Yt:so.value})})},[pt,Ji,Fn]),Do=Xe.useMemo(function(){return new Set(Ji.map(function(Kr){return Kr.value}))},[Ji]);Xe.useEffect(function(){if(pt==="combobox"){var Kr,so=(Kr=Ji[0])===null||Kr===void 0?void 0:Kr.value;Lr(pn(so)?String(so):"")}},[Ji]);var Ao=ti(function(Kr,so){var Yt=so!=null?so:Kr;return(0,Ie.Z)((0,Ie.Z)({},no.value,Kr),no.label,Yt)}),Ho=Xe.useMemo(function(){if(pt!=="tags")return Xi;var Kr=(0,Me.Z)(Xi),so=function(Pi){return $r.has(Pi)};return(0,Me.Z)(Ji).sort(function(Yt,Pi){return Yt.value<Pi.value?-1:1}).forEach(function(Yt){var Pi=Yt.value;so(Pi)||Kr.push(Ao(Pi,Yt.label))}),Kr},[Ao,Xi,$r,Ji,pt]),Po=fi(Ho,no,Go,pa,Zt),Sa=Xe.useMemo(function(){return pt!=="tags"||!Go||Po.some(function(Kr){return Kr[Zt||"value"]===Go})||Po.some(function(Kr){return Kr[no.value]===Go})?Po:[Ao(Go)].concat((0,Me.Z)(Po))},[Ao,Zt,pt,Po,Go,no]),aa=function Kr(so){var Yt=(0,Me.Z)(so).sort(function(Pi,Ki){return Tn(Pi,Ki,{searchValue:Go})});return Yt.map(function(Pi){return Array.isArray(Pi.options)?(0,Pe.Z)((0,Pe.Z)({},Pi),{},{options:Pi.options.length>0?Kr(Pi.options):Pi.options}):Pi})},es=Xe.useMemo(function(){return Tn?aa(Sa):Sa},[Sa,Tn,Go]),hn=Xe.useMemo(function(){return Lt(es,{fieldNames:no,childrenAsData:Xr})},[es,no,Xr]),ra=function(so){var Yt=nr(so);if(Uo(Yt),Cr&&(Yt.length!==Ji.length||Yt.some(function(xr,Qr){var Yr;return((Yr=Ji[Qr])===null||Yr===void 0?void 0:Yr.value)!==(xr==null?void 0:xr.value)}))){var Pi=wr?Yt:Yt.map(function(xr){return xr.value}),Ki=Yt.map(function(xr){return tn(Zr(xr.value))});Cr(Wr?Pi:Pi[0],Wr?Ki:Ki[0])}},kl=Xe.useState(null),Ha=(0,Ge.Z)(kl,2),yl=Ha[0],Lo=Ha[1],lu=Xe.useState(0),An=(0,Ge.Z)(lu,2),zo=An[0],ca=An[1],sl=Mi!==void 0?Mi:pt!=="combobox",Ga=Xe.useCallback(function(Kr,so){var Yt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Pi=Yt.source,Ki=Pi===void 0?"keyboard":Pi;ca(so),Ti&&pt==="combobox"&&Kr!==null&&Ki==="keyboard"&&Lo(String(Kr))},[Ti,pt]),Xs=function(so,Yt,Pi){var Ki=function(){var ms,Zo=Zr(so);return[wr?{label:Zo==null?void 0:Zo[no.label],value:so,key:(ms=Zo==null?void 0:Zo.key)!==null&&ms!==void 0?ms:so}:so,tn(Zo)]};if(Yt&&hi){var xr=Ki(),Qr=(0,Ge.Z)(xr,2),Yr=Qr[0],ur=Qr[1];hi(Yr,ur)}else if(!Yt&&Pn&&Pi!=="clear"){var yo=Ki(),Jo=(0,Ge.Z)(yo,2),Io=Jo[0],Wo=Jo[1];Pn(Io,Wo)}},ps=ti(function(Kr,so){var Yt,Pi=Wr?so.selected:!0;Pi?Yt=Wr?[].concat((0,Me.Z)(Ji),[Kr]):[Kr]:Yt=Ji.filter(function(Ki){return Ki.value!==Kr}),ra(Yt),Xs(Kr,Pi),pt==="combobox"?Lo(""):(!sn||Ni)&&(Lr(""),Lo(""))}),cr=function(so,Yt){ra(so);var Pi=Yt.type,Ki=Yt.values;(Pi==="remove"||Pi==="clear")&&Ki.forEach(function(xr){Xs(xr.value,!1,Pi)})},Pa=function(so,Yt){if(Lr(so),Lo(null),Yt.source==="submit"){var Pi=(so||"").trim();if(Pi){var Ki=Array.from(new Set([].concat((0,Me.Z)(Do),[Pi])));ra(Ki),Xs(Pi,!0),Lr("")}return}Yt.source!=="blur"&&(pt==="combobox"&&ra(so),nn==null||nn(so))},Dl=function(so){var Yt=so;pt!=="tags"&&(Yt=so.map(function(Ki){var xr=fo.get(Ki);return xr==null?void 0:xr.value}).filter(function(Ki){return Ki!==void 0}));var Pi=Array.from(new Set([].concat((0,Me.Z)(Do),(0,Me.Z)(Yt))));ra(Pi),Pi.forEach(function(Ki){Xs(Ki,!0)})},is=Xe.useMemo(function(){var Kr=Fi!==!1&&Qi!==!1;return(0,Pe.Z)((0,Pe.Z)({},zr),{},{flattenOptions:hn,onActiveValue:Ga,defaultActiveFirstOption:sl,onSelect:ps,menuItemSelectedIcon:ji,rawValues:Do,fieldNames:no,virtual:Kr,direction:Zi,listHeight:gr,listItemHeight:br,childrenAsData:Xr,maxCount:Tr,optionRender:en})},[Tr,zr,hn,Ga,sl,ps,ji,Do,no,Fi,Qi,Zi,gr,br,Xr,en]);return Xe.createElement(rn.Provider,{value:is},Xe.createElement(jn,(0,le.Z)({},mo,{id:ao,prefixCls:ii,ref:Gt,omitDomProps:It,mode:pt,displayValues:jo,onDisplayValuesChange:cr,direction:Zi,searchValue:Go,onSearch:Pa,autoClearSearchValue:Ni,onSearchSplit:Dl,dropdownMatchSelectWidth:Qi,OptionList:Mn,emptyOptions:!hn.length,activeValue:yl,activeDescendantId:"".concat(ao,"_list_").concat(zo)})))}),yi=Yn;yi.Option=ui,yi.OptGroup=En;var Rn=yi,oi=Rn},63158:function(ze,be,de){"use strict";var le=de(72308),Me=de(49618),Ie=de(52487),Pe=de(74416),Ge=de(59301),Oe=de(92310),Ve=de.n(Oe),ot=de(18929),Je=de(10228),Xe=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],vt=Ge.forwardRef(function(st,_t){var Ue,te=st.prefixCls,ne=te===void 0?"rc-switch":te,fe=st.className,se=st.checked,pe=st.defaultChecked,Se=st.disabled,we=st.loadingIcon,De=st.checkedChildren,Re=st.unCheckedChildren,Ze=st.onClick,nt=st.onChange,rt=st.onKeyDown,ft=(0,Pe.Z)(st,Xe),xt=(0,ot.Z)(!1,{value:se,defaultValue:pe}),at=(0,Ie.Z)(xt,2),wt=at[0],Mt=at[1];function Xt(gn,Nt){var ut=wt;return Se||(ut=gn,Mt(ut),nt==null||nt(ut,Nt)),ut}function bn(gn){gn.which===Je.Z.LEFT?Xt(!1,gn):gn.which===Je.Z.RIGHT&&Xt(!0,gn),rt==null||rt(gn)}function pn(gn){var Nt=Xt(!wt,gn);Ze==null||Ze(Nt,gn)}var fn=Ve()(ne,fe,(Ue={},(0,Me.Z)(Ue,"".concat(ne,"-checked"),wt),(0,Me.Z)(Ue,"".concat(ne,"-disabled"),Se),Ue));return Ge.createElement("button",(0,le.Z)({},ft,{type:"button",role:"switch","aria-checked":wt,disabled:Se,className:fn,ref:_t,onKeyDown:bn,onClick:pn}),we,Ge.createElement("span",{className:"".concat(ne,"-inner")},Ge.createElement("span",{className:"".concat(ne,"-inner-checked")},De),Ge.createElement("span",{className:"".concat(ne,"-inner-unchecked")},Re)))});vt.displayName="Switch",be.Z=vt},22711:function(ze,be,de){"use strict";de.r(be),de.d(be,{ResizableTextArea:function(){return at},default:function(){return bn}});var le=de(72308),Me=de(49618),Ie=de(77321),Pe=de(80702),Ge=de(52487),Oe=de(74416),Ve=de(92310),ot=de.n(Ve),Je=de(36901),Xe=de(66003),vt=de(30292),st=de(18929),_t=de(59301),Ue=de(62853),te=de(29301),ne=de(34280),fe=de(16089),se=`
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
pointer-events: none !important;
`,pe=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],Se={},we;function De(pn){var fn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,gn=pn.getAttribute("id")||pn.getAttribute("data-reactid")||pn.getAttribute("name");if(fn&&Se[gn])return Se[gn];var Nt=window.getComputedStyle(pn),ut=Nt.getPropertyValue("box-sizing")||Nt.getPropertyValue("-moz-box-sizing")||Nt.getPropertyValue("-webkit-box-sizing"),it=parseFloat(Nt.getPropertyValue("padding-bottom"))+parseFloat(Nt.getPropertyValue("padding-top")),an=parseFloat(Nt.getPropertyValue("border-bottom-width"))+parseFloat(Nt.getPropertyValue("border-top-width")),mn=pe.map(function(un){return"".concat(un,":").concat(Nt.getPropertyValue(un))}).join(";"),Ct={sizingStyle:mn,paddingSize:it,borderSize:an,boxSizing:ut};return fn&&gn&&(Se[gn]=Ct),Ct}function Re(pn){var fn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,gn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Nt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;we||(we=document.createElement("textarea"),we.setAttribute("tab-index","-1"),we.setAttribute("aria-hidden","true"),we.setAttribute("name","hiddenTextarea"),document.body.appendChild(we)),pn.getAttribute("wrap")?we.setAttribute("wrap",pn.getAttribute("wrap")):we.removeAttribute("wrap");var ut=De(pn,fn),it=ut.paddingSize,an=ut.borderSize,mn=ut.boxSizing,Ct=ut.sizingStyle;we.setAttribute("style","".concat(Ct,";").concat(se)),we.value=pn.value||pn.placeholder||"";var un=void 0,on=void 0,Bn,Nn=we.scrollHeight;if(mn==="border-box"?Nn+=an:mn==="content-box"&&(Nn-=it),gn!==null||Nt!==null){we.value=" ";var si=we.scrollHeight-it;gn!==null&&(un=si*gn,mn==="border-box"&&(un=un+it+an),Nn=Math.max(un,Nn)),Nt!==null&&(on=si*Nt,mn==="border-box"&&(on=on+it+an),Bn=Nn>on?"":"hidden",Nn=Math.min(on,Nn))}var Pt={height:Nn,overflowY:Bn,resize:"none"};return un&&(Pt.minHeight=un),on&&(Pt.maxHeight=on),Pt}var Ze=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],nt=0,rt=1,ft=2,xt=_t.forwardRef(function(pn,fn){var gn=pn,Nt=gn.prefixCls,ut=gn.defaultValue,it=gn.value,an=gn.autoSize,mn=gn.onResize,Ct=gn.className,un=gn.style,on=gn.disabled,Bn=gn.onChange,Nn=gn.onInternalAutoSize,si=(0,Oe.Z)(gn,Ze),Pt=(0,st.Z)(ut,{value:it,postState:function(On){return On!=null?On:""}}),qn=(0,Ge.Z)(Pt,2),Ei=qn[0],$e=qn[1],Fe=function(On){$e(On.target.value),Bn==null||Bn(On)},Ne=_t.useRef();_t.useImperativeHandle(fn,function(){return{textArea:Ne.current}});var Qe=_t.useMemo(function(){return an&&(0,Ue.Z)(an)==="object"?[an.minRows,an.maxRows]:[]},[an]),Ke=(0,Ge.Z)(Qe,2),Le=Ke[0],At=Ke[1],Lt=!!an,tn=function(){try{if(document.activeElement===Ne.current){var On=Ne.current,Cn=On.selectionStart,jt=On.selectionEnd,mi=On.scrollTop;Ne.current.setSelectionRange(Cn,jt),Ne.current.scrollTop=mi}}catch(Hi){}},$t=_t.useState(ft),Ht=(0,Ge.Z)($t,2),rn=Ht[0],vn=Ht[1],cn=_t.useState(),wn=(0,Ge.Z)(cn,2),sn=wn[0],Ft=wn[1],jn=function(){vn(nt)};(0,ne.Z)(function(){Lt&&jn()},[it,Le,At,Lt]),(0,ne.Z)(function(){if(rn===nt)vn(rt);else if(rn===rt){var mt=Re(Ne.current,!1,Le,At);vn(ft),Ft(mt)}else tn()},[rn]);var dn=_t.useRef(),En=function(){fe.Z.cancel(dn.current)},Jt=function(On){rn===ft&&(mn==null||mn(On),an&&(En(),dn.current=(0,fe.Z)(function(){jn()})))};_t.useEffect(function(){return En},[]);var ui=Lt?sn:null,Gn=(0,Ie.Z)((0,Ie.Z)({},un),ui);return(rn===nt||rn===rt)&&(Gn.overflowY="hidden",Gn.overflowX="hidden"),_t.createElement(te.Z,{onResize:Jt,disabled:!(an||mn)},_t.createElement("textarea",(0,le.Z)({},si,{ref:Ne,style:Gn,className:ot()(Nt,Ct,(0,Me.Z)({},"".concat(Nt,"-disabled"),on)),disabled:on,value:Ei,onChange:Fe})))}),at=xt,wt=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],Mt=_t.forwardRef(function(pn,fn){var gn,Nt=pn.defaultValue,ut=pn.value,it=pn.onFocus,an=pn.onBlur,mn=pn.onChange,Ct=pn.allowClear,un=pn.maxLength,on=pn.onCompositionStart,Bn=pn.onCompositionEnd,Nn=pn.suffix,si=pn.prefixCls,Pt=si===void 0?"rc-textarea":si,qn=pn.showCount,Ei=pn.count,$e=pn.className,Fe=pn.style,Ne=pn.disabled,Qe=pn.hidden,Ke=pn.classNames,Le=pn.styles,At=pn.onResize,Lt=pn.onClear,tn=pn.onPressEnter,$t=pn.readOnly,Ht=pn.autoSize,rn=pn.onKeyDown,vn=(0,Oe.Z)(pn,wt),cn=(0,st.Z)(Nt,{value:ut,defaultValue:Nt}),wn=(0,Ge.Z)(cn,2),sn=wn[0],Ft=wn[1],jn=sn==null?"":String(sn),dn=_t.useState(!1),En=(0,Ge.Z)(dn,2),Jt=En[0],ui=En[1],Gn=_t.useRef(!1),mt=_t.useState(null),On=(0,Ge.Z)(mt,2),Cn=On[0],jt=On[1],mi=(0,_t.useRef)(null),Hi=(0,_t.useRef)(null),Oi=function(){var qt;return(qt=Hi.current)===null||qt===void 0?void 0:qt.textArea},Mn=function(){Oi().focus()};(0,_t.useImperativeHandle)(fn,function(){var oi;return{resizableTextArea:Hi.current,focus:Mn,blur:function(){Oi().blur()},nativeElement:((oi=mi.current)===null||oi===void 0?void 0:oi.nativeElement)||Oi()}}),(0,_t.useEffect)(function(){ui(function(oi){return!Ne&&oi})},[Ne]);var lr=_t.useState(null),Gi=(0,Ge.Z)(lr,2),fi=Gi[0],wi=Gi[1];_t.useEffect(function(){if(fi){var oi;(oi=Oi()).setSelectionRange.apply(oi,(0,Pe.Z)(fi))}},[fi]);var Li=(0,Xe.Z)(Ei,qn),Ce=(gn=Li.max)!==null&&gn!==void 0?gn:un,Ci=Number(Ce)>0,Bi=Li.strategy(jn),Ri=!!Ce&&Bi>Ce,Wn=function(qt,Gt){var li=Gt;!Gn.current&&Li.exceedFormatter&&Li.max&&Li.strategy(Gt)>Li.max&&(li=Li.exceedFormatter(Gt,{max:Li.max}),Gt!==li&&wi([Oi().selectionStart||0,Oi().selectionEnd||0])),Ft(li),(0,vt.rJ)(qt.currentTarget,qt,mn,li)},ci=function(qt){Gn.current=!0,on==null||on(qt)},ti=function(qt){Gn.current=!1,Wn(qt,qt.currentTarget.value),Bn==null||Bn(qt)},ki=function(qt){Wn(qt,qt.target.value)},ni=function(qt){qt.key==="Enter"&&tn&&tn(qt),rn==null||rn(qt)},Vt=function(qt){ui(!0),it==null||it(qt)},Ut=function(qt){ui(!1),an==null||an(qt)},It=function(qt){Ft(""),Mn(),(0,vt.rJ)(Oi(),qt,mn)},$n=Nn,Yn;Li.show&&(Li.showFormatter?Yn=Li.showFormatter({value:jn,count:Bi,maxLength:Ce}):Yn="".concat(Bi).concat(Ci?" / ".concat(Ce):""),$n=_t.createElement(_t.Fragment,null,$n,_t.createElement("span",{className:ot()("".concat(Pt,"-data-count"),Ke==null?void 0:Ke.count),style:Le==null?void 0:Le.count},Yn)));var yi=function(qt){var Gt;At==null||At(qt),(Gt=Oi())!==null&&Gt!==void 0&&Gt.style.height&&jt(!0)},Rn=!Ht&&!qn&&!Ct;return _t.createElement(Je.BaseInput,{ref:mi,value:jn,allowClear:Ct,handleReset:It,suffix:$n,prefixCls:Pt,classNames:(0,Ie.Z)((0,Ie.Z)({},Ke),{},{affixWrapper:ot()(Ke==null?void 0:Ke.affixWrapper,(0,Me.Z)((0,Me.Z)({},"".concat(Pt,"-show-count"),qn),"".concat(Pt,"-textarea-allow-clear"),Ct))}),disabled:Ne,focused:Jt,className:ot()($e,Ri&&"".concat(Pt,"-out-of-range")),style:(0,Ie.Z)((0,Ie.Z)({},Fe),Cn&&!Rn?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Yn=="string"?Yn:void 0}},hidden:Qe,readOnly:$t,onClear:Lt},_t.createElement(at,(0,le.Z)({},vn,{autoSize:Ht,maxLength:un,onKeyDown:ni,onChange:ki,onFocus:Vt,onBlur:Ut,onCompositionStart:ci,onCompositionEnd:ti,className:ot()(Ke==null?void 0:Ke.textarea),style:(0,Ie.Z)((0,Ie.Z)({},Le==null?void 0:Le.textarea),{},{resize:Fe==null?void 0:Fe.resize}),disabled:Ne,prefixCls:Pt,onResize:yi,ref:Hi,readOnly:$t})))}),Xt=Mt,bn=Xt},90472:function(ze,be,de){"use strict";de.d(be,{Z:function(){return pn}});var le=de(72308),Me=de(96949),Ie=de(55090),Pe=de(80237),Ge=de(77205),Oe=de(38793),Ve=de(49618),ot=de(59301),Je=de(77321),Xe=de(74416),vt=de(62853),st=de(65736),_t=de(72633),Ue=de(80702),te=de(92310),ne=de.n(te),fe=de(26112),se=de(48736),pe=function(fn,gn){if(fn&&gn){var Nt=Array.isArray(gn)?gn:gn.split(","),ut=fn.name||"",it=fn.type||"",an=it.replace(/\/.*$/,"");return Nt.some(function(mn){var Ct=mn.trim();if(/^\*(\/\*)?$/.test(mn))return!0;if(Ct.charAt(0)==="."){var un=ut.toLowerCase(),on=Ct.toLowerCase(),Bn=[on];return(on===".jpg"||on===".jpeg")&&(Bn=[".jpg",".jpeg"]),Bn.some(function(Nn){return un.endsWith(Nn)})}return/\/\*$/.test(Ct)?an===Ct.replace(/\/.*$/,""):it===Ct?!0:/^\w+$/.test(Ct)?((0,se.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Ct,"'.Skip for check.")),!0):!1})}return!0};function Se(fn,gn){var Nt="cannot ".concat(fn.method," ").concat(fn.action," ").concat(gn.status,"'"),ut=new Error(Nt);return ut.status=gn.status,ut.method=fn.method,ut.url=fn.action,ut}function we(fn){var gn=fn.responseText||fn.response;if(!gn)return gn;try{return JSON.parse(gn)}catch(Nt){return gn}}function De(fn){var gn=new XMLHttpRequest;fn.onProgress&&gn.upload&&(gn.upload.onprogress=function(an){an.total>0&&(an.percent=an.loaded/an.total*100),fn.onProgress(an)});var Nt=new FormData;fn.data&&Object.keys(fn.data).forEach(function(it){var an=fn.data[it];if(Array.isArray(an)){an.forEach(function(mn){Nt.append("".concat(it,"[]"),mn)});return}Nt.append(it,an)}),fn.file instanceof Blob?Nt.append(fn.filename,fn.file,fn.file.name):Nt.append(fn.filename,fn.file),gn.onerror=function(an){fn.onError(an)},gn.onload=function(){return gn.status<200||gn.status>=300?fn.onError(Se(fn,gn),we(gn)):fn.onSuccess(we(gn),gn)},gn.open(fn.method,fn.action,!0),fn.withCredentials&&"withCredentials"in gn&&(gn.withCredentials=!0);var ut=fn.headers||{};return ut["X-Requested-With"]!==null&&gn.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(ut).forEach(function(it){ut[it]!==null&&gn.setRequestHeader(it,ut[it])}),gn.send(Nt),{abort:function(){gn.abort()}}}var Re=function(){var fn=(0,_t.Z)((0,st.Z)().mark(function gn(Nt,ut){var it,an,mn,Ct,un,on,Bn,Nn;return(0,st.Z)().wrap(function(Pt){for(;;)switch(Pt.prev=Pt.next){case 0:on=function(){return on=(0,_t.Z)((0,st.Z)().mark(function Ei($e){return(0,st.Z)().wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return Ne.abrupt("return",new Promise(function(Qe){$e.file(function(Ke){ut(Ke)?($e.fullPath&&!Ke.webkitRelativePath&&(Object.defineProperties(Ke,{webkitRelativePath:{writable:!0}}),Ke.webkitRelativePath=$e.fullPath.replace(/^\//,""),Object.defineProperties(Ke,{webkitRelativePath:{writable:!1}})),Qe(Ke)):Qe(null)})}));case 1:case"end":return Ne.stop()}},Ei)})),on.apply(this,arguments)},un=function(Ei){return on.apply(this,arguments)},Ct=function(){return Ct=(0,_t.Z)((0,st.Z)().mark(function Ei($e){var Fe,Ne,Qe,Ke,Le;return(0,st.Z)().wrap(function(Lt){for(;;)switch(Lt.prev=Lt.next){case 0:Fe=$e.createReader(),Ne=[];case 2:return Lt.next=5,new Promise(function(tn){Fe.readEntries(tn,function(){return tn([])})});case 5:if(Qe=Lt.sent,Ke=Qe.length,Ke){Lt.next=9;break}return Lt.abrupt("break",12);case 9:for(Le=0;Le<Ke;Le++)Ne.push(Qe[Le]);Lt.next=2;break;case 12:return Lt.abrupt("return",Ne);case 13:case"end":return Lt.stop()}},Ei)})),Ct.apply(this,arguments)},mn=function(Ei){return Ct.apply(this,arguments)},it=[],an=[],Nt.forEach(function(qn){return an.push(qn.webkitGetAsEntry())}),Bn=function(){var qn=(0,_t.Z)((0,st.Z)().mark(function Ei($e,Fe){var Ne,Qe;return(0,st.Z)().wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:if($e){Le.next=2;break}return Le.abrupt("return");case 2:if($e.path=Fe||"",!$e.isFile){Le.next=10;break}return Le.next=6,un($e);case 6:Ne=Le.sent,Ne&&it.push(Ne),Le.next=15;break;case 10:if(!$e.isDirectory){Le.next=15;break}return Le.next=13,mn($e);case 13:Qe=Le.sent,an.push.apply(an,(0,Ue.Z)(Qe));case 15:case"end":return Le.stop()}},Ei)}));return function($e,Fe){return qn.apply(this,arguments)}}(),Nn=0;case 9:if(!(Nn<an.length)){Pt.next=15;break}return Pt.next=12,Bn(an[Nn]);case 12:Nn++,Pt.next=9;break;case 15:return Pt.abrupt("return",it);case 16:case"end":return Pt.stop()}},gn)}));return function(Nt,ut){return fn.apply(this,arguments)}}(),Ze=Re,nt=+new Date,rt=0;function ft(){return"rc-upload-".concat(nt,"-").concat(++rt)}var xt=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],at=function(fn){(0,Ge.Z)(Nt,fn);var gn=(0,Oe.Z)(Nt);function Nt(){var ut;(0,Me.Z)(this,Nt);for(var it=arguments.length,an=new Array(it),mn=0;mn<it;mn++)an[mn]=arguments[mn];return ut=gn.call.apply(gn,[this].concat(an)),(0,Ve.Z)((0,Pe.Z)(ut),"state",{uid:ft()}),(0,Ve.Z)((0,Pe.Z)(ut),"reqs",{}),(0,Ve.Z)((0,Pe.Z)(ut),"fileInput",void 0),(0,Ve.Z)((0,Pe.Z)(ut),"_isMounted",void 0),(0,Ve.Z)((0,Pe.Z)(ut),"onChange",function(Ct){var un=ut.props,on=un.accept,Bn=un.directory,Nn=Ct.target.files,si=(0,Ue.Z)(Nn).filter(function(Pt){return!Bn||pe(Pt,on)});ut.uploadFiles(si),ut.reset()}),(0,Ve.Z)((0,Pe.Z)(ut),"onClick",function(Ct){var un=ut.fileInput;if(un){var on=Ct.target,Bn=ut.props.onClick;if(on&&on.tagName==="BUTTON"){var Nn=un.parentNode;Nn.focus(),on.blur()}un.click(),Bn&&Bn(Ct)}}),(0,Ve.Z)((0,Pe.Z)(ut),"onKeyDown",function(Ct){Ct.key==="Enter"&&ut.onClick(Ct)}),(0,Ve.Z)((0,Pe.Z)(ut),"onFileDrop",function(){var Ct=(0,_t.Z)((0,st.Z)().mark(function un(on){var Bn,Nn,si;return(0,st.Z)().wrap(function(qn){for(;;)switch(qn.prev=qn.next){case 0:if(Bn=ut.props.multiple,on.preventDefault(),on.type!=="dragover"){qn.next=4;break}return qn.abrupt("return");case 4:if(!ut.props.directory){qn.next=11;break}return qn.next=7,Ze(Array.prototype.slice.call(on.dataTransfer.items),function(Ei){return pe(Ei,ut.props.accept)});case 7:Nn=qn.sent,ut.uploadFiles(Nn),qn.next=14;break;case 11:si=(0,Ue.Z)(on.dataTransfer.files).filter(function(Ei){return pe(Ei,ut.props.accept)}),Bn===!1&&(si=si.slice(0,1)),ut.uploadFiles(si);case 14:case"end":return qn.stop()}},un)}));return function(un){return Ct.apply(this,arguments)}}()),(0,Ve.Z)((0,Pe.Z)(ut),"uploadFiles",function(Ct){var un=(0,Ue.Z)(Ct),on=un.map(function(Bn){return Bn.uid=ft(),ut.processFile(Bn,un)});Promise.all(on).then(function(Bn){var Nn=ut.props.onBatchStart;Nn==null||Nn(Bn.map(function(si){var Pt=si.origin,qn=si.parsedFile;return{file:Pt,parsedFile:qn}})),Bn.filter(function(si){return si.parsedFile!==null}).forEach(function(si){ut.post(si)})})}),(0,Ve.Z)((0,Pe.Z)(ut),"processFile",function(){var Ct=(0,_t.Z)((0,st.Z)().mark(function un(on,Bn){var Nn,si,Pt,qn,Ei,$e,Fe,Ne,Qe;return(0,st.Z)().wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:if(Nn=ut.props.beforeUpload,si=on,!Nn){Le.next=14;break}return Le.prev=3,Le.next=6,Nn(on,Bn);case 6:si=Le.sent,Le.next=12;break;case 9:Le.prev=9,Le.t0=Le.catch(3),si=!1;case 12:if(si!==!1){Le.next=14;break}return Le.abrupt("return",{origin:on,parsedFile:null,action:null,data:null});case 14:if(Pt=ut.props.action,typeof Pt!="function"){Le.next=21;break}return Le.next=18,Pt(on);case 18:qn=Le.sent,Le.next=22;break;case 21:qn=Pt;case 22:if(Ei=ut.props.data,typeof Ei!="function"){Le.next=29;break}return Le.next=26,Ei(on);case 26:$e=Le.sent,Le.next=30;break;case 29:$e=Ei;case 30:return Fe=((0,vt.Z)(si)==="object"||typeof si=="string")&&si?si:on,Fe instanceof File?Ne=Fe:Ne=new File([Fe],on.name,{type:on.type}),Qe=Ne,Qe.uid=on.uid,Le.abrupt("return",{origin:on,data:$e,parsedFile:Qe,action:qn});case 35:case"end":return Le.stop()}},un,null,[[3,9]])}));return function(un,on){return Ct.apply(this,arguments)}}()),(0,Ve.Z)((0,Pe.Z)(ut),"saveFileInput",function(Ct){ut.fileInput=Ct}),ut}return(0,Ie.Z)(Nt,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(it){var an=this,mn=it.data,Ct=it.origin,un=it.action,on=it.parsedFile;if(this._isMounted){var Bn=this.props,Nn=Bn.onStart,si=Bn.customRequest,Pt=Bn.name,qn=Bn.headers,Ei=Bn.withCredentials,$e=Bn.method,Fe=Ct.uid,Ne=si||De,Qe={action:un,filename:Pt,data:mn,file:on,headers:qn,withCredentials:Ei,method:$e||"post",onProgress:function(Le){var At=an.props.onProgress;At==null||At(Le,on)},onSuccess:function(Le,At){var Lt=an.props.onSuccess;Lt==null||Lt(Le,on,At),delete an.reqs[Fe]},onError:function(Le,At){var Lt=an.props.onError;Lt==null||Lt(Le,At,on),delete an.reqs[Fe]}};Nn(Ct),this.reqs[Fe]=Ne(Qe)}}},{key:"reset",value:function(){this.setState({uid:ft()})}},{key:"abort",value:function(it){var an=this.reqs;if(it){var mn=it.uid?it.uid:it;an[mn]&&an[mn].abort&&an[mn].abort(),delete an[mn]}else Object.keys(an).forEach(function(Ct){an[Ct]&&an[Ct].abort&&an[Ct].abort(),delete an[Ct]})}},{key:"render",value:function(){var it=this.props,an=it.component,mn=it.prefixCls,Ct=it.className,un=it.classNames,on=un===void 0?{}:un,Bn=it.disabled,Nn=it.id,si=it.name,Pt=it.style,qn=it.styles,Ei=qn===void 0?{}:qn,$e=it.multiple,Fe=it.accept,Ne=it.capture,Qe=it.children,Ke=it.directory,Le=it.openFileDialogOnClick,At=it.onMouseEnter,Lt=it.onMouseLeave,tn=it.hasControlInside,$t=(0,Xe.Z)(it,xt),Ht=ne()((0,Ve.Z)((0,Ve.Z)((0,Ve.Z)({},mn,!0),"".concat(mn,"-disabled"),Bn),Ct,Ct)),rn=Ke?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},vn=Bn?{}:{onClick:Le?this.onClick:function(){},onKeyDown:Le?this.onKeyDown:function(){},onMouseEnter:At,onMouseLeave:Lt,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:tn?void 0:"0"};return ot.createElement(an,(0,le.Z)({},vn,{className:Ht,role:tn?void 0:"button",style:Pt}),ot.createElement("input",(0,le.Z)({},(0,fe.Z)($t,{aria:!0,data:!0}),{id:Nn,name:si,disabled:Bn,type:"file",ref:this.saveFileInput,onClick:function(wn){return wn.stopPropagation()},key:this.state.uid,style:(0,Je.Z)({display:"none"},Ei.input),className:on.input,accept:Fe},rn,{multiple:$e,onChange:this.onChange},Ne!=null?{capture:Ne}:{})),Qe)}}]),Nt}(ot.Component),wt=at;function Mt(){}var Xt=function(fn){(0,Ge.Z)(Nt,fn);var gn=(0,Oe.Z)(Nt);function Nt(){var ut;(0,Me.Z)(this,Nt);for(var it=arguments.length,an=new Array(it),mn=0;mn<it;mn++)an[mn]=arguments[mn];return ut=gn.call.apply(gn,[this].concat(an)),(0,Ve.Z)((0,Pe.Z)(ut),"uploader",void 0),(0,Ve.Z)((0,Pe.Z)(ut),"saveUploader",function(Ct){ut.uploader=Ct}),ut}return(0,Ie.Z)(Nt,[{key:"abort",value:function(it){this.uploader.abort(it)}},{key:"render",value:function(){return ot.createElement(wt,(0,le.Z)({},this.props,{ref:this.saveUploader}))}}]),Nt}(ot.Component);(0,Ve.Z)(Xt,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Mt,onError:Mt,onSuccess:Mt,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var bn=Xt,pn=bn},8224:function(ze,be,de){"use strict";de.d(be,{Z:function(){return Me}});var le=de(4676);function Me(Ie,Pe,Ge,Oe){var Ve=le.unstable_batchedUpdates?function(Je){le.unstable_batchedUpdates(Ge,Je)}:Ge;return Ie!=null&&Ie.addEventListener&&Ie.addEventListener(Pe,Ve,Oe),{remove:function(){Ie!=null&&Ie.removeEventListener&&Ie.removeEventListener(Pe,Ve,Oe)}}}},45680:function(ze,be,de){"use strict";de.d(be,{Z:function(){return Ei}});var le=de(72308),Me=de(62853),Ie=de(77321),Pe=de(49618),Ge=de(52487),Oe=de(74416),Ve=de(92310),ot=de.n(Ve),Je=de(29301),Xe=de(70425),vt=de(34280),st=de(59301),_t=de(4676),Ue=st.forwardRef(function($e,Fe){var Ne=$e.height,Qe=$e.offsetY,Ke=$e.offsetX,Le=$e.children,At=$e.prefixCls,Lt=$e.onInnerResize,tn=$e.innerProps,$t=$e.rtl,Ht=$e.extra,rn={},vn={display:"flex",flexDirection:"column"};return Qe!==void 0&&(rn={height:Ne,position:"relative",overflow:"hidden"},vn=(0,Ie.Z)((0,Ie.Z)({},vn),{},(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({transform:"translateY(".concat(Qe,"px)")},$t?"marginRight":"marginLeft",-Ke),"position","absolute"),"left",0),"right",0),"top",0))),st.createElement("div",{style:rn},st.createElement(Je.Z,{onResize:function(wn){var sn=wn.offsetHeight;sn&&Lt&&Lt()}},st.createElement("div",(0,le.Z)({style:vn,className:ot()((0,Pe.Z)({},"".concat(At,"-holder-inner"),At)),ref:Fe},tn),Le,Ht)))});Ue.displayName="Filler";var te=Ue;function ne($e){var Fe=$e.children,Ne=$e.setRef,Qe=st.useCallback(function(Ke){Ne(Ke)},[]);return st.cloneElement(Fe,{ref:Qe})}function fe($e,Fe,Ne,Qe,Ke,Le,At,Lt){var tn=Lt.getKey;return $e.slice(Fe,Ne+1).map(function($t,Ht){var rn=Fe+Ht,vn=At($t,rn,{style:{width:Qe},offsetX:Ke}),cn=tn($t);return st.createElement(ne,{key:cn,setRef:function(sn){return Le($t,sn)}},vn)})}function se($e,Fe,Ne,Qe){var Ke=Ne-$e,Le=Fe-Ne,At=Math.min(Ke,Le)*2;if(Qe<=At){var Lt=Math.floor(Qe/2);return Qe%2?Ne+Lt+1:Ne-Lt}return Ke>Le?Ne-(Qe-Le):Ne+(Qe-Ke)}function pe($e,Fe,Ne){var Qe=$e.length,Ke=Fe.length,Le,At;if(Qe===0&&Ke===0)return null;Qe<Ke?(Le=$e,At=Fe):(Le=Fe,At=$e);var Lt={__EMPTY_ITEM__:!0};function tn(wn){return wn!==void 0?Ne(wn):Lt}for(var $t=null,Ht=Math.abs(Qe-Ke)!==1,rn=0;rn<At.length;rn+=1){var vn=tn(Le[rn]),cn=tn(At[rn]);if(vn!==cn){$t=rn,Ht=Ht||vn!==tn(At[rn+1]);break}}return $t===null?null:{index:$t,multiple:Ht}}function Se($e,Fe,Ne){var Qe=st.useState($e),Ke=(0,Ge.Z)(Qe,2),Le=Ke[0],At=Ke[1],Lt=st.useState(null),tn=(0,Ge.Z)(Lt,2),$t=tn[0],Ht=tn[1];return st.useEffect(function(){var rn=pe(Le||[],$e||[],Fe);(rn==null?void 0:rn.index)!==void 0&&(Ne==null||Ne(rn.index),Ht($e[rn.index])),At($e)},[$e]),[$t]}var we=de(16089),De=(typeof navigator=="undefined"?"undefined":(0,Me.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Re=De,Ze=function($e,Fe,Ne,Qe){var Ke=(0,st.useRef)(!1),Le=(0,st.useRef)(null);function At(){clearTimeout(Le.current),Ke.current=!0,Le.current=setTimeout(function(){Ke.current=!1},50)}var Lt=(0,st.useRef)({top:$e,bottom:Fe,left:Ne,right:Qe});return Lt.current.top=$e,Lt.current.bottom=Fe,Lt.current.left=Ne,Lt.current.right=Qe,function(tn,$t){var Ht=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,rn=tn?$t<0&&Lt.current.left||$t>0&&Lt.current.right:$t<0&&Lt.current.top||$t>0&&Lt.current.bottom;return Ht&&rn?(clearTimeout(Le.current),Ke.current=!1):(!rn||Ke.current)&&At(),!Ke.current&&rn}};function nt($e,Fe,Ne,Qe,Ke,Le,At){var Lt=(0,st.useRef)(0),tn=(0,st.useRef)(null),$t=(0,st.useRef)(null),Ht=(0,st.useRef)(!1),rn=Ze(Fe,Ne,Qe,Ke);function vn(dn,En){if(we.Z.cancel(tn.current),!rn(!1,En)){var Jt=dn;if(!Jt._virtualHandled)Jt._virtualHandled=!0;else return;Lt.current+=En,$t.current=En,Re||Jt.preventDefault(),tn.current=(0,we.Z)(function(){var ui=Ht.current?10:1;At(Lt.current*ui,!1),Lt.current=0})}}function cn(dn,En){At(En,!0),Re||dn.preventDefault()}var wn=(0,st.useRef)(null),sn=(0,st.useRef)(null);function Ft(dn){if($e){we.Z.cancel(sn.current),sn.current=(0,we.Z)(function(){wn.current=null},2);var En=dn.deltaX,Jt=dn.deltaY,ui=dn.shiftKey,Gn=En,mt=Jt;(wn.current==="sx"||!wn.current&&ui&&Jt&&!En)&&(Gn=Jt,mt=0,wn.current="sx");var On=Math.abs(Gn),Cn=Math.abs(mt);wn.current===null&&(wn.current=Le&&On>Cn?"x":"y"),wn.current==="y"?vn(dn,mt):cn(dn,Gn)}}function jn(dn){$e&&(Ht.current=dn.detail===$t.current)}return[Ft,jn]}function rt($e,Fe,Ne,Qe){var Ke=st.useMemo(function(){return[new Map,[]]},[$e,Ne.id,Qe]),Le=(0,Ge.Z)(Ke,2),At=Le[0],Lt=Le[1],tn=function(Ht){var rn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ht,vn=At.get(Ht),cn=At.get(rn);if(vn===void 0||cn===void 0)for(var wn=$e.length,sn=Lt.length;sn<wn;sn+=1){var Ft,jn=$e[sn],dn=Fe(jn);At.set(dn,sn);var En=(Ft=Ne.get(dn))!==null&&Ft!==void 0?Ft:Qe;if(Lt[sn]=(Lt[sn-1]||0)+En,dn===Ht&&(vn=sn),dn===rn&&(cn=sn),vn!==void 0&&cn!==void 0)break}return{top:Lt[vn-1]||0,bottom:Lt[cn]}};return tn}var ft=de(96949),xt=de(55090),at=function(){function $e(){(0,ft.Z)(this,$e),(0,Pe.Z)(this,"maps",void 0),(0,Pe.Z)(this,"id",0),(0,Pe.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,xt.Z)($e,[{key:"set",value:function(Ne,Qe){this.maps[Ne]=Qe,this.id+=1,this.diffKeys.add(Ne)}},{key:"get",value:function(Ne){return this.maps[Ne]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),$e}(),wt=at;function Mt($e){var Fe=parseFloat($e);return isNaN(Fe)?0:Fe}function Xt($e,Fe,Ne){var Qe=st.useState(0),Ke=(0,Ge.Z)(Qe,2),Le=Ke[0],At=Ke[1],Lt=(0,st.useRef)(new Map),tn=(0,st.useRef)(new wt),$t=(0,st.useRef)(0);function Ht(){$t.current+=1}function rn(){var cn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Ht();var wn=function(){var jn=!1;Lt.current.forEach(function(dn,En){if(dn&&dn.offsetParent){var Jt=dn.offsetHeight,ui=getComputedStyle(dn),Gn=ui.marginTop,mt=ui.marginBottom,On=Mt(Gn),Cn=Mt(mt),jt=Jt+On+Cn;tn.current.get(En)!==jt&&(tn.current.set(En,jt),jn=!0)}}),jn&&At(function(dn){return dn+1})};if(cn)wn();else{$t.current+=1;var sn=$t.current;Promise.resolve().then(function(){sn===$t.current&&wn()})}}function vn(cn,wn){var sn=$e(cn),Ft=Lt.current.get(sn);wn?(Lt.current.set(sn,wn),rn()):Lt.current.delete(sn),!Ft!=!wn&&(wn?Fe==null||Fe(cn):Ne==null||Ne(cn))}return(0,st.useEffect)(function(){return Ht},[]),[vn,rn,tn.current,Le]}var bn=14/15;function pn($e,Fe,Ne){var Qe=(0,st.useRef)(!1),Ke=(0,st.useRef)(0),Le=(0,st.useRef)(0),At=(0,st.useRef)(null),Lt=(0,st.useRef)(null),tn,$t=function(cn){if(Qe.current){var wn=Math.ceil(cn.touches[0].pageX),sn=Math.ceil(cn.touches[0].pageY),Ft=Ke.current-wn,jn=Le.current-sn,dn=Math.abs(Ft)>Math.abs(jn);dn?Ke.current=wn:Le.current=sn;var En=Ne(dn,dn?Ft:jn,!1,cn);En&&cn.preventDefault(),clearInterval(Lt.current),En&&(Lt.current=setInterval(function(){dn?Ft*=bn:jn*=bn;var Jt=Math.floor(dn?Ft:jn);(!Ne(dn,Jt,!0)||Math.abs(Jt)<=.1)&&clearInterval(Lt.current)},16))}},Ht=function(){Qe.current=!1,tn()},rn=function(cn){tn(),cn.touches.length===1&&!Qe.current&&(Qe.current=!0,Ke.current=Math.ceil(cn.touches[0].pageX),Le.current=Math.ceil(cn.touches[0].pageY),At.current=cn.target,At.current.addEventListener("touchmove",$t,{passive:!1}),At.current.addEventListener("touchend",Ht,{passive:!0}))};tn=function(){At.current&&(At.current.removeEventListener("touchmove",$t),At.current.removeEventListener("touchend",Ht))},(0,vt.Z)(function(){return $e&&Fe.current.addEventListener("touchstart",rn,{passive:!0}),function(){var vn;(vn=Fe.current)===null||vn===void 0||vn.removeEventListener("touchstart",rn),tn(),clearInterval(Lt.current)}},[$e])}function fn($e){return Math.floor(Math.pow($e,.5))}function gn($e,Fe){var Ne="touches"in $e?$e.touches[0]:$e;return Ne[Fe?"pageX":"pageY"]-window[Fe?"scrollX":"scrollY"]}function Nt($e,Fe,Ne){st.useEffect(function(){var Qe=Fe.current;if($e&&Qe){var Ke=!1,Le,At,Lt=function(){we.Z.cancel(Le)},tn=function vn(){Lt(),Le=(0,we.Z)(function(){Ne(At),vn()})},$t=function(cn){if(!(cn.target.draggable||cn.button!==0)){var wn=cn;wn._virtualHandled||(wn._virtualHandled=!0,Ke=!0)}},Ht=function(){Ke=!1,Lt()},rn=function(cn){if(Ke){var wn=gn(cn,!1),sn=Qe.getBoundingClientRect(),Ft=sn.top,jn=sn.bottom;if(wn<=Ft){var dn=Ft-wn;At=-fn(dn),tn()}else if(wn>=jn){var En=wn-jn;At=fn(En),tn()}else Lt()}};return Qe.addEventListener("mousedown",$t),Qe.ownerDocument.addEventListener("mouseup",Ht),Qe.ownerDocument.addEventListener("mousemove",rn),function(){Qe.removeEventListener("mousedown",$t),Qe.ownerDocument.removeEventListener("mouseup",Ht),Qe.ownerDocument.removeEventListener("mousemove",rn),Lt()}}},[$e])}var ut=10;function it($e,Fe,Ne,Qe,Ke,Le,At,Lt){var tn=st.useRef(),$t=st.useState(null),Ht=(0,Ge.Z)($t,2),rn=Ht[0],vn=Ht[1];return(0,vt.Z)(function(){if(rn&&rn.times<ut){if(!$e.current){vn(function(Li){return(0,Ie.Z)({},Li)});return}Le();var cn=rn.targetAlign,wn=rn.originAlign,sn=rn.index,Ft=rn.offset,jn=$e.current.clientHeight,dn=!1,En=cn,Jt=null;if(jn){for(var ui=cn||wn,Gn=0,mt=0,On=0,Cn=Math.min(Fe.length-1,sn),jt=0;jt<=Cn;jt+=1){var mi=Ke(Fe[jt]);mt=Gn;var Hi=Ne.get(mi);On=mt+(Hi===void 0?Qe:Hi),Gn=On}for(var Oi=ui==="top"?Ft:jn-Ft,Mn=Cn;Mn>=0;Mn-=1){var lr=Ke(Fe[Mn]),Gi=Ne.get(lr);if(Gi===void 0){dn=!0;break}if(Oi-=Gi,Oi<=0)break}switch(ui){case"top":Jt=mt-Ft;break;case"bottom":Jt=On-jn+Ft;break;default:{var fi=$e.current.scrollTop,wi=fi+jn;mt<fi?En="top":On>wi&&(En="bottom")}}Jt!==null&&At(Jt),Jt!==rn.lastTop&&(dn=!0)}dn&&vn((0,Ie.Z)((0,Ie.Z)({},rn),{},{times:rn.times+1,targetAlign:En,lastTop:Jt}))}},[rn,$e.current]),function(cn){if(cn==null){Lt();return}if(we.Z.cancel(tn.current),typeof cn=="number")At(cn);else if(cn&&(0,Me.Z)(cn)==="object"){var wn,sn=cn.align;"index"in cn?wn=cn.index:wn=Fe.findIndex(function(dn){return Ke(dn)===cn.key});var Ft=cn.offset,jn=Ft===void 0?0:Ft;vn({times:0,index:wn,offset:jn,originAlign:sn})}}}var an=st.forwardRef(function($e,Fe){var Ne=$e.prefixCls,Qe=$e.rtl,Ke=$e.scrollOffset,Le=$e.scrollRange,At=$e.onStartMove,Lt=$e.onStopMove,tn=$e.onScroll,$t=$e.horizontal,Ht=$e.spinSize,rn=$e.containerSize,vn=$e.style,cn=$e.thumbStyle,wn=$e.showScrollBar,sn=st.useState(!1),Ft=(0,Ge.Z)(sn,2),jn=Ft[0],dn=Ft[1],En=st.useState(null),Jt=(0,Ge.Z)(En,2),ui=Jt[0],Gn=Jt[1],mt=st.useState(null),On=(0,Ge.Z)(mt,2),Cn=On[0],jt=On[1],mi=!Qe,Hi=st.useRef(),Oi=st.useRef(),Mn=st.useState(wn),lr=(0,Ge.Z)(Mn,2),Gi=lr[0],fi=lr[1],wi=st.useRef(),Li=function(){wn===!0||wn===!1||(clearTimeout(wi.current),fi(!0),wi.current=setTimeout(function(){fi(!1)},3e3))},Ce=Le-rn||0,Ci=rn-Ht||0,Bi=st.useMemo(function(){if(Ke===0||Ce===0)return 0;var It=Ke/Ce;return It*Ci},[Ke,Ce,Ci]),Ri=function($n){$n.stopPropagation(),$n.preventDefault()},Wn=st.useRef({top:Bi,dragging:jn,pageY:ui,startTop:Cn});Wn.current={top:Bi,dragging:jn,pageY:ui,startTop:Cn};var ci=function($n){dn(!0),Gn(gn($n,$t)),jt(Wn.current.top),At(),$n.stopPropagation(),$n.preventDefault()};st.useEffect(function(){var It=function(Rn){Rn.preventDefault()},$n=Hi.current,Yn=Oi.current;return $n.addEventListener("touchstart",It,{passive:!1}),Yn.addEventListener("touchstart",ci,{passive:!1}),function(){$n.removeEventListener("touchstart",It),Yn.removeEventListener("touchstart",ci)}},[]);var ti=st.useRef();ti.current=Ce;var ki=st.useRef();ki.current=Ci,st.useEffect(function(){if(jn){var It,$n=function(Rn){var oi=Wn.current,qt=oi.dragging,Gt=oi.pageY,li=oi.startTop;we.Z.cancel(It);var pt=Hi.current.getBoundingClientRect(),yn=rn/($t?pt.width:pt.height);if(qt){var ii=(gn(Rn,$t)-Gt)*yn,Ti=li;!mi&&$t?Ti-=ii:Ti+=ii;var zt=ti.current,xn=ki.current,vi=xn?Ti/xn:0,nn=Math.ceil(vi*zt);nn=Math.max(nn,0),nn=Math.min(nn,zt),It=(0,we.Z)(function(){tn(nn,$t)})}},Yn=function(){dn(!1),Lt()};return window.addEventListener("mousemove",$n,{passive:!0}),window.addEventListener("touchmove",$n,{passive:!0}),window.addEventListener("mouseup",Yn,{passive:!0}),window.addEventListener("touchend",Yn,{passive:!0}),function(){window.removeEventListener("mousemove",$n),window.removeEventListener("touchmove",$n),window.removeEventListener("mouseup",Yn),window.removeEventListener("touchend",Yn),we.Z.cancel(It)}}},[jn]),st.useEffect(function(){return Li(),function(){clearTimeout(wi.current)}},[Ke]),st.useImperativeHandle(Fe,function(){return{delayHidden:Li}});var ni="".concat(Ne,"-scrollbar"),Vt={position:"absolute",visibility:Gi?null:"hidden"},Ut={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return $t?(Vt.height=8,Vt.left=0,Vt.right=0,Vt.bottom=0,Ut.height="100%",Ut.width=Ht,mi?Ut.left=Bi:Ut.right=Bi):(Vt.width=8,Vt.top=0,Vt.bottom=0,mi?Vt.right=0:Vt.left=0,Ut.width="100%",Ut.height=Ht,Ut.top=Bi),st.createElement("div",{ref:Hi,className:ot()(ni,(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({},"".concat(ni,"-horizontal"),$t),"".concat(ni,"-vertical"),!$t),"".concat(ni,"-visible"),Gi)),style:(0,Ie.Z)((0,Ie.Z)({},Vt),vn),onMouseDown:Ri,onMouseMove:Li},st.createElement("div",{ref:Oi,className:ot()("".concat(ni,"-thumb"),(0,Pe.Z)({},"".concat(ni,"-thumb-moving"),jn)),style:(0,Ie.Z)((0,Ie.Z)({},Ut),cn),onMouseDown:ci}))}),mn=an,Ct=20;function un(){var $e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Ne=$e/Fe*$e;return isNaN(Ne)&&(Ne=0),Ne=Math.max(Ne,Ct),Math.floor(Ne)}var on=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Bn=[],Nn={overflowY:"auto",overflowAnchor:"none"};function si($e,Fe){var Ne=$e.prefixCls,Qe=Ne===void 0?"rc-virtual-list":Ne,Ke=$e.className,Le=$e.height,At=$e.itemHeight,Lt=$e.fullHeight,tn=Lt===void 0?!0:Lt,$t=$e.style,Ht=$e.data,rn=$e.children,vn=$e.itemKey,cn=$e.virtual,wn=$e.direction,sn=$e.scrollWidth,Ft=$e.component,jn=Ft===void 0?"div":Ft,dn=$e.onScroll,En=$e.onVirtualScroll,Jt=$e.onVisibleChange,ui=$e.innerProps,Gn=$e.extraRender,mt=$e.styles,On=$e.showScrollBar,Cn=On===void 0?"optional":On,jt=(0,Oe.Z)($e,on),mi=st.useCallback(function(Xi){return typeof vn=="function"?vn(Xi):Xi==null?void 0:Xi[vn]},[vn]),Hi=Xt(mi,null,null),Oi=(0,Ge.Z)(Hi,4),Mn=Oi[0],lr=Oi[1],Gi=Oi[2],fi=Oi[3],wi=!!(cn!==!1&&Le&&At),Li=st.useMemo(function(){return Object.values(Gi.maps).reduce(function(Xi,nr){return Xi+nr},0)},[Gi.id,Gi.maps]),Ce=wi&&Ht&&(Math.max(At*Ht.length,Li)>Le||!!sn),Ci=wn==="rtl",Bi=ot()(Qe,(0,Pe.Z)({},"".concat(Qe,"-rtl"),Ci),Ke),Ri=Ht||Bn,Wn=(0,st.useRef)(),ci=(0,st.useRef)(),ti=(0,st.useRef)(),ki=(0,st.useState)(0),ni=(0,Ge.Z)(ki,2),Vt=ni[0],Ut=ni[1],It=(0,st.useState)(0),$n=(0,Ge.Z)(It,2),Yn=$n[0],yi=$n[1],Rn=(0,st.useState)(!1),oi=(0,Ge.Z)(Rn,2),qt=oi[0],Gt=oi[1],li=function(){Gt(!0)},pt=function(){Gt(!1)},yn={getKey:mi};function ii(Xi){Ut(function(nr){var Ir;typeof Xi=="function"?Ir=Xi(nr):Ir=Xi;var Ar=Zi(Ir);return Wn.current.scrollTop=Ar,Ar})}var Ti=(0,st.useRef)({start:0,end:Ri.length}),zt=(0,st.useRef)(),xn=Se(Ri,mi),vi=(0,Ge.Z)(xn,1),nn=vi[0];zt.current=nn;var _e=st.useMemo(function(){if(!wi)return{scrollHeight:void 0,start:0,end:Ri.length-1,offset:void 0};if(!Ce){var Xi;return{scrollHeight:((Xi=ci.current)===null||Xi===void 0?void 0:Xi.offsetHeight)||0,start:0,end:Ri.length-1,offset:void 0}}for(var nr=0,Ir,Ar,kr,Uo=Ri.length,hr=0;hr<Uo;hr+=1){var ar=Ri[hr],ri=mi(ar),Ji=Gi.get(ri),Zr=nr+(Ji===void 0?At:Ji);Zr>=Vt&&Ir===void 0&&(Ir=hr,Ar=nr),Zr>Vt+Le&&kr===void 0&&(kr=hr),nr=Zr}return Ir===void 0&&(Ir=0,Ar=0,kr=Math.ceil(Le/At)),kr===void 0&&(kr=Ri.length-1),kr=Math.min(kr+1,Ri.length-1),{scrollHeight:nr,start:Ir,end:kr,offset:Ar}},[Ce,wi,Vt,Ri,fi,Le]),Ni=_e.scrollHeight,hi=_e.start,Pn=_e.end,Yi=_e.offset;Ti.current.start=hi,Ti.current.end=Pn,st.useLayoutEffect(function(){var Xi=Gi.getRecord();if(Xi.size===1){var nr=Array.from(Xi)[0],Ir=Ri[hi];if(Ir){var Ar=mi(Ir);if(Ar===nr){var kr=Gi.get(nr),Uo=kr-At;ii(function(hr){return hr+Uo})}}}Gi.resetRecord()},[Ni]);var Qi=st.useState({width:0,height:Le}),er=(0,Ge.Z)(Qi,2),Tn=er[0],Zt=er[1],$i=function(nr){Zt({width:nr.offsetWidth,height:nr.offsetHeight})},Vr=(0,st.useRef)(),en=(0,st.useRef)(),gi=st.useMemo(function(){return un(Tn.width,sn)},[Tn.width,sn]),Mi=st.useMemo(function(){return un(Tn.height,Ni)},[Tn.height,Ni]),ji=Ni-Le,Fi=(0,st.useRef)(ji);Fi.current=ji;function Zi(Xi){var nr=Xi;return Number.isNaN(Fi.current)||(nr=Math.min(nr,Fi.current)),nr=Math.max(nr,0),nr}var Sr=Vt<=0,gr=Vt>=ji,mr=Yn<=0,br=Yn>=sn,Fn=Ze(Sr,gr,mr,br),dr=function(){return{x:Ci?-Yn:Yn,y:Vt}},In=(0,st.useRef)(dr()),wr=(0,Xe.zX)(function(Xi){if(En){var nr=(0,Ie.Z)((0,Ie.Z)({},dr()),Xi);(In.current.x!==nr.x||In.current.y!==nr.y)&&(En(nr),In.current=nr)}});function Cr(Xi,nr){var Ir=Xi;nr?((0,_t.flushSync)(function(){yi(Ir)}),wr()):ii(Ir)}function Tr(Xi){var nr=Xi.currentTarget.scrollTop;nr!==Vt&&ii(nr),dn==null||dn(Xi),wr()}var mo=function(nr){var Ir=nr,Ar=sn?sn-Tn.width:0;return Ir=Math.max(Ir,0),Ir=Math.min(Ir,Ar),Ir},ao=(0,Xe.zX)(function(Xi,nr){nr?((0,_t.flushSync)(function(){yi(function(Ir){var Ar=Ir+(Ci?-Xi:Xi);return mo(Ar)})}),wr()):ii(function(Ir){var Ar=Ir+Xi;return Ar})}),Wr=nt(wi,Sr,gr,mr,br,!!sn,ao),Xr=(0,Ge.Z)(Wr,2),pa=Xr[0],no=Xr[1];pn(wi,Wn,function(Xi,nr,Ir,Ar){var kr=Ar;return Fn(Xi,nr,Ir)?!1:!kr||!kr._virtualHandled?(kr&&(kr._virtualHandled=!0),pa({preventDefault:function(){},deltaX:Xi?nr:0,deltaY:Xi?0:nr}),!0):!1}),Nt(Ce,Wn,function(Xi){ii(function(nr){return nr+Xi})}),(0,vt.Z)(function(){function Xi(Ir){var Ar=Sr&&Ir.detail<0,kr=gr&&Ir.detail>0;wi&&!Ar&&!kr&&Ir.preventDefault()}var nr=Wn.current;return nr.addEventListener("wheel",pa,{passive:!1}),nr.addEventListener("DOMMouseScroll",no,{passive:!0}),nr.addEventListener("MozMousePixelScroll",Xi,{passive:!1}),function(){nr.removeEventListener("wheel",pa),nr.removeEventListener("DOMMouseScroll",no),nr.removeEventListener("MozMousePixelScroll",Xi)}},[wi,Sr,gr]),(0,vt.Z)(function(){if(sn){var Xi=mo(Yn);yi(Xi),wr({x:Xi})}},[Tn.width,sn]);var zi=function(){var nr,Ir;(nr=Vr.current)===null||nr===void 0||nr.delayHidden(),(Ir=en.current)===null||Ir===void 0||Ir.delayHidden()},lt=it(Wn,Ri,Gi,At,mi,function(){return lr(!0)},ii,zi);st.useImperativeHandle(Fe,function(){return{nativeElement:ti.current,getScrollInfo:dr,scrollTo:function(nr){function Ir(Ar){return Ar&&(0,Me.Z)(Ar)==="object"&&("left"in Ar||"top"in Ar)}Ir(nr)?(nr.left!==void 0&&yi(mo(nr.left)),lt(nr.top)):lt(nr)}}}),(0,vt.Z)(function(){if(Jt){var Xi=Ri.slice(hi,Pn+1);Jt(Xi,Ri)}},[hi,Pn,Ri]);var Go=rt(Ri,mi,Gi,At),Lr=Gn==null?void 0:Gn({start:hi,end:Pn,virtual:Ce,offsetX:Yn,offsetY:Yi,rtl:Ci,getSize:Go}),zr=fe(Ri,hi,Pn,sn,Yn,Mn,rn,yn),$r=null;Le&&($r=(0,Ie.Z)((0,Pe.Z)({},tn?"height":"maxHeight",Le),Nn),wi&&($r.overflowY="hidden",sn&&($r.overflowX="hidden"),qt&&($r.pointerEvents="none")));var fo={};return Ci&&(fo.dir="rtl"),st.createElement("div",(0,le.Z)({ref:ti,style:(0,Ie.Z)((0,Ie.Z)({},$t),{},{position:"relative"}),className:Bi},fo,jt),st.createElement(Je.Z,{onResize:$i},st.createElement(jn,{className:"".concat(Qe,"-holder"),style:$r,ref:Wn,onScroll:Tr,onMouseEnter:zi},st.createElement(te,{prefixCls:Qe,height:Ni,offsetX:Yn,offsetY:Yi,scrollWidth:sn,onInnerResize:lr,ref:ci,innerProps:ui,rtl:Ci,extra:Lr},zr))),Ce&&Ni>Le&&st.createElement(mn,{ref:Vr,prefixCls:Qe,scrollOffset:Vt,scrollRange:Ni,rtl:Ci,onScroll:Cr,onStartMove:li,onStopMove:pt,spinSize:Mi,containerSize:Tn.height,style:mt==null?void 0:mt.verticalScrollBar,thumbStyle:mt==null?void 0:mt.verticalScrollBarThumb,showScrollBar:Cn}),Ce&&sn>Tn.width&&st.createElement(mn,{ref:en,prefixCls:Qe,scrollOffset:Yn,scrollRange:sn,rtl:Ci,onScroll:Cr,onStartMove:li,onStopMove:pt,spinSize:gi,containerSize:Tn.width,horizontal:!0,style:mt==null?void 0:mt.horizontalScrollBar,thumbStyle:mt==null?void 0:mt.horizontalScrollBarThumb,showScrollBar:Cn}))}var Pt=st.forwardRef(si);Pt.displayName="List";var qn=Pt,Ei=qn},77596:function(ze,be,de){"use strict";de.d(be,{Z:function(){return ut}});var le=de(74416),Me=de(80702),Ie=de(49618),Pe=de(59301),Ge=de(72308);function Oe(it,an){var mn=Object.keys(it);if(Object.getOwnPropertySymbols){var Ct=Object.getOwnPropertySymbols(it);an&&(Ct=Ct.filter(function(un){return Object.getOwnPropertyDescriptor(it,un).enumerable})),mn.push.apply(mn,Ct)}return mn}function Ve(it){for(var an=1;an<arguments.length;an++){var mn=arguments[an]!=null?arguments[an]:{};an%2?Oe(Object(mn),!0).forEach(function(Ct){(0,Ie.Z)(it,Ct,mn[Ct])}):Object.getOwnPropertyDescriptors?Object.defineProperties(it,Object.getOwnPropertyDescriptors(mn)):Oe(Object(mn)).forEach(function(Ct){Object.defineProperty(it,Ct,Object.getOwnPropertyDescriptor(mn,Ct))})}return it}function ot(it){var an=it.length;if(an===0||an===1)return it;if(an===2)return[it[0],it[1],"".concat(it[0],".").concat(it[1]),"".concat(it[1],".").concat(it[0])];if(an===3)return[it[0],it[1],it[2],"".concat(it[0],".").concat(it[1]),"".concat(it[0],".").concat(it[2]),"".concat(it[1],".").concat(it[0]),"".concat(it[1],".").concat(it[2]),"".concat(it[2],".").concat(it[0]),"".concat(it[2],".").concat(it[1]),"".concat(it[0],".").concat(it[1],".").concat(it[2]),"".concat(it[0],".").concat(it[2],".").concat(it[1]),"".concat(it[1],".").concat(it[0],".").concat(it[2]),"".concat(it[1],".").concat(it[2],".").concat(it[0]),"".concat(it[2],".").concat(it[0],".").concat(it[1]),"".concat(it[2],".").concat(it[1],".").concat(it[0])];if(an>=4)return[it[0],it[1],it[2],it[3],"".concat(it[0],".").concat(it[1]),"".concat(it[0],".").concat(it[2]),"".concat(it[0],".").concat(it[3]),"".concat(it[1],".").concat(it[0]),"".concat(it[1],".").concat(it[2]),"".concat(it[1],".").concat(it[3]),"".concat(it[2],".").concat(it[0]),"".concat(it[2],".").concat(it[1]),"".concat(it[2],".").concat(it[3]),"".concat(it[3],".").concat(it[0]),"".concat(it[3],".").concat(it[1]),"".concat(it[3],".").concat(it[2]),"".concat(it[0],".").concat(it[1],".").concat(it[2]),"".concat(it[0],".").concat(it[1],".").concat(it[3]),"".concat(it[0],".").concat(it[2],".").concat(it[1]),"".concat(it[0],".").concat(it[2],".").concat(it[3]),"".concat(it[0],".").concat(it[3],".").concat(it[1]),"".concat(it[0],".").concat(it[3],".").concat(it[2]),"".concat(it[1],".").concat(it[0],".").concat(it[2]),"".concat(it[1],".").concat(it[0],".").concat(it[3]),"".concat(it[1],".").concat(it[2],".").concat(it[0]),"".concat(it[1],".").concat(it[2],".").concat(it[3]),"".concat(it[1],".").concat(it[3],".").concat(it[0]),"".concat(it[1],".").concat(it[3],".").concat(it[2]),"".concat(it[2],".").concat(it[0],".").concat(it[1]),"".concat(it[2],".").concat(it[0],".").concat(it[3]),"".concat(it[2],".").concat(it[1],".").concat(it[0]),"".concat(it[2],".").concat(it[1],".").concat(it[3]),"".concat(it[2],".").concat(it[3],".").concat(it[0]),"".concat(it[2],".").concat(it[3],".").concat(it[1]),"".concat(it[3],".").concat(it[0],".").concat(it[1]),"".concat(it[3],".").concat(it[0],".").concat(it[2]),"".concat(it[3],".").concat(it[1],".").concat(it[0]),"".concat(it[3],".").concat(it[1],".").concat(it[2]),"".concat(it[3],".").concat(it[2],".").concat(it[0]),"".concat(it[3],".").concat(it[2],".").concat(it[1]),"".concat(it[0],".").concat(it[1],".").concat(it[2],".").concat(it[3]),"".concat(it[0],".").concat(it[1],".").concat(it[3],".").concat(it[2]),"".concat(it[0],".").concat(it[2],".").concat(it[1],".").concat(it[3]),"".concat(it[0],".").concat(it[2],".").concat(it[3],".").concat(it[1]),"".concat(it[0],".").concat(it[3],".").concat(it[1],".").concat(it[2]),"".concat(it[0],".").concat(it[3],".").concat(it[2],".").concat(it[1]),"".concat(it[1],".").concat(it[0],".").concat(it[2],".").concat(it[3]),"".concat(it[1],".").concat(it[0],".").concat(it[3],".").concat(it[2]),"".concat(it[1],".").concat(it[2],".").concat(it[0],".").concat(it[3]),"".concat(it[1],".").concat(it[2],".").concat(it[3],".").concat(it[0]),"".concat(it[1],".").concat(it[3],".").concat(it[0],".").concat(it[2]),"".concat(it[1],".").concat(it[3],".").concat(it[2],".").concat(it[0]),"".concat(it[2],".").concat(it[0],".").concat(it[1],".").concat(it[3]),"".concat(it[2],".").concat(it[0],".").concat(it[3],".").concat(it[1]),"".concat(it[2],".").concat(it[1],".").concat(it[0],".").concat(it[3]),"".concat(it[2],".").concat(it[1],".").concat(it[3],".").concat(it[0]),"".concat(it[2],".").concat(it[3],".").concat(it[0],".").concat(it[1]),"".concat(it[2],".").concat(it[3],".").concat(it[1],".").concat(it[0]),"".concat(it[3],".").concat(it[0],".").concat(it[1],".").concat(it[2]),"".concat(it[3],".").concat(it[0],".").concat(it[2],".").concat(it[1]),"".concat(it[3],".").concat(it[1],".").concat(it[0],".").concat(it[2]),"".concat(it[3],".").concat(it[1],".").concat(it[2],".").concat(it[0]),"".concat(it[3],".").concat(it[2],".").concat(it[0],".").concat(it[1]),"".concat(it[3],".").concat(it[2],".").concat(it[1],".").concat(it[0])]}var Je={};function Xe(it){if(it.length===0||it.length===1)return it;var an=it.join(".");return Je[an]||(Je[an]=ot(it)),Je[an]}function vt(it){var an=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},mn=arguments.length>2?arguments[2]:void 0,Ct=it.filter(function(on){return on!=="token"}),un=Xe(Ct);return un.reduce(function(on,Bn){return Ve(Ve({},on),mn[Bn])},an)}function st(it){return it.join(" ")}function _t(it,an){var mn=0;return function(Ct){return mn+=1,Ct.map(function(un,on){return Ue({node:un,stylesheet:it,useInlineStyles:an,key:"code-segment-".concat(mn,"-").concat(on)})})}}function Ue(it){var an=it.node,mn=it.stylesheet,Ct=it.style,un=Ct===void 0?{}:Ct,on=it.useInlineStyles,Bn=it.key,Nn=an.properties,si=an.type,Pt=an.tagName,qn=an.value;if(si==="text")return qn;if(Pt){var Ei=_t(mn,on),$e;if(!on)$e=Ve(Ve({},Nn),{},{className:st(Nn.className)});else{var Fe=Object.keys(mn).reduce(function(Le,At){return At.split(".").forEach(function(Lt){Le.includes(Lt)||Le.push(Lt)}),Le},[]),Ne=Nn.className&&Nn.className.includes("token")?["token"]:[],Qe=Nn.className&&Ne.concat(Nn.className.filter(function(Le){return!Fe.includes(Le)}));$e=Ve(Ve({},Nn),{},{className:st(Qe)||void 0,style:vt(Nn.className,Object.assign({},Nn.style,un),mn)})}var Ke=Ei(an.children);return Pe.createElement(Pt,(0,Ge.Z)({key:Bn},$e),Ke)}}var te=function(it,an){var mn=it.listLanguages();return mn.indexOf(an)!==-1},ne=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function fe(it,an){var mn=Object.keys(it);if(Object.getOwnPropertySymbols){var Ct=Object.getOwnPropertySymbols(it);an&&(Ct=Ct.filter(function(un){return Object.getOwnPropertyDescriptor(it,un).enumerable})),mn.push.apply(mn,Ct)}return mn}function se(it){for(var an=1;an<arguments.length;an++){var mn=arguments[an]!=null?arguments[an]:{};an%2?fe(Object(mn),!0).forEach(function(Ct){(0,Ie.Z)(it,Ct,mn[Ct])}):Object.getOwnPropertyDescriptors?Object.defineProperties(it,Object.getOwnPropertyDescriptors(mn)):fe(Object(mn)).forEach(function(Ct){Object.defineProperty(it,Ct,Object.getOwnPropertyDescriptor(mn,Ct))})}return it}var pe=/\n/g;function Se(it){return it.match(pe)}function we(it){var an=it.lines,mn=it.startingLineNumber,Ct=it.style;return an.map(function(un,on){var Bn=on+mn;return Pe.createElement("span",{key:"line-".concat(on),className:"react-syntax-highlighter-line-number",style:typeof Ct=="function"?Ct(Bn):Ct},"".concat(Bn,`
`))})}function De(it){var an=it.codeString,mn=it.codeStyle,Ct=it.containerStyle,un=Ct===void 0?{float:"left",paddingRight:"10px"}:Ct,on=it.numberStyle,Bn=on===void 0?{}:on,Nn=it.startingLineNumber;return Pe.createElement("code",{style:Object.assign({},mn,un)},we({lines:an.replace(/\n$/,"").split(`
`),style:Bn,startingLineNumber:Nn}))}function Re(it){return"".concat(it.toString().length,".25em")}function Ze(it,an){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(it),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:an},children:[{type:"text",value:it}]}}function nt(it,an,mn){var Ct={display:"inline-block",minWidth:Re(mn),paddingRight:"1em",textAlign:"right",userSelect:"none"},un=typeof it=="function"?it(an):it,on=se(se({},Ct),un);return on}function rt(it){var an=it.children,mn=it.lineNumber,Ct=it.lineNumberStyle,un=it.largestLineNumber,on=it.showInlineLineNumbers,Bn=it.lineProps,Nn=Bn===void 0?{}:Bn,si=it.className,Pt=si===void 0?[]:si,qn=it.showLineNumbers,Ei=it.wrapLongLines,$e=it.wrapLines,Fe=$e===void 0?!1:$e,Ne=Fe?se({},typeof Nn=="function"?Nn(mn):Nn):{};if(Ne.className=Ne.className?[].concat((0,Me.Z)(Ne.className.trim().split(/\s+/)),(0,Me.Z)(Pt)):Pt,mn&&on){var Qe=nt(Ct,mn,un);an.unshift(Ze(mn,Qe))}return Ei&qn&&(Ne.style=se({display:"flex"},Ne.style)),{type:"element",tagName:"span",properties:Ne,children:an}}function ft(it){for(var an=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],mn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],Ct=0;Ct<it.length;Ct++){var un=it[Ct];if(un.type==="text")mn.push(rt({children:[un],className:(0,Me.Z)(new Set(an))}));else if(un.children){var on=an.concat(un.properties.className);ft(un.children,on).forEach(function(Bn){return mn.push(Bn)})}}return mn}function xt(it,an,mn,Ct,un,on,Bn,Nn,si){var Pt,qn=ft(it.value),Ei=[],$e=-1,Fe=0;function Ne($t,Ht){var rn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return rt({children:$t,lineNumber:Ht,lineNumberStyle:Nn,largestLineNumber:Bn,showInlineLineNumbers:un,lineProps:mn,className:rn,showLineNumbers:Ct,wrapLongLines:si,wrapLines:an})}function Qe($t,Ht){if(Ct&&Ht&&un){var rn=nt(Nn,Ht,Bn);$t.unshift(Ze(Ht,rn))}return $t}function Ke($t,Ht){var rn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return an||rn.length>0?Ne($t,Ht,rn):Qe($t,Ht)}for(var Le=function(){var Ht=qn[Fe],rn=Ht.children[0].value,vn=Se(rn);if(vn){var cn=rn.split(`
`);cn.forEach(function(wn,sn){var Ft=Ct&&Ei.length+on,jn={type:"text",value:"".concat(wn,`
`)};if(sn===0){var dn=qn.slice($e+1,Fe).concat(rt({children:[jn],className:Ht.properties.className})),En=Ke(dn,Ft);Ei.push(En)}else if(sn===cn.length-1){var Jt=qn[Fe+1]&&qn[Fe+1].children&&qn[Fe+1].children[0],ui={type:"text",value:"".concat(wn)};if(Jt){var Gn=rt({children:[ui],className:Ht.properties.className});qn.splice(Fe+1,0,Gn)}else{var mt=[ui],On=Ke(mt,Ft,Ht.properties.className);Ei.push(On)}}else{var Cn=[jn],jt=Ke(Cn,Ft,Ht.properties.className);Ei.push(jt)}}),$e=Fe}Fe++};Fe<qn.length;)Le();if($e!==qn.length-1){var At=qn.slice($e+1,qn.length);if(At&&At.length){var Lt=Ct&&Ei.length+on,tn=Ke(At,Lt);Ei.push(tn)}}return an?Ei:(Pt=[]).concat.apply(Pt,Ei)}function at(it){var an=it.rows,mn=it.stylesheet,Ct=it.useInlineStyles;return an.map(function(un,on){return Ue({node:un,stylesheet:mn,useInlineStyles:Ct,key:"code-segement".concat(on)})})}function wt(it){return it&&typeof it.highlightAuto!="undefined"}function Mt(it){var an=it.astGenerator,mn=it.language,Ct=it.code,un=it.defaultCodeValue;if(wt(an)){var on=te(an,mn);return mn==="text"?{value:un,language:"text"}:on?an.highlight(mn,Ct):an.highlightAuto(Ct)}try{return mn&&mn!=="text"?{value:an.highlight(Ct,mn)}:{value:un}}catch(Bn){return{value:un}}}function Xt(it,an){return function(Ct){var un=Ct.language,on=Ct.children,Bn=Ct.style,Nn=Bn===void 0?an:Bn,si=Ct.customStyle,Pt=si===void 0?{}:si,qn=Ct.codeTagProps,Ei=qn===void 0?{className:un?"language-".concat(un):void 0,style:se(se({},Nn['code[class*="language-"]']),Nn['code[class*="language-'.concat(un,'"]')])}:qn,$e=Ct.useInlineStyles,Fe=$e===void 0?!0:$e,Ne=Ct.showLineNumbers,Qe=Ne===void 0?!1:Ne,Ke=Ct.showInlineLineNumbers,Le=Ke===void 0?!0:Ke,At=Ct.startingLineNumber,Lt=At===void 0?1:At,tn=Ct.lineNumberContainerStyle,$t=Ct.lineNumberStyle,Ht=$t===void 0?{}:$t,rn=Ct.wrapLines,vn=Ct.wrapLongLines,cn=vn===void 0?!1:vn,wn=Ct.lineProps,sn=wn===void 0?{}:wn,Ft=Ct.renderer,jn=Ct.PreTag,dn=jn===void 0?"pre":jn,En=Ct.CodeTag,Jt=En===void 0?"code":En,ui=Ct.code,Gn=ui===void 0?(Array.isArray(on)?on[0]:on)||"":ui,mt=Ct.astGenerator,On=(0,le.Z)(Ct,ne);mt=mt||it;var Cn=Qe?Pe.createElement(De,{containerStyle:tn,codeStyle:Ei.style||{},numberStyle:Ht,startingLineNumber:Lt,codeString:Gn}):null,jt=Nn.hljs||Nn['pre[class*="language-"]']||{backgroundColor:"#fff"},mi=wt(mt)?"hljs":"prismjs",Hi=Fe?Object.assign({},On,{style:Object.assign({},jt,Pt)}):Object.assign({},On,{className:On.className?"".concat(mi," ").concat(On.className):mi,style:Object.assign({},Pt)});if(cn?Ei.style=se({whiteSpace:"pre-wrap"},Ei.style):Ei.style=se({whiteSpace:"pre"},Ei.style),!mt)return Pe.createElement(dn,Hi,Cn,Pe.createElement(Jt,Ei,Gn));(rn===void 0&&Ft||cn)&&(rn=!0),Ft=Ft||at;var Oi=[{type:"text",value:Gn}],Mn=Mt({astGenerator:mt,language:un,code:Gn,defaultCodeValue:Oi});Mn.language===null&&(Mn.value=Oi);var lr=Mn.value.length;lr===1&&Mn.value[0].type==="text"&&(lr=Mn.value[0].value.split(`
`).length);var Gi=lr+Lt,fi=xt(Mn,rn,sn,Qe,Le,Lt,Gi,Ht,cn);return Pe.createElement(dn,Hi,Pe.createElement(Jt,Ei,!Le&&Cn,Ft({rows:fi,stylesheet:Nn,useInlineStyles:Fe})))}}var bn={'code[class*="language-"]':{color:"black",background:"none",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"black",background:"#f5f2f0",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},':not(pre) > code[class*="language-"]':{background:"#f5f2f0",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"slategray"},prolog:{color:"slategray"},doctype:{color:"slategray"},cdata:{color:"slategray"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#905"},tag:{color:"#905"},boolean:{color:"#905"},number:{color:"#905"},constant:{color:"#905"},symbol:{color:"#905"},deleted:{color:"#905"},selector:{color:"#690"},"attr-name":{color:"#690"},string:{color:"#690"},char:{color:"#690"},builtin:{color:"#690"},inserted:{color:"#690"},operator:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},entity:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)",cursor:"help"},url:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".language-css .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".style .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},atrule:{color:"#07a"},"attr-value":{color:"#07a"},keyword:{color:"#07a"},function:{color:"#DD4A68"},"class-name":{color:"#DD4A68"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},variable:{color:"#e90"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}},pn=de(11594),fn=de.n(pn),gn=["abap","abnf","actionscript","ada","agda","al","antlr4","apacheconf","apex","apl","applescript","aql","arduino","arff","asciidoc","asm6502","asmatmel","aspnet","autohotkey","autoit","avisynth","avro-idl","bash","basic","batch","bbcode","bicep","birb","bison","bnf","brainfuck","brightscript","bro","bsl","c","cfscript","chaiscript","cil","clike","clojure","cmake","cobol","coffeescript","concurnas","coq","cpp","crystal","csharp","cshtml","csp","css-extras","css","csv","cypher","d","dart","dataweave","dax","dhall","diff","django","dns-zone-file","docker","dot","ebnf","editorconfig","eiffel","ejs","elixir","elm","erb","erlang","etlua","excel-formula","factor","false","firestore-security-rules","flow","fortran","fsharp","ftl","gap","gcode","gdscript","gedcom","gherkin","git","glsl","gml","gn","go-module","go","graphql","groovy","haml","handlebars","haskell","haxe","hcl","hlsl","hoon","hpkp","hsts","http","ichigojam","icon","icu-message-format","idris","iecst","ignore","inform7","ini","io","j","java","javadoc","javadoclike","javascript","javastacktrace","jexl","jolie","jq","js-extras","js-templates","jsdoc","json","json5","jsonp","jsstacktrace","jsx","julia","keepalived","keyman","kotlin","kumir","kusto","latex","latte","less","lilypond","liquid","lisp","livescript","llvm","log","lolcode","lua","magma","makefile","markdown","markup-templating","markup","matlab","maxscript","mel","mermaid","mizar","mongodb","monkey","moonscript","n1ql","n4js","nand2tetris-hdl","naniscript","nasm","neon","nevod","nginx","nim","nix","nsis","objectivec","ocaml","opencl","openqasm","oz","parigp","parser","pascal","pascaligo","pcaxis","peoplecode","perl","php-extras","php","phpdoc","plsql","powerquery","powershell","processing","prolog","promql","properties","protobuf","psl","pug","puppet","pure","purebasic","purescript","python","q","qml","qore","qsharp","r","racket","reason","regex","rego","renpy","rest","rip","roboconf","robotframework","ruby","rust","sas","sass","scala","scheme","scss","shell-session","smali","smalltalk","smarty","sml","solidity","solution-file","soy","sparql","splunk-spl","sqf","sql","squirrel","stan","stylus","swift","systemd","t4-cs","t4-templating","t4-vb","tap","tcl","textile","toml","tremor","tsx","tt2","turtle","twig","typescript","typoscript","unrealscript","uorazor","uri","v","vala","vbnet","velocity","verilog","vhdl","vim","visual-basic","warpscript","wasm","web-idl","wiki","wolfram","wren","xeora","xml-doc","xojo","xquery","yaml","yang","zig"],Nt=Xt(fn(),bn);Nt.supportedLanguages=gn;var ut=Nt},14179:function(ze,be){"use strict";be.Z={'pre[class*="language-"]':{color:"#d4d4d4",fontSize:"13px",textShadow:"none",fontFamily:'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",background:"#1e1e1e"},'code[class*="language-"]':{color:"#d4d4d4",fontSize:"13px",textShadow:"none",fontFamily:'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#264F78"},'code[class*="language-"]::selection':{textShadow:"none",background:"#264F78"},'pre[class*="language-"] *::selection':{textShadow:"none",background:"#264F78"},'code[class*="language-"] *::selection':{textShadow:"none",background:"#264F78"},':not(pre) > code[class*="language-"]':{padding:".1em .3em",borderRadius:".3em",color:"#db4c69",background:"#1e1e1e"},".namespace":{Opacity:".7"},"doctype.doctype-tag":{color:"#569CD6"},"doctype.name":{color:"#9cdcfe"},comment:{color:"#6a9955"},prolog:{color:"#6a9955"},punctuation:{color:"#d4d4d4"},".language-html .language-css .token.punctuation":{color:"#d4d4d4"},".language-html .language-javascript .token.punctuation":{color:"#d4d4d4"},property:{color:"#9cdcfe"},tag:{color:"#569cd6"},boolean:{color:"#569cd6"},number:{color:"#b5cea8"},constant:{color:"#9cdcfe"},symbol:{color:"#b5cea8"},inserted:{color:"#b5cea8"},unit:{color:"#b5cea8"},selector:{color:"#d7ba7d"},"attr-name":{color:"#9cdcfe"},string:{color:"#ce9178"},char:{color:"#ce9178"},builtin:{color:"#ce9178"},deleted:{color:"#ce9178"},".language-css .token.string.url":{textDecoration:"underline"},operator:{color:"#d4d4d4"},entity:{color:"#569cd6"},"operator.arrow":{color:"#569CD6"},atrule:{color:"#ce9178"},"atrule.rule":{color:"#c586c0"},"atrule.url":{color:"#9cdcfe"},"atrule.url.function":{color:"#dcdcaa"},"atrule.url.punctuation":{color:"#d4d4d4"},keyword:{color:"#569CD6"},"keyword.module":{color:"#c586c0"},"keyword.control-flow":{color:"#c586c0"},function:{color:"#dcdcaa"},"function.maybe-class-name":{color:"#dcdcaa"},regex:{color:"#d16969"},important:{color:"#569cd6"},italic:{fontStyle:"italic"},"class-name":{color:"#4ec9b0"},"maybe-class-name":{color:"#4ec9b0"},console:{color:"#9cdcfe"},parameter:{color:"#9cdcfe"},interpolation:{color:"#9cdcfe"},"punctuation.interpolation-punctuation":{color:"#569cd6"},variable:{color:"#9cdcfe"},"imports.maybe-class-name":{color:"#9cdcfe"},"exports.maybe-class-name":{color:"#9cdcfe"},escape:{color:"#d7ba7d"},"tag.punctuation":{color:"#808080"},cdata:{color:"#808080"},"attr-value":{color:"#ce9178"},"attr-value.punctuation":{color:"#ce9178"},"attr-value.punctuation.attr-equals":{color:"#d4d4d4"},namespace:{color:"#4ec9b0"},'pre[class*="language-javascript"]':{color:"#9cdcfe"},'code[class*="language-javascript"]':{color:"#9cdcfe"},'pre[class*="language-jsx"]':{color:"#9cdcfe"},'code[class*="language-jsx"]':{color:"#9cdcfe"},'pre[class*="language-typescript"]':{color:"#9cdcfe"},'code[class*="language-typescript"]':{color:"#9cdcfe"},'pre[class*="language-tsx"]':{color:"#9cdcfe"},'code[class*="language-tsx"]':{color:"#9cdcfe"},'pre[class*="language-css"]':{color:"#ce9178"},'code[class*="language-css"]':{color:"#ce9178"},'pre[class*="language-html"]':{color:"#d4d4d4"},'code[class*="language-html"]':{color:"#d4d4d4"},".language-regex .token.anchor":{color:"#dcdcaa"},".language-html .token.punctuation":{color:"#808080"},'pre[class*="language-"] > code[class*="language-"]':{position:"relative",zIndex:"1"},".line-highlight.line-highlight":{background:"#f7ebc6",boxShadow:"inset 5px 0 0 #f7d87c",zIndex:"0"}}},19524:function(ze,be,de){"use strict";de(84126);var le=de(59301),Me=60103;if(be.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var Ie=Symbol.for;Me=Ie("react.element"),be.Fragment=Ie("react.fragment")}var Pe=le.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ge=Object.prototype.hasOwnProperty,Oe={key:!0,ref:!0,__self:!0,__source:!0};function Ve(ot,Je,Xe){var vt,st={},_t=null,Ue=null;Xe!==void 0&&(_t=""+Xe),Je.key!==void 0&&(_t=""+Je.key),Je.ref!==void 0&&(Ue=Je.ref);for(vt in Je)Ge.call(Je,vt)&&!Oe.hasOwnProperty(vt)&&(st[vt]=Je[vt]);if(ot&&ot.defaultProps)for(vt in Je=ot.defaultProps,Je)st[vt]===void 0&&(st[vt]=Je[vt]);return{$$typeof:Me,type:ot,key:_t,ref:Ue,props:st,_owner:Pe.current}}be.jsx=Ve,be.jsxs=Ve},37712:function(ze,be,de){"use strict";ze.exports=de(19524)},95489:function(ze,be,de){"use strict";var le=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof de.g=="object"?de.g:{},Me=De();le.Prism={manual:!0,disableWorkerMessageHandler:!0};var Ie=de(43621),Pe=de(12256),Ge=de(68398),Oe=de(70614),Ve=de(54212),ot=de(9720),Je=de(88786);Me();var Xe={}.hasOwnProperty;function vt(){}vt.prototype=Ge;var st=new vt;ze.exports=st,st.highlight=te,st.register=_t,st.alias=Ue,st.registered=ne,st.listLanguages=fe,_t(Oe),_t(Ve),_t(ot),_t(Je),st.util.encode=Se,st.Token.stringify=se;function _t(Re){if(typeof Re!="function"||!Re.displayName)throw new Error("Expected `function` for `grammar`, got `"+Re+"`");st.languages[Re.displayName]===void 0&&Re(st)}function Ue(Re,Ze){var nt=st.languages,rt=Re,ft,xt,at,wt;Ze&&(rt={},rt[Re]=Ze);for(ft in rt)for(xt=rt[ft],xt=typeof xt=="string"?[xt]:xt,at=xt.length,wt=-1;++wt<at;)nt[xt[wt]]=nt[ft]}function te(Re,Ze){var nt=Ge.highlight,rt;if(typeof Re!="string")throw new Error("Expected `string` for `value`, got `"+Re+"`");if(st.util.type(Ze)==="Object")rt=Ze,Ze=null;else{if(typeof Ze!="string")throw new Error("Expected `string` for `name`, got `"+Ze+"`");if(Xe.call(st.languages,Ze))rt=st.languages[Ze];else throw new Error("Unknown language: `"+Ze+"` is not registered")}return nt.call(this,Re,rt,Ze)}function ne(Re){if(typeof Re!="string")throw new Error("Expected `string` for `language`, got `"+Re+"`");return Xe.call(st.languages,Re)}function fe(){var Re=st.languages,Ze=[],nt;for(nt in Re)Xe.call(Re,nt)&&typeof Re[nt]=="object"&&Ze.push(nt);return Ze}function se(Re,Ze,nt){var rt;return typeof Re=="string"?{type:"text",value:Re}:st.util.type(Re)==="Array"?pe(Re,Ze):(rt={type:Re.type,content:st.Token.stringify(Re.content,Ze,nt),tag:"span",classes:["token",Re.type],attributes:{},language:Ze,parent:nt},Re.alias&&(rt.classes=rt.classes.concat(Re.alias)),st.hooks.run("wrap",rt),Ie(rt.tag+"."+rt.classes.join("."),we(rt.attributes),rt.content))}function pe(Re,Ze){for(var nt=[],rt=Re.length,ft=-1,xt;++ft<rt;)xt=Re[ft],xt!==""&&xt!==null&&xt!==void 0&&nt.push(xt);for(ft=-1,rt=nt.length;++ft<rt;)xt=nt[ft],nt[ft]=st.Token.stringify(xt,Ze,nt);return nt}function Se(Re){return Re}function we(Re){var Ze;for(Ze in Re)Re[Ze]=Pe(Re[Ze]);return Re}function De(){var Re="Prism"in le,Ze=Re?le.Prism:void 0;return nt;function nt(){Re?le.Prism=Ze:delete le.Prism,Re=void 0,Ze=void 0}}},11594:function(ze,be,de){"use strict";var le=de(95489);ze.exports=le,le.register(de(79007)),le.register(de(15465)),le.register(de(42746)),le.register(de(93281)),le.register(de(95143)),le.register(de(65924)),le.register(de(65043)),le.register(de(43556)),le.register(de(14901)),le.register(de(4248)),le.register(de(17758)),le.register(de(33335)),le.register(de(17427)),le.register(de(22956)),le.register(de(56007)),le.register(de(45652)),le.register(de(33819)),le.register(de(84230)),le.register(de(20803)),le.register(de(65235)),le.register(de(52406)),le.register(de(79571)),le.register(de(3058)),le.register(de(51422)),le.register(de(1618)),le.register(de(2505)),le.register(de(51274)),le.register(de(23796)),le.register(de(13979)),le.register(de(87994)),le.register(de(47035)),le.register(de(36142)),le.register(de(85290)),le.register(de(7407)),le.register(de(79440)),le.register(de(7110)),le.register(de(73435)),le.register(de(91372)),le.register(de(63663)),le.register(de(92987)),le.register(de(91657)),le.register(de(34367)),le.register(de(35348)),le.register(de(26841)),le.register(de(87071)),le.register(de(13652)),le.register(de(87648)),le.register(de(10617)),le.register(de(5348)),le.register(de(71053)),le.register(de(69820)),le.register(de(41929)),le.register(de(51837)),le.register(de(4182)),le.register(de(22117)),le.register(de(95627)),le.register(de(34265)),le.register(de(50618)),le.register(de(32126)),le.register(de(26737)),le.register(de(90134)),le.register(de(51348)),le.register(de(60841)),le.register(de(42857)),le.register(de(81269)),le.register(de(31134)),le.register(de(83125)),le.register(de(9438)),le.register(de(27771)),le.register(de(86549)),le.register(de(37079)),le.register(de(59250)),le.register(de(81226)),le.register(de(65245)),le.register(de(25040)),le.register(de(40284)),le.register(de(39187)),le.register(de(34302)),le.register(de(90515)),le.register(de(33534)),le.register(de(9885)),le.register(de(76364)),le.register(de(56452)),le.register(de(8477)),le.register(de(58230)),le.register(de(66192)),le.register(de(81084)),le.register(de(50318)),le.register(de(95769)),le.register(de(14155)),le.register(de(92823)),le.register(de(63092)),le.register(de(21550)),le.register(de(29710)),le.register(de(2050)),le.register(de(67967)),le.register(de(29138)),le.register(de(67915)),le.register(de(54853)),le.register(de(68330)),le.register(de(76823)),le.register(de(86712)),le.register(de(72252)),le.register(de(78634)),le.register(de(43583)),le.register(de(23328)),le.register(de(74494)),le.register(de(46745)),le.register(de(22152)),le.register(de(83698)),le.register(de(26619)),le.register(de(53990)),le.register(de(7093)),le.register(de(4005)),le.register(de(53510)),le.register(de(24799)),le.register(de(97443)),le.register(de(80746)),le.register(de(17015)),le.register(de(89246)),le.register(de(487)),le.register(de(79539)),le.register(de(15628)),le.register(de(14320)),le.register(de(73222)),le.register(de(92486)),le.register(de(24103)),le.register(de(40604)),le.register(de(23109)),le.register(de(32082)),le.register(de(77674)),le.register(de(37524)),le.register(de(6658)),le.register(de(24824)),le.register(de(22776)),le.register(de(89700)),le.register(de(99296)),le.register(de(39940)),le.register(de(34973)),le.register(de(98135)),le.register(de(36907)),le.register(de(3567)),le.register(de(23763)),le.register(de(33978)),le.register(de(40472)),le.register(de(44695)),le.register(de(53885)),le.register(de(51478)),le.register(de(16928)),le.register(de(13586)),le.register(de(37164)),le.register(de(25153)),le.register(de(33245)),le.register(de(32218)),le.register(de(65626)),le.register(de(60090)),le.register(de(40722)),le.register(de(37783)),le.register(de(41224)),le.register(de(71365)),le.register(de(42846)),le.register(de(32964)),le.register(de(78830)),le.register(de(88799)),le.register(de(66791)),le.register(de(41735)),le.register(de(13490)),le.register(de(7383)),le.register(de(66894)),le.register(de(45779)),le.register(de(27734)),le.register(de(91889)),le.register(de(55965)),le.register(de(37326)),le.register(de(92949)),le.register(de(5681)),le.register(de(70696)),le.register(de(35790)),le.register(de(25777)),le.register(de(65889)),le.register(de(53852)),le.register(de(97719)),le.register(de(63839)),le.register(de(67623)),le.register(de(32530)),le.register(de(8938)),le.register(de(55259)),le.register(de(67411)),le.register(de(15375)),le.register(de(12093)),le.register(de(83588)),le.register(de(94127)),le.register(de(21294)),le.register(de(38709)),le.register(de(15008)),le.register(de(96549)),le.register(de(5221)),le.register(de(27447)),le.register(de(73191)),le.register(de(75542)),le.register(de(50323)),le.register(de(44298)),le.register(de(9634)),le.register(de(75266)),le.register(de(48139)),le.register(de(97534)),le.register(de(90826)),le.register(de(63919)),le.register(de(68862)),le.register(de(39523)),le.register(de(31207)),le.register(de(75308)),le.register(de(45315)),le.register(de(13794)),le.register(de(41299)),le.register(de(98177)),le.register(de(48780)),le.register(de(79793)),le.register(de(52085)),le.register(de(65411)),le.register(de(84750)),le.register(de(88216)),le.register(de(66433)),le.register(de(34855)),le.register(de(12998)),le.register(de(10202)),le.register(de(41186)),le.register(de(68963)),le.register(de(5569)),le.register(de(69435)),le.register(de(42766)),le.register(de(46449)),le.register(de(89032)),le.register(de(40241)),le.register(de(24812)),le.register(de(16747)),le.register(de(73584)),le.register(de(79243)),le.register(de(31788)),le.register(de(60871)),le.register(de(21023)),le.register(de(14693)),le.register(de(8743)),le.register(de(1689)),le.register(de(69210)),le.register(de(58710)),le.register(de(60452)),le.register(de(92784)),le.register(de(36489)),le.register(de(78380)),le.register(de(10409)),le.register(de(6539)),le.register(de(82028)),le.register(de(62282)),le.register(de(55686)),le.register(de(70889)),le.register(de(37116)),le.register(de(66963)),le.register(de(21078)),le.register(de(96198)),le.register(de(17723)),le.register(de(67771)),le.register(de(30307)),le.register(de(8921)),le.register(de(13429)),le.register(de(65197)),le.register(de(88904)),le.register(de(35)),le.register(de(86095)),le.register(de(76998)),le.register(de(14409)),le.register(de(33460)),le.register(de(28108))},79007:function(ze){"use strict";ze.exports=be,be.displayName="abap",be.aliases=[];function be(de){de.languages.abap={comment:/^\*.*/m,string:/(`|')(?:\\.|(?!\1)[^\\\r\n])*\1/,"string-template":{pattern:/([|}])(?:\\.|[^\\|{\r\n])*(?=[|{])/,lookbehind:!0,alias:"string"},"eol-comment":{pattern:/(^|\s)".*/m,lookbehind:!0,alias:"comment"},keyword:{pattern:/(\s|\.|^)(?:SCIENTIFIC_WITH_LEADING_ZERO|SCALE_PRESERVING_SCIENTIFIC|RMC_COMMUNICATION_FAILURE|END-ENHANCEMENT-SECTION|MULTIPLY-CORRESPONDING|SUBTRACT-CORRESPONDING|VERIFICATION-MESSAGE|DIVIDE-CORRESPONDING|ENHANCEMENT-SECTION|CURRENCY_CONVERSION|RMC_SYSTEM_FAILURE|START-OF-SELECTION|MOVE-CORRESPONDING|RMC_INVALID_STATUS|CUSTOMER-FUNCTION|END-OF-DEFINITION|ENHANCEMENT-POINT|SYSTEM-EXCEPTIONS|ADD-CORRESPONDING|SCALE_PRESERVING|SELECTION-SCREEN|CURSOR-SELECTION|END-OF-SELECTION|LOAD-OF-PROGRAM|SCROLL-BOUNDARY|SELECTION-TABLE|EXCEPTION-TABLE|IMPLEMENTATIONS|PARAMETER-TABLE|RIGHT-JUSTIFIED|UNIT_CONVERSION|AUTHORITY-CHECK|LIST-PROCESSING|SIGN_AS_POSTFIX|COL_BACKGROUND|IMPLEMENTATION|INTERFACE-POOL|TRANSFORMATION|IDENTIFICATION|ENDENHANCEMENT|LINE-SELECTION|INITIALIZATION|LEFT-JUSTIFIED|SELECT-OPTIONS|SELECTION-SETS|COMMUNICATION|CORRESPONDING|DECIMAL_SHIFT|PRINT-CONTROL|VALUE-REQUEST|CHAIN-REQUEST|FUNCTION-POOL|FIELD-SYMBOLS|FUNCTIONALITY|INVERTED-DATE|SELECTION-SET|CLASS-METHODS|OUTPUT-LENGTH|CLASS-CODING|COL_NEGATIVE|ERRORMESSAGE|FIELD-GROUPS|HELP-REQUEST|NO-EXTENSION|NO-TOPOFPAGE|REDEFINITION|DISPLAY-MODE|ENDINTERFACE|EXIT-COMMAND|FIELD-SYMBOL|NO-SCROLLING|SHORTDUMP-ID|ACCESSPOLICY|CLASS-EVENTS|COL_POSITIVE|DECLARATIONS|ENHANCEMENTS|FILTER-TABLE|SWITCHSTATES|SYNTAX-CHECK|TRANSPORTING|ASYNCHRONOUS|SYNTAX-TRACE|TOKENIZATION|USER-COMMAND|WITH-HEADING|ABAP-SOURCE|BREAK-POINT|CHAIN-INPUT|COMPRESSION|FIXED-POINT|NEW-SECTION|NON-UNICODE|OCCURRENCES|RESPONSIBLE|SYSTEM-CALL|TRACE-TABLE|ABBREVIATED|CHAR-TO-HEX|END-OF-FILE|ENDFUNCTION|ENVIRONMENT|ASSOCIATION|COL_HEADING|EDITOR-CALL|END-OF-PAGE|ENGINEERING|IMPLEMENTED|INTENSIFIED|RADIOBUTTON|SYSTEM-EXIT|TOP-OF-PAGE|TRANSACTION|APPLICATION|CONCATENATE|DESTINATION|ENHANCEMENT|IMMEDIATELY|NO-GROUPING|PRECOMPILED|REPLACEMENT|TITLE-LINES|ACTIVATION|BYTE-ORDER|CLASS-POOL|CONNECTION|CONVERSION|DEFINITION|DEPARTMENT|EXPIRATION|INHERITING|MESSAGE-ID|NO-HEADING|PERFORMING|QUEUE-ONLY|RIGHTSPACE|SCIENTIFIC|STATUSINFO|STRUCTURES|SYNCPOINTS|WITH-TITLE|ATTRIBUTES|BOUNDARIES|CLASS-DATA|COL_NORMAL|DD\/MM\/YYYY|DESCENDING|INTERFACES|LINE-COUNT|MM\/DD\/YYYY|NON-UNIQUE|PRESERVING|SELECTIONS|STATEMENTS|SUBROUTINE|TRUNCATION|TYPE-POOLS|ARITHMETIC|BACKGROUND|ENDPROVIDE|EXCEPTIONS|IDENTIFIER|INDEX-LINE|OBLIGATORY|PARAMETERS|PERCENTAGE|PUSHBUTTON|RESOLUTION|COMPONENTS|DEALLOCATE|DISCONNECT|DUPLICATES|FIRST-LINE|HEAD-LINES|NO-DISPLAY|OCCURRENCE|RESPECTING|RETURNCODE|SUBMATCHES|TRACE-FILE|ASCENDING|BYPASSING|ENDMODULE|EXCEPTION|EXCLUDING|EXPORTING|INCREMENT|MATCHCODE|PARAMETER|PARTIALLY|PREFERRED|REFERENCE|REPLACING|RETURNING|SELECTION|SEPARATED|SPECIFIED|STATEMENT|TIMESTAMP|TYPE-POOL|ACCEPTING|APPENDAGE|ASSIGNING|COL_GROUP|COMPARING|CONSTANTS|DANGEROUS|IMPORTING|INSTANCES|LEFTSPACE|LOG-POINT|QUICKINFO|READ-ONLY|SCROLLING|SQLSCRIPT|STEP-LOOP|TOP-LINES|TRANSLATE|APPENDING|AUTHORITY|CHARACTER|COMPONENT|CONDITION|DIRECTORY|DUPLICATE|MESSAGING|RECEIVING|SUBSCREEN|ACCORDING|COL_TOTAL|END-LINES|ENDMETHOD|ENDSELECT|EXPANDING|EXTENSION|INCLUDING|INFOTYPES|INTERFACE|INTERVALS|LINE-SIZE|PF-STATUS|PROCEDURE|PROTECTED|REQUESTED|RESUMABLE|RIGHTPLUS|SAP-SPOOL|SECONDARY|STRUCTURE|SUBSTRING|TABLEVIEW|NUMOFCHAR|ADJACENT|ANALYSIS|ASSIGNED|BACKWARD|CHANNELS|CHECKBOX|CONTINUE|CRITICAL|DATAINFO|DD\/MM\/YY|DURATION|ENCODING|ENDCLASS|FUNCTION|LEFTPLUS|LINEFEED|MM\/DD\/YY|OVERFLOW|RECEIVED|SKIPPING|SORTABLE|STANDARD|SUBTRACT|SUPPRESS|TABSTRIP|TITLEBAR|TRUNCATE|UNASSIGN|WHENEVER|ANALYZER|COALESCE|COMMENTS|CONDENSE|DECIMALS|DEFERRED|ENDWHILE|EXPLICIT|KEYWORDS|MESSAGES|POSITION|PRIORITY|RECEIVER|RENAMING|TIMEZONE|TRAILING|ALLOCATE|CENTERED|CIRCULAR|CONTROLS|CURRENCY|DELETING|DESCRIBE|DISTANCE|ENDCATCH|EXPONENT|EXTENDED|GENERATE|IGNORING|INCLUDES|INTERNAL|MAJOR-ID|MODIFIER|NEW-LINE|OPTIONAL|PROPERTY|ROLLBACK|STARTING|SUPPLIED|ABSTRACT|CHANGING|CONTEXTS|CREATING|CUSTOMER|DATABASE|DAYLIGHT|DEFINING|DISTINCT|DIVISION|ENABLING|ENDCHAIN|ESCAPING|HARMLESS|IMPLICIT|INACTIVE|LANGUAGE|MINOR-ID|MULTIPLY|NEW-PAGE|NO-TITLE|POS_HIGH|SEPARATE|TEXTPOOL|TRANSFER|SELECTOR|DBMAXLEN|ITERATOR|ARCHIVE|BIT-XOR|BYTE-CO|COLLECT|COMMENT|CURRENT|DEFAULT|DISPLAY|ENDFORM|EXTRACT|LEADING|LISTBOX|LOCATOR|MEMBERS|METHODS|NESTING|POS_LOW|PROCESS|PROVIDE|RAISING|RESERVE|SECONDS|SUMMARY|VISIBLE|BETWEEN|BIT-AND|BYTE-CS|CLEANUP|COMPUTE|CONTROL|CONVERT|DATASET|ENDCASE|FORWARD|HEADERS|HOTSPOT|INCLUDE|INVERSE|KEEPING|NO-ZERO|OBJECTS|OVERLAY|PADDING|PATTERN|PROGRAM|REFRESH|SECTION|SUMMING|TESTING|VERSION|WINDOWS|WITHOUT|BIT-NOT|BYTE-CA|BYTE-NA|CASTING|CONTEXT|COUNTRY|DYNAMIC|ENABLED|ENDLOOP|EXECUTE|FRIENDS|HANDLER|HEADING|INITIAL|\*-INPUT|LOGFILE|MAXIMUM|MINIMUM|NO-GAPS|NO-SIGN|PRAGMAS|PRIMARY|PRIVATE|REDUCED|REPLACE|REQUEST|RESULTS|UNICODE|WARNING|ALIASES|BYTE-CN|BYTE-NS|CALLING|COL_KEY|COLUMNS|CONNECT|ENDEXEC|ENTRIES|EXCLUDE|FILTERS|FURTHER|HELP-ID|LOGICAL|MAPPING|MESSAGE|NAMETAB|OPTIONS|PACKAGE|PERFORM|RECEIVE|STATICS|VARYING|BINDING|CHARLEN|GREATER|XSTRLEN|ACCEPT|APPEND|DETAIL|ELSEIF|ENDING|ENDTRY|FORMAT|FRAMES|GIVING|HASHED|HEADER|IMPORT|INSERT|MARGIN|MODULE|NATIVE|OBJECT|OFFSET|REMOTE|RESUME|SAVING|SIMPLE|SUBMIT|TABBED|TOKENS|UNIQUE|UNPACK|UPDATE|WINDOW|YELLOW|ACTUAL|ASPECT|CENTER|CURSOR|DELETE|DIALOG|DIVIDE|DURING|ERRORS|EVENTS|EXTEND|FILTER|HANDLE|HAVING|IGNORE|LITTLE|MEMORY|NO-GAP|OCCURS|OPTION|PERSON|PLACES|PUBLIC|REDUCE|REPORT|RESULT|SINGLE|SORTED|SWITCH|SYNTAX|TARGET|VALUES|WRITER|ASSERT|BLOCKS|BOUNDS|BUFFER|CHANGE|COLUMN|COMMIT|CONCAT|COPIES|CREATE|DDMMYY|DEFINE|ENDIAN|ESCAPE|EXPAND|KERNEL|LAYOUT|LEGACY|LEVELS|MMDDYY|NUMBER|OUTPUT|RANGES|READER|RETURN|SCREEN|SEARCH|SELECT|SHARED|SOURCE|STABLE|STATIC|SUBKEY|SUFFIX|TABLES|UNWIND|YYMMDD|ASSIGN|BACKUP|BEFORE|BINARY|BIT-OR|BLANKS|CLIENT|CODING|COMMON|DEMAND|DYNPRO|EXCEPT|EXISTS|EXPORT|FIELDS|GLOBAL|GROUPS|LENGTH|LOCALE|MEDIUM|METHOD|MODIFY|NESTED|OTHERS|REJECT|SCROLL|SUPPLY|SYMBOL|ENDFOR|STRLEN|ALIGN|BEGIN|BOUND|ENDAT|ENTRY|EVENT|FINAL|FLUSH|GRANT|INNER|SHORT|USING|WRITE|AFTER|BLACK|BLOCK|CLOCK|COLOR|COUNT|DUMMY|EMPTY|ENDDO|ENDON|GREEN|INDEX|INOUT|LEAVE|LEVEL|LINES|MODIF|ORDER|OUTER|RANGE|RESET|RETRY|RIGHT|SMART|SPLIT|STYLE|TABLE|THROW|UNDER|UNTIL|UPPER|UTF-8|WHERE|ALIAS|BLANK|CLEAR|CLOSE|EXACT|FETCH|FIRST|FOUND|GROUP|LLANG|LOCAL|OTHER|REGEX|SPOOL|TITLE|TYPES|VALID|WHILE|ALPHA|BOXED|CATCH|CHAIN|CHECK|CLASS|COVER|ENDIF|EQUIV|FIELD|FLOOR|FRAME|INPUT|LOWER|MATCH|NODES|PAGES|PRINT|RAISE|ROUND|SHIFT|SPACE|SPOTS|STAMP|STATE|TASKS|TIMES|TRMAC|ULINE|UNION|VALUE|WIDTH|EQUAL|LOG10|TRUNC|BLOB|CASE|CEIL|CLOB|COND|EXIT|FILE|GAPS|HOLD|INCL|INTO|KEEP|KEYS|LAST|LINE|LONG|LPAD|MAIL|MODE|OPEN|PINK|READ|ROWS|TEST|THEN|ZERO|AREA|BACK|BADI|BYTE|CAST|EDIT|EXEC|FAIL|FIND|FKEQ|FONT|FREE|GKEQ|HIDE|INIT|ITNO|LATE|LOOP|MAIN|MARK|MOVE|NEXT|NULL|RISK|ROLE|UNIT|WAIT|ZONE|BASE|CALL|CODE|DATA|DATE|FKGE|GKGE|HIGH|KIND|LEFT|LIST|MASK|MESH|NAME|NODE|PACK|PAGE|POOL|SEND|SIGN|SIZE|SOME|STOP|TASK|TEXT|TIME|USER|VARY|WITH|WORD|BLUE|CONV|COPY|DEEP|ELSE|FORM|FROM|HINT|ICON|JOIN|LIKE|LOAD|ONLY|PART|SCAN|SKIP|SORT|TYPE|UNIX|VIEW|WHEN|WORK|ACOS|ASIN|ATAN|COSH|EACH|FRAC|LESS|RTTI|SINH|SQRT|TANH|AVG|BIT|DIV|ISO|LET|OUT|PAD|SQL|ALL|CI_|CPI|END|LOB|LPI|MAX|MIN|NEW|OLE|RUN|SET|\?TO|YES|ABS|ADD|AND|BIG|FOR|HDB|JOB|LOW|NOT|SAP|TRY|VIA|XML|ANY|GET|IDS|KEY|MOD|OFF|PUT|RAW|RED|REF|SUM|TAB|XSD|CNT|COS|EXP|LOG|SIN|TAN|XOR|AT|CO|CP|DO|GT|ID|IF|NS|OR|BT|CA|CS|GE|NA|NB|EQ|IN|LT|NE|NO|OF|ON|PF|TO|AS|BY|CN|IS|LE|NP|UP|E|I|M|O|Z|C|X)\b/i,lookbehind:!0},number:/\b\d+\b/,operator:{pattern:/(\s)(?:\*\*?|<[=>]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}},15465:function(ze){"use strict";ze.exports=be,be.displayName="abnf",be.aliases=[];function be(de){(function(le){var Me="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";le.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+Me+"|<"+Me+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(de)}},42746:function(ze){"use strict";ze.exports=be,be.displayName="actionscript",be.aliases=[];function be(de){de.languages.actionscript=de.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),de.languages.actionscript["class-name"].alias="function",delete de.languages.actionscript.parameter,delete de.languages.actionscript["literal-property"],de.languages.markup&&de.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:de.languages.markup}})}},93281:function(ze){"use strict";ze.exports=be,be.displayName="ada",be.aliases=[];function be(de){de.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],"attr-name":/\b'\w+/,keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}},95143:function(ze){"use strict";ze.exports=be,be.displayName="agda",be.aliases=[];function be(de){(function(le){le.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}})(de)}},65924:function(ze){"use strict";ze.exports=be,be.displayName="al",be.aliases=[];function be(de){de.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}},65043:function(ze){"use strict";ze.exports=be,be.displayName="antlr4",be.aliases=["g4"];function be(de){de.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},de.languages.g4=de.languages.antlr4}},43556:function(ze){"use strict";ze.exports=be,be.displayName="apacheconf",be.aliases=[];function be(de){de.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}},14901:function(ze,be,de){"use strict";var le=de(69435);ze.exports=Me,Me.displayName="apex",Me.aliases=[];function Me(Ie){Ie.register(le),function(Pe){var Ge=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,Oe=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!<keyword>))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(/<keyword>/g,function(){return Ge.source});function Ve(Je){return RegExp(Je.replace(/<CLASS-NAME>/g,function(){return Oe}),"i")}var ot={keyword:Ge,punctuation:/[()\[\]{};,:.<>]/};Pe.languages.apex={comment:Pe.languages.clike.comment,string:Pe.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:Pe.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:Ve(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)<CLASS-NAME>/.source),lookbehind:!0,inside:ot},{pattern:Ve(/(\(\s*)<CLASS-NAME>(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:ot},{pattern:Ve(/<CLASS-NAME>(?=\s*\w+\s*[;=,(){:])/.source),inside:ot}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:Ge,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<<?=?|>{1,3}=?/,punctuation:/[()\[\]{};,.]/}}(Ie)}},4248:function(ze){"use strict";ze.exports=be,be.displayName="apl",be.aliases=[];function be(de){de.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}},17758:function(ze){"use strict";ze.exports=be,be.displayName="applescript",be.aliases=[];function be(de){de.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}},33335:function(ze){"use strict";ze.exports=be,be.displayName="aql",be.aliases=[];function be(de){de.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}},17427:function(ze,be,de){"use strict";var le=de(87071);ze.exports=Me,Me.displayName="arduino",Me.aliases=["ino"];function Me(Ie){Ie.register(le),Ie.languages.arduino=Ie.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),Ie.languages.ino=Ie.languages.arduino}},22956:function(ze){"use strict";ze.exports=be,be.displayName="arff",be.aliases=[];function be(de){de.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}},56007:function(ze){"use strict";ze.exports=be,be.displayName="asciidoc",be.aliases=["adoc"];function be(de){(function(le){var Me={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},Ie=le.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:Me,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)<?\d*>/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:Me.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:Me,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function Pe(Ge){Ge=Ge.split(" ");for(var Oe={},Ve=0,ot=Ge.length;Ve<ot;Ve++)Oe[Ge[Ve]]=Ie[Ge[Ve]];return Oe}Me.inside.interpreted.inside.rest=Pe("macro inline replacement entity"),Ie["passthrough-block"].inside.rest=Pe("macro"),Ie["literal-block"].inside.rest=Pe("callout"),Ie.table.inside.rest=Pe("comment-block passthrough-block literal-block other-block list-punctuation indented-block comment title attribute-entry attributes hr page-break admonition list-label callout macro inline replacement entity line-continuation"),Ie["other-block"].inside.rest=Pe("table list-punctuation indented-block comment attribute-entry attributes hr page-break admonition list-label macro inline replacement entity line-continuation"),Ie.title.inside.rest=Pe("macro inline replacement entity"),le.hooks.add("wrap",function(Ge){Ge.type==="entity"&&(Ge.attributes.title=Ge.content.value.replace(/&amp;/,"&"))}),le.languages.adoc=le.languages.asciidoc})(de)}},45652:function(ze){"use strict";ze.exports=be,be.displayName="asm6502",be.aliases=[];function be(de){de.languages.asm6502={comment:/;.*/,directive:{pattern:/\.\w+(?= )/,alias:"property"},string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,"op-code":{pattern:/\b(?:ADC|AND|ASL|BCC|BCS|BEQ|BIT|BMI|BNE|BPL|BRK|BVC|BVS|CLC|CLD|CLI|CLV|CMP|CPX|CPY|DEC|DEX|DEY|EOR|INC|INX|INY|JMP|JSR|LDA|LDX|LDY|LSR|NOP|ORA|PHA|PHP|PLA|PLP|ROL|ROR|RTI|RTS|SBC|SEC|SED|SEI|STA|STX|STY|TAX|TAY|TSX|TXA|TXS|TYA|adc|and|asl|bcc|bcs|beq|bit|bmi|bne|bpl|brk|bvc|bvs|clc|cld|cli|clv|cmp|cpx|cpy|dec|dex|dey|eor|inc|inx|iny|jmp|jsr|lda|ldx|ldy|lsr|nop|ora|pha|php|pla|plp|rol|ror|rti|rts|sbc|sec|sed|sei|sta|stx|sty|tax|tay|tsx|txa|txs|tya)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{1,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[xya]\b/i,alias:"variable"},punctuation:/[(),:]/}}},33819:function(ze){"use strict";ze.exports=be,be.displayName="asmatmel",be.aliases=[];function be(de){de.languages.asmatmel={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},constant:/\b(?:PORT[A-Z]|DDR[A-Z]|(?:DD|P)[A-Z](?:\d|[0-2]\d|3[01]))\b/,directive:{pattern:/\.\w+(?= )/,alias:"property"},"r-register":{pattern:/\br(?:\d|[12]\d|3[01])\b/,alias:"variable"},"op-code":{pattern:/\b(?:ADC|ADD|ADIW|AND|ANDI|ASR|BCLR|BLD|BRBC|BRBS|BRCC|BRCS|BREAK|BREQ|BRGE|BRHC|BRHS|BRID|BRIE|BRLO|BRLT|BRMI|BRNE|BRPL|BRSH|BRTC|BRTS|BRVC|BRVS|BSET|BST|CALL|CBI|CBR|CLC|CLH|CLI|CLN|CLR|CLS|CLT|CLV|CLZ|COM|CP|CPC|CPI|CPSE|DEC|DES|EICALL|EIJMP|ELPM|EOR|FMUL|FMULS|FMULSU|ICALL|IJMP|IN|INC|JMP|LAC|LAS|LAT|LD|LD[A-Za-z0-9]|LPM|LSL|LSR|MOV|MOVW|MUL|MULS|MULSU|NEG|NOP|OR|ORI|OUT|POP|PUSH|RCALL|RET|RETI|RJMP|ROL|ROR|SBC|SBCI|SBI|SBIC|SBIS|SBIW|SBR|SBRC|SBRS|SEC|SEH|SEI|SEN|SER|SES|SET|SEV|SEZ|SLEEP|SPM|ST|ST[A-Z0-9]|SUB|SUBI|SWAP|TST|WDR|XCH|adc|add|adiw|and|andi|asr|bclr|bld|brbc|brbs|brcc|brcs|break|breq|brge|brhc|brhs|brid|brie|brlo|brlt|brmi|brne|brpl|brsh|brtc|brts|brvc|brvs|bset|bst|call|cbi|cbr|clc|clh|cli|cln|clr|cls|clt|clv|clz|com|cp|cpc|cpi|cpse|dec|des|eicall|eijmp|elpm|eor|fmul|fmuls|fmulsu|icall|ijmp|in|inc|jmp|lac|las|lat|ld|ld[a-z0-9]|lpm|lsl|lsr|mov|movw|mul|muls|mulsu|neg|nop|or|ori|out|pop|push|rcall|ret|reti|rjmp|rol|ror|sbc|sbci|sbi|sbic|sbis|sbiw|sbr|sbrc|sbrs|sec|seh|sei|sen|ser|ses|set|sev|sez|sleep|spm|st|st[a-zA-Z0-9]|sub|subi|swap|tst|wdr|xch)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{2,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[acznvshtixy]\b/i,alias:"variable"},operator:/>>=?|<<=?|&&?|\|\|?|[-+*/%&|^!=<>?]=?/,punctuation:/[(),:]/}}},84230:function(ze,be,de){"use strict";var le=de(87648);ze.exports=Me,Me.displayName="aspnet",Me.aliases=[];function Me(Ie){Ie.register(le),Ie.languages.aspnet=Ie.languages.extend("markup",{"page-directive":{pattern:/<%\s*@.*%>/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:Ie.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:Ie.languages.csharp}}}),Ie.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,Ie.languages.insertBefore("inside","punctuation",{directive:Ie.languages.aspnet.directive},Ie.languages.aspnet.tag.inside["attr-value"]),Ie.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),Ie.languages.insertBefore("aspnet",Ie.languages.javascript?"script":"tag",{"asp-script":{pattern:/(<script(?=.*runat=['"]?server\b)[^>]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:Ie.languages.csharp||{}}})}},20803:function(ze){"use strict";ze.exports=be,be.displayName="autohotkey",be.aliases=[];function be(de){de.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,selector:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,important:/#\b(?:AllowSameLineComments|ClipboardTimeout|CommentFlag|DerefChar|ErrorStdOut|EscapeChar|HotkeyInterval|HotkeyModifierTimeout|Hotstring|If|IfTimeout|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Include|IncludeAgain|InputLevel|InstallKeybdHook|InstallMouseHook|KeyHistory|MaxHotkeysPerInterval|MaxMem|MaxThreads|MaxThreadsBuffer|MaxThreadsPerHotkey|MenuMaskKey|NoEnv|NoTrayIcon|Persistent|SingleInstance|UseHook|Warn|WinActivateForce)\b/i,keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}},65235:function(ze){"use strict";ze.exports=be,be.displayName="autoit",be.aliases=[];function be(de){de.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}},52406:function(ze){"use strict";ze.exports=be,be.displayName="avisynth",be.aliases=["avs"];function be(de){(function(le){function Me(Je,Xe){return Je.replace(/<<(\d+)>>/g,function(vt,st){return Xe[+st]})}function Ie(Je,Xe,vt){return RegExp(Me(Je,Xe),vt||"")}var Pe=/bool|clip|float|int|string|val/.source,Ge=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),Oe=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),Ve=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),ot=[Ge,Oe,Ve].join("|");le.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:Ie(/\b(?:<<0>>)\s+("?)\w+\1/.source,[Pe],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:Ie(/\b(?:<<0>>)\b/.source,[ot],"i"),alias:"function"},"type-cast":{pattern:Ie(/\b(?:<<0>>)(?=\s*\()/.source,[Pe],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},le.languages.avs=le.languages.avisynth})(de)}},79571:function(ze){"use strict";ze.exports=be,be.displayName="avroIdl",be.aliases=[];function be(de){de.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},de.languages.avdl=de.languages["avro-idl"]}},3058:function(ze){"use strict";ze.exports=be,be.displayName="bash",be.aliases=["shell"];function be(de){(function(le){var Me="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",Ie={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},Pe={bash:Ie,environment:{pattern:RegExp("\\$"+Me),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+Me),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};le.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+Me),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:Pe},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:Ie}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:Pe},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:Pe.entity}}],environment:{pattern:RegExp("\\$?"+Me),alias:"constant"},variable:Pe.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},Ie.inside=le.languages.bash;for(var Ge=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],Oe=Pe.variable[1].inside,Ve=0;Ve<Ge.length;Ve++)Oe[Ge[Ve]]=le.languages.bash[Ge[Ve]];le.languages.shell=le.languages.bash})(de)}},51422:function(ze){"use strict";ze.exports=be,be.displayName="basic",be.aliases=[];function be(de){de.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}},1618:function(ze){"use strict";ze.exports=be,be.displayName="batch",be.aliases=[];function be(de){(function(le){var Me=/%%?[~:\w]+%?|!\S+!/,Ie={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},Pe=/"(?:[\\"]"|[^"])*"(?!")/,Ge=/(?:\b|-)\d+\b/;le.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:Pe,parameter:Ie,variable:Me,number:Ge,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:Pe,parameter:Ie,variable:Me,number:Ge,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:Pe,parameter:Ie,variable:[Me,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:Ge,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:Pe,parameter:Ie,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:Me,number:Ge,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(de)}},2505:function(ze){"use strict";ze.exports=be,be.displayName="bbcode",be.aliases=["shortcode"];function be(de){de.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},de.languages.shortcode=de.languages.bbcode}},51274:function(ze){"use strict";ze.exports=be,be.displayName="bicep",be.aliases=[];function be(de){de.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},de.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=de.languages.bicep}},23796:function(ze){"use strict";ze.exports=be,be.displayName="birb",be.aliases=[];function be(de){de.languages.birb=de.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),de.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}},13979:function(ze,be,de){"use strict";var le=de(79440);ze.exports=Me,Me.displayName="bison",Me.aliases=[];function Me(Ie){Ie.register(le),Ie.languages.bison=Ie.languages.extend("c",{}),Ie.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:Ie.languages.c}},comment:Ie.languages.c.comment,string:Ie.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}},87994:function(ze){"use strict";ze.exports=be,be.displayName="bnf",be.aliases=["rbnf"];function be(de){de.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},de.languages.rbnf=de.languages.bnf}},47035:function(ze){"use strict";ze.exports=be,be.displayName="brainfuck",be.aliases=[];function be(de){de.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}},36142:function(ze){"use strict";ze.exports=be,be.displayName="brightscript",be.aliases=[];function be(de){de.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},de.languages.brightscript["directive-statement"].inside.expression.inside=de.languages.brightscript}},85290:function(ze){"use strict";ze.exports=be,be.displayName="bro",be.aliases=[];function be(de){de.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}},7407:function(ze){"use strict";ze.exports=be,be.displayName="bsl",be.aliases=[];function be(de){de.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|для|новый|прервать|попытка|исключение|вызватьисключение|иначе|конецпопытки|неопределено|функция|перем|возврат|конецфункции|если|иначеесли|процедура|конецпроцедуры|тогда|знач|экспорт|конецесли|из|каждого|истина|ложь|по|цикл|конеццикла|выполнить)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},de.languages.oscript=de.languages.bsl}},79440:function(ze){"use strict";ze.exports=be,be.displayName="c",be.aliases=[];function be(de){de.languages.c=de.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),de.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),de.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},de.languages.c.string],char:de.languages.c.char,comment:de.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:de.languages.c}}}}),de.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete de.languages.c.boolean}},7110:function(ze){"use strict";ze.exports=be,be.displayName="cfscript",be.aliases=[];function be(de){de.languages.cfscript=de.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|<=?|>=?|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|[?:]/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),de.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete de.languages.cfscript["class-name"],de.languages.cfc=de.languages.cfscript}},73435:function(ze,be,de){"use strict";var le=de(87071);ze.exports=Me,Me.displayName="chaiscript",Me.aliases=[];function Me(Ie){Ie.register(le),Ie.languages.chaiscript=Ie.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[Ie.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),Ie.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),Ie.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:Ie.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}},91372:function(ze){"use strict";ze.exports=be,be.displayName="cil",be.aliases=[];function be(de){de.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}},9720:function(ze){"use strict";ze.exports=be,be.displayName="clike",be.aliases=[];function be(de){de.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}},63663:function(ze){"use strict";ze.exports=be,be.displayName="clojure",be.aliases=[];function be(de){de.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}},92987:function(ze){"use strict";ze.exports=be,be.displayName="cmake",be.aliases=[];function be(de){de.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_(?:BINARY_DIR|DESCRIPTION|HOMEPAGE_URL|NAME|SOURCE_DIR|VERSION|VERSION_(?:MAJOR|MINOR|PATCH|TWEAK))|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE|XCODE_VERSION))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|GLOBAL_KEYWORD|GLOBAL_PROJECT_TYPES|GLOBAL_ROOTNAMESPACE|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}},91657:function(ze){"use strict";ze.exports=be,be.displayName="cobol",be.aliases=[];function be(de){de.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}},34367:function(ze){"use strict";ze.exports=be,be.displayName="coffeescript",be.aliases=["coffee"];function be(de){(function(le){var Me=/#(?!\{).+/,Ie={pattern:/#\{[^}]+\}/,alias:"variable"};le.languages.coffeescript=le.languages.extend("javascript",{comment:Me,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:Ie}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),le.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:Me,interpolation:Ie}}}),le.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:le.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:Ie}}]}),le.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete le.languages.coffeescript["template-string"],le.languages.coffee=le.languages.coffeescript})(de)}},35348:function(ze){"use strict";ze.exports=be,be.displayName="concurnas",be.aliases=["conc"];function be(de){de.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},de.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:de.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:de.languages.concurnas},string:/[\s\S]+/}}}),de.languages.conc=de.languages.concurnas}},26841:function(ze){"use strict";ze.exports=be,be.displayName="coq",be.aliases=[];function be(de){(function(le){for(var Me=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|<self>)*\*\)/.source,Ie=0;Ie<2;Ie++)Me=Me.replace(/<self>/g,function(){return Me});Me=Me.replace(/<self>/g,"[]"),le.languages.coq={comment:RegExp(Me),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|<comment>)*\]/.source.replace(/<comment>/g,function(){return Me})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(Me),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(de)}},87071:function(ze,be,de){"use strict";var le=de(79440);ze.exports=Me,Me.displayName="cpp",Me.aliases=[];function Me(Ie){Ie.register(le),function(Pe){var Ge=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,Oe=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return Ge.source});Pe.languages.cpp=Pe.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return Ge.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:Ge,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),Pe.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return Oe})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),Pe.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:Pe.languages.cpp}}}}),Pe.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),Pe.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:Pe.languages.extend("cpp",{})}}),Pe.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},Pe.languages.cpp["base-clause"])}(Ie)}},13652:function(ze,be,de){"use strict";var le=de(75308);ze.exports=Me,Me.displayName="crystal",Me.aliases=[];function Me(Ie){Ie.register(le),function(Pe){Pe.languages.crystal=Pe.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,Pe.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),Pe.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:Pe.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:Pe.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})}(Ie)}},87648:function(ze){"use strict";ze.exports=be,be.displayName="csharp",be.aliases=["dotnet","cs"];function be(de){(function(le){function Me(gn,Nt){return gn.replace(/<<(\d+)>>/g,function(ut,it){return"(?:"+Nt[+it]+")"})}function Ie(gn,Nt,ut){return RegExp(Me(gn,Nt),ut||"")}function Pe(gn,Nt){for(var ut=0;ut<Nt;ut++)gn=gn.replace(/<<self>>/g,function(){return"(?:"+gn+")"});return gn.replace(/<<self>>/g,"[^\\s\\S]")}var Ge={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function Oe(gn){return"\\b(?:"+gn.trim().replace(/ /g,"|")+")\\b"}var Ve=Oe(Ge.typeDeclaration),ot=RegExp(Oe(Ge.type+" "+Ge.typeDeclaration+" "+Ge.contextual+" "+Ge.other)),Je=Oe(Ge.typeDeclaration+" "+Ge.contextual+" "+Ge.other),Xe=Oe(Ge.type+" "+Ge.typeDeclaration+" "+Ge.other),vt=Pe(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),st=Pe(/\((?:[^()]|<<self>>)*\)/.source,2),_t=/@?\b[A-Za-z_]\w*\b/.source,Ue=Me(/<<0>>(?:\s*<<1>>)?/.source,[_t,vt]),te=Me(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[Je,Ue]),ne=/\[\s*(?:,\s*)*\]/.source,fe=Me(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[te,ne]),se=Me(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[vt,st,ne]),pe=Me(/\(<<0>>+(?:,<<0>>+)+\)/.source,[se]),Se=Me(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[pe,te,ne]),we={keyword:ot,punctuation:/[<>()?,.:[\]]/},De=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,Re=/"(?:\\.|[^\\"\r\n])*"/.source,Ze=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;le.languages.csharp=le.languages.extend("clike",{string:[{pattern:Ie(/(^|[^$\\])<<0>>/.source,[Ze]),lookbehind:!0,greedy:!0},{pattern:Ie(/(^|[^@$\\])<<0>>/.source,[Re]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:Ie(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[te]),lookbehind:!0,inside:we},{pattern:Ie(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[_t,Se]),lookbehind:!0,inside:we},{pattern:Ie(/(\busing\s+)<<0>>(?=\s*=)/.source,[_t]),lookbehind:!0},{pattern:Ie(/(\b<<0>>\s+)<<1>>/.source,[Ve,Ue]),lookbehind:!0,inside:we},{pattern:Ie(/(\bcatch\s*\(\s*)<<0>>/.source,[te]),lookbehind:!0,inside:we},{pattern:Ie(/(\bwhere\s+)<<0>>/.source,[_t]),lookbehind:!0},{pattern:Ie(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[fe]),lookbehind:!0,inside:we},{pattern:Ie(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[Se,Xe,_t]),inside:we}],keyword:ot,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),le.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),le.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:Ie(/([(,]\s*)<<0>>(?=\s*:)/.source,[_t]),lookbehind:!0,alias:"punctuation"}}),le.languages.insertBefore("csharp","class-name",{namespace:{pattern:Ie(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[_t]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:Ie(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[st]),lookbehind:!0,alias:"class-name",inside:we},"return-type":{pattern:Ie(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[Se,te]),inside:we,alias:"class-name"},"constructor-invocation":{pattern:Ie(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[Se]),lookbehind:!0,inside:we,alias:"class-name"},"generic-method":{pattern:Ie(/<<0>>\s*<<1>>(?=\s*\()/.source,[_t,vt]),inside:{function:Ie(/^<<0>>/.source,[_t]),generic:{pattern:RegExp(vt),alias:"class-name",inside:we}}},"type-list":{pattern:Ie(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[Ve,Ue,_t,Se,ot.source,st,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:Ie(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[Ue,st]),lookbehind:!0,greedy:!0,inside:le.languages.csharp},keyword:ot,"class-name":{pattern:RegExp(Se),greedy:!0,inside:we},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var nt=Re+"|"+De,rt=Me(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[nt]),ft=Pe(Me(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[rt]),2),xt=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,at=Me(/<<0>>(?:\s*\(<<1>>*\))?/.source,[te,ft]);le.languages.insertBefore("csharp","class-name",{attribute:{pattern:Ie(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[xt,at]),lookbehind:!0,greedy:!0,inside:{target:{pattern:Ie(/^<<0>>(?=\s*:)/.source,[xt]),alias:"keyword"},"attribute-arguments":{pattern:Ie(/\(<<0>>*\)/.source,[ft]),inside:le.languages.csharp},"class-name":{pattern:RegExp(te),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var wt=/:[^}\r\n]+/.source,Mt=Pe(Me(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[rt]),2),Xt=Me(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[Mt,wt]),bn=Pe(Me(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[nt]),2),pn=Me(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[bn,wt]);function fn(gn,Nt){return{interpolation:{pattern:Ie(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[gn]),lookbehind:!0,inside:{"format-string":{pattern:Ie(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[Nt,wt]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:le.languages.csharp}}},string:/[\s\S]+/}}le.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:Ie(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[Xt]),lookbehind:!0,greedy:!0,inside:fn(Xt,Mt)},{pattern:Ie(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[pn]),lookbehind:!0,greedy:!0,inside:fn(pn,bn)}],char:{pattern:RegExp(De),greedy:!0}}),le.languages.dotnet=le.languages.cs=le.languages.csharp})(de)}},10617:function(ze,be,de){"use strict";var le=de(87648);ze.exports=Me,Me.displayName="cshtml",Me.aliases=["razor"];function Me(Ie){Ie.register(le),function(Pe){var Ge=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,Oe=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function Ve(fe,se){for(var pe=0;pe<se;pe++)fe=fe.replace(/<self>/g,function(){return"(?:"+fe+")"});return fe.replace(/<self>/g,"[^\\s\\S]").replace(/<str>/g,"(?:"+Oe+")").replace(/<comment>/g,"(?:"+Ge+")")}var ot=Ve(/\((?:[^()'"@/]|<str>|<comment>|<self>)*\)/.source,2),Je=Ve(/\[(?:[^\[\]'"@/]|<str>|<comment>|<self>)*\]/.source,2),Xe=Ve(/\{(?:[^{}'"@/]|<str>|<comment>|<self>)*\}/.source,2),vt=Ve(/<(?:[^<>'"@/]|<str>|<comment>|<self>)*>/.source,2),st=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?/.source,_t=/(?!\d)[^\s>\/=$<%]+/.source+st+/\s*\/?>/.source,Ue=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+st+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+_t+"|"+Ve(/<\1/.source+st+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+_t+"|<self>")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/</.source+_t+")";Pe.languages.cshtml=Pe.languages.extend("markup",{});var te=Pe.languages.insertBefore("csharp","string",{html:{pattern:RegExp(Ue),greedy:!0,inside:Pe.languages.cshtml}},{csharp:Pe.languages.extend("csharp",{})}),ne={pattern:/\S[\s\S]*/,alias:"language-csharp",inside:te};Pe.languages.insertBefore("cshtml","prolog",{"razor-comment":{pattern:/@\*[\s\S]*?\*@/,greedy:!0,alias:"comment"},block:{pattern:RegExp(/(^|[^@])@/.source+"(?:"+[Xe,/(?:code|functions)\s*/.source+Xe,/(?:for|foreach|lock|switch|using|while)\s*/.source+ot+/\s*/.source+Xe,/do\s*/.source+Xe+/\s*while\s*/.source+ot+/(?:\s*;)?/.source,/try\s*/.source+Xe+/\s*catch\s*/.source+ot+/\s*/.source+Xe+/\s*finally\s*/.source+Xe,/if\s*/.source+ot+/\s*/.source+Xe+"(?:"+/\s*else/.source+"(?:"+/\s+if\s*/.source+ot+")?"+/\s*/.source+Xe+")*"].join("|")+")"),lookbehind:!0,greedy:!0,inside:{keyword:/^@\w*/,csharp:ne}},directive:{pattern:/^([ \t]*)@(?:addTagHelper|attribute|implements|inherits|inject|layout|model|namespace|page|preservewhitespace|removeTagHelper|section|tagHelperPrefix|using)(?=\s).*/m,lookbehind:!0,greedy:!0,inside:{keyword:/^@\w+/,csharp:ne}},value:{pattern:RegExp(/(^|[^@])@/.source+/(?:await\b\s*)?/.source+"(?:"+/\w+\b/.source+"|"+ot+")(?:"+/[?!]?\.\w+\b/.source+"|"+ot+"|"+Je+"|"+vt+ot+")*"),lookbehind:!0,greedy:!0,alias:"variable",inside:{keyword:/^@/,csharp:ne}},"delegate-operator":{pattern:/(^|[^@])@(?=<)/,lookbehind:!0,alias:"operator"}}),Pe.languages.razor=Pe.languages.cshtml}(Ie)}},5348:function(ze){"use strict";ze.exports=be,be.displayName="csp",be.aliases=[];function be(de){(function(le){function Me(Ie){return RegExp(/([ \t])/.source+"(?:"+Ie+")"+/(?=[\s;]|$)/.source,"i")}le.languages.csp={directive:{pattern:/(^|[\s;])(?:base-uri|block-all-mixed-content|(?:child|connect|default|font|frame|img|manifest|media|object|prefetch|script|style|worker)-src|disown-opener|form-action|frame-(?:ancestors|options)|input-protection(?:-(?:clip|selectors))?|navigate-to|plugin-types|policy-uri|referrer|reflected-xss|report-(?:to|uri)|require-sri-for|sandbox|(?:script|style)-src-(?:attr|elem)|upgrade-insecure-requests)(?=[\s;]|$)/i,lookbehind:!0,alias:"property"},scheme:{pattern:Me(/[a-z][a-z0-9.+-]*:/.source),lookbehind:!0},none:{pattern:Me(/'none'/.source),lookbehind:!0,alias:"keyword"},nonce:{pattern:Me(/'nonce-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},hash:{pattern:Me(/'sha(?:256|384|512)-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},host:{pattern:Me(/[a-z][a-z0-9.+-]*:\/\/[^\s;,']*/.source+"|"+/\*[^\s;,']*/.source+"|"+/[a-z0-9-]+(?:\.[a-z0-9-]+)+(?::[\d*]+)?(?:\/[^\s;,']*)?/.source),lookbehind:!0,alias:"url",inside:{important:/\*/}},keyword:[{pattern:Me(/'unsafe-[a-z-]+'/.source),lookbehind:!0,alias:"unsafe"},{pattern:Me(/'[a-z-]+'/.source),lookbehind:!0,alias:"safe"}],punctuation:/;/}})(de)}},71053:function(ze){"use strict";ze.exports=be,be.displayName="cssExtras",be.aliases=[];function be(de){(function(le){var Me=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,Ie;le.languages.css.selector={pattern:le.languages.css.selector.pattern,lookbehind:!0,inside:Ie={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+Me.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[Me,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},le.languages.css.atrule.inside["selector-function-argument"].inside=Ie,le.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var Pe={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},Ge={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};le.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:Pe,number:Ge,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:Pe,number:Ge})})(de)}},54212:function(ze){"use strict";ze.exports=be,be.displayName="css",be.aliases=[];function be(de){(function(le){var Me=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;le.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+Me.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+Me.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+Me.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:Me,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},le.languages.css.atrule.inside.rest=le.languages.css;var Ie=le.languages.markup;Ie&&(Ie.tag.addInlined("style","css"),Ie.tag.addAttribute("style","css"))})(de)}},69820:function(ze){"use strict";ze.exports=be,be.displayName="csv",be.aliases=[];function be(de){de.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}},41929:function(ze){"use strict";ze.exports=be,be.displayName="cypher",be.aliases=[];function be(de){de.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}},51837:function(ze){"use strict";ze.exports=be,be.displayName="d",be.aliases=[];function be(de){de.languages.d=de.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),de.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),de.languages.insertBefore("d","keyword",{property:/\B@\w*/}),de.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}},4182:function(ze){"use strict";ze.exports=be,be.displayName="dart",be.aliases=[];function be(de){(function(le){var Me=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],Ie=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,Pe={pattern:RegExp(Ie+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};le.languages.dart=le.languages.extend("clike",{"class-name":[Pe,{pattern:RegExp(Ie+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:Pe.inside}],keyword:Me,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),le.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:le.languages.dart}}},string:/[\s\S]+/}},string:void 0}),le.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),le.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":Pe,keyword:Me,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})})(de)}},22117:function(ze){"use strict";ze.exports=be,be.displayName="dataweave",be.aliases=[];function be(de){(function(le){le.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}})(de)}},95627:function(ze){"use strict";ze.exports=be,be.displayName="dax",be.aliases=[];function be(de){de.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}},34265:function(ze){"use strict";ze.exports=be,be.displayName="dhall",be.aliases=[];function be(de){de.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},de.languages.dhall.string.inside.interpolation.inside.expression.inside=de.languages.dhall}},50618:function(ze){"use strict";ze.exports=be,be.displayName="diff",be.aliases=[];function be(de){(function(le){le.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var Me={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(Me).forEach(function(Ie){var Pe=Me[Ie],Ge=[];/^\w+$/.test(Ie)||Ge.push(/\w+/.exec(Ie)[0]),Ie==="diff"&&Ge.push("bold"),le.languages.diff[Ie]={pattern:RegExp("^(?:["+Pe+`].*(?:\r
?|
|(?![\\s\\S])))+`,"m"),alias:Ge,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(Ie)[0]}}}}),Object.defineProperty(le.languages.diff,"PREFIXES",{value:Me})})(de)}},32126:function(ze,be,de){"use strict";var le=de(51478);ze.exports=Me,Me.displayName="django",Me.aliases=["jinja2"];function Me(Ie){Ie.register(le),function(Pe){Pe.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var Ge=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,Oe=Pe.languages["markup-templating"];Pe.hooks.add("before-tokenize",function(Ve){Oe.buildPlaceholders(Ve,"django",Ge)}),Pe.hooks.add("after-tokenize",function(Ve){Oe.tokenizePlaceholders(Ve,"django")}),Pe.languages.jinja2=Pe.languages.django,Pe.hooks.add("before-tokenize",function(Ve){Oe.buildPlaceholders(Ve,"jinja2",Ge)}),Pe.hooks.add("after-tokenize",function(Ve){Oe.tokenizePlaceholders(Ve,"jinja2")})}(Ie)}},26737:function(ze){"use strict";ze.exports=be,be.displayName="dnsZoneFile",be.aliases=[];function be(de){de.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},de.languages["dns-zone"]=de.languages["dns-zone-file"]}},90134:function(ze){"use strict";ze.exports=be,be.displayName="docker",be.aliases=["dockerfile"];function be(de){(function(le){var Me=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,Ie=/(?:[ \t]+(?![ \t])(?:<SP_BS>)?|<SP_BS>)/.source.replace(/<SP_BS>/g,function(){return Me}),Pe=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,Ge=/--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(/<STR>/g,function(){return Pe}),Oe={pattern:RegExp(Pe),greedy:!0},Ve={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function ot(Je,Xe){return Je=Je.replace(/<OPT>/g,function(){return Ge}).replace(/<SP>/g,function(){return Ie}),RegExp(Je,Xe)}le.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:ot(/(^(?:ONBUILD<SP>)?\w+<SP>)<OPT>(?:<SP><OPT>)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[Oe,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:ot(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:ot(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\]+<SP>)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:ot(/(^ONBUILD<SP>)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:Ve,string:Oe,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:Ve},le.languages.dockerfile=le.languages.docker})(de)}},51348:function(ze){"use strict";ze.exports=be,be.displayName="dot",be.aliases=["gv"];function be(de){(function(le){var Me="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!<!--)<(?:[^<>"']|"[^"]*"|'[^']*')+>|<!--(?:[^-]|-(?!->))*-->)*>/.source].join("|")+")",Ie={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:le.languages.markup}};function Pe(Ge,Oe){return RegExp(Ge.replace(/<ID>/g,function(){return Me}),Oe)}le.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:Pe(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)<ID>/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:Ie},"attr-value":{pattern:Pe(/(=[ \t\r\n]*)<ID>/.source),lookbehind:!0,greedy:!0,inside:Ie},"attr-name":{pattern:Pe(/([\[;, \t\r\n])<ID>(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:Ie},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:Pe(/(^|[^-.\w\x80-\uFFFF\\])<ID>/.source),lookbehind:!0,greedy:!0,inside:Ie},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},le.languages.gv=le.languages.dot})(de)}},60841:function(ze){"use strict";ze.exports=be,be.displayName="ebnf",be.aliases=[];function be(de){de.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}},42857:function(ze){"use strict";ze.exports=be,be.displayName="editorconfig",be.aliases=[];function be(de){de.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}},81269:function(ze){"use strict";ze.exports=be,be.displayName="eiffel",be.aliases=[];function be(de){de.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}},31134:function(ze,be,de){"use strict";var le=de(51478);ze.exports=Me,Me.displayName="ejs",Me.aliases=["eta"];function Me(Ie){Ie.register(le),function(Pe){Pe.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:Pe.languages.javascript}},Pe.hooks.add("before-tokenize",function(Ge){var Oe=/<%(?!%)[\s\S]+?%>/g;Pe.languages["markup-templating"].buildPlaceholders(Ge,"ejs",Oe)}),Pe.hooks.add("after-tokenize",function(Ge){Pe.languages["markup-templating"].tokenizePlaceholders(Ge,"ejs")}),Pe.languages.eta=Pe.languages.ejs}(Ie)}},83125:function(ze){"use strict";ze.exports=be,be.displayName="elixir",be.aliases=[];function be(de){de.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},de.languages.elixir.string.forEach(function(le){le.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:de.languages.elixir}}}})}},9438:function(ze){"use strict";ze.exports=be,be.displayName="elm",be.aliases=[];function be(de){de.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}},27771:function(ze,be,de){"use strict";var le=de(75308),Me=de(51478);ze.exports=Ie,Ie.displayName="erb",Ie.aliases=[];function Ie(Pe){Pe.register(le),Pe.register(Me),function(Ge){Ge.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:Ge.languages.ruby}},Ge.hooks.add("before-tokenize",function(Oe){var Ve=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;Ge.languages["markup-templating"].buildPlaceholders(Oe,"erb",Ve)}),Ge.hooks.add("after-tokenize",function(Oe){Ge.languages["markup-templating"].tokenizePlaceholders(Oe,"erb")})}(Pe)}},86549:function(ze){"use strict";ze.exports=be,be.displayName="erlang",be.aliases=[];function be(de){de.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}},37079:function(ze,be,de){"use strict";var le=de(33978),Me=de(51478);ze.exports=Ie,Ie.displayName="etlua",Ie.aliases=[];function Ie(Pe){Pe.register(le),Pe.register(Me),function(Ge){Ge.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:Ge.languages.lua}},Ge.hooks.add("before-tokenize",function(Oe){var Ve=/<%[\s\S]+?%>/g;Ge.languages["markup-templating"].buildPlaceholders(Oe,"etlua",Ve)}),Ge.hooks.add("after-tokenize",function(Oe){Ge.languages["markup-templating"].tokenizePlaceholders(Oe,"etlua")})}(Pe)}},59250:function(ze){"use strict";ze.exports=be,be.displayName="excelFormula",be.aliases=[];function be(de){de.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"keyword"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"property",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"property"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},de.languages.xlsx=de.languages.xls=de.languages["excel-formula"]}},81226:function(ze){"use strict";ze.exports=be,be.displayName="factor",be.aliases=[];function be(de){(function(le){var Me={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},Ie={number:/\\[^\s']|%\w/},Pe={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:Me},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:Me},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:Me}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:Ie.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:Ie},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:Ie}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:Ie}},Ge=function(Je){return(Je+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},Oe=function(Je){return new RegExp("(^|\\s)(?:"+Je.map(Ge).join("|")+")(?=\\s|$)")},Ve={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","<wrapper>","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated","<PRIVATE",">>>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","<slice>","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","<iota>","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","<reversed>","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","<repetition>","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","<fp-nan>","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(Ve).forEach(function(Je){Pe[Je].pattern=Oe(Ve[Je])});var ot=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","input<sequence","append-outputs","drop-inputs","inputs","smart-2reduce","drop-outputs","smart-reduce","preserving","smart-when","outputs","append-outputs-as","smart-unless","smart-if*","sum-outputs","input<sequence-unsafe","output>sequence"];Pe.combinators.pattern=Oe(ot),le.languages.factor=Pe})(de)}},65245:function(ze){"use strict";ze.exports=be,be.displayName="$false",be.aliases=[];function be(de){(function(le){le.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()<BDO®]/,alias:"bold"}}})(de)}},25040:function(ze){"use strict";ze.exports=be,be.displayName="firestoreSecurityRules",be.aliases=[];function be(de){de.languages["firestore-security-rules"]=de.languages.extend("clike",{comment:/\/\/.*/,keyword:/\b(?:allow|function|if|match|null|return|rules_version|service)\b/,operator:/&&|\|\||[<>!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete de.languages["firestore-security-rules"]["class-name"],de.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}},40284:function(ze){"use strict";ze.exports=be,be.displayName="flow",be.aliases=[];function be(de){(function(le){le.languages.flow=le.languages.extend("javascript",{}),le.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|any|mixed|null|void)\b/,alias:"tag"}]}),le.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete le.languages.flow.parameter,le.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(le.languages.flow.keyword)||(le.languages.flow.keyword=[le.languages.flow.keyword]),le.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})})(de)}},39187:function(ze){"use strict";ze.exports=be,be.displayName="fortran",be.aliases=[];function be(de){de.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}},34302:function(ze){"use strict";ze.exports=be,be.displayName="fsharp",be.aliases=[];function be(de){de.languages.fsharp=de.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|<?\|{1,3}>?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),de.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),de.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),de.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:de.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}},90515:function(ze,be,de){"use strict";var le=de(51478);ze.exports=Me,Me.displayName="ftl",Me.aliases=[];function Me(Ie){Ie.register(le),function(Pe){for(var Ge=/[^<()"']|\((?:<expr>)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,Oe=0;Oe<2;Oe++)Ge=Ge.replace(/<expr>/g,function(){return Ge});Ge=Ge.replace(/<expr>/g,/[^\s\S]/.source);var Ve={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:<expr>))*\})*\1/.source.replace(/<expr>/g,function(){return Ge})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:<expr>))*\}/.source.replace(/<expr>/g,function(){return Ge})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};Ve.string[1].inside.interpolation.inside.rest=Ve,Pe.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:Ve}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:Ve}}}},Pe.hooks.add("before-tokenize",function(ot){var Je=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:<expr>)*?>|\$\{(?:<expr>)*?\}/.source.replace(/<expr>/g,function(){return Ge}),"gi");Pe.languages["markup-templating"].buildPlaceholders(ot,"ftl",Je)}),Pe.hooks.add("after-tokenize",function(ot){Pe.languages["markup-templating"].tokenizePlaceholders(ot,"ftl")})}(Ie)}},33534:function(ze){"use strict";ze.exports=be,be.displayName="gap",be.aliases=[];function be(de){de.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},de.languages.gap.shell.inside.gap.inside=de.languages.gap}},9885:function(ze){"use strict";ze.exports=be,be.displayName="gcode",be.aliases=[];function be(de){de.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}},76364:function(ze){"use strict";ze.exports=be,be.displayName="gdscript",be.aliases=[];function be(de){de.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}},56452:function(ze){"use strict";ze.exports=be,be.displayName="gedcom",be.aliases=[];function be(de){de.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},tag:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"string"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}},8477:function(ze){"use strict";ze.exports=be,be.displayName="gherkin",be.aliases=[];function be(de){(function(le){var Me=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;le.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+Me+")(?:"+Me+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(Me),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}})(de)}},58230:function(ze){"use strict";ze.exports=be,be.displayName="git",be.aliases=[];function be(de){de.languages.git={comment:/^#.*/m,deleted:/^[-].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}},66192:function(ze,be,de){"use strict";var le=de(79440);ze.exports=Me,Me.displayName="glsl",Me.aliases=[];function Me(Ie){Ie.register(le),Ie.languages.glsl=Ie.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}},81084:function(ze){"use strict";ze.exports=be,be.displayName="gml",be.aliases=[];function be(de){de.languages.gamemakerlanguage=de.languages.gml=de.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}},50318:function(ze){"use strict";ze.exports=be,be.displayName="gn",be.aliases=["gni"];function be(de){de.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},de.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=de.languages.gn,de.languages.gni=de.languages.gn}},95769:function(ze){"use strict";ze.exports=be,be.displayName="goModule",be.aliases=[];function be(de){de.languages["go-mod"]=de.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}},14155:function(ze){"use strict";ze.exports=be,be.displayName="go",be.aliases=[];function be(de){de.languages.go=de.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),de.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete de.languages.go["class-name"]}},92823:function(ze){"use strict";ze.exports=be,be.displayName="graphql",be.aliases=[];function be(de){de.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:de.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},de.hooks.add("after-tokenize",function(Me){if(Me.language!=="graphql")return;var Ie=Me.tokens.filter(function(ne){return typeof ne!="string"&&ne.type!=="comment"&&ne.type!=="scalar"}),Pe=0;function Ge(ne){return Ie[Pe+ne]}function Oe(ne,fe){fe=fe||0;for(var se=0;se<ne.length;se++){var pe=Ge(se+fe);if(!pe||pe.type!==ne[se])return!1}return!0}function Ve(ne,fe){for(var se=1,pe=Pe;pe<Ie.length;pe++){var Se=Ie[pe],we=Se.content;if(Se.type==="punctuation"&&typeof we=="string"){if(ne.test(we))se++;else if(fe.test(we)&&(se--,se===0))return pe}}return-1}function ot(ne,fe){var se=ne.alias;se?Array.isArray(se)||(ne.alias=se=[se]):ne.alias=se=[],se.push(fe)}for(;Pe<Ie.length;){var Je=Ie[Pe++];if(Je.type==="keyword"&&Je.content==="mutation"){var Xe=[];if(Oe(["definition-mutation","punctuation"])&&Ge(1).content==="("){Pe+=2;var vt=Ve(/^\($/,/^\)$/);if(vt===-1)continue;for(;Pe<vt;Pe++){var st=Ge(0);st.type==="variable"&&(ot(st,"variable-input"),Xe.push(st.content))}Pe=vt+1}if(Oe(["punctuation","property-query"])&&Ge(0).content==="{"&&(Pe++,ot(Ge(0),"property-mutation"),Xe.length>0)){var _t=Ve(/^\{$/,/^\}$/);if(_t===-1)continue;for(var Ue=Pe;Ue<_t;Ue++){var te=Ie[Ue];te.type==="variable"&&Xe.indexOf(te.content)>=0&&ot(te,"variable-input")}}}}})}},63092:function(ze){"use strict";ze.exports=be,be.displayName="groovy",be.aliases=[];function be(de){de.languages.groovy=de.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),de.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),de.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),de.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),de.hooks.add("wrap",function(le){if(le.language==="groovy"&&le.type==="string"){var Me=le.content.value[0];if(Me!="'"){var Ie=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;Me==="$"&&(Ie=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),le.content.value=le.content.value.replace(/&lt;/g,"<").replace(/&amp;/g,"&"),le.content=de.highlight(le.content.value,{expression:{pattern:Ie,lookbehind:!0,inside:de.languages.groovy}}),le.classes.push(Me==="/"?"regex":"gstring")}}})}},21550:function(ze,be,de){"use strict";var le=de(75308);ze.exports=Me,Me.displayName="haml",Me.aliases=[];function Me(Ie){Ie.register(le),function(Pe){Pe.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:Pe.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:Pe.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:Pe.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:Pe.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:Pe.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:Pe.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:Pe.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var Ge="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",Oe=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],Ve={},ot=0,Je=Oe.length;ot<Je;ot++){var Xe=Oe[ot];Xe=typeof Xe=="string"?{filter:Xe,language:Xe}:Xe,Pe.languages[Xe.language]&&(Ve["filter-"+Xe.filter]={pattern:RegExp(Ge.replace("{{filter_name}}",function(){return Xe.filter})),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"},text:{pattern:/[\s\S]+/,alias:[Xe.language,"language-"+Xe.language],inside:Pe.languages[Xe.language]}}})}Pe.languages.insertBefore("haml","filter",Ve)}(Ie)}},29710:function(ze,be,de){"use strict";var le=de(51478);ze.exports=Me,Me.displayName="handlebars",Me.aliases=["hbs"];function Me(Ie){Ie.register(le),function(Pe){Pe.languages.handlebars={comment:/\{\{![\s\S]*?\}\}/,delimiter:{pattern:/^\{\{\{?|\}\}\}?$/,alias:"punctuation"},string:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/,boolean:/\b(?:false|true)\b/,block:{pattern:/^(\s*(?:~\s*)?)[#\/]\S+?(?=\s*(?:~\s*)?$|\s)/,lookbehind:!0,alias:"keyword"},brackets:{pattern:/\[[^\]]+\]/,inside:{punctuation:/\[|\]/,variable:/[\s\S]+/}},punctuation:/[!"#%&':()*+,.\/;<=>@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},Pe.hooks.add("before-tokenize",function(Ge){var Oe=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;Pe.languages["markup-templating"].buildPlaceholders(Ge,"handlebars",Oe)}),Pe.hooks.add("after-tokenize",function(Ge){Pe.languages["markup-templating"].tokenizePlaceholders(Ge,"handlebars")}),Pe.languages.hbs=Pe.languages.handlebars}(Ie)}},2050:function(ze){"use strict";ze.exports=be,be.displayName="haskell",be.aliases=["hs"];function be(de){de.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},de.languages.hs=de.languages.haskell}},67967:function(ze){"use strict";ze.exports=be,be.displayName="haxe",be.aliases=[];function be(de){de.languages.haxe=de.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<<?|>{1,3}|[-+*/%!=&|^])=?|[?:~]/}),de.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:de.languages.haxe}}},string:/[\s\S]+/}}}),de.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:de.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),de.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}},29138:function(ze){"use strict";ze.exports=be,be.displayName="hcl",be.aliases=[];function be(de){de.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}},67915:function(ze,be,de){"use strict";var le=de(79440);ze.exports=Me,Me.displayName="hlsl",Me.aliases=[];function Me(Ie){Ie.register(le),Ie.languages.hlsl=Ie.languages.extend("c",{"class-name":[Ie.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}},54853:function(ze){"use strict";ze.exports=be,be.displayName="hoon",be.aliases=[];function be(de){de.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}},68330:function(ze){"use strict";ze.exports=be,be.displayName="hpkp",be.aliases=[];function be(de){de.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}},76823:function(ze){"use strict";ze.exports=be,be.displayName="hsts",be.aliases=[];function be(de){de.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}},86712:function(ze){"use strict";ze.exports=be,be.displayName="http",be.aliases=[];function be(de){(function(le){function Me(Xe){return RegExp("(^(?:"+Xe+"):[ ]*(?![ ]))[^]+","i")}le.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:le.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:Me(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:le.languages.csp},{pattern:Me(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:le.languages.hpkp},{pattern:Me(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:le.languages.hsts},{pattern:Me(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var Ie=le.languages,Pe={"application/javascript":Ie.javascript,"application/json":Ie.json||Ie.javascript,"application/xml":Ie.xml,"text/xml":Ie.xml,"text/html":Ie.html,"text/css":Ie.css,"text/plain":Ie.plain},Ge={"application/json":!0,"application/xml":!0};function Oe(Xe){var vt=Xe.replace(/^[a-z]+\//,""),st="\\w+/(?:[\\w.-]+\\+)+"+vt+"(?![+\\w.-])";return"(?:"+Xe+"|"+st+")"}var Ve;for(var ot in Pe)if(Pe[ot]){Ve=Ve||{};var Je=Ge[ot]?Oe(ot):ot;Ve[ot.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+Je+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:Pe[ot]}}Ve&&le.languages.insertBefore("http","header",Ve)})(de)}},72252:function(ze){"use strict";ze.exports=be,be.displayName="ichigojam",be.aliases=[];function be(de){de.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}},78634:function(ze){"use strict";ze.exports=be,be.displayName="icon",be.aliases=[];function be(de){de.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|<?=?)|>>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}},43583:function(ze){"use strict";ze.exports=be,be.displayName="icuMessageFormat",be.aliases=[];function be(de){(function(le){function Me(ot,Je){return Je<=0?/[]/.source:ot.replace(/<SELF>/g,function(){return Me(ot,Je-1)})}var Ie=/'[{}:=,](?:[^']|'')*'(?!')/,Pe={pattern:/''/,greedy:!0,alias:"operator"},Ge={pattern:Ie,greedy:!0,inside:{escape:Pe}},Oe=Me(/\{(?:[^{}']|'(?![{},'])|''|<STR>|<SELF>)*\}/.source.replace(/<STR>/g,function(){return Ie.source}),8),Ve={pattern:RegExp(Oe),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};le.languages["icu-message-format"]={argument:{pattern:RegExp(Oe),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":Ve,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":Ve,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+Me(/(?:[^{}']|'[^']*'|\{(?:<SELF>)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:Pe,string:Ge},Ve.inside.message.inside=le.languages["icu-message-format"],le.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=le.languages["icu-message-format"]})(de)}},23328:function(ze,be,de){"use strict";var le=de(2050);ze.exports=Me,Me.displayName="idris",Me.aliases=["idr"];function Me(Ie){Ie.register(le),Ie.languages.idris=Ie.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),Ie.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),Ie.languages.idr=Ie.languages.idris}},74494:function(ze){"use strict";ze.exports=be,be.displayName="iecst",be.aliases=[];function be(de){de.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}},46745:function(ze){"use strict";ze.exports=be,be.displayName="ignore",be.aliases=["gitignore","hgignore","npmignore"];function be(de){(function(le){le.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},le.languages.gitignore=le.languages.ignore,le.languages.hgignore=le.languages.ignore,le.languages.npmignore=le.languages.ignore})(de)}},22152:function(ze){"use strict";ze.exports=be,be.displayName="inform7",be.aliases=[];function be(de){de.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},de.languages.inform7.string.inside.substitution.inside.rest=de.languages.inform7,de.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}},83698:function(ze){"use strict";ze.exports=be,be.displayName="ini",be.aliases=[];function be(de){de.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}},26619:function(ze){"use strict";ze.exports=be,be.displayName="io",be.aliases=[];function be(de){de.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<<?=?|:?:?=|\+\+?|--?|\*\*?|\/\/?|%|\|\|?|&&?|\b(?:and|not|or|return)\b|@@?|\?\??|\.\./,punctuation:/[{}[\];(),.:]/}}},53990:function(ze){"use strict";ze.exports=be,be.displayName="j",be.aliases=[];function be(de){de.languages.j={comment:{pattern:/\bNB\..*/,greedy:!0},string:{pattern:/'(?:''|[^'\r\n])*'/,greedy:!0},keyword:/\b(?:(?:CR|LF|adverb|conjunction|def|define|dyad|monad|noun|verb)\b|(?:assert|break|case|catch[dt]?|continue|do|else|elseif|end|fcase|for|for_\w+|goto_\w+|if|label_\w+|return|select|throw|try|while|whilst)\.)/,verb:{pattern:/(?!\^:|;\.|[=!][.:])(?:\{(?:\.|::?)?|p(?:\.\.?|:)|[=!\]]|[<>+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}},7093:function(ze){"use strict";ze.exports=be,be.displayName="java",be.aliases=[];function be(de){(function(le){var Me=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,Ie=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,Pe={pattern:RegExp(Ie+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};le.languages.java=le.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[Pe,{pattern:RegExp(Ie+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:Pe.inside}],keyword:Me,function:[le.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),le.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),le.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":Pe,keyword:Me,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return Me.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(de)}},4005:function(ze,be,de){"use strict";var le=de(7093),Me=de(53510);ze.exports=Ie,Ie.displayName="javadoc",Ie.aliases=[];function Ie(Pe){Pe.register(le),Pe.register(Me),function(Ge){var Oe=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,Ve=/#\s*\w+(?:\s*\([^()]*\))?/.source,ot=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*<mem>)?|<mem>/.source.replace(/<mem>/g,function(){return Ve});Ge.languages.javadoc=Ge.languages.extend("javadoclike",{}),Ge.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+ot+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:Ge.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:Oe,lookbehind:!0,inside:Ge.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!<code>)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:Oe,lookbehind:!0,inside:{tag:Ge.languages.markup.tag,entity:Ge.languages.markup.entity,code:{pattern:/.+/,inside:Ge.languages.java,alias:"language-java"}}}}}],tag:Ge.languages.markup.tag,entity:Ge.languages.markup.entity}),Ge.languages.javadoclike.addSupport("java",Ge.languages.javadoc)}(Pe)}},53510:function(ze){"use strict";ze.exports=be,be.displayName="javadoclike",be.aliases=[];function be(de){(function(le){var Me=le.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function Ie(Ge,Oe){var Ve="doc-comment",ot=le.languages[Ge];if(ot){var Je=ot[Ve];if(!Je){var Xe={};Xe[Ve]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},ot=le.languages.insertBefore(Ge,"comment",Xe),Je=ot[Ve]}if(Je instanceof RegExp&&(Je=ot[Ve]={pattern:Je}),Array.isArray(Je))for(var vt=0,st=Je.length;vt<st;vt++)Je[vt]instanceof RegExp&&(Je[vt]={pattern:Je[vt]}),Oe(Je[vt]);else Oe(Je)}}function Pe(Ge,Oe){typeof Ge=="string"&&(Ge=[Ge]),Ge.forEach(function(Ve){Ie(Ve,function(ot){ot.inside||(ot.inside={}),ot.inside.rest=Oe})})}Object.defineProperty(Me,"addSupport",{value:Pe}),Me.addSupport(["java","javascript","php"],Me)})(de)}},88786:function(ze){"use strict";ze.exports=be,be.displayName="javascript",be.aliases=["js"];function be(de){de.languages.javascript=de.languages.extend("clike",{"class-name":[de.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),de.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,de.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:de.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:de.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:de.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:de.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:de.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),de.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:de.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),de.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),de.languages.markup&&(de.languages.markup.tag.addInlined("script","javascript"),de.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),de.languages.js=de.languages.javascript}},24799:function(ze){"use strict";ze.exports=be,be.displayName="javastacktrace",be.aliases=[];function be(de){de.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:<init>)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:<init>|[\w$]+)\()/,function:/(?:<init>|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}},97443:function(ze){"use strict";ze.exports=be,be.displayName="jexl",be.aliases=[];function be(de){de.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}},80746:function(ze){"use strict";ze.exports=be,be.displayName="jolie",be.aliases=[];function be(de){de.languages.jolie=de.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),de.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}},17015:function(ze){"use strict";ze.exports=be,be.displayName="jq",be.aliases=[];function be(de){(function(le){var Me=/\\\((?:[^()]|\([^()]*\))*\)/.source,Ie=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return Me})),Pe={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+Me),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},Ge=le.languages.jq={comment:/#.*/,property:{pattern:RegExp(Ie.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:Pe},string:{pattern:Ie,lookbehind:!0,greedy:!0,inside:Pe},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};Pe.interpolation.inside.content.inside=Ge})(de)}},89246:function(ze){"use strict";ze.exports=be,be.displayName="jsExtras",be.aliases=[];function be(de){(function(le){le.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+le.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),le.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+le.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),le.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function Me(ot,Je){return RegExp(ot.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),Je)}le.languages.insertBefore("javascript","keyword",{imports:{pattern:Me(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:le.languages.javascript},exports:{pattern:Me(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:le.languages.javascript}}),le.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),le.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),le.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:Me(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var Ie=["function","function-variable","method","method-variable","property-access"],Pe=0;Pe<Ie.length;Pe++){var Ge=Ie[Pe],Oe=le.languages.javascript[Ge];le.util.type(Oe)==="RegExp"&&(Oe=le.languages.javascript[Ge]={pattern:Oe});var Ve=Oe.inside||{};Oe.inside=Ve,Ve["maybe-class-name"]=/^[A-Z][\s\S]*/}})(de)}},487:function(ze){"use strict";ze.exports=be,be.displayName="jsTemplates",be.aliases=[];function be(de){(function(le){var Me=le.languages.javascript["template-string"],Ie=Me.pattern.source,Pe=Me.inside.interpolation,Ge=Pe.inside["interpolation-punctuation"],Oe=Pe.pattern.source;function Ve(Ue,te){if(le.languages[Ue])return{pattern:RegExp("((?:"+te+")\\s*)"+Ie),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:Ue}}}}le.languages.javascript["template-string"]=[Ve("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),Ve("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),Ve("svg",/\bsvg/.source),Ve("markdown",/\b(?:markdown|md)/.source),Ve("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),Ve("sql",/\bsql/.source),Me].filter(Boolean);function ot(Ue,te){return"___"+te.toUpperCase()+"_"+Ue+"___"}function Je(Ue,te,ne){var fe={code:Ue,grammar:te,language:ne};return le.hooks.run("before-tokenize",fe),fe.tokens=le.tokenize(fe.code,fe.grammar),le.hooks.run("after-tokenize",fe),fe.tokens}function Xe(Ue){var te={};te["interpolation-punctuation"]=Ge;var ne=le.tokenize(Ue,te);if(ne.length===3){var fe=[1,1];fe.push.apply(fe,Je(ne[1],le.languages.javascript,"javascript")),ne.splice.apply(ne,fe)}return new le.Token("interpolation",ne,Pe.alias,Ue)}function vt(Ue,te,ne){var fe=le.tokenize(Ue,{interpolation:{pattern:RegExp(Oe),lookbehind:!0}}),se=0,pe={},Se=fe.map(function(Ze){if(typeof Ze=="string")return Ze;for(var nt=Ze.content,rt;Ue.indexOf(rt=ot(se++,ne))!==-1;);return pe[rt]=nt,rt}).join(""),we=Je(Se,te,ne),De=Object.keys(pe);se=0;function Re(Ze){for(var nt=0;nt<Ze.length;nt++){if(se>=De.length)return;var rt=Ze[nt];if(typeof rt=="string"||typeof rt.content=="string"){var ft=De[se],xt=typeof rt=="string"?rt:rt.content,at=xt.indexOf(ft);if(at!==-1){++se;var wt=xt.substring(0,at),Mt=Xe(pe[ft]),Xt=xt.substring(at+ft.length),bn=[];if(wt&&bn.push(wt),bn.push(Mt),Xt){var pn=[Xt];Re(pn),bn.push.apply(bn,pn)}typeof rt=="string"?(Ze.splice.apply(Ze,[nt,1].concat(bn)),nt+=bn.length-1):rt.content=bn}}else{var fn=rt.content;Array.isArray(fn)?Re(fn):Re([fn])}}}return Re(we),new le.Token(ne,we,"language-"+ne,Ue)}var st={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};le.hooks.add("after-tokenize",function(Ue){if(!(Ue.language in st))return;function te(ne){for(var fe=0,se=ne.length;fe<se;fe++){var pe=ne[fe];if(typeof pe!="string"){var Se=pe.content;if(!Array.isArray(Se)){typeof Se!="string"&&te([Se]);continue}if(pe.type==="template-string"){var we=Se[1];if(Se.length===3&&typeof we!="string"&&we.type==="embedded-code"){var De=_t(we),Re=we.alias,Ze=Array.isArray(Re)?Re[0]:Re,nt=le.languages[Ze];if(!nt)continue;Se[1]=vt(De,nt,Ze)}}else te(Se)}}}te(Ue.tokens)});function _t(Ue){return typeof Ue=="string"?Ue:Array.isArray(Ue)?Ue.map(_t).join(""):_t(Ue.content)}})(de)}},79539:function(ze,be,de){"use strict";var le=de(53510),Me=de(92784);ze.exports=Ie,Ie.displayName="jsdoc",Ie.aliases=[];function Ie(Pe){Pe.register(le),Pe.register(Me),function(Ge){var Oe=Ge.languages.javascript,Ve=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,ot="(@(?:arg|argument|param|property)\\s+(?:"+Ve+"\\s+)?)";Ge.languages.jsdoc=Ge.languages.extend("javadoclike",{parameter:{pattern:RegExp(ot+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),Ge.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(ot+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:Oe,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,function(){return Ve})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+Ve),lookbehind:!0,inside:{string:Oe.string,number:Oe.number,boolean:Oe.boolean,keyword:Ge.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:Oe,alias:"language-javascript"}}}}),Ge.languages.javadoclike.addSupport("javascript",Ge.languages.jsdoc)}(Pe)}},15628:function(ze){"use strict";ze.exports=be,be.displayName="json",be.aliases=["webmanifest"];function be(de){de.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},de.languages.webmanifest=de.languages.json}},14320:function(ze,be,de){"use strict";var le=de(15628);ze.exports=Me,Me.displayName="json5",Me.aliases=[];function Me(Ie){Ie.register(le),function(Pe){var Ge=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;Pe.languages.json5=Pe.languages.extend("json",{property:[{pattern:RegExp(Ge.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:Ge,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})}(Ie)}},73222:function(ze,be,de){"use strict";var le=de(15628);ze.exports=Me,Me.displayName="jsonp",Me.aliases=[];function Me(Ie){Ie.register(le),Ie.languages.jsonp=Ie.languages.extend("json",{punctuation:/[{}[\]();,.]/}),Ie.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/})}},92486:function(ze){"use strict";ze.exports=be,be.displayName="jsstacktrace",be.aliases=[];function be(de){de.languages.jsstacktrace={"error-message":{pattern:/^\S.*/m,alias:"string"},"stack-frame":{pattern:/(^[ \t]+)at[ \t].*/m,lookbehind:!0,inside:{"not-my-code":{pattern:/^at[ \t]+(?!\s)(?:node\.js|<unknown>|.*(?:node_modules|\(<anonymous>\)|\(<unknown>|<anonymous>$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}},24103:function(ze){"use strict";ze.exports=be,be.displayName="jsx",be.aliases=[];function be(de){(function(le){var Me=le.util.clone(le.languages.javascript),Ie=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,Pe=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,Ge=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function Oe(Je,Xe){return Je=Je.replace(/<S>/g,function(){return Ie}).replace(/<BRACES>/g,function(){return Pe}).replace(/<SPREAD>/g,function(){return Ge}),RegExp(Je,Xe)}Ge=Oe(Ge).source,le.languages.jsx=le.languages.extend("markup",Me),le.languages.jsx.tag.pattern=Oe(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),le.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,le.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,le.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,le.languages.jsx.tag.inside.comment=Me.comment,le.languages.insertBefore("inside","attr-name",{spread:{pattern:Oe(/<SPREAD>/.source),inside:le.languages.jsx}},le.languages.jsx.tag),le.languages.insertBefore("inside","special-attr",{script:{pattern:Oe(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:le.languages.jsx}}},le.languages.jsx.tag);var Ve=function(Je){return Je?typeof Je=="string"?Je:typeof Je.content=="string"?Je.content:Je.content.map(Ve).join(""):""},ot=function(Je){for(var Xe=[],vt=0;vt<Je.length;vt++){var st=Je[vt],_t=!1;if(typeof st!="string"&&(st.type==="tag"&&st.content[0]&&st.content[0].type==="tag"?st.content[0].content[0].content==="</"?Xe.length>0&&Xe[Xe.length-1].tagName===Ve(st.content[0].content[1])&&Xe.pop():st.content[st.content.length-1].content==="/>"||Xe.push({tagName:Ve(st.content[0].content[1]),openedBraces:0}):Xe.length>0&&st.type==="punctuation"&&st.content==="{"?Xe[Xe.length-1].openedBraces++:Xe.length>0&&Xe[Xe.length-1].openedBraces>0&&st.type==="punctuation"&&st.content==="}"?Xe[Xe.length-1].openedBraces--:_t=!0),(_t||typeof st=="string")&&Xe.length>0&&Xe[Xe.length-1].openedBraces===0){var Ue=Ve(st);vt<Je.length-1&&(typeof Je[vt+1]=="string"||Je[vt+1].type==="plain-text")&&(Ue+=Ve(Je[vt+1]),Je.splice(vt+1,1)),vt>0&&(typeof Je[vt-1]=="string"||Je[vt-1].type==="plain-text")&&(Ue=Ve(Je[vt-1])+Ue,Je.splice(vt-1,1),vt--),Je[vt]=new le.Token("plain-text",Ue,null,Ue)}st.content&&typeof st.content!="string"&&ot(st.content)}};le.hooks.add("after-tokenize",function(Je){Je.language!=="jsx"&&Je.language!=="tsx"||ot(Je.tokens)})})(de)}},40604:function(ze){"use strict";ze.exports=be,be.displayName="julia",be.aliases=[];function be(de){de.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[πℯ]/}}},23109:function(ze){"use strict";ze.exports=be,be.displayName="keepalived",be.aliases=[];function be(de){de.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}<ipv4>|(?:[\da-f]{1,4}:){0,5}:<ipv4>|::(?:[\da-f]{1,4}:){0,5}<ipv4>|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|<ipv4>(?:\/\d{1,2})?)\b/.source.replace(/<ipv4>/g,function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source}),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}},32082:function(ze){"use strict";ze.exports=be,be.displayName="keyman",be.aliases=[];function be(de){de.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|nomatch|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}},77674:function(ze){"use strict";ze.exports=be,be.displayName="kotlin",be.aliases=["kt","kts"];function be(de){(function(le){le.languages.kotlin=le.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete le.languages.kotlin["class-name"];var Me={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:le.languages.kotlin}};le.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:Me},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:Me},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete le.languages.kotlin.string,le.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),le.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),le.languages.kt=le.languages.kotlin,le.languages.kts=le.languages.kotlin})(de)}},37524:function(ze){"use strict";ze.exports=be,be.displayName="kumir",be.aliases=["kum"];function be(de){(function(le){var Me=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function Ie(Pe,Ge){return RegExp(Pe.replace(/<nonId>/g,Me),Ge)}le.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:Ie(/(^|[<nonId>])(?:да|нет)(?=[<nonId>]|$)/.source),lookbehind:!0},"operator-word":{pattern:Ie(/(^|[<nonId>])(?:и|или|не)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:Ie(/(^|[<nonId>])знач(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:Ie(/(^|[<nonId>])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:Ie(/(^|[<nonId>])(?:компл|сканкод|файл|цвет)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:Ie(/(^|[<nonId>])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[<nonId>]|$)/.source),lookbehind:!0},name:{pattern:Ie(/(^|[<nonId>])[^\d<nonId>][^<nonId>]*(?:\x20+[^<nonId>]+)*(?=[<nonId>]|$)/.source),lookbehind:!0},number:{pattern:Ie(/(^|[<nonId>])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[<nonId>]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},le.languages.kum=le.languages.kumir})(de)}},6658:function(ze){"use strict";ze.exports=be,be.displayName="kusto",be.aliases=[];function be(de){de.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}},24824:function(ze){"use strict";ze.exports=be,be.displayName="latex",be.aliases=["tex","context"];function be(de){(function(le){var Me=/\\(?:[^a-z()[\]]|[a-z*]+)/i,Ie={"equation-command":{pattern:Me,alias:"regex"}};le.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:Ie,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:Ie,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:Me,alias:"selector"},punctuation:/[[\]{}&]/},le.languages.tex=le.languages.latex,le.languages.context=le.languages.latex})(de)}},22776:function(ze,be,de){"use strict";var le=de(51478),Me=de(53852);ze.exports=Ie,Ie.displayName="latte",Ie.aliases=[];function Ie(Pe){Pe.register(le),Pe.register(Me),function(Ge){Ge.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:Ge.languages.php}};var Oe=Ge.languages.extend("markup",{});Ge.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:Ge.languages.php}}}}}},Oe.tag),Ge.hooks.add("before-tokenize",function(Ve){if(Ve.language==="latte"){var ot=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;Ge.languages["markup-templating"].buildPlaceholders(Ve,"latte",ot),Ve.grammar=Oe}}),Ge.hooks.add("after-tokenize",function(Ve){Ge.languages["markup-templating"].tokenizePlaceholders(Ve,"latte")})}(Pe)}},89700:function(ze){"use strict";ze.exports=be,be.displayName="less",be.aliases=[];function be(de){de.languages.less=de.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),de.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}},99296:function(ze,be,de){"use strict";var le=de(48780);ze.exports=Me,Me.displayName="lilypond",Me.aliases=[];function Me(Ie){Ie.register(le),function(Pe){for(var Ge=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|<expr>)*\)/.source,Oe=5,Ve=0;Ve<Oe;Ve++)Ge=Ge.replace(/<expr>/g,function(){return Ge});Ge=Ge.replace(/<expr>/g,/[^\s\S]/.source);var ot=Pe.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|<expr>))/.source.replace(/<expr>/g,function(){return Ge}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:Pe.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};ot["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=ot,Pe.languages.ly=ot}(Ie)}},39940:function(ze,be,de){"use strict";var le=de(51478);ze.exports=Me,Me.displayName="liquid",Me.aliases=[];function Me(Ie){Ie.register(le),Ie.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},Ie.hooks.add("before-tokenize",function(Pe){var Ge=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,Oe=!1;Ie.languages["markup-templating"].buildPlaceholders(Pe,"liquid",Ge,function(Ve){var ot=/^\{%-?\s*(\w+)/.exec(Ve);if(ot){var Je=ot[1];if(Je==="raw"&&!Oe)return Oe=!0,!0;if(Je==="endraw")return Oe=!1,!0}return!Oe})}),Ie.hooks.add("after-tokenize",function(Pe){Ie.languages["markup-templating"].tokenizePlaceholders(Pe,"liquid")})}},34973:function(ze){"use strict";ze.exports=be,be.displayName="lisp",be.aliases=[];function be(de){(function(le){function Me(Ue){return RegExp(/(\()/.source+"(?:"+Ue+")"+/(?=[\s\)])/.source)}function Ie(Ue){return RegExp(/([\s([])/.source+"(?:"+Ue+")"+/(?=[\s)])/.source)}var Pe=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,Ge="&"+Pe,Oe="(\\()",Ve="(?=\\))",ot="(?=\\s)",Je=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,Xe={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+Pe+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+Pe),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+Pe),alias:"property"},splice:{pattern:RegExp(",@?"+Pe),alias:["symbol","variable"]},keyword:[{pattern:RegExp(Oe+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+ot),lookbehind:!0},{pattern:RegExp(Oe+"(?:append|by|collect|concat|do|finally|for|in|return)"+ot),lookbehind:!0}],declare:{pattern:Me(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:Me(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:Ie(/nil|t/.source),lookbehind:!0},number:{pattern:Ie(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(Oe+"def(?:const|custom|group|var)\\s+"+Pe),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(Pe)}},defun:{pattern:RegExp(Oe+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+Pe+/\s+\(/.source+Je+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+Pe),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(Oe+"lambda\\s+\\(\\s*(?:&?"+Pe+"(?:\\s+&?"+Pe+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(Oe+Pe),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},vt={"lisp-marker":RegExp(Ge),varform:{pattern:RegExp(/\(/.source+Pe+/\s+(?=\S)/.source+Je+/\)/.source),inside:Xe},argument:{pattern:RegExp(/(^|[\s(])/.source+Pe),lookbehind:!0,alias:"variable"},rest:Xe},st="\\S+(?:\\s+\\S+)*",_t={pattern:RegExp(Oe+Je+Ve),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+st),inside:vt},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+st),inside:vt},keys:{pattern:RegExp("&key\\s+"+st+"(?:\\s+&allow-other-keys)?"),inside:vt},argument:{pattern:RegExp(Pe),alias:"variable"},punctuation:/[()]/}};Xe.lambda.inside.arguments=_t,Xe.defun.inside.arguments=le.util.clone(_t),Xe.defun.inside.arguments.inside.sublist=_t,le.languages.lisp=Xe,le.languages.elisp=Xe,le.languages.emacs=Xe,le.languages["emacs-lisp"]=Xe})(de)}},98135:function(ze){"use strict";ze.exports=be,be.displayName="livescript",be.aliases=[];function be(de){de.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<<?<?|--?!?|~~?!?|[|=?])?|>[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},de.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=de.languages.livescript}},36907:function(ze){"use strict";ze.exports=be,be.displayName="llvm",be.aliases=[];function be(de){(function(le){le.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}})(de)}},3567:function(ze){"use strict";ze.exports=be,be.displayName="log",be.aliases=[];function be(de){de.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:de.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}},23763:function(ze){"use strict";ze.exports=be,be.displayName="lolcode",be.aliases=[];function be(de){de.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|…|,|!/}}},33978:function(ze){"use strict";ze.exports=be,be.displayName="lua",be.aliases=[];function be(de){de.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}},40472:function(ze){"use strict";ze.exports=be,be.displayName="magma",be.aliases=[];function be(de){de.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}},44695:function(ze){"use strict";ze.exports=be,be.displayName="makefile",be.aliases=[];function be(de){de.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}},53885:function(ze){"use strict";ze.exports=be,be.displayName="markdown",be.aliases=["md"];function be(de){(function(le){var Me=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function Ie(vt){return vt=vt.replace(/<inner>/g,function(){return Me}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+vt+")")}var Pe=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,Ge=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return Pe}),Oe=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;le.languages.markdown=le.languages.extend("markup",{}),le.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:le.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+Ge+Oe+"(?:"+Ge+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+Ge+Oe+")(?:"+Ge+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(Pe),inside:le.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+Ge+")"+Oe+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+Ge+"$"),inside:{"table-header":{pattern:RegExp(Pe),alias:"important",inside:le.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:Ie(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:Ie(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:Ie(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:Ie(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(vt){["url","bold","italic","strike","code-snippet"].forEach(function(st){vt!==st&&(le.languages.markdown[vt].inside.content.inside[st]=le.languages.markdown[st])})}),le.hooks.add("after-tokenize",function(vt){if(vt.language!=="markdown"&&vt.language!=="md")return;function st(_t){if(!(!_t||typeof _t=="string"))for(var Ue=0,te=_t.length;Ue<te;Ue++){var ne=_t[Ue];if(ne.type!=="code"){st(ne.content);continue}var fe=ne.content[1],se=ne.content[3];if(fe&&se&&fe.type==="code-language"&&se.type==="code-block"&&typeof fe.content=="string"){var pe=fe.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");pe=(/[a-z][\w-]*/i.exec(pe)||[""])[0].toLowerCase();var Se="language-"+pe;se.alias?typeof se.alias=="string"?se.alias=[se.alias,Se]:se.alias.push(Se):se.alias=[Se]}}}st(vt.tokens)}),le.hooks.add("wrap",function(vt){if(vt.type==="code-block"){for(var st="",_t=0,Ue=vt.classes.length;_t<Ue;_t++){var te=vt.classes[_t],ne=/language-(.+)/.exec(te);if(ne){st=ne[1];break}}var fe=le.languages[st];if(fe)vt.content=le.highlight(Xe(vt.content.value),fe,st);else if(st&&st!=="none"&&le.plugins.autoloader){var se="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);vt.attributes.id=se,le.plugins.autoloader.loadLanguages(st,function(){var pe=document.getElementById(se);pe&&(pe.innerHTML=le.highlight(pe.textContent,le.languages[st],st))})}}});var Ve=RegExp(le.languages.markup.tag.pattern.source,"gi"),ot={amp:"&",lt:"<",gt:">",quot:'"'},Je=String.fromCodePoint||String.fromCharCode;function Xe(vt){var st=vt.replace(Ve,"");return st=st.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(_t,Ue){if(Ue=Ue.toLowerCase(),Ue[0]==="#"){var te;return Ue[1]==="x"?te=parseInt(Ue.slice(2),16):te=Number(Ue.slice(1)),Je(te)}else{var ne=ot[Ue];return ne||_t}}),st}le.languages.md=le.languages.markdown})(de)}},51478:function(ze){"use strict";ze.exports=be,be.displayName="markupTemplating",be.aliases=[];function be(de){(function(le){function Me(Ie,Pe){return"___"+Ie.toUpperCase()+Pe+"___"}Object.defineProperties(le.languages["markup-templating"]={},{buildPlaceholders:{value:function(Ie,Pe,Ge,Oe){if(Ie.language===Pe){var Ve=Ie.tokenStack=[];Ie.code=Ie.code.replace(Ge,function(ot){if(typeof Oe=="function"&&!Oe(ot))return ot;for(var Je=Ve.length,Xe;Ie.code.indexOf(Xe=Me(Pe,Je))!==-1;)++Je;return Ve[Je]=ot,Xe}),Ie.grammar=le.languages.markup}}},tokenizePlaceholders:{value:function(Ie,Pe){if(Ie.language!==Pe||!Ie.tokenStack)return;Ie.grammar=le.languages[Pe];var Ge=0,Oe=Object.keys(Ie.tokenStack);function Ve(ot){for(var Je=0;Je<ot.length&&!(Ge>=Oe.length);Je++){var Xe=ot[Je];if(typeof Xe=="string"||Xe.content&&typeof Xe.content=="string"){var vt=Oe[Ge],st=Ie.tokenStack[vt],_t=typeof Xe=="string"?Xe:Xe.content,Ue=Me(Pe,vt),te=_t.indexOf(Ue);if(te>-1){++Ge;var ne=_t.substring(0,te),fe=new le.Token(Pe,le.tokenize(st,Ie.grammar),"language-"+Pe,st),se=_t.substring(te+Ue.length),pe=[];ne&&pe.push.apply(pe,Ve([ne])),pe.push(fe),se&&pe.push.apply(pe,Ve([se])),typeof Xe=="string"?ot.splice.apply(ot,[Je,1].concat(pe)):Xe.content=pe}}else Xe.content&&Ve(Xe.content)}return ot}Ve(Ie.tokens)}}})})(de)}},70614:function(ze){"use strict";ze.exports=be,be.displayName="markup",be.aliases=["html","mathml","svg","xml","ssml","atom","rss"];function be(de){de.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},de.languages.markup.tag.inside["attr-value"].inside.entity=de.languages.markup.entity,de.languages.markup.doctype.inside["internal-subset"].inside=de.languages.markup,de.hooks.add("wrap",function(le){le.type==="entity"&&(le.attributes.title=le.content.value.replace(/&amp;/,"&"))}),Object.defineProperty(de.languages.markup.tag,"addInlined",{value:function(Me,Ie){var Pe={};Pe["language-"+Ie]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:de.languages[Ie]},Pe.cdata=/^<!\[CDATA\[|\]\]>$/i;var Ge={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:Pe}};Ge["language-"+Ie]={pattern:/[\s\S]+/,inside:de.languages[Ie]};var Oe={};Oe[Me]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return Me}),"i"),lookbehind:!0,greedy:!0,inside:Ge},de.languages.insertBefore("markup","cdata",Oe)}}),Object.defineProperty(de.languages.markup.tag,"addAttribute",{value:function(le,Me){de.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+le+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[Me,"language-"+Me],inside:de.languages[Me]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),de.languages.html=de.languages.markup,de.languages.mathml=de.languages.markup,de.languages.svg=de.languages.markup,de.languages.xml=de.languages.extend("markup",{}),de.languages.ssml=de.languages.xml,de.languages.atom=de.languages.xml,de.languages.rss=de.languages.xml}},16928:function(ze){"use strict";ze.exports=be,be.displayName="matlab",be.aliases=[];function be(de){de.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}},13586:function(ze){"use strict";ze.exports=be,be.displayName="maxscript",be.aliases=[];function be(de){(function(le){var Me=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i;le.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|"+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source)+")[ ]*)(?!"+Me.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+Me.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source)+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:Me,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}})(de)}},37164:function(ze){"use strict";ze.exports=be,be.displayName="mel",be.aliases=[];function be(de){de.languages.mel={comment:/\/\/.*/,code:{pattern:/`(?:\\.|[^\\`\r\n])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:/\b\w+(?=\()|\b(?:CBG|HfAddAttractorToAS|HfAssignAS|HfBuildEqualMap|HfBuildFurFiles|HfBuildFurImages|HfCancelAFR|HfConnectASToHF|HfCreateAttractor|HfDeleteAS|HfEditAS|HfPerformCreateAS|HfRemoveAttractorFromAS|HfSelectAttached|HfSelectAttractors|HfUnAssignAS|Mayatomr|about|abs|addAttr|addAttributeEditorNodeHelp|addDynamic|addNewShelfTab|addPP|addPanelCategory|addPrefixToName|advanceToNextDrivenKey|affectedNet|affects|aimConstraint|air|alias|aliasAttr|align|alignCtx|alignCurve|alignSurface|allViewFit|ambientLight|angle|angleBetween|animCone|animCurveEditor|animDisplay|animView|annotate|appendStringArray|applicationName|applyAttrPreset|applyTake|arcLenDimContext|arcLengthDimension|arclen|arrayMapper|art3dPaintCtx|artAttrCtx|artAttrPaintVertexCtx|artAttrSkinPaintCtx|artAttrTool|artBuildPaintMenu|artFluidAttrCtx|artPuttyCtx|artSelectCtx|artSetPaintCtx|artUserPaintCtx|assignCommand|assignInputDevice|assignViewportFactories|attachCurve|attachDeviceAttr|attachSurface|attrColorSliderGrp|attrCompatibility|attrControlGrp|attrEnumOptionMenu|attrEnumOptionMenuGrp|attrFieldGrp|attrFieldSliderGrp|attrNavigationControlGrp|attrPresetEditWin|attributeExists|attributeInfo|attributeMenu|attributeQuery|autoKeyframe|autoPlace|bakeClip|bakeFluidShading|bakePartialHistory|bakeResults|bakeSimulation|basename|basenameEx|batchRender|bessel|bevel|bevelPlus|binMembership|bindSkin|blend2|blendShape|blendShapeEditor|blendShapePanel|blendTwoAttr|blindDataType|boneLattice|boundary|boxDollyCtx|boxZoomCtx|bufferCurve|buildBookmarkMenu|buildKeyframeMenu|button|buttonManip|cacheFile|cacheFileCombine|cacheFileMerge|cacheFileTrack|camera|cameraView|canCreateManip|canvas|capitalizeString|catch|catchQuiet|ceil|changeSubdivComponentDisplayLevel|changeSubdivRegion|channelBox|character|characterMap|characterOutlineEditor|characterize|chdir|checkBox|checkBoxGrp|checkDefaultRenderGlobals|choice|circle|circularFillet|clamp|clear|clearCache|clip|clipEditor|clipEditorCurrentTimeCtx|clipSchedule|clipSchedulerOutliner|clipTrimBefore|closeCurve|closeSurface|cluster|cmdFileOutput|cmdScrollFieldExecuter|cmdScrollFieldReporter|cmdShell|coarsenSubdivSelectionList|collision|color|colorAtPoint|colorEditor|colorIndex|colorIndexSliderGrp|colorSliderButtonGrp|colorSliderGrp|columnLayout|commandEcho|commandLine|commandPort|compactHairSystem|componentEditor|compositingInterop|computePolysetVolume|condition|cone|confirmDialog|connectAttr|connectControl|connectDynamic|connectJoint|connectionInfo|constrain|constrainValue|constructionHistory|container|containsMultibyte|contextInfo|control|convertFromOldLayers|convertIffToPsd|convertLightmap|convertSolidTx|convertTessellation|convertUnit|copyArray|copyFlexor|copyKey|copySkinWeights|cos|cpButton|cpCache|cpClothSet|cpCollision|cpConstraint|cpConvClothToMesh|cpForces|cpGetSolverAttr|cpPanel|cpProperty|cpRigidCollisionFilter|cpSeam|cpSetEdit|cpSetSolverAttr|cpSolver|cpSolverTypes|cpTool|cpUpdateClothUVs|createDisplayLayer|createDrawCtx|createEditor|createLayeredPsdFile|createMotionField|createNewShelf|createNode|createRenderLayer|createSubdivRegion|cross|crossProduct|ctxAbort|ctxCompletion|ctxEditMode|ctxTraverse|currentCtx|currentTime|currentTimeCtx|currentUnit|curve|curveAddPtCtx|curveCVCtx|curveEPCtx|curveEditorCtx|curveIntersect|curveMoveEPCtx|curveOnSurface|curveSketchCtx|cutKey|cycleCheck|cylinder|dagPose|date|defaultLightListCheckBox|defaultNavigation|defineDataServer|defineVirtualDevice|deformer|deg_to_rad|delete|deleteAttr|deleteShadingGroupsAndMaterials|deleteShelfTab|deleteUI|deleteUnusedBrushes|delrandstr|detachCurve|detachDeviceAttr|detachSurface|deviceEditor|devicePanel|dgInfo|dgdirty|dgeval|dgtimer|dimWhen|directKeyCtx|directionalLight|dirmap|dirname|disable|disconnectAttr|disconnectJoint|diskCache|displacementToPoly|displayAffected|displayColor|displayCull|displayLevelOfDetail|displayPref|displayRGBColor|displaySmoothness|displayStats|displayString|displaySurface|distanceDimContext|distanceDimension|doBlur|dolly|dollyCtx|dopeSheetEditor|dot|dotProduct|doubleProfileBirailSurface|drag|dragAttrContext|draggerContext|dropoffLocator|duplicate|duplicateCurve|duplicateSurface|dynCache|dynControl|dynExport|dynExpression|dynGlobals|dynPaintEditor|dynParticleCtx|dynPref|dynRelEdPanel|dynRelEditor|dynamicLoad|editAttrLimits|editDisplayLayerGlobals|editDisplayLayerMembers|editRenderLayerAdjustment|editRenderLayerGlobals|editRenderLayerMembers|editor|editorTemplate|effector|emit|emitter|enableDevice|encodeString|endString|endsWith|env|equivalent|equivalentTol|erf|error|eval|evalDeferred|evalEcho|event|exactWorldBoundingBox|exclusiveLightCheckBox|exec|executeForEachObject|exists|exp|expression|expressionEditorListen|extendCurve|extendSurface|extrude|fcheck|fclose|feof|fflush|fgetline|fgetword|file|fileBrowserDialog|fileDialog|fileExtension|fileInfo|filetest|filletCurve|filter|filterCurve|filterExpand|filterStudioImport|findAllIntersections|findAnimCurves|findKeyframe|findMenuItem|findRelatedSkinCluster|finder|firstParentOf|fitBspline|flexor|floatEq|floatField|floatFieldGrp|floatScrollBar|floatSlider|floatSlider2|floatSliderButtonGrp|floatSliderGrp|floor|flow|fluidCacheInfo|fluidEmitter|fluidVoxelInfo|flushUndo|fmod|fontDialog|fopen|formLayout|format|fprint|frameLayout|fread|freeFormFillet|frewind|fromNativePath|fwrite|gamma|gauss|geometryConstraint|getApplicationVersionAsFloat|getAttr|getClassification|getDefaultBrush|getFileList|getFluidAttr|getInputDeviceRange|getMayaPanelTypes|getModifiers|getPanel|getParticleAttr|getPluginResource|getenv|getpid|glRender|glRenderEditor|globalStitch|gmatch|goal|gotoBindPose|grabColor|gradientControl|gradientControlNoAttr|graphDollyCtx|graphSelectContext|graphTrackCtx|gravity|grid|gridLayout|group|groupObjectsByName|hardenPointCurve|hardware|hardwareRenderPanel|headsUpDisplay|headsUpMessage|help|helpLine|hermite|hide|hilite|hitTest|hotBox|hotkey|hotkeyCheck|hsv_to_rgb|hudButton|hudSlider|hudSliderButton|hwReflectionMap|hwRender|hwRenderLoad|hyperGraph|hyperPanel|hyperShade|hypot|iconTextButton|iconTextCheckBox|iconTextRadioButton|iconTextRadioCollection|iconTextScrollList|iconTextStaticLabel|ikHandle|ikHandleCtx|ikHandleDisplayScale|ikSolver|ikSplineHandleCtx|ikSystem|ikSystemInfo|ikfkDisplayMethod|illustratorCurves|image|imfPlugins|inheritTransform|insertJoint|insertJointCtx|insertKeyCtx|insertKnotCurve|insertKnotSurface|instance|instanceable|instancer|intField|intFieldGrp|intScrollBar|intSlider|intSliderGrp|interToUI|internalVar|intersect|iprEngine|isAnimCurve|isConnected|isDirty|isParentOf|isSameObject|isTrue|isValidObjectName|isValidString|isValidUiName|isolateSelect|itemFilter|itemFilterAttr|itemFilterRender|itemFilterType|joint|jointCluster|jointCtx|jointDisplayScale|jointLattice|keyTangent|keyframe|keyframeOutliner|keyframeRegionCurrentTimeCtx|keyframeRegionDirectKeyCtx|keyframeRegionDollyCtx|keyframeRegionInsertKeyCtx|keyframeRegionMoveKeyCtx|keyframeRegionScaleKeyCtx|keyframeRegionSelectKeyCtx|keyframeRegionSetKeyCtx|keyframeRegionTrackCtx|keyframeStats|lassoContext|lattice|latticeDeformKeyCtx|launch|launchImageEditor|layerButton|layeredShaderPort|layeredTexturePort|layout|layoutDialog|lightList|lightListEditor|lightListPanel|lightlink|lineIntersection|linearPrecision|linstep|listAnimatable|listAttr|listCameras|listConnections|listDeviceAttachments|listHistory|listInputDeviceAxes|listInputDeviceButtons|listInputDevices|listMenuAnnotation|listNodeTypes|listPanelCategories|listRelatives|listSets|listTransforms|listUnselected|listerEditor|loadFluid|loadNewShelf|loadPlugin|loadPluginLanguageResources|loadPrefObjects|localizedPanelLabel|lockNode|loft|log|longNameOf|lookThru|ls|lsThroughFilter|lsType|lsUI|mag|makeIdentity|makeLive|makePaintable|makeRoll|makeSingleSurface|makeTubeOn|makebot|manipMoveContext|manipMoveLimitsCtx|manipOptions|manipRotateContext|manipRotateLimitsCtx|manipScaleContext|manipScaleLimitsCtx|marker|match|max|memory|menu|menuBarLayout|menuEditor|menuItem|menuItemToShelf|menuSet|menuSetPref|messageLine|min|minimizeApp|mirrorJoint|modelCurrentTimeCtx|modelEditor|modelPanel|mouse|movIn|movOut|move|moveIKtoFK|moveKeyCtx|moveVertexAlongDirection|multiProfileBirailSurface|mute|nParticle|nameCommand|nameField|namespace|namespaceInfo|newPanelItems|newton|nodeCast|nodeIconButton|nodeOutliner|nodePreset|nodeType|noise|nonLinear|normalConstraint|normalize|nurbsBoolean|nurbsCopyUVSet|nurbsCube|nurbsEditUV|nurbsPlane|nurbsSelect|nurbsSquare|nurbsToPoly|nurbsToPolygonsPref|nurbsToSubdiv|nurbsToSubdivPref|nurbsUVSet|nurbsViewDirectionVector|objExists|objectCenter|objectLayer|objectType|objectTypeUI|obsoleteProc|oceanNurbsPreviewPlane|offsetCurve|offsetCurveOnSurface|offsetSurface|openGLExtension|openMayaPref|optionMenu|optionMenuGrp|optionVar|orbit|orbitCtx|orientConstraint|outlinerEditor|outlinerPanel|overrideModifier|paintEffectsDisplay|pairBlend|palettePort|paneLayout|panel|panelConfiguration|panelHistory|paramDimContext|paramDimension|paramLocator|parent|parentConstraint|particle|particleExists|particleInstancer|particleRenderInfo|partition|pasteKey|pathAnimation|pause|pclose|percent|performanceOptions|pfxstrokes|pickWalk|picture|pixelMove|planarSrf|plane|play|playbackOptions|playblast|plugAttr|plugNode|pluginInfo|pluginResourceUtil|pointConstraint|pointCurveConstraint|pointLight|pointMatrixMult|pointOnCurve|pointOnSurface|pointPosition|poleVectorConstraint|polyAppend|polyAppendFacetCtx|polyAppendVertex|polyAutoProjection|polyAverageNormal|polyAverageVertex|polyBevel|polyBlendColor|polyBlindData|polyBoolOp|polyBridgeEdge|polyCacheMonitor|polyCheck|polyChipOff|polyClipboard|polyCloseBorder|polyCollapseEdge|polyCollapseFacet|polyColorBlindData|polyColorDel|polyColorPerVertex|polyColorSet|polyCompare|polyCone|polyCopyUV|polyCrease|polyCreaseCtx|polyCreateFacet|polyCreateFacetCtx|polyCube|polyCut|polyCutCtx|polyCylinder|polyCylindricalProjection|polyDelEdge|polyDelFacet|polyDelVertex|polyDuplicateAndConnect|polyDuplicateEdge|polyEditUV|polyEditUVShell|polyEvaluate|polyExtrudeEdge|polyExtrudeFacet|polyExtrudeVertex|polyFlipEdge|polyFlipUV|polyForceUV|polyGeoSampler|polyHelix|polyInfo|polyInstallAction|polyLayoutUV|polyListComponentConversion|polyMapCut|polyMapDel|polyMapSew|polyMapSewMove|polyMergeEdge|polyMergeEdgeCtx|polyMergeFacet|polyMergeFacetCtx|polyMergeUV|polyMergeVertex|polyMirrorFace|polyMoveEdge|polyMoveFacet|polyMoveFacetUV|polyMoveUV|polyMoveVertex|polyNormal|polyNormalPerVertex|polyNormalizeUV|polyOptUvs|polyOptions|polyOutput|polyPipe|polyPlanarProjection|polyPlane|polyPlatonicSolid|polyPoke|polyPrimitive|polyPrism|polyProjection|polyPyramid|polyQuad|polyQueryBlindData|polyReduce|polySelect|polySelectConstraint|polySelectConstraintMonitor|polySelectCtx|polySelectEditCtx|polySeparate|polySetToFaceNormal|polySewEdge|polyShortestPathCtx|polySmooth|polySoftEdge|polySphere|polySphericalProjection|polySplit|polySplitCtx|polySplitEdge|polySplitRing|polySplitVertex|polyStraightenUVBorder|polySubdivideEdge|polySubdivideFacet|polyToSubdiv|polyTorus|polyTransfer|polyTriangulate|polyUVSet|polyUnite|polyWedgeFace|popen|popupMenu|pose|pow|preloadRefEd|print|progressBar|progressWindow|projFileViewer|projectCurve|projectTangent|projectionContext|projectionManip|promptDialog|propModCtx|propMove|psdChannelOutliner|psdEditTextureFile|psdExport|psdTextureFile|putenv|pwd|python|querySubdiv|quit|rad_to_deg|radial|radioButton|radioButtonGrp|radioCollection|radioMenuItemCollection|rampColorPort|rand|randomizeFollicles|randstate|rangeControl|readTake|rebuildCurve|rebuildSurface|recordAttr|recordDevice|redo|reference|referenceEdit|referenceQuery|refineSubdivSelectionList|refresh|refreshAE|registerPluginResource|rehash|reloadImage|removeJoint|removeMultiInstance|removePanelCategory|rename|renameAttr|renameSelectionList|renameUI|render|renderGlobalsNode|renderInfo|renderLayerButton|renderLayerParent|renderLayerPostProcess|renderLayerUnparent|renderManip|renderPartition|renderQualityNode|renderSettings|renderThumbnailUpdate|renderWindowEditor|renderWindowSelectContext|renderer|reorder|reorderDeformers|requires|reroot|resampleFluid|resetAE|resetPfxToPolyCamera|resetTool|resolutionNode|retarget|reverseCurve|reverseSurface|revolve|rgb_to_hsv|rigidBody|rigidSolver|roll|rollCtx|rootOf|rot|rotate|rotationInterpolation|roundConstantRadius|rowColumnLayout|rowLayout|runTimeCommand|runup|sampleImage|saveAllShelves|saveAttrPreset|saveFluid|saveImage|saveInitialState|saveMenu|savePrefObjects|savePrefs|saveShelf|saveToolSettings|scale|scaleBrushBrightness|scaleComponents|scaleConstraint|scaleKey|scaleKeyCtx|sceneEditor|sceneUIReplacement|scmh|scriptCtx|scriptEditorInfo|scriptJob|scriptNode|scriptTable|scriptToShelf|scriptedPanel|scriptedPanelType|scrollField|scrollLayout|sculpt|searchPathArray|seed|selLoadSettings|select|selectContext|selectCurveCV|selectKey|selectKeyCtx|selectKeyframeRegionCtx|selectMode|selectPref|selectPriority|selectType|selectedNodes|selectionConnection|separator|setAttr|setAttrEnumResource|setAttrMapping|setAttrNiceNameResource|setConstraintRestPosition|setDefaultShadingGroup|setDrivenKeyframe|setDynamic|setEditCtx|setEditor|setFluidAttr|setFocus|setInfinity|setInputDeviceMapping|setKeyCtx|setKeyPath|setKeyframe|setKeyframeBlendshapeTargetWts|setMenuMode|setNodeNiceNameResource|setNodeTypeFlag|setParent|setParticleAttr|setPfxToPolyCamera|setPluginResource|setProject|setStampDensity|setStartupMessage|setState|setToolTo|setUITemplate|setXformManip|sets|shadingConnection|shadingGeometryRelCtx|shadingLightRelCtx|shadingNetworkCompare|shadingNode|shapeCompare|shelfButton|shelfLayout|shelfTabLayout|shellField|shortNameOf|showHelp|showHidden|showManipCtx|showSelectionInTitle|showShadingGroupAttrEditor|showWindow|sign|simplify|sin|singleProfileBirailSurface|size|sizeBytes|skinCluster|skinPercent|smoothCurve|smoothTangentSurface|smoothstep|snap2to2|snapKey|snapMode|snapTogetherCtx|snapshot|soft|softMod|softModCtx|sort|sound|soundControl|source|spaceLocator|sphere|sphrand|spotLight|spotLightPreviewPort|spreadSheetEditor|spring|sqrt|squareSurface|srtContext|stackTrace|startString|startsWith|stitchAndExplodeShell|stitchSurface|stitchSurfacePoints|strcmp|stringArrayCatenate|stringArrayContains|stringArrayCount|stringArrayInsertAtIndex|stringArrayIntersector|stringArrayRemove|stringArrayRemoveAtIndex|stringArrayRemoveDuplicates|stringArrayRemoveExact|stringArrayToString|stringToStringArray|strip|stripPrefixFromName|stroke|subdAutoProjection|subdCleanTopology|subdCollapse|subdDuplicateAndConnect|subdEditUV|subdListComponentConversion|subdMapCut|subdMapSewMove|subdMatchTopology|subdMirror|subdToBlind|subdToPoly|subdTransferUVsToCache|subdiv|subdivCrease|subdivDisplaySmoothness|substitute|substituteAllString|substituteGeometry|substring|surface|surfaceSampler|surfaceShaderList|swatchDisplayPort|switchTable|symbolButton|symbolCheckBox|sysFile|system|tabLayout|tan|tangentConstraint|texLatticeDeformContext|texManipContext|texMoveContext|texMoveUVShellContext|texRotateContext|texScaleContext|texSelectContext|texSelectShortestPathCtx|texSmudgeUVContext|texWinToolCtx|text|textCurves|textField|textFieldButtonGrp|textFieldGrp|textManip|textScrollList|textToShelf|textureDisplacePlane|textureHairColor|texturePlacementContext|textureWindow|threadCount|threePointArcCtx|timeControl|timePort|timerX|toNativePath|toggle|toggleAxis|toggleWindowVisibility|tokenize|tokenizeList|tolerance|tolower|toolButton|toolCollection|toolDropped|toolHasOptions|toolPropertyWindow|torus|toupper|trace|track|trackCtx|transferAttributes|transformCompare|transformLimits|translator|trim|trunc|truncateFluidCache|truncateHairCache|tumble|tumbleCtx|turbulence|twoPointArcCtx|uiRes|uiTemplate|unassignInputDevice|undo|undoInfo|ungroup|uniform|unit|unloadPlugin|untangleUV|untitledFileName|untrim|upAxis|updateAE|userCtx|uvLink|uvSnapshot|validateShelfName|vectorize|view2dToolCtx|viewCamera|viewClipPlane|viewFit|viewHeadOn|viewLookAt|viewManip|viewPlace|viewSet|visor|volumeAxis|vortex|waitCursor|warning|webBrowser|webBrowserPrefs|whatIs|window|windowPref|wire|wireContext|workspace|wrinkle|wrinkleContext|writeTake|xbmLangPathList|xform)\b/,operator:[/\+[+=]?|-[-=]?|&&|\|\||[<>]=|[*\/!=]=?|[%^]/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,:;?\[\](){}]/},de.languages.mel.code.inside.rest=de.languages.mel}},25153:function(ze){"use strict";ze.exports=be,be.displayName="mermaid",be.aliases=[];function be(de){de.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[<ox](?:==+|--+|-\.*-)[>ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}},33245:function(ze){"use strict";ze.exports=be,be.displayName="mizar",be.aliases=[];function be(de){de.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}},32218:function(ze){"use strict";ze.exports=be,be.displayName="mongodb",be.aliases=[];function be(de){(function(le){var Me=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],Ie=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];Me=Me.map(function(Ge){return Ge.replace("$","\\$")});var Pe="(?:"+Me.join("|")+")\\b";le.languages.mongodb=le.languages.extend("javascript",{}),le.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+Pe+"(?:\\1)?$")}}}),le.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},le.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+Ie.join("|")+")\\b"),alias:"keyword"}})})(de)}},65626:function(ze){"use strict";ze.exports=be,be.displayName="monkey",be.aliases=[];function be(de){de.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}},60090:function(ze){"use strict";ze.exports=be,be.displayName="moonscript",be.aliases=["moon"];function be(de){de.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},de.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=de.languages.moonscript,de.languages.moon=de.languages.moonscript}},40722:function(ze){"use strict";ze.exports=be,be.displayName="n1ql",be.aliases=[];function be(de){de.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|ORDER|OTHERS|OUTER|OVER|PARSE|PARTITION|PASSWORD|PATH|POOL|PRECEDING|PREPARE|PRIMARY|PRIVATE|PRIVILEGE|PROBE|PROCEDURE|PUBLIC|RANGE|RAW|REALM|REDUCE|RENAME|RESPECT|RETURN|RETURNING|REVOKE|RIGHT|ROLE|ROLLBACK|ROW|ROWS|SATISFIES|SAVEPOINT|SCHEMA|SCOPE|SELECT|SELF|SEMI|SET|SHOW|SOME|START|STATISTICS|STRING|SYSTEM|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}},37783:function(ze){"use strict";ze.exports=be,be.displayName="n4js",be.aliases=["n4jsd"];function be(de){de.languages.n4js=de.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),de.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),de.languages.n4jsd=de.languages.n4js}},41224:function(ze){"use strict";ze.exports=be,be.displayName="nand2tetrisHdl",be.aliases=[];function be(de){de.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}},71365:function(ze){"use strict";ze.exports=be,be.displayName="naniscript",be.aliases=[];function be(de){(function(le){var Me=/\{[^\r\n\[\]{}]*\}/,Ie={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:Me,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};le.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:Me,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:Ie}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:Me,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:Ie},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},le.languages.nani=le.languages.naniscript,le.hooks.add("after-tokenize",function(Oe){var Ve=Oe.tokens;Ve.forEach(function(ot){if(typeof ot!="string"&&ot.type==="generic-text"){var Je=Ge(ot);Pe(Je)||(ot.type="bad-line",ot.content=Je)}})});function Pe(Oe){for(var Ve="[]{}",ot=[],Je=0;Je<Oe.length;Je++){var Xe=Oe[Je],vt=Ve.indexOf(Xe);if(vt!==-1){if(vt%2===0)ot.push(vt+1);else if(ot.pop()!==vt)return!1}}return ot.length===0}function Ge(Oe){return typeof Oe=="string"?Oe:Array.isArray(Oe)?Oe.map(Ge).join(""):Ge(Oe.content)}})(de)}},42846:function(ze){"use strict";ze.exports=be,be.displayName="nasm",be.aliases=[];function be(de){de.languages.nasm={comment:/;.*$/m,string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,label:{pattern:/(^\s*)[A-Za-z._?$][\w.?$@~#]*:/m,lookbehind:!0,alias:"function"},keyword:[/\[?BITS (?:16|32|64)\]?/,{pattern:/(^\s*)section\s*[a-z.]+:?/im,lookbehind:!0},/(?:extern|global)[^;\r\n]*/i,/(?:CPU|DEFAULT|FLOAT).*$/m],register:{pattern:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s)\b/i,alias:"variable"},number:/(?:\b|(?=\$))(?:0[hx](?:\.[\da-f]+|[\da-f]+(?:\.[\da-f]+)?)(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-\/%<>=&|$!]/}}},32964:function(ze){"use strict";ze.exports=be,be.displayName="neon",be.aliases=[];function be(de){de.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"atrule"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}},78830:function(ze){"use strict";ze.exports=be,be.displayName="nevod",be.aliases=[];function be(de){de.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}},88799:function(ze){"use strict";ze.exports=be,be.displayName="nginx",be.aliases=[];function be(de){(function(le){var Me=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;le.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:Me}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:Me}},punctuation:/[{};]/}})(de)}},66791:function(ze){"use strict";ze.exports=be,be.displayName="nim",be.aliases=[];function be(de){de.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}},41735:function(ze){"use strict";ze.exports=be,be.displayName="nix",be.aliases=[];function be(de){de.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},de.languages.nix.string.inside.interpolation.inside=de.languages.nix}},13490:function(ze){"use strict";ze.exports=be,be.displayName="nsis",be.aliases=[];function be(de){de.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|LabelAddress|TempFileName)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}},7383:function(ze,be,de){"use strict";var le=de(79440);ze.exports=Me,Me.displayName="objectivec",Me.aliases=["objc"];function Me(Ie){Ie.register(le),Ie.languages.objectivec=Ie.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete Ie.languages.objectivec["class-name"],Ie.languages.objc=Ie.languages.objectivec}},66894:function(ze){"use strict";ze.exports=be,be.displayName="ocaml",be.aliases=[];function be(de){de.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}},45779:function(ze,be,de){"use strict";var le=de(79440);ze.exports=Me,Me.displayName="opencl",Me.aliases=[];function Me(Ie){Ie.register(le),function(Pe){Pe.languages.opencl=Pe.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),Pe.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var Ge={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};Pe.languages.insertBefore("c","keyword",Ge),Pe.languages.cpp&&(Ge["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},Pe.languages.insertBefore("cpp","keyword",Ge))}(Ie)}},27734:function(ze){"use strict";ze.exports=be,be.displayName="openqasm",be.aliases=["qasm"];function be(de){de.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},de.languages.qasm=de.languages.openqasm}},91889:function(ze){"use strict";ze.exports=be,be.displayName="oz",be.aliases=[];function be(de){de.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|<?:?)|>=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}},55965:function(ze){"use strict";ze.exports=be,be.displayName="parigp",be.aliases=[];function be(de){de.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:function(){var le=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"];return le=le.map(function(Me){return Me.split("").join(" *")}).join("|"),RegExp("\\b(?:"+le+")\\b")}(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}},37326:function(ze){"use strict";ze.exports=be,be.displayName="parser",be.aliases=[];function be(de){(function(le){var Me=le.languages.parser=le.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/});Me=le.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:Me.keyword,variable:Me.variable,function:Me.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:Me.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:Me.punctuation}}}),le.languages.insertBefore("inside","punctuation",{expression:Me.expression,keyword:Me.keyword,variable:Me.variable,function:Me.function,escape:Me.escape,"parser-punctuation":{pattern:Me.punctuation,alias:"punctuation"}},Me.tag.inside["attr-value"])})(de)}},92949:function(ze){"use strict";ze.exports=be,be.displayName="pascal",be.aliases=["objectpascal"];function be(de){de.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},de.languages.pascal.asm.inside=de.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),de.languages.objectpascal=de.languages.pascal}},5681:function(ze){"use strict";ze.exports=be,be.displayName="pascaligo",be.aliases=[];function be(de){(function(le){var Me=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,Ie=/(?:\b\w+(?:<braces>)?|<braces>)/.source.replace(/<braces>/g,function(){return Me}),Pe=le.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)<type>/.source.replace(/<type>/g,function(){return Ie}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/<type>(?=\s+is\b)/.source.replace(/<type>/g,function(){return Ie}),"i"),inside:null},{pattern:RegExp(/(:\s*)<type>/.source.replace(/<type>/g,function(){return Ie})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},Ge=["comment","keyword","builtin","operator","punctuation"].reduce(function(Oe,Ve){return Oe[Ve]=Pe[Ve],Oe},{});Pe["class-name"].forEach(function(Oe){Oe.inside=Ge})})(de)}},70696:function(ze){"use strict";ze.exports=be,be.displayName="pcaxis",be.aliases=["px"];function be(de){de.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},de.languages.px=de.languages.pcaxis}},35790:function(ze){"use strict";ze.exports=be,be.displayName="peoplecode",be.aliases=["pcode"];function be(de){de.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},de.languages.pcode=de.languages.peoplecode}},25777:function(ze){"use strict";ze.exports=be,be.displayName="perl",be.aliases=[];function be(de){(function(le){var Me=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;le.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,Me].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,Me].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,Me+/\s*/.source+Me].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(de)}},65889:function(ze,be,de){"use strict";var le=de(53852);ze.exports=Me,Me.displayName="phpExtras",Me.aliases=[];function Me(Ie){Ie.register(le),Ie.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}},53852:function(ze,be,de){"use strict";var le=de(51478);ze.exports=Me,Me.displayName="php",Me.aliases=[];function Me(Ie){Ie.register(le),function(Pe){var Ge=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,Oe=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],Ve=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,ot=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,Je=/[{}\[\](),:;]/;Pe.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:Ge,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:Oe,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:Ve,operator:ot,punctuation:Je};var Xe={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:Pe.languages.php},vt=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:Xe}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:Xe}}];Pe.languages.insertBefore("php","variable",{string:vt,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:Ge,string:vt,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:Oe,number:Ve,operator:ot,punctuation:Je}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),Pe.hooks.add("before-tokenize",function(st){if(/<\?/.test(st.code)){var _t=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;Pe.languages["markup-templating"].buildPlaceholders(st,"php",_t)}}),Pe.hooks.add("after-tokenize",function(st){Pe.languages["markup-templating"].tokenizePlaceholders(st,"php")})}(Ie)}},97719:function(ze,be,de){"use strict";var le=de(53852),Me=de(53510);ze.exports=Ie,Ie.displayName="phpdoc",Ie.aliases=[];function Ie(Pe){Pe.register(le),Pe.register(Me),function(Ge){var Oe=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;Ge.languages.phpdoc=Ge.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+Oe+"\\s+)?)\\$\\w+"),lookbehind:!0}}),Ge.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+Oe),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),Ge.languages.javadoclike.addSupport("php",Ge.languages.phpdoc)}(Pe)}},63839:function(ze,be,de){"use strict";var le=de(69435);ze.exports=Me,Me.displayName="plsql",Me.aliases=[];function Me(Ie){Ie.register(le),Ie.languages.plsql=Ie.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),Ie.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}},67623:function(ze){"use strict";ze.exports=be,be.displayName="powerquery",be.aliases=[];function be(de){de.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},de.languages.pq=de.languages.powerquery,de.languages.mscript=de.languages.powerquery}},32530:function(ze){"use strict";ze.exports=be,be.displayName="powershell",be.aliases=[];function be(de){(function(le){var Me=le.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};Me.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:Me},boolean:Me.boolean,variable:Me.variable}})(de)}},8938:function(ze){"use strict";ze.exports=be,be.displayName="processing",be.aliases=[];function be(de){de.languages.processing=de.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),de.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}},55259:function(ze){"use strict";ze.exports=be,be.displayName="prolog",be.aliases=[];function be(de){de.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}},67411:function(ze){"use strict";ze.exports=be,be.displayName="promql",be.aliases=[];function be(de){(function(le){var Me=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],Ie=["on","ignoring","group_right","group_left","by","without"],Pe=["offset"],Ge=Me.concat(Ie,Pe);le.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+Ie.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+Ge.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(de)}},15375:function(ze){"use strict";ze.exports=be,be.displayName="properties",be.aliases=[];function be(de){de.languages.properties={comment:/^[ \t]*[#!].*$/m,"attr-value":{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0},"attr-name":/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,punctuation:/[=:]/}}},12093:function(ze){"use strict";ze.exports=be,be.displayName="protobuf",be.aliases=[];function be(de){(function(le){var Me=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;le.languages.protobuf=le.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),le.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:Me}},builtin:Me,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})})(de)}},83588:function(ze){"use strict";ze.exports=be,be.displayName="psl",be.aliases=[];function be(de){de.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}},94127:function(ze){"use strict";ze.exports=be,be.displayName="pug",be.aliases=[];function be(de){(function(le){le.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:le.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:le.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:le.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:le.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:le.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:le.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:le.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:le.languages.javascript}],punctuation:/[.\-!=|]+/};for(var Me=/(^([\t ]*)):<filter_name>(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,Ie=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],Pe={},Ge=0,Oe=Ie.length;Ge<Oe;Ge++){var Ve=Ie[Ge];Ve=typeof Ve=="string"?{filter:Ve,language:Ve}:Ve,le.languages[Ve.language]&&(Pe["filter-"+Ve.filter]={pattern:RegExp(Me.replace("<filter_name>",function(){return Ve.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[Ve.language,"language-"+Ve.language],inside:le.languages[Ve.language]}}})}le.languages.insertBefore("pug","filter",Pe)})(de)}},21294:function(ze){"use strict";ze.exports=be,be.displayName="puppet",be.aliases=[];function be(de){(function(le){le.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var Me=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:le.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];le.languages.puppet.heredoc[0].inside.interpolation=Me,le.languages.puppet.string.inside["double-quoted"].inside.interpolation=Me})(de)}},38709:function(ze){"use strict";ze.exports=be,be.displayName="pure",be.aliases=[];function be(de){(function(le){le.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var Me=["c",{lang:"c++",alias:"cpp"},"fortran"],Ie=/%< *-\*- *<lang>\d* *-\*-[\s\S]+?%>/.source;Me.forEach(function(Pe){var Ge=Pe;if(typeof Pe!="string"&&(Ge=Pe.alias,Pe=Pe.lang),le.languages[Ge]){var Oe={};Oe["inline-lang-"+Ge]={pattern:RegExp(Ie.replace("<lang>",Pe.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:le.util.clone(le.languages.pure["inline-lang"].inside)},Oe["inline-lang-"+Ge].inside.rest=le.util.clone(le.languages[Ge]),le.languages.insertBefore("pure","inline-lang",Oe)}}),le.languages.c&&(le.languages.pure["inline-lang"].inside.rest=le.util.clone(le.languages.c))})(de)}},15008:function(ze){"use strict";ze.exports=be,be.displayName="purebasic",be.aliases=[];function be(de){de.languages.purebasic=de.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+|-[>-]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|?\||[~^%?*/@]/}),de.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete de.languages.purebasic["class-name"],delete de.languages.purebasic.boolean,de.languages.pbfasm=de.languages.purebasic}},96549:function(ze,be,de){"use strict";var le=de(2050);ze.exports=Me,Me.displayName="purescript",Me.aliases=["purs"];function Me(Ie){Ie.register(le),Ie.languages.purescript=Ie.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[Ie.languages.haskell.operator[0],Ie.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),Ie.languages.purs=Ie.languages.purescript}},5221:function(ze){"use strict";ze.exports=be,be.displayName="python",be.aliases=["py"];function be(de){de.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},de.languages.python["string-interpolation"].inside.interpolation.inside.rest=de.languages.python,de.languages.py=de.languages.python}},27447:function(ze){"use strict";ze.exports=be,be.displayName="q",be.aliases=[];function be(de){de.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}},73191:function(ze){"use strict";ze.exports=be,be.displayName="qml",be.aliases=[];function be(de){(function(le){for(var Me=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,Ie=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,Pe=/(?:[^\\()[\]{}"'/]|<string>|\/(?![*/])|<comment>|\(<expr>*\)|\[<expr>*\]|\{<expr>*\}|\\[\s\S])/.source.replace(/<string>/g,function(){return Me}).replace(/<comment>/g,function(){return Ie}),Ge=0;Ge<2;Ge++)Pe=Pe.replace(/<expr>/g,function(){return Pe});Pe=Pe.replace(/<expr>/g,"[^\\s\\S]"),le.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(<js>*\)\s*\{<js>*\}/.source.replace(/<js>/g,function(){return Pe}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:le.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}])<js>)+/.source.replace(/<js>/g,function(){return Pe}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:le.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}})(de)}},75542:function(ze){"use strict";ze.exports=be,be.displayName="qore",be.aliases=[];function be(de){de.languages.qore=de.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}},50323:function(ze){"use strict";ze.exports=be,be.displayName="qsharp",be.aliases=["qs"];function be(de){(function(le){function Me(_t,Ue){return _t.replace(/<<(\d+)>>/g,function(te,ne){return"(?:"+Ue[+ne]+")"})}function Ie(_t,Ue,te){return RegExp(Me(_t,Ue),te||"")}function Pe(_t,Ue){for(var te=0;te<Ue;te++)_t=_t.replace(/<<self>>/g,function(){return"(?:"+_t+")"});return _t.replace(/<<self>>/g,"[^\\s\\S]")}var Ge={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function Oe(_t){return"\\b(?:"+_t.trim().replace(/ /g,"|")+")\\b"}var Ve=RegExp(Oe(Ge.type+" "+Ge.other)),ot=/\b[A-Za-z_]\w*\b/.source,Je=Me(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[ot]),Xe={keyword:Ve,punctuation:/[<>()?,.:[\]]/},vt=/"(?:\\.|[^\\"])*"/.source;le.languages.qsharp=le.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:Ie(/(^|[^$\\])<<0>>/.source,[vt]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:Ie(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[Je]),lookbehind:!0,inside:Xe},{pattern:Ie(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[Je]),lookbehind:!0,inside:Xe}],keyword:Ve,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),le.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var st=Pe(Me(/\{(?:[^"{}]|<<0>>|<<self>>)*\}/.source,[vt]),2);le.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:Ie(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[st]),greedy:!0,inside:{interpolation:{pattern:Ie(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[st]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:le.languages.qsharp}}},string:/[\s\S]+/}}})})(de),de.languages.qs=de.languages.qsharp}},44298:function(ze){"use strict";ze.exports=be,be.displayName="r",be.aliases=[];function be(de){de.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|<?-)?|[>=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}},9634:function(ze,be,de){"use strict";var le=de(48780);ze.exports=Me,Me.displayName="racket",Me.aliases=["rkt"];function Me(Ie){Ie.register(le),Ie.languages.racket=Ie.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),Ie.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),Ie.languages.rkt=Ie.languages.racket}},75266:function(ze){"use strict";ze.exports=be,be.displayName="reason",be.aliases=[];function be(de){de.languages.reason=de.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),de.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete de.languages.reason.function}},48139:function(ze){"use strict";ze.exports=be,be.displayName="regex",be.aliases=[];function be(de){(function(le){var Me={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},Ie=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,Pe={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},Ge={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},Oe="(?:[^\\\\-]|"+Ie.source+")",Ve=RegExp(Oe+"-"+Oe),ot={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};le.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:Ve,inside:{escape:Ie,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":Me,"char-set":Ge,escape:Ie}},"special-escape":Me,"char-set":Pe,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":ot}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:Ie,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":ot}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(de)}},97534:function(ze){"use strict";ze.exports=be,be.displayName="rego",be.aliases=[];function be(de){de.languages.rego={comment:/#.*/,property:{pattern:/(^|[^\\.])(?:"(?:\\.|[^\\"\r\n])*"|`[^`]*`|\b[a-z_]\w*\b)(?=\s*:(?!=))/i,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:as|default|else|import|not|null|package|set(?=\s*\()|some|with)\b/,boolean:/\b(?:false|true)\b/,function:{pattern:/\b[a-z_]\w*\b(?:\s*\.\s*\b[a-z_]\w*\b)*(?=\s*\()/i,inside:{namespace:/\b\w+\b(?=\s*\.)/,punctuation:/\./}},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,operator:/[-+*/%|&]|[<>:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}},90826:function(ze){"use strict";ze.exports=be,be.displayName="renpy",be.aliases=["rpy"];function be(de){de.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},de.languages.rpy=de.languages.renpy}},63919:function(ze){"use strict";ze.exports=be,be.displayName="rest",be.aliases=[];function be(de){de.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}},68862:function(ze){"use strict";ze.exports=be,be.displayName="rip",be.aliases=[];function be(de){de.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}},39523:function(ze){"use strict";ze.exports=be,be.displayName="roboconf",be.aliases=[];function be(de){de.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}},31207:function(ze){"use strict";ze.exports=be,be.displayName="robotframework",be.aliases=[];function be(de){(function(le){var Me={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},Ie={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function Pe(ot,Je){var Xe={};Xe["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var vt in Je)Xe[vt]=Je[vt];return Xe.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},Xe.variable=Ie,Xe.comment=Me,{pattern:RegExp(/^ ?\*{3}[ \t]*<name>[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(/<name>/g,function(){return ot}),"im"),alias:"section",inside:Xe}}var Ge={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},Oe={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:Ie}},Ve={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:Ie}};le.languages.robotframework={settings:Pe("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:Pe("Variables"),"test-cases":Pe("Test Cases",{"test-name":Oe,documentation:Ge,property:Ve}),keywords:Pe("Keywords",{"keyword-name":Oe,documentation:Ge,property:Ve}),tasks:Pe("Tasks",{"task-name":Oe,documentation:Ge,property:Ve}),comment:Me},le.languages.robot=le.languages.robotframework})(de)}},75308:function(ze){"use strict";ze.exports=be,be.displayName="ruby",be.aliases=["rb"];function be(de){(function(le){le.languages.ruby=le.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),le.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var Me={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:le.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete le.languages.ruby.function;var Ie="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",Pe=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;le.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+Ie+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:Me,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:Me,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+Pe),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+Pe+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),le.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+Ie),greedy:!0,inside:{interpolation:Me,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:Me,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:Me,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+Ie),greedy:!0,inside:{interpolation:Me,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:Me,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete le.languages.ruby.string,le.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),le.languages.rb=le.languages.ruby})(de)}},45315:function(ze){"use strict";ze.exports=be,be.displayName="rust",be.aliases=[];function be(de){(function(le){for(var Me=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,Ie=0;Ie<2;Ie++)Me=Me.replace(/<self>/g,function(){return Me});Me=Me.replace(/<self>/g,function(){return/[^\s\S]/.source}),le.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+Me),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},le.languages.rust["closure-params"].inside.rest=le.languages.rust,le.languages.rust.attribute.inside.string=le.languages.rust.string})(de)}},13794:function(ze){"use strict";ze.exports=be,be.displayName="sas",be.aliases=[];function be(de){(function(le){var Me=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,Ie=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,Pe={pattern:RegExp(Me+"[bx]"),alias:"number"},Ge={pattern:/&[a-z_]\w*/i},Oe={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},Ve={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},ot=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],Je={pattern:RegExp(Me),greedy:!0},Xe=/[$%@.(){}\[\];,\\]/,vt={pattern:/%?\b\w+(?=\()/,alias:"keyword"},st={function:vt,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":Ge,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:Ie,"numeric-constant":Pe,punctuation:Xe,string:Je},_t={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},Ue={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},te={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},ne={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},fe=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,se={pattern:RegExp(/(^|\s)(?:action\s+)?(?:<act>)\.[a-z]+\b[^;]+/.source.replace(/<act>/g,function(){return fe}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:<act>)\.[a-z]+\b/.source.replace(/<act>/g,function(){return fe}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:ot,function:vt,"arg-value":st["arg-value"],operator:st.operator,argument:st.arg,number:Ie,"numeric-constant":Pe,punctuation:Xe,string:Je}},pe={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};le.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:<str>|[^;"'])+;/.source.replace(/<str>/g,function(){return Me}),"im"),alias:"language-sql",inside:le.languages.sql},"global-statements":te,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:Ie,"numeric-constant":Pe,punctuation:Xe,string:Je}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:ot,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return Me}),"im"),lookbehind:!0,alias:"language-groovy",inside:le.languages.groovy},keyword:pe,"submit-statement":ne,"global-statements":te,number:Ie,"numeric-constant":Pe,punctuation:Xe,string:Je}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:ot,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return Me}),"im"),lookbehind:!0,alias:"language-lua",inside:le.languages.lua},keyword:pe,"submit-statement":ne,"global-statements":te,number:Ie,"numeric-constant":Pe,punctuation:Xe,string:Je}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:ot,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:st}},"cas-actions":se,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:st},step:Ve,keyword:pe,function:vt,format:_t,altformat:Ue,"global-statements":te,number:Ie,"numeric-constant":Pe,punctuation:Xe,string:Je}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|<str>)+;/.source.replace(/<str>/g,function(){return Me}),"im"),lookbehind:!0,inside:st},"macro-keyword":Oe,"macro-variable":Ge,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":Oe,"macro-variable":Ge,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:Xe}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:ot,number:Ie,"numeric-constant":Pe}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:st},"cas-actions":se,comment:ot,function:vt,format:_t,altformat:Ue,"numeric-constant":Pe,datetime:{pattern:RegExp(Me+"(?:dt?|t)"),alias:"number"},string:Je,step:Ve,keyword:pe,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:Ie,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:Xe}})(de)}},41299:function(ze){"use strict";ze.exports=be,be.displayName="sass",be.aliases=[];function be(de){(function(le){le.languages.sass=le.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),le.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete le.languages.sass.atrule;var Me=/\$[-\w]+|#\{\$[-\w]+\}/,Ie=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];le.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:Me,operator:Ie}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:Me,operator:Ie,important:le.languages.sass.important}}}),delete le.languages.sass.property,delete le.languages.sass.important,le.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})})(de)}},98177:function(ze,be,de){"use strict";var le=de(7093);ze.exports=Me,Me.displayName="scala",Me.aliases=[];function Me(Ie){Ie.register(le),Ie.languages.scala=Ie.languages.extend("java",{"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/<-|=>|\b(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|null|object|override|package|private|protected|return|sealed|self|super|this|throw|trait|try|type|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),Ie.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:Ie.languages.scala}}},string:/[\s\S]+/}}}),delete Ie.languages.scala["class-name"],delete Ie.languages.scala.function}},48780:function(ze){"use strict";ze.exports=be,be.displayName="scheme",be.aliases=[];function be(de){(function(le){le.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(Me({"<ureal dec>":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"<real dec>":/[+-]?<ureal dec>|[+-](?:inf|nan)\.0/.source,"<imaginary dec>":/[+-](?:<ureal dec>|(?:inf|nan)\.0)?i/.source,"<complex dec>":/<real dec>(?:@<real dec>|<imaginary dec>)?|<imaginary dec>/.source,"<num dec>":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?<complex dec>/.source,"<ureal box>":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"<real box>":/[+-]?<ureal box>|[+-](?:inf|nan)\.0/.source,"<imaginary box>":/[+-](?:<ureal box>|(?:inf|nan)\.0)?i/.source,"<complex box>":/<real box>(?:@<real box>|<imaginary box>)?|<imaginary box>/.source,"<num box>":/#[box](?:#[ei])?|(?:#[ei])?#[box]<complex box>/.source,"<number>":/(^|[()\[\]\s])(?:<num dec>|<num box>)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function Me(Ie){for(var Pe in Ie)Ie[Pe]=Ie[Pe].replace(/<[\w\s]+>/g,function(Ge){return"(?:"+Ie[Ge].trim()+")"});return Ie[Pe]}})(de)}},79793:function(ze){"use strict";ze.exports=be,be.displayName="scss",be.aliases=[];function be(de){de.languages.scss=de.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),de.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),de.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),de.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),de.languages.scss.atrule.inside.rest=de.languages.scss}},52085:function(ze,be,de){"use strict";var le=de(3058);ze.exports=Me,Me.displayName="shellSession",Me.aliases=[];function Me(Ie){Ie.register(le),function(Pe){var Ge=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");Pe.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<<str>>)+/.source.replace(/<<str>>/g,function(){return Ge}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:Pe.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},Pe.languages["sh-session"]=Pe.languages.shellsession=Pe.languages["shell-session"]}(Ie)}},65411:function(ze){"use strict";ze.exports=be,be.displayName="smali",be.aliases=[];function be(de){de.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}},84750:function(ze){"use strict";ze.exports=be,be.displayName="smalltalk",be.aliases=[];function be(de){de.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}},88216:function(ze,be,de){"use strict";var le=de(51478);ze.exports=Me,Me.displayName="smarty",Me.aliases=[];function Me(Ie){Ie.register(le),function(Pe){Pe.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:Pe.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},Pe.languages.smarty["embedded-php"].inside.smarty.inside=Pe.languages.smarty,Pe.languages.smarty.string[0].inside.interpolation.inside.expression.inside=Pe.languages.smarty;var Ge=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,Oe=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>)*\})*\})*\}/.source.replace(/<str>/g,function(){return Ge.source}),"g");Pe.hooks.add("before-tokenize",function(Ve){var ot="{literal}",Je="{/literal}",Xe=!1;Pe.languages["markup-templating"].buildPlaceholders(Ve,"smarty",Oe,function(vt){return vt===Je&&(Xe=!1),Xe?!1:(vt===ot&&(Xe=!0),!0)})}),Pe.hooks.add("after-tokenize",function(Ve){Pe.languages["markup-templating"].tokenizePlaceholders(Ve,"smarty")})}(Ie)}},66433:function(ze){"use strict";ze.exports=be,be.displayName="sml",be.aliases=["smlnj"];function be(de){(function(le){var Me=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i;le.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)<TERMINAL>(?:\s*(?:(?:\*|->)\s*<TERMINAL>|,\s*<TERMINAL>(?:(?=<NOT-LAST>)|(?!<NOT-LAST>)\s+<LONG-ID>)))*/.source.replace(/<NOT-LAST>/g,function(){return/\s*(?:[*,]|->)/.source}).replace(/<TERMINAL>/g,function(){return/(?:'[\w']*|<LONG-ID>|\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+<LONG-ID>)*/.source}).replace(/<LONG-ID>/g,function(){return/(?!<KEYWORD>)[a-z\d_][\w'.]*/.source}).replace(/<KEYWORD>/g,function(){return Me.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:Me,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},le.languages.sml["class-name"][0].inside=le.languages.sml,le.languages.smlnj=le.languages.sml})(de)}},34855:function(ze){"use strict";ze.exports=be,be.displayName="solidity",be.aliases=["sol"];function be(de){de.languages.solidity=de.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),de.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),de.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),de.languages.sol=de.languages.solidity}},12998:function(ze){"use strict";ze.exports=be,be.displayName="solutionFile",be.aliases=[];function be(de){(function(le){var Me={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};le.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:Me}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:Me}},guid:Me,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},le.languages.sln=le.languages["solution-file"]})(de)}},10202:function(ze,be,de){"use strict";var le=de(51478);ze.exports=Me,Me.displayName="soy",Me.aliases=[];function Me(Ie){Ie.register(le),function(Pe){var Ge=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,Oe=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;Pe.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:Ge,greedy:!0},number:Oe,punctuation:/[\[\].?]/}},string:{pattern:Ge,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:Oe,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},Pe.hooks.add("before-tokenize",function(Ve){var ot=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,Je="{literal}",Xe="{/literal}",vt=!1;Pe.languages["markup-templating"].buildPlaceholders(Ve,"soy",ot,function(st){return st===Xe&&(vt=!1),vt?!1:(st===Je&&(vt=!0),!0)})}),Pe.hooks.add("after-tokenize",function(Ve){Pe.languages["markup-templating"].tokenizePlaceholders(Ve,"soy")})}(Ie)}},41186:function(ze,be,de){"use strict";var le=de(58710);ze.exports=Me,Me.displayName="sparql",Me.aliases=["rq"];function Me(Ie){Ie.register(le),Ie.languages.sparql=Ie.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),Ie.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),Ie.languages.rq=Ie.languages.sparql}},68963:function(ze){"use strict";ze.exports=be,be.displayName="splunkSpl",be.aliases=[];function be(de){de.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}},5569:function(ze){"use strict";ze.exports=be,be.displayName="sqf",be.aliases=[];function be(de){de.languages.sqf=de.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),de.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:de.languages.sqf.comment}}}),delete de.languages.sqf["class-name"]}},69435:function(ze){"use strict";ze.exports=be,be.displayName="sql",be.aliases=[];function be(de){de.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}},42766:function(ze){"use strict";ze.exports=be,be.displayName="squirrel",be.aliases=[];function be(de){de.languages.squirrel=de.languages.extend("clike",{comment:[de.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),de.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),de.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}},46449:function(ze){"use strict";ze.exports=be,be.displayName="stan",be.aliases=[];function be(de){(function(le){var Me=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;le.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+Me.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,Me],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},le.languages.stan.constraint.inside.expression.inside=le.languages.stan})(de)}},89032:function(ze){"use strict";ze.exports=be,be.displayName="stylus",be.aliases=[];function be(de){(function(le){var Me={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},Ie={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},Pe={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:Me,number:Ie,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:Me,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:Ie,punctuation:/[{}()\[\];:,]/};Pe.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:Pe}},Pe.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:Pe}},le.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:Pe}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:Pe}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:Pe}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:Pe.interpolation}},rest:Pe}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:Pe.interpolation,comment:Pe.comment,punctuation:/[{},]/}},func:Pe.func,string:Pe.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:Pe.interpolation,punctuation:/[{}()\[\];:.]/}})(de)}},40241:function(ze){"use strict";ze.exports=be,be.displayName="swift",be.aliases=[];function be(de){de.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},de.languages.swift["string-literal"].forEach(function(le){le.inside.interpolation.inside=de.languages.swift})}},24812:function(ze){"use strict";ze.exports=be,be.displayName="systemd",be.aliases=[];function be(de){(function(le){var Me={pattern:/^[;#].*/m,greedy:!0},Ie=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;le.languages.systemd={comment:Me,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+Ie+`|(?=[^"\r
]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+Ie+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:Me,quoted:{pattern:RegExp(/(^|\s)/.source+Ie),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(de)}},16747:function(ze,be,de){"use strict";var le=de(73584),Me=de(87648);ze.exports=Ie,Ie.displayName="t4Cs",Ie.aliases=[];function Ie(Pe){Pe.register(le),Pe.register(Me),Pe.languages.t4=Pe.languages["t4-cs"]=Pe.languages["t4-templating"].createT4("csharp")}},73584:function(ze){"use strict";ze.exports=be,be.displayName="t4Templating",be.aliases=[];function be(de){(function(le){function Me(Pe,Ge,Oe){return{pattern:RegExp("<#"+Pe+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+Pe+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:Ge,alias:Oe}}}}function Ie(Pe){var Ge=le.languages[Pe],Oe="language-"+Pe;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:Me("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:Me("=",Ge,Oe),"class-feature":Me("\\+",Ge,Oe),standard:Me("",Ge,Oe)}}}}le.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:Ie})})(de)}},79243:function(ze,be,de){"use strict";var le=de(73584),Me=de(55686);ze.exports=Ie,Ie.displayName="t4Vb",Ie.aliases=[];function Ie(Pe){Pe.register(le),Pe.register(Me),Pe.languages["t4-vb"]=Pe.languages["t4-templating"].createT4("vbnet")}},31788:function(ze,be,de){"use strict";var le=de(14409);ze.exports=Me,Me.displayName="tap",Me.aliases=[];function Me(Ie){Ie.register(le),Ie.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:Ie.languages.yaml,alias:"language-yaml"}}}},60871:function(ze){"use strict";ze.exports=be,be.displayName="tcl",be.aliases=[];function be(de){de.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}},21023:function(ze){"use strict";ze.exports=be,be.displayName="textile",be.aliases=[];function be(de){(function(le){var Me=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,Ie=/\)|\((?![^|()\n]+\))/.source;function Pe(vt,st){return RegExp(vt.replace(/<MOD>/g,function(){return"(?:"+Me+")"}).replace(/<PAR>/g,function(){return"(?:"+Ie+")"}),st||"")}var Ge={css:{pattern:/\{[^{}]+\}/,inside:{rest:le.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},Oe=le.languages.textile=le.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:Pe(/^[a-z]\w*(?:<MOD>|<PAR>|[<>=])*\./.source),inside:{modifier:{pattern:Pe(/(^[a-z]\w*)(?:<MOD>|<PAR>|[<>=])+(?=\.)/.source),lookbehind:!0,inside:Ge},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:Pe(/^[*#]+<MOD>*\s+\S.*/.source,"m"),inside:{modifier:{pattern:Pe(/(^[*#]+)<MOD>+/.source),lookbehind:!0,inside:Ge},punctuation:/^[*#]+/}},table:{pattern:Pe(/^(?:(?:<MOD>|<PAR>|[<>=^~])+\.\s*)?(?:\|(?:(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.|(?!(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:Pe(/(^|\|(?:\r?\n|\r)?)(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:Ge},punctuation:/\||^\./}},inline:{pattern:Pe(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])<MOD>*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:Pe(/(^(\*\*?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:Pe(/(^(__?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:Pe(/(^\?\?<MOD>*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:Pe(/(^@<MOD>*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:Pe(/(^\+<MOD>*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:Pe(/(^-<MOD>*).+?(?=-)/.source),lookbehind:!0},span:{pattern:Pe(/(^%<MOD>*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:Pe(/(^\*\*|__|\?\?|[*_%@+\-^~])<MOD>+/.source),lookbehind:!0,inside:Ge},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:Pe(/"<MOD>*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:Pe(/(^"<MOD>*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:Pe(/(^")<MOD>+/.source),lookbehind:!0,inside:Ge},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:Pe(/!(?:<MOD>|<PAR>|[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:Pe(/(^!(?:<MOD>|<PAR>|[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:Pe(/(^!)(?:<MOD>|<PAR>|[<>=])+/.source),lookbehind:!0,inside:Ge},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),Ve=Oe.phrase.inside,ot={inline:Ve.inline,link:Ve.link,image:Ve.image,footnote:Ve.footnote,acronym:Ve.acronym,mark:Ve.mark};Oe.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var Je=Ve.inline.inside;Je.bold.inside=ot,Je.italic.inside=ot,Je.inserted.inside=ot,Je.deleted.inside=ot,Je.span.inside=ot;var Xe=Ve.table.inside;Xe.inline=ot.inline,Xe.link=ot.link,Xe.image=ot.image,Xe.footnote=ot.footnote,Xe.acronym=ot.acronym,Xe.mark=ot.mark})(de)}},14693:function(ze){"use strict";ze.exports=be,be.displayName="toml",be.aliases=[];function be(de){(function(le){var Me=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function Ie(Pe){return Pe.replace(/__/g,function(){return Me})}le.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(Ie(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(Ie(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(de)}},8743:function(ze){"use strict";ze.exports=be,be.displayName="tremor",be.aliases=[];function be(de){(function(le){le.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var Me=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;le.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+Me+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+Me+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(Me),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:le.languages.tremor}}},string:/[\s\S]+/}},le.languages.troy=le.languages.tremor,le.languages.trickle=le.languages.tremor})(de)}},1689:function(ze,be,de){"use strict";var le=de(24103),Me=de(92784);ze.exports=Ie,Ie.displayName="tsx",Ie.aliases=[];function Ie(Pe){Pe.register(le),Pe.register(Me),function(Ge){var Oe=Ge.util.clone(Ge.languages.typescript);Ge.languages.tsx=Ge.languages.extend("jsx",Oe),delete Ge.languages.tsx.parameter,delete Ge.languages.tsx["literal-property"];var Ve=Ge.languages.tsx.tag;Ve.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+Ve.pattern.source+")",Ve.pattern.flags),Ve.lookbehind=!0}(Pe)}},69210:function(ze,be,de){"use strict";var le=de(51478);ze.exports=Me,Me.displayName="tt2",Me.aliases=[];function Me(Ie){Ie.register(le),function(Pe){Pe.languages.tt2=Pe.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),Pe.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),Pe.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),Pe.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete Pe.languages.tt2.string,Pe.hooks.add("before-tokenize",function(Ge){var Oe=/\[%[\s\S]+?%\]/g;Pe.languages["markup-templating"].buildPlaceholders(Ge,"tt2",Oe)}),Pe.hooks.add("after-tokenize",function(Ge){Pe.languages["markup-templating"].tokenizePlaceholders(Ge,"tt2")})}(Ie)}},58710:function(ze){"use strict";ze.exports=be,be.displayName="turtle",be.aliases=[];function be(de){de.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},de.languages.trig=de.languages.turtle}},60452:function(ze,be,de){"use strict";var le=de(51478);ze.exports=Me,Me.displayName="twig",Me.aliases=[];function Me(Ie){Ie.register(le),Ie.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},Ie.hooks.add("before-tokenize",function(Pe){if(Pe.language==="twig"){var Ge=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;Ie.languages["markup-templating"].buildPlaceholders(Pe,"twig",Ge)}}),Ie.hooks.add("after-tokenize",function(Pe){Ie.languages["markup-templating"].tokenizePlaceholders(Pe,"twig")})}},92784:function(ze){"use strict";ze.exports=be,be.displayName="typescript",be.aliases=["ts"];function be(de){(function(le){le.languages.typescript=le.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),le.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete le.languages.typescript.parameter,delete le.languages.typescript["literal-property"];var Me=le.languages.extend("typescript",{});delete Me["class-name"],le.languages.typescript["class-name"].inside=Me,le.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:Me}}}}),le.languages.ts=le.languages.typescript})(de)}},36489:function(ze){"use strict";ze.exports=be,be.displayName="typoscript",be.aliases=["tsconfig"];function be(de){(function(le){var Me=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;le.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern:/<INCLUDE_TYPOSCRIPT:\s*source\s*=\s*(?:"[^"\r\n]*"|'[^'\r\n]*')\s*>/,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:Me}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:Me,number:/^\d+$/,punctuation:/[,|:]/}},keyword:Me,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},le.languages.tsconfig=le.languages.typoscript})(de)}},78380:function(ze){"use strict";ze.exports=be,be.displayName="unrealscript",be.aliases=["uc","uscript"];function be(de){de.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},de.languages.uc=de.languages.uscript=de.languages.unrealscript}},10409:function(ze){"use strict";ze.exports=be,be.displayName="uorazor",be.aliases=[];function be(de){de.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}},6539:function(ze){"use strict";ze.exports=be,be.displayName="uri",be.aliases=["url"];function be(de){de.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")")+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},de.languages.url=de.languages.uri}},82028:function(ze){"use strict";ze.exports=be,be.displayName="v",be.aliases=[];function be(de){(function(le){var Me={pattern:/[\s\S]+/,inside:null};le.languages.v=le.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":Me}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),Me.inside=le.languages.v,le.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),le.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),le.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:le.languages.v.generic.inside}}}})})(de)}},62282:function(ze){"use strict";ze.exports=be,be.displayName="vala",be.aliases=[];function be(de){de.languages.vala=de.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),de.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:de.languages.vala}},string:/[\s\S]+/}}}),de.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:de.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}},55686:function(ze,be,de){"use strict";var le=de(51422);ze.exports=Me,Me.displayName="vbnet",Me.aliases=[];function Me(Ie){Ie.register(le),Ie.languages.vbnet=Ie.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}},70889:function(ze){"use strict";ze.exports=be,be.displayName="velocity",be.aliases=[];function be(de){(function(le){le.languages.velocity=le.languages.extend("markup",{});var Me={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};Me.variable.inside={string:Me.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:Me.number,boolean:Me.boolean,punctuation:Me.punctuation},le.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:Me}},variable:Me.variable}),le.languages.velocity.tag.inside["attr-value"].inside.rest=le.languages.velocity})(de)}},37116:function(ze){"use strict";ze.exports=be,be.displayName="verilog",be.aliases=[];function be(de){de.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}},66963:function(ze){"use strict";ze.exports=be,be.displayName="vhdl",be.aliases=[];function be(de){de.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,constant:/\b(?:library|use)\b/i,keyword:/\b(?:'active|'ascending|'base|'delayed|'driving|'driving_value|'event|'high|'image|'instance_name|'last_active|'last_event|'last_value|'left|'leftof|'length|'low|'path_name|'pos|'pred|'quiet|'range|'reverse_range|'right|'rightof|'simple_name|'stable|'succ|'transaction|'val|'value|access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}},21078:function(ze){"use strict";ze.exports=be,be.displayName="vim",be.aliases=[];function be(de){de.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}},96198:function(ze){"use strict";ze.exports=be,be.displayName="visualBasic",be.aliases=[];function be(de){de.languages["visual-basic"]={comment:{pattern:/(?:[']|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},de.languages.vb=de.languages["visual-basic"],de.languages.vba=de.languages["visual-basic"]}},17723:function(ze){"use strict";ze.exports=be,be.displayName="warpscript",be.aliases=[];function be(de){de.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}},67771:function(ze){"use strict";ze.exports=be,be.displayName="wasm",be.aliases=[];function be(de){de.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}},30307:function(ze){"use strict";ze.exports=be,be.displayName="webIdl",be.aliases=[];function be(de){(function(le){var Me=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,Ie="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+Me+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,Pe={};le.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+Me),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:Pe},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+Ie),lookbehind:!0,inside:Pe},{pattern:RegExp("("+/\bcallback\s+/.source+Me+/\s*=\s*/.source+")"+Ie),lookbehind:!0,inside:Pe},{pattern:RegExp(/(\btypedef\b\s*)/.source+Ie),lookbehind:!0,inside:Pe},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+Me),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+Me),lookbehind:!0},RegExp(Me+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+Me),lookbehind:!0},{pattern:RegExp(Ie+"(?="+/\s*(?:\.{3}\s*)?/.source+Me+/\s*[(),;=]/.source+")"),inside:Pe}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var Ge in le.languages["web-idl"])Ge!=="class-name"&&(Pe[Ge]=le.languages["web-idl"][Ge]);le.languages.webidl=le.languages["web-idl"]})(de)}},8921:function(ze){"use strict";ze.exports=be,be.displayName="wiki",be.aliases=[];function be(de){de.languages.wiki=de.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:de.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),de.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:de.languages.markup.tag.inside}}}})}},13429:function(ze){"use strict";ze.exports=be,be.displayName="wolfram",be.aliases=["mathematica","wl","nb"];function be(de){de.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\^|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},de.languages.mathematica=de.languages.wolfram,de.languages.wl=de.languages.wolfram,de.languages.nb=de.languages.wolfram}},65197:function(ze){"use strict";ze.exports=be,be.displayName="wren",be.aliases=[];function be(de){de.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},de.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:de.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}},88904:function(ze){"use strict";ze.exports=be,be.displayName="xeora",be.aliases=["xeoracube"];function be(de){(function(le){le.languages.xeora=le.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),le.languages.insertBefore("inside","punctuation",{variable:le.languages.xeora["function-inline"].inside.variable},le.languages.xeora["function-block"]),le.languages.xeoracube=le.languages.xeora})(de)}},35:function(ze){"use strict";ze.exports=be,be.displayName="xmlDoc",be.aliases=[];function be(de){(function(le){function Me(Oe,Ve){le.languages[Oe]&&le.languages.insertBefore(Oe,"comment",{"doc-comment":Ve})}var Ie=le.languages.markup.tag,Pe={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:Ie}},Ge={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:Ie}};Me("csharp",Pe),Me("fsharp",Pe),Me("vbnet",Ge)})(de)}},86095:function(ze){"use strict";ze.exports=be,be.displayName="xojo",be.aliases=[];function be(de){de.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}},76998:function(ze){"use strict";ze.exports=be,be.displayName="xquery",be.aliases=[];function be(de){(function(le){le.languages.xquery=le.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),le.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,le.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,le.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,le.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:le.languages.xquery,alias:"language-xquery"};var Me=function(Pe){return typeof Pe=="string"?Pe:typeof Pe.content=="string"?Pe.content:Pe.content.map(Me).join("")},Ie=function(Pe){for(var Ge=[],Oe=0;Oe<Pe.length;Oe++){var Ve=Pe[Oe],ot=!1;if(typeof Ve!="string"&&(Ve.type==="tag"&&Ve.content[0]&&Ve.content[0].type==="tag"?Ve.content[0].content[0].content==="</"?Ge.length>0&&Ge[Ge.length-1].tagName===Me(Ve.content[0].content[1])&&Ge.pop():Ve.content[Ve.content.length-1].content==="/>"||Ge.push({tagName:Me(Ve.content[0].content[1]),openedBraces:0}):Ge.length>0&&Ve.type==="punctuation"&&Ve.content==="{"&&(!Pe[Oe+1]||Pe[Oe+1].type!=="punctuation"||Pe[Oe+1].content!=="{")&&(!Pe[Oe-1]||Pe[Oe-1].type!=="plain-text"||Pe[Oe-1].content!=="{")?Ge[Ge.length-1].openedBraces++:Ge.length>0&&Ge[Ge.length-1].openedBraces>0&&Ve.type==="punctuation"&&Ve.content==="}"?Ge[Ge.length-1].openedBraces--:Ve.type!=="comment"&&(ot=!0)),(ot||typeof Ve=="string")&&Ge.length>0&&Ge[Ge.length-1].openedBraces===0){var Je=Me(Ve);Oe<Pe.length-1&&(typeof Pe[Oe+1]=="string"||Pe[Oe+1].type==="plain-text")&&(Je+=Me(Pe[Oe+1]),Pe.splice(Oe+1,1)),Oe>0&&(typeof Pe[Oe-1]=="string"||Pe[Oe-1].type==="plain-text")&&(Je=Me(Pe[Oe-1])+Je,Pe.splice(Oe-1,1),Oe--),/^\s+$/.test(Je)?Pe[Oe]=Je:Pe[Oe]=new le.Token("plain-text",Je,null,Je)}Ve.content&&typeof Ve.content!="string"&&Ie(Ve.content)}};le.hooks.add("after-tokenize",function(Pe){Pe.language==="xquery"&&Ie(Pe.tokens)})})(de)}},14409:function(ze){"use strict";ze.exports=be,be.displayName="yaml",be.aliases=["yml"];function be(de){(function(le){var Me=/[*&][^\s[\]{},]+/,Ie=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,Pe="(?:"+Ie.source+"(?:[ ]+"+Me.source+")?|"+Me.source+"(?:[ ]+"+Ie.source+")?)",Ge=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),Oe=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function Ve(ot,Je){Je=(Je||"").replace(/m/g,"")+"m";var Xe=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return Pe}).replace(/<<value>>/g,function(){return ot});return RegExp(Xe,Je)}le.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return Pe})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return Pe}).replace(/<<key>>/g,function(){return"(?:"+Ge+"|"+Oe+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:Ve(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:Ve(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:Ve(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:Ve(Oe),lookbehind:!0,greedy:!0},number:{pattern:Ve(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:Ie,important:Me,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},le.languages.yml=le.languages.yaml})(de)}},33460:function(ze){"use strict";ze.exports=be,be.displayName="yang",be.aliases=[];function be(de){de.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}},28108:function(ze){"use strict";ze.exports=be,be.displayName="zig",be.aliases=[];function be(de){(function(le){function Me(Je){return function(){return Je}}var Ie=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,Pe="\\b(?!"+Ie.source+")(?!\\d)\\w+\\b",Ge=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,Oe=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*<ALIGN>|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(/<ALIGN>/g,Me(Ge)),Ve=/(?:\bpromise\b|(?:\berror\.)?<ID>(?:\.<ID>)*(?!\s+<ID>))/.source.replace(/<ID>/g,Me(Pe)),ot="(?!\\s)(?:!?\\s*(?:"+Oe+"\\s*)*"+Ve+")+";le.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?[=;,)])|<TYPE>(?=\s*(?:<ALIGN>\s*)?\{)/.source.replace(/<TYPE>/g,Me(ot)).replace(/<ALIGN>/g,Me(Ge))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?;)/.source.replace(/<TYPE>/g,Me(ot)).replace(/<ALIGN>/g,Me(Ge))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:Ie,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},le.languages.zig["class-name"].forEach(function(Je){Je.inside===null&&(Je.inside=le.languages.zig)})})(de)}},92848:function(ze,be){"use strict";var de;be.Q=Pe,de=Ge;var le="",Me=" ",Ie=/[ \t\n\r\f]+/g;function Pe(Oe){var Ve=String(Oe||le).trim();return Ve===le?[]:Ve.split(Ie)}function Ge(Oe){return Oe.join(Me).trim()}},77179:function(ze,be,de){"use strict";var le=this&&this.__importDefault||function(Ge){return Ge&&Ge.__esModule?Ge:{default:Ge}},Me=le(de(58970)),Ie=de(39159);function Pe(Ge,Oe){var Ve={};return!Ge||typeof Ge!="string"||(0,Me.default)(Ge,function(ot,Je){ot&&Je&&(Ve[(0,Ie.camelCase)(ot,Oe)]=Je)}),Ve}Pe.default=Pe,ze.exports=Pe},39159:function(ze,be){"use strict";Object.defineProperty(be,"__esModule",{value:!0}),be.camelCase=void 0;var de=/^--[a-zA-Z0-9_-]+$/,le=/-([a-z])/g,Me=/^[^-]+$/,Ie=/^-(webkit|moz|ms|o|khtml)-/,Pe=/^-(ms)-/,Ge=function(Je){return!Je||Me.test(Je)||de.test(Je)},Oe=function(Je,Xe){return Xe.toUpperCase()},Ve=function(Je,Xe){return"".concat(Xe,"-")},ot=function(Je,Xe){return Xe===void 0&&(Xe={}),Ge(Je)?Je:(Je=Je.toLowerCase(),Xe.reactCompat?Je=Je.replace(Pe,Ve):Je=Je.replace(Ie,Ve),Je.replace(le,Oe))};be.camelCase=ot},58970:function(ze,be,de){"use strict";var le=this&&this.__importDefault||function(Pe){return Pe&&Pe.__esModule?Pe:{default:Pe}};Object.defineProperty(be,"__esModule",{value:!0}),be.default=Ie;var Me=le(de(93193));function Ie(Pe,Ge){var Oe=null;if(!Pe||typeof Pe!="string")return Oe;var Ve=(0,Me.default)(Pe),ot=typeof Ge=="function";return Ve.forEach(function(Je){if(Je.type==="declaration"){var Xe=Je.property,vt=Je.value;ot?Ge(Xe,vt,Je):vt&&(Oe=Oe||{},Oe[Xe]=vt)}}),Oe}},97270:function(ze){ze.exports=de;var be=Object.prototype.hasOwnProperty;function de(){for(var le={},Me=0;Me<arguments.length;Me++){var Ie=arguments[Me];for(var Pe in Ie)be.call(Ie,Pe)&&(le[Pe]=Ie[Pe])}return le}},90034:function(ze,be,de){var le={"./doc.png":63604,"./docx.png":30045,"./jpg.png":13740,"./md.png":58881,"./pdf.png":28982,"./png.png":2487,"./txt.png":3164,"./xls.png":88745,"./xlsx.png":49321};function Me(Pe){var Ge=Ie(Pe);return de(Ge)}function Ie(Pe){if(!de.o(le,Pe)){var Ge=new Error("Cannot find module '"+Pe+"'");throw Ge.code="MODULE_NOT_FOUND",Ge}return le[Pe]}Me.keys=function(){return Object.keys(le)},Me.resolve=Ie,ze.exports=Me,Me.id=90034},93314:function(ze){"use strict";ze.exports="data:image/png;base64,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"},96058:function(ze){"use strict";ze.exports="data:image/png;base64,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"},19773:function(ze){"use strict";ze.exports="data:image/png;base64,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"},71986:function(ze){"use strict";ze.exports="data:image/png;base64,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"},37166:function(ze){"use strict";ze.exports="data:image/png;base64,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"},28984:function(ze){"use strict";ze.exports="data:image/png;base64,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"},63604:function(ze){"use strict";ze.exports="data:image/png;base64,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"},30045:function(ze){"use strict";ze.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAARiUlEQVR4nO3dW2wdxR0G8BluBRWIQ/tAgyoMLa3agjBIUNSq2JF6eUBVTF+4SC0O4gkqxSkSPABKEPAAEo2RCk8Ih1bi8tI4Qjz0IsVJ1aotEjiCtiIQJSkkhKbxJQm5EXv7/w4+9MTs/md2z87ezveTxt5jJXtmZ+ebmd1z7GNNRc0ciQbMvBlcMGbARqbfWDNkqBB7P9h/4PMXnnvd5SuW75GHPc1KqYyZY1H/wkmzRgIxLDXrN1SK3XveM6dOzR/74sV93+j1kFgppVsMxjqpzIih0iEgR48eM+ecc07Ph8RKKdXMXLQuMma9ocpoBwR6PSRWSikwa0QnzCapwYA8pArpDAj0ckislMLhAjw6ZbbIs/fJQ6qYpQGBXg2JlVKomUPRcLRgxuWZGY6KigsI9GJIrJTCcOaoh6SAQK+FxEopxEwU9UVzZpc8I8NRcVpAoJdCYqUUYno22iLPNmSo8lwBgV4JiZUSnNzKHZVbuRtkk2rAJyDQCyGxUoLi0qp+fAMCTQ+JlRLUwblovTzJOtmkmkgTEGhySKyUYDh71FPagEBTQ2KlBCOveYxEkbzmQbWSJSDQxJBYKcFMz0UT8m2VFKqRrAGBpoXESglGAhLJN6qZbgICTQqJlRLEzOFoKFqQV82pdroNCDQlJFZKELx7VV95BASaEBIrJQgJyJjsfI1sUs3kFRCoe0islCCmZ6NJ2fugbFLN5BkQqHNIrJQgGJD6yjsgUNeQWClBMCD1FSIgUMeQWClBMCD1tX//f8z0zKxs5a9uIbFSgmBA6uvAgYPmwH8PylYYdQqJlRIEA1JfB6dnzIcfHpCtcOoSEislCAakvj766KjZ8+/3ZSusOoTESgmCAam3f/5rh3wNr+ohsVKCYEDqLdSdrDhVDomVEgQDUm9FXId0qmpIrJQgGJB6m5+fN2/v2ClbxaliSKyUIBiQ+tu7b7+ZmzskW8WpWkislCAYkPo7efJj8+7OXbJVrCqFxEoJggFphpCvqmuqEhIrJQgGpBlwLfLOu7vMwsKCPCpWFUJipQTBgDRHUS8cxik7JFZKEAxIs8zOzpl9H3woW8UrMyRWShAMSPOUcVerrayQWClBMCDNVNZFO5QREislCAakuXppuWWlBMGANNvx48fNe+/vMx9/fEoeFavIkFgpQTAgvQG/XIX3bRV9G7iokFgpQTAgvQOvlUxPz5rZublCZ5QiQmKlBMGA9KZDh4+Yo/K6yUdHj5kTJ07IT8IKHRIrJQgGhAAvMsJxCcvCfJhl2Nlnnf23y/uX3SCbuWNAqP4is/WiPjtkAmBAqP4YECIFA0KkYECIFAwIkYIBIVIwIEQKBoRIwYAQKRgQIgUDQqRgQIgUDAiRggEhUjAgRAoGhEjBgBApGBAiBQNCpGBAiBQMCJGCASFSMCBECgaESMGAECkYECJF7QLS/52BLS88t+Xqb329Tx4RBbX9H2/Prrz9zpVm91+m5GGu8g+IhMPMmy2vjP+q77vXXSM/IArrz6+9YX68+uez5kyTe0jyDchiOEwU9b2y8WnDgFARWgEZuUd6s809JPkFpCMc8sgwIFSUTwMCOYckn4AsCQcwIFSU0wICOYak+4DEhAMYECrKZwICOYWku4AkhAMYECpKbEAgh5BkD4gSDmBAqCiJAYEuQ5ItII5wAANCRVEDAl2EJH1APMIBDAgVxRkQyBiSdAHxDAcwIFQUr4BAhpD4ByRFOIABoaJ4BwRShsQvICnDAQwIFSVVQCBFSNwByRAOYECoKKkDAp4h0QOSMRzAgFBRMgUEPEKSHJAuwgEMCBUlc0DAEZL4gHQZDmBAqChdBQSUkHw2IDmEAxgQKkrXAYGEkJwekJzCAQwIFSWXgEBMSP4fkBzDAQwIFSW3gMCSkHwSkJzDAQwIFSXXgEBHSGyIcAADQkXJPSCwGBJrvnnLMWMWzpUf5er24ZvMl1dcLFtEYb23b795YeJV2crbGcet+fbaSLaIKAYDQqRgQIgUDAiRggEhUjAgRAoGhEjBgBApGBAiBQNCpGBAutB3wXnm6itWyJYxQ9d+1cwePmam3tkrj4zZ/s6+1uMyDF77FflqzMAVl7TqCJOvvytfy61XHZUWkIGvXWI2jK6SrWxwkqfkZO/+YNps3vZW63ER+r90kVl145Vm5KbrWsegmdqx12x89bVW/VDPkNp1Gh68Sh7pstQLxz3+0K2ylQzn4Ob7x2UrvfV3/ejTYCd56uVtZmLrW7JVnNICghF3yzN3y1Y+Jra+aSbkhD8vJz4EjMQI9MhN18uj9Da++nezdmxzqxPlCe2IjosOnAXq9fCzv/cKysQTd7aCqFn9yIuyz3TnAHXftelB2Uo2d+SY6b/50dzbz6UxAWnDUgInHN/zgpF5w+hwKyTdwMldOzaRugPFQV3GH7zVa8ZwQb1WP/qiDDL66OzTkRG0y6Qjp7HxodvMHdLGmoef/Z1ZL6VojQtI29hLW6Uzbpat7mDWGL11ULby023dEI4tT9/tXOKl5VMvn86cZhbxCd0eCR1mjzI0NiCA5cPqR16SrWywdMm6pHLppm5v/Pre3MPR5urcCOdu6dDLzk+eTdPMInkHLm+NDghk7Yijt94os8ewbIWD5dbYS9tkyx8uZtdJCemanz3ZupBP4lOHlXc/41zm+swe2+Wu4MBPn5StclQ2ILgom9qxT7ZO13fBuXJrNd3ombYj4sRhlMZo6YI7QehMuL3bJ6Mq/i+OzXVHBrD2X3nPM63/7wOzBurlgiUJbligg84ePi4/wf9dYYZvvMqrXvh/6OBJ0C5TUo9L5ViTuPYBeQUtpMoGZOvrO83Q3U/LVjycJFw8j95yo3qi2lyjYid0QnRGDeo38siLreVEHARl4onVzjCjTqibD596uS5m0e4bZenoajNXx0Tbj8vySKPtA+dv128fbH1PgjbW+kARahuQNjTwmCyFXOtYnCicMJfhwSvNpsfvlK1kuJWMcPjIa43tUy+f/QDazDUDYGYcvu852UqGaxFtH1qb+8weuI5JGoCKUvuAtPl0RJwsnDQN6oS6JUlbL5j6zb3qTOIzi7jq5dOhO2Ff2GcSLP+W/+AB2Urm2gfEtTkC6po90gxCITUmINDNiAauOkGWUc1nv6gX6hcHyzXXxWyWernaC6FFeDWTz9yjXtfEBdc1e+D6ExfmaY8nhEYFxLVP0E762Nphs0auaZJ0M6q5Zjht3647anGd0Iero/rc3PBp887wYtZwzR6u66giNSog4FrOaCfddRF88/3POV9tTuK6hkAHQkeK43qLh++1x1KuOvl21DThd4USswdeFMQSrwoaFxDX3ZWk0RYj2swfHpOteDhxfd9/QLaycy1pEBAEZSksr7DMSpL0/1xc58A3IKgb6qhp1xFtjLZOog1gZWhcQFwnCyNT3MVnqPp0cq3Xk65Dor/+Ur7G6ya4aCsMKEkm5Zjj6hPHNTNgFsG+tMELr99g9qiSxgUEZv/4mPpWCHvDL+Tr6Vz18R1NNa5OlLRU0gLSTTvlCbMCZkit3TGDIJRJulnChtLIgLhG6riAYCTVRrciAhL3HOhQ2ozYTTvlzXV8miodR6eeDEjcUsZ1cuM6b1pZniNkO4WAWUS7zkoSd06qgAFZlKXzppXlOUK2UwiumThO0o2TKmBAFmXpvGlleY6Q7RSK61b7Uu07XFXEgCzK0nnTyvIcIdspFFedO+HuVvs1kipiQBZl6bxpZXmOkO0Uku8sUuXZAxiQRVk6b1pZniNkO4XiuvPWKe6Yq4QBWZSl86aV5TlCtlMoqC/q7QMv3OL9cVWdRRiQRVk6b1pZniNkO4Xgqm+cKl+HMCCLsnTetLI8R8h2CsH1hs8kceekCnoyIJjSl77lPUvnTSvLc4Rsp7xleQ2kDeFASKqmkQFxjWJxbzVx1Seu86aVJSB4jxPeAZukm3bKGy7McYGeVdJ70crUyIBob+6DLAHJY53s+oUsjKAYSZfSjgczIWbEsrnCj3fqovNr/wYX6jgWXLhXReMC4tovTlTcW6ox42DmSZJHR3Qt/bIEBOIC78PVVnEzWhzMcq7fEsTsgD9FhPdqae/49X3OojQuIK7fbsNfCB/dMCFbn+V6m3w3L2qh82hLJUjq6FmD5eI6B76d1TUzdg5KrpkGswcGoqztnLdGBQSd0DWSab9z4PrV1m5+2811Aasdr6sDaqHXuDqrz/HimgPXHhrMHlheAc6NaxbJYzmbl0YFxHXC8dt3GMkwSsVx/XEEjGqYRbJAJ0JnSqJ1RtfvjuN4LvtJ8nElcc22PjPTpsdXS/2ukq14nbNHm+s8AWYRLGvL1piAuK4hwDXS+oxunaOhL9fsAQgeApjEtfzzXQ614VhdSz78arIWOtc5hLj2wnO72hnBREDL1oiAoMFdSytwdUJwjaroMGn/ni4+qkCrm8+SwjXqpq2Xa9nm80ejcf5wHpPEzR5truMBbTlclNoHBMuP8QdvUzsguGaPNiyDsBzSIGT4qDFXZ0Q4sATBPjU+wcXxuUZ87MOnXmgzbckGrhnJZ1aMmz3acDyuWQTHg7YpU2UDgpM8KuvyOOhwA1eskBN9VWvbBaPhkEzXGGV9+IxugA+ceerlP7VOZCfUac0t35NrmkF5pPMNLvjUC8c4JvvEfrHdCfVad9cPpXNfL4+Sua7VAIMI9pdEmz3afI7HFdTQKhuQvOBkIxwIXBq+v88A6Ej4+APo/GRZFwTXtYxZKk29cMyzcvyAzoziw9UpXTczwLUPQDu5ZhG0bZYbEHlpfEC0aV6DzoTOqJ28bmQNLpZtk9JuoerlCi06tet6D8eG2cOnU7uu+cDnGi2UxgYEJylLB+wUqjN2Wze0HT57JES9EI6lS8ZOeS+LMBBhueZS1m3fRgYEF/i4fsmjQXEC0Rl9lzUuGKGH7xtXO6GPvMOLeo088pLaZmgLV2dGyHxnjzafWaSs276NCgguDDFyZVlSabCcwCdZYe2dtUOi4+CFQFxAp+k8GnRY3K7VXv33gT+7gyWMq14+HTnN7NGG43AFD8q47Vv7gKDjodEmtr3Z+h4SgoJPs8JtUt+gtOuHTtPtrJEEbTm2dlXqWQ4zLeqF0dkFz+E6XzjWtLNHm0/40H5F3/YtLSDobLjj0w2fExsKOgyC0j6G9psJ0ekAd7VQP4SjKBiJUSd8WCfggzvbQUbnxYei4q7WxNY3pW47Wx3OF/aNosG+tSWaxrc/oF2zBDCr0gJCVAcMCJGCASFSMCBECgaESMGAECkYECIFA0KkYECIFAwIkYIBIVJYKUFMz0aTsvdB2SQKKzJbL+qzQyYABoTqjwEhUjAgRAoGhEjBgBApGBAiBQNCpGBAiBQMCJGCASFSMCBECgaESMGAECkYECIFA0KkYECIFAwIkYIBIVLUMSAH56Ix2fka2SQKKjLmqS8ss6OymTvpw2FIQNbLztfJJlFQkTEPS0DWmwCkD4cxczgaihbMFtkkCsqeYVYuv8BOmgCCBQSm56JIvhEFddEyG6wfB9sxSEAm5NsqKUShbJaADMv3IIIGZOZQNCJzyLhsEgUhc8fq5RfajSaQsAGJor5ozuyWZ1kmD4nyFZk5u8z0L7d2Vh4FETQgwLtZFEoU8O5Vm/TdsDiLUBAFzB4QPCAwMxeNSto3yCZRLqTjrl2+zI7JZlDyPMXgW08oNwHfWrJUYQHhUotyUdDSqq2wgMDMkWggOmUm5VkZEkoP4TjLDC0/307Jo0IUGhBovQVl3kzIMzMk5K+EcEDhAQHOJJRKSeGAUgICM8ei/uhEaya5Wh4SxYvMdvs5M7z8PLvblKC0gLS1XkiMzKjUZJk8JPqEzBqRNWOhXwh0KT0ggNlk4aRZL5W5Qx5Sj4uMef6Mc8z6smaNTtInq2MxKCMyo4xIzS6VH1GviMwemTE2SjA2ViEYbZUKSCdcyJt5M7RgzIAEpl9qOig/piaQ5ZN8nYqs2X2GfDdnmskyLsB9/A+krB6cv+qtogAAAABJRU5ErkJggg=="},13740:function(ze){"use strict";ze.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAOXUlEQVR4nO3dXWxbZx3H8b/TOG3TlyQdgdFu1O3Wsa1odaADpQMlQbsBAU0lkBhCaiYhcQHS2kuu1t5y00ziBglprUDaJCY1E7BdMNEEtlVjk5wKqUNKWZ2p3YuSLk7WZG3ezP9Xz63rnPP42D6Pc87j30c69XMyxbGd5+vzYsdLyDqYmZlJLy+3HJVEPq2r/UKhuDiRlWRrq7Qlk7NtG1v/dv+9O37V1dWV0/9ENWpoIBpG59JKy6mE5IeEQodASmksq1vbN//2sf0P/EZXqQYNC0TjSC+vJM7psFMXsqA8kKKt7e2Zbxx46Os6pCo1JBCNI6VxZHTIOCzyCwS2bN586WD6q/t0SFVoSCBT0zlsOfqFrDIFAoyketYDmZ6eGcxL4qwOybJKgQAjqY71QKamZ0b0xxzWIVkWJBBgJME1IJBcXi+oAYIGAowkGKuB6ME5zlxldEgNUE0gwEgqsxrI1NRMvyRundqlBqg2EGAkZgzEIbUEAozEHwNxSK2BACPxxkAcUk8gwEjWYiAOqTcQYCR3YyAOCSMQYCR3MBCHhBUIMJICBuKQMAMBRiIMxCVhBwLNHgkDcYiNQKCZI2EgDrEVCDRrJAzEITYDgWaMhIE4xHYg0GyRMBCHNCIQaKZIGIhDGhUINEskDMQhjQwEmiESBuKQRgcCrkfCQByyHoGAy5EwEIesVyDgaiQMxCHrGQi4GAkDcch6BwKuRcJAHBKFQMClSBiIQ6ISCLgSCQNxSJQCARciYSAOiVogEPdIGIhDohgIxDkSBuKQqAYCcY2EgTgkyoFAHCNhIA6JeiAQt0gYiEPiEAjEKRIG4pC4BAJxiYSBOCROgUAcImEgDolbIBD1SBiIQ+IYCEQ5EgbikLgGAlGNhIE4JM6BQBQjYSAOiXsgELVIGIhDXAgEohQJA3GIK4FAVCJhIA5xKRCIQiQMxCGuBQLrHQkDcYiLgcB6RsJAHOJqILBekTAQh7gcCKxHJAzEIf97/wO5eXNRR+5qdCQMxCHZKx/Jwmc3dOS2LZs3XjyYfmS/Dq1jIA65NjMnH09/oiP3bd/S/kLPYw/9TIdWMRCH3NDdq/d0N6sZtLS05Hd1f2HP3r07J3XVmoQu1jCQxrv60bTMfnpdR+7bvn3LSM/+fUd0aA0DcczKyqpMZK/I6uqqrrmtLZn8rPfg/nYdWsNAHIRdLRywN0Mkfb1pq3PY6pUzkPWDSK5+PO38ad/7v/TFlM3jkIQu1jCQ9Zebuy7XcnPOhnJPx7bjX3v0gWEdWsFAmsTi0rIsYVnWRS9d0daWfOrBPbte1KEVDITiLZ8f6O7uGhVLGAjFGwMhMmAgRAYMhMiAgRAZMBAiAwZCZMBAiAwYCJEBAyEyYCBEBgyEyICBEBkwECIDBkJkwECIDBgIkQEDITJgIEQGDITIgIEQGcQ5kLl3z/3gZnfPX3RIZMXGqcwPtz8y8FcdWmEtkPwpSa8kv/y7mZ+++4SuElnR9eIjb2xY+vDXieMyrquhsxII4pBlOZfftCN77an30volIivueWHveOLGJylplQEbkYQeSDEOHXZqIOMMhGz6PBDMsZyNSEINpDQOXYSBkG0lgUDokYQWSHkcwEDItrJAINRIQgnEKw5gIGSbRyAQWiR1B+IXBzAQss0nEAglkroCMcUBDIRsMwQCdUdScyCV4gAGQrZVCATqiqSmQILEAQyEbAsQCNQcSdWBBI0DGAjZFjAQqCmSqgKpJg5gIGRbFYFA1ZEEDqTaOICBkG1VBgJVRRIokFriAAZCttUQCASOpGIgtcYBDIRsqzEQCBSJMZB64gAGQrbVEQhUjMQ3kHrjAAZCttUZCBgj8QwkjDiAgZBtIQQCvpGsCST/B9ktn8qfJC9bdbUu+a27Zue++/s+HRJZsf0fvxxLXL/aocP6JOS6bJOfJ34hk7p2W0KXu+T/LP0it7YeRM1mIPETGZUSDIToDgZCZMBAiAwYCJEBAyEyYCBEBgyEyICBEBkwkIo60yLJkhdmcxdElnI6CCDZqd9/QAd1mBrTf9YBbnt3n97+tK6oDr1s69SBms+KLOgCH7ysj8m4DpzEQIx6z4rsGtRBmTeP6MQY0YFBd3/h+4uTqh6YkFOjIpNnCpe2tKdEdh4u3Gfc/qAWc4XbhccEt9EdDMTox3n9xwOe1cf6xejRE7o8K6HDRLxwPNxnbWwt9j0j8uCx+oNGzBdPuBIKAzGKYiBF48dELj2ngzo9qGHgttYbRjkE/M7Thcv4YiBGUQ4ELp7U5YTU7ODzIqkhsQa7Xrh9YYS8PhiIUdQDgbef1t2Z01IV7FL1nbtzAG7T0qzI3/XnLGQlhhiIURwCgVf2VDcBn8wEiwNn7HDgPZ+9+/pxMI/v3zkosmW3GNUScHQwECNbgbyU0H8qwLM8ziRhEuKsUump5nJXR0TOH9FBAEF2q7JnCrtGC1mpCLHgvqaOyho4mTAxrIPYYiBG6xlIKUzCQyP6rH1AfAXZiuw7JnLglA58zE/qgfWQ3r9RqRpuY3pYgz4styCyd4Yk5hiIUVQCAWxR+kb9I6n0bI3v/95l/7NV2J3CfQr6Iqgf3G9s9V5LiwMYiFGUAgHs9+P4wUul23TwtHjuBkFYcbiHgRhFLRB4clxDOaADD37Xi92f718WTzjLhPsS79crbGEgRlEMpJbrPTCsxx/P6MDDxZO6nBDyxECMXAkExx5bUrIGth6vpPQyJ+SJgRhFMRAcqONdtl68rtd03DLxnB7cH9MB+WAgRlEM5Ecz3mei5idFXk3JGvuO6S7WKR14GBvQ+zIq5IuBGEUtEJw+PXRWBx7wdxlv6n8vZ+N2NA8GYhSlQPA6BnaVvI4lwO8tHX67ZDj+eFmvs1q7h8T3dLGf+azuyh3Xn5mTmGEgRlEJpDOtr2M8X7j083KX9wT0CyTIffDi95hU4hdwtDEQI7/JEGRyhREI3raB3arUkBhdPKnLCfEUlUBMtzG6GIiR32QIMrlMgVQ6MC79++9K5icLb+vw2noAA6kHAzHymwxBJpcpkDBVOhPFQOrBQIz8JkOQydWIQILs1/sFAkF39UqZXpU3YSAOimogOAP19pCe2h2RikwTutLWpxZ+QTIQB0UxEPxsxLGQlUC6+3XSnhNPNl5JZyBNJCqBYIuBvxq8NFzbu24P5/R1lA4dlFnUr7+6R69fL8PCQJqIrUCwa2OC1zsweReyhclbSxSlDo3o6eLDOvAQ9sRlIE3CtGtSbyC1HBzXw3Rf4LWe+iMsYiAxhDfr4ZP+qpkEpoPbIPvuUQoE/CYuzGcLkWBrVS+/n8NAIgpv0UgNFeLArk3QSeD3NxQQ5PRq1AKptBWZzxY+GQWPUz3wfjHsIpZjIBFUjKMI+/WYBJVObZZ/X7kgnyAStUDg4Gm9X0fFFx4fbBmxta0WAsSW2isOYCARY5rk2dOFSVAeCt4xi+/D51D58XtbebkoBgJ+u0ClsBXBZMaxVqUt7u6jhccZgZgwkAjBW7Iff14qwjPm7LgOPlfplwzYTSsPy0tUA8GTAD74odInIhbhviKY0lBwHdhSBHm8ivB294lhHcSKo4HAoRH/U5u1CnJwXhTVQACfcoLHx+/TUcKE13Cw5ZgYlhhyOBA8yx0a0We5Pl0JAT476rW0DgKKciCAx+fx0+E/iZTCY/bOkF6OS0w5HEiR6XRtUDjuwNs7SnczKol6IEW4nfuOaTAdEpr5ycJWo9KZvuhrgkAA+8oHTwff7y7C7sHEcOGXXS1MvDgEAtiaIBIs9YTiThhFTRJIEULBATzOUpkmAn7ReKcsftnVbDVK4Wd5ve6AM0Nj/RJJCAW3e+dg5ccI8ASCg3gseK/YQlYc02SBlMJZGEwILBjPZwu/YAQR1j5z8bpLYTLFRentxyUeIzw+EKf7UbsmDoSoAo1jTQ9rvgAaSV4viJrJrAbSqZd38QtkRC8O60LULM5oIENSxjuQl2RQtyFndUjULAY0kFEp4xkI6FZkVPS8jC5ErjujcQyJB/9Azur+2LJkRaRDFyI35eWCJKU/cURyuraGbyCgkaQ1khEd7taFyC2FOAY1jqz4MAYCGkmnRjKsw6O6ELnipLTKsMaR07GvioEUaSgpDWVQh1igTxeiuBjTJafLqIYxomFkJYCELtZMTc30SyJxTodEduTzA93dXaNiCQOheGMgRAYMhMiAgRAZMBAiAwZCZMBAiAwYCJEBAyEyYCBEBgyEyICBEBkwECIDBkJkwECIDBgIkQEDITJgIEQGDITI338nLg98p7dnVCyxGsi/zmf6H963h4GQNbEPZG/qvj+2JZP36SpRqK5fXxi/8uHHx2MdyLZtW5/ddW93vxCF7P0PPhpbmP/sRKwDWZXEyMMPfEVaWlr4EaYUmsWlpSuXsle3tUh+MO6BnNvUlnx97+5d39YvEYXiUvbKW4tLy9/SQOJ9DIJAdCjd93S93r2jg5FQ3bJXdddq4UafDsWZQKC9fdNYate9fTokqsl7k1dfv7G4dPuJ1qlAbknIle4dnVldbt9JIpPV1dXZa7m5/0x9kktJXu7TL93mXiB3zG7YsOHyxo3J2daWDXldJ7rL4uJi69LK6taVlZW0rnpq3ZDveeKbPeM6tMJqIG/8O5NeXklkdEhkRV9v2uoctnrlMHZ+nFsHsiIv+cn+3p6UWGQ/kDczI5JIHNYhUcjyZ/p6e4bEIuuB/POtzGB+NXFWh0Shsn2ADtYDgbHzmVH9UX1CFBr7Ww9oSCDnz2dSN0XGE5Lo0FWiuuixx4WOTdLf09OT01WrGhII4IzW0oqMMhKqB+JIbpAhm6d2SzUsEMhkMp1zN/B/zE0c1VWiKuXPbN8kxxqx5ShqaCBF2JosL8uQ/vS08NiEfOjWYlYn6LgOR9tETvf29mSlwf4P8IbCQbr23ycAAAAASUVORK5CYII="},58881:function(ze){"use strict";ze.exports="data:image/png;base64,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"},28982:function(ze){"use strict";ze.exports="data:image/png;base64,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"},2487:function(ze){"use strict";ze.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAOyUlEQVR4nO3dTWwc5R3H8f9DQkKhxHYaEG2BGAqV0qaKUalaFalxuHGoYoTUIg6NubS3YlT1BFIcCS7tIeHYXnB6QLRShREHeqqdSqAitcJRU6ImQGwSIOTF63XIi4Pt6f/nsGLZzDzPzOzzzM7s/j7SxLMmPLv2Pt+dt7VjpKRqn0ZDsiI7V0WGTCSDYmRYqBAffnz67C2bbvrBvd8YmNObPc3oUhq1y9Hg6lV5SoMY0Uc2KNQRs3MnZXl55fKWO/q39XokRpeO+zyMvfpgRoU6DoFcunRZNmzY0PORGF06qlaP9kYi40Kl0QgEej0So0tHYKsRLckr+giG9CaVSHMg0MuRGF0KhwPwaFmm9N779SaVTGsg0KuRGF0KVVuMRqJVeVHvmXGUVFwg0IuRGF0Kwy1HNSQFAr0WidGlELUo6o/qckLvkXGUnC0Q6KVIjC6FmF+IpvTehoVKzxUI9EokRpfg9FTumJ7K3a+rVAFpAoFeiMToEhR3raonbSDQ7ZEYXYI6X4/G9U726ipVRJZAoJsjMboEw61HNWUNBLo1EqNLMHrNYzSK9JoHVUqeQKAbIzG6BDNfjyb1w25dqELyBgLdFonRJRgNJNIPVDHtBALdFInRJYjahWg4WtWr5lQ57QYC3RKJ0SUInr2qLh+BQDdEYnQJQgM5oIM/patUMb4CgapHYnQJYn4hmtbRd+oqVYzPQKDKkRhdgmAg1eU7EKhqJEaXIBhIdYUIBKoYidElCAZSXadPn5H52oKu+Ve1SIwuQTCQ6jp79rycPXde18KoUiRGlyAYSHWdn6/JJ5+c1bVwqhKJ0SUIBlJdFy9ekrkPTulaWFWIxOgSBAOptneOHtM/wyt7JEaXIBhItYU6kxWnzJEYXYJgINVWxHFIs7JGYnQJgoFU28rKivzv2Hu6VpwyRmJ0CYKBVN+HH52Wen1R14pTtkiMLkEwkOq7evUzefe9E7pWrDJFYnQJgoF0h5BX1W3KEonRJQgG0h1wLHL83ROyurqqt4pVhkiMLkEwkO5R1IXDOJ2OxOgSBAPpLgsLdfno4090rXidjMToEgQD6T6dOKvV0KlIjC5BMJDu1KmDduhEJEaXIBhI9+ql3S2jSxAMpLtduXJFTp76SD77bFlvFavISIwuQTCQ3oAfrsL7too+DVxUJEaXIBhI78C1kvn5BVmo1wvdohQRidElCAbSmxYvfCqX9LrJxUuXZWlpST8TVuhIjC5BMBACXGSEKxrL6kqY3bAb19/41r2DfT/SVe8YCFVfJIc295thCYCBUPUxECILBkJkwUCILBgIkQUDIbJgIEQWDITIgoEQWTAQIgsGQmTBQIgsGAiRBQMhsmAgRBYMhMiCgRBZMBAiCwZCZMFAiCwYCJEFAyGyYCBEFgyEyIKBEFkwECKLygXy/BNDUz97bmrH7ff06y2ioA6fObGw6y/P7pJnXprRm175D0TjkBUz9dpjz/Q/dOc2/QRRWG+cOio//evzC7Iu8h6J30A+j0O3ef2vPfasMBAqwrVAntM14z0Sf4E0xaG3hIFQUb4IBPxG4ieQljiAgVBRvhwI+Iuk/UBi4gAGQkW5PhDwE0l7gSTEAQyEihIfCLQfSf5ALHEAA6GiJAcC7UWSLxBHHMBAqCj2QCB/JNkDSREHMBAqijsQyBdJtkBSxgEMhIqSLhDIHkn6QDLEAQyEipI+EMgWSbpAMsYBDISKki0QSB+JO5AccQADoaJkDwTSRWIPJGccwECoKPkCAXckyYG0EQcwECpK/kDAHkl8IG3GAQyEitJeIJAcyfWBeIgDGAgVpf1AID6SLwfiKQ5gIFQUP4HA9ZF8EYjHOICBUFH8BQJfjuRaIJ7jAAZCRfEbCHwRiQkRBzAQKor/QOBaJEZe+s1liaKb9DNePbHtJ3LXpi26RhTWycVz8tLRf+iaZ8ZcMfLP30W6SkQxGAiRBQMhsmAgRBYMhMiCgRBZMBAiCwZCZMFAiCwYCJEFA6FYQzffLn3rNsrgxk269OlnRKYXT+qfIocvnZGFlSVd636VDgRP4v6tu3StPQvLSzKjTzomwKEL1yZBHge2Piw7br5N1+LtO/WmTAcc/+m5qbWvI6/dA/fJyMD9utwn/evtb8+buXhGJmvH5eC5/8rsUl0/050qHcjwrXfJ1Hce1zV/Fpav6BP/ruz78M3MT/z0tsdl56a7dC0exrtn5o+6lo9r/F3vvJwrQESBF5rGliKribNHcn2/qoCBWBz4+F9rT3za3QnXBIYn33tdJs4d0bXsXONnDaRfd6Fe+faIDG+6W2+1By8sT77/N31xOa63ugcDccCuxKPHJ1O9OromMGAiYSuSNrpmrvGzBII4pnS8oVtu11v+PD33dzlw+t+61h0YSAqY1A8c+ZMzEtcEbth36g0Z1y1TVq7x0waCXam3t//CeZyR16PHJrtmS8JAUsKWZNfRl62v/K4J3IDg8mxFXOOnDWRq28+97FYlwdeX5gWlChhIBq5XftcEbnZQD2xH339d19JzjZ8mkPFv/lj23vmQrtnN6eTGyQq8MDQmOnbHcEBvewwNeb6+MurqQA7padthfdW3wb44Xk0xcXboBHDBK39jwrRyTeBWtrHiuMZ3BYJdqxNDv9Q1O9cLAb7vE996RLbqeDZZv74y6vlAmk3c+4jsuW27riWzvTK6JnCryfnjaycA0nKN7wokzdeX9iwbXlhmh34lfes36q14rtCqgIG0mNTTnrt1NyIJXhHxyhjHNYHjuCZ1M9f4trEwoWsP/lrXkmWd0KNbtsuLuiVJkuf7XzYMpEWa3ZAH/nMw9oq1awLHmV78QA/+/6xrbq7xbYGM3fF9vRj4sK7Fqy8vyeDMHzKfOJjV75VtV8u89Xv9s7oYSAzXViRpN8Q1gZOkPS3qGt8WiOv/zXv9wrXbxkA6KFQgOGC3nelJ2hVxTcIktt22Zq7xbYFEP/yt/pkM94/HkZXre8VAOihUIK59a9+BQJpXcNf4SYG4vk+H9VTu0JGDupYdxh62PKa471OVMJAYoQLB40n677i4hldx2zGAa/ykQHDtAu+5SmI7M9frGEgM125D3kBwrIF99qRTo0njNrjGTwok79dDDCRWqIN0TGDsjiRNVmxFbG/RSDM+A/GLgbQIeZq3MYFtp0Ztuztpx2/FQPJjIC1euX9ERjYnbz3wHqVBPVaIk3YCu45xcCwStxVJO34rBpIfA2my/+5dMvb1B3Utma9X+JntexLf+5V08TDL+M0YSH49HwjegoFJhyvNeNOiS9KrO2SZwK7H3vx3G7KM36zdQPCz//gFDnnU9axc3O5oVXR1IL69oNcpxvR6RZKsE9j29+O2Ira/D63jN7QbiOt+bdK8SJUZA0kJF9PwRPu8ToFX5re/t0fX4rWeLcs6fgMDyY+BpIA38uFKc9KuVYNrIsVNYFwXSXovE+4Pu3QNecYHBpIfA3HAlmPkuJ9f2hA3gV2nlZsnb57xgYHkx0AsXMccrVwTKc8ExsVDbEWwaxdifGAgyRhIC+xOYb8fbxxMs9Vo5ppISRMYZ9JsP53XmMB5x283EPxGRxwvxcFjTzpdDQykg1yBYLKnOcWIv4NX6rVfUqDreeWdwOCaxNiK4Hglz/iusV2B2LieAwbSQWV7ctoJBFxvQcHxSp7xGUh+DMSjdgNxvQUFWznbL3tLGt/1fXq1dlxGjk3qWnausYt+DnxjIB61GwjY3oLikjQ+tjy2M2U41sIuXB5lew58YyAe+QjE9TXZ2Ma37b6B7f+1cT3eop8D3xiIRz4CAdc4SWzj4wA/6YIk4Bgn6U2YNmV7DnxjIB65JrZtAjfDKVXbW1CS2MZ3/dgt2P7/JGV7DnxjIB75CgRcr/hxXOO7drPwe3hdv6C7VdmeA98YiEc+A3EdWMdxje86SwZZIsFFQvwyulFLyEU/B74xEI98BgKu6xet0oyf5iwZTifjLTb49wfjIAz8e4bj+tgQsk3Rz4FvDMQj34FgItregtIqzfg4vsHjTDMmQml9Z0H/upvW/hmEtLK+n61sGIhHmHg+A4EsW5G046fZ1fIB74TG9z/N7lpZMRCPQgQCroPrhizjZwkvj26IAxiIR6ECSfuKn3X8tONmhWsq2K2qehzAQDwKFQi4xoY84+N7iINt19hp4Fcijc1NSZrfVF8VDMQj1yTOM4EbXF8rtDM+tib4zS6uM1xx8H2e0K0Gfo6m21Q6EJxiHN3yXV2LN7u0WOiThkk2uHGTrsWb0NOmeGNgXpjAOLOVpN3xAd/TET2Fiyvv0Bp842ds1hY9zkCQ7d5nmVU6EKLQGAiRBQMhsmAgRBYMhMiCgRBZMBAiCwZCZMFAiCwYCJEFAyGyMLoEMb8QTevoO3WVKKxIDm3uN8MSAAOh6mMgRBYMhMiCgRBZMBAiCwZCZMFAiCwYCJEFAyGyYCBEFgyEyIKBEFkwECILBkJkwUCILBgIkQUDIbJgIEQWVQzkfD06oIM/patEQUUiL3ytz4zpqnc6h8PQQMZ18L26ShRUJLJPAxmXAHQOh1G7EA1HqzKlq0RBmRtk18CtZloCCBYIzNejSD8QBbW5zwSbx8EGBg1kUj/s1oUolFc1kBH9GETQQGqL0ahuQ17UVaIgdNvx5MAmMyGBhA0kivqjuszqvfTpTSK/IqmbPhkcMGZBbwURNBDg2SwKJQp49qpB525Y3IpQEAVsPSB4IFCrR2Na+35dJfJCJ+7TA33mgK4GpfdTDL71hLwJ+NaSVoUFwl0t8qKgXauGwgKB2qfRULQs03qvjISyQxzrZXjgq2ZGbxWi0EBg7S0oKzKp98xIKL0OxAGFBwLcklAmHYoDOhII1C5Hg9HS2pZkh94kihfJYbNRRga+YmalAzoWSMPahcRIxvSR9OlNomt0qxEZORD6QqBLxwMBbE1Wr8q4Ppg9epN6XCRy8IYNMt6prUYznZPl8Xkoo7pFGdVHtlU/Rb0ikjndYkxoGBNlCKOhVIE0w4G8rMjwqsiQBjOoj3Snfpq6ge4+6Z8zkZHZG/SjrJPpThyAp/F/OcKpbw/+s/sAAAAASUVORK5CYII="},3164:function(ze){"use strict";ze.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAANM0lEQVR4nO3cfWxddR3H8e/t07buoZ1YBTalG497CNwqYiqadhL8Rw1V/1LRNVH/AhOJmsjAAFHQRIxLhP802QSj/+CaKP9IcJ0CC5h4S8QNw4SOdA+khd6WsYe29x6/Hw533J2d8+t9OL9z7/ndzyu59HdKe+/W/N77/e45Z8tIA8zOzmaXltp2SsbL6uGwUCwOvTIpHR3tS10dHdNdnZ1P3rD9qu/op6kOiQaiYfQuFtp+lRFvVCh2CKQcYlnb3f3w9duuvFsPqQaJBaJxZJcKmf067NUHWRAMpGRNd3fu4zdc8zEdUpUSCUTj6Nc4cjpkHBZFBQKrV606cmP22qt1SFVIJJDpmTxWjmEhq0yBACOpnvVAZmZmRzzJ7NMhWbZcIMBIqmM9kOmZ2TF9mdt0SJZVEggwksolEEje0w+UgEoDAUZSGauB6JtznLnK6ZASUE0gwEiWZzWQ6enZYcm8e2qXElBtIMBIzBiIQ2oJBBhJNAbikFoDAUYSjoE4pJ5AgJFcjIE4pN5AgJFciIE4JI5AgJG8j4E4JK5AgJH4GIhD4gwEGIkwEJfEHQi0eiQMxCE2AoFWjoSBOMRWINCqkTAQh9gMBFoxEgbiENuBQKtFwkAckkQg0EqRMBCHJBUItEokDMQhSQYCrRAJA3FI0oGA65EwEIc0IhBwORIG4pBGBQKuRsJAHNLIQMDFSBiIQxodCLgWCQNxSDMEAi5FwkAc0iyBgCuRMBCHNFMg4EIkDMQhzRYIpD0SBuKQZgwE0hwJA3FIswYCaY2EgTikmQOBNEbCQBzS7IFA2iJhIA5JQyCQpkgYiEPSEgikJRIG4pA0BQJpiISBOCRtgUCzR8JAHJLGQKCZI2EgDklrINCskTAQh6Q5EGjGSBiIQ9IeCDRbJAzEIS4EAs0UCQNxiCuBQLNEwkAc4lIg0AyRMBCHuBYINDoSBuIQFwOBRkbCQBziaiDQqEgYiENcDgQaEQkDccj/Xj8u584t6MhdSUfCQBwyOXVSTp85qyO3rV614tCN2S3bdGgdA3HIm7Pz8sbMWzpy37rV3X8YuP6ar+nQKgbikIXFJTkyOaUj97W1tXkb+j64afPmy4/qoTUZfVjDQJJ37OSMzL19SkfuW7du9djAtqu/pENrGIhjCoWivKKrSLFY1CO3dXV2nhm8cVu3Dq1hIA46q2ey8Ia9FSIZGsxancNWn5yBNA4iOfbGjPOnfT/y4Q/123wfktGHNQyk8fLzp+TN/LyzoVzSs/au7Vuv3K1DKxhIi8AZrkU8lvShH13R1dX51as2bfijDq1gIJRunrejr2/9uFjCQCjdGAiRAQMhMmAgRAYMhMiAgRAZMBAiAwZCZMBAiAwYCJEBAyEyYCBEBgyEyICBEBkwECIDBkJkwECIDBgIkQEDITJgIEQGDITIIM2B7J+Y/sL2jZ1/1iGRFS9NLX5xR7bvLzq0wlog/aP/yfb2eI889eONN+shkRW3/mTq2fxc5s7JPdsm9DB2VgJBHEuytL9ndfvk+AMbs/opIiuG75uamHun0N8hHTtsRBJ7IKU4PJHe3tXtEwyEbEIg+XcK+Bes8zYi0eeNT3kceigMhGwrBaJD0ckceyT6nPEIxgEMhGwrDwR0QscaiT5f/cLiAAZCtgUDAZ3UsUWiz1WfqDiAgZBtYYGATuxYItHnqZ0pDmAgZFtUIKCTu+5I9Dlqs1wcwEDINlMgoBO8rkj0+6tXSRzAQMi25QIBneQ1R6LfW51K4wAGQrZVEgjoRK8pEv2+ylUTBzAQsq3SQEAne9WR6PdUpto4gIGQbdUEAjrhq4pEv355tcQBDIRsqzYQ0ElfcST6tWa1xgEMhGyrJRDQiV9RJPp10eqJAxgI2VZrIKCTf9lI9GvC1RsHMBCyrZ5AQAMwRqL//2JxxAEMhGyrNxDQCCIj0f93oS3fP37FqXz+cU+8NXpYl8vWd809dPulQzoksmLX4ycPnJhd6NFhXTKSObWmt/f2w7+8/KgenpfRxwW23+sNF4qyX4dELaW9TXa89NPMuJRhIETvYSBEBgyEyICBEBkwECIDBkJkwECIDBgIkQEDITJwOpB1K0WuvUwHDfDfEyLzZ0U+sUkPIhzPixyb1UGdKnmN6/TnsFZ/Hkl7W38GL+vPIq2cDuSmTSJ7vq2DBhj9jcgLr4nccYs+PqufCIGJ+5VH/JBq9c1Pifzo8zoIgcl56y/859+rPwdTSLb8U38GO/VnkVYMxJJSIPCnO/0/wcM89pzIz57UQQ02rBd54g5dKVfpQYjyXwMDqQ0DsaR8cmIiI5KoLU7511Zjz7f097hZByGC4TGQ2jAQS4KT3rQVqmWrZXo+7Pnx+uXPx0Bqw0AswQQtDwRMkzT4J74JViTT1urLGhsiKWd6bZsYiGMOPaj/CbH1Hv1PnXBW7akf1r/VMm2tHv2bPp7WQZ2iTi7E9fxpwUACbAYCt2wV+fXXdRCikq2WaWsV55/WDMTHQAJsBwIIBKGEMW21TFsrnNLF1gqRxYGB+BhIQBKBYKuFs1qX64QPE7XVMm2t7nlCZN+/dBATBuJjIAFJBAKmEwhYBYJbLdPW6ulDIt/9vQ5ixEB8DCQgqUDgbp3w39CJH6Z8q7Xc1qp0tTxODMTHQAKSDARbLawiUVfZS1st09YKKwdWkLgxEB8DCUgyEEAceD8SBlutsVz4RIXyVSZuDMTHQAKSDgSiJqPJ8Vn/rFXcW6uSqF8TA2EgoWwGAlhFsJpUCnEEr5bHiYH4GEhAowLBG3FEEnWVvVwSk5SB+BhIQKMCAdOp3BKsGlg9bGMgPgYS0MhAYLmbCm992H/zbhsD8TGQgEYGgtO+f/2Bfgy53lFi67RuEAPxMZCARgZiukerZP6MXmV/1P4qwkB8DCSgUYEgDARSiRde1YuIv9WBRQzEx0ACGhEIzmBF3UoS5edPivxOLxTawkB8DCSgEYGYbiXBBcGou35xNgtntWxgID4GEpB0IKZTu3gzjgmJ6yNhDp/Q9yMaiQ0MxMdAApIMBFfOsXqEba3K79KNmqxg636sqNdkIAwklI1AntCVYYtGEiZ4OherCIIKU7rrN04MxMdAApIKJGoCAsJAIOUQByIJg1O+2GphtYlL1K+PgTCQUHEGYprs5VuroKhJC/jrtvhrt3GJei0GwkBCxRUIrpZja4VTu2GwcmAFiYKwEFiY5b63GgzEx0ACbAdi+mu2mNyY5CaIA5GEwVX2zz2sH0NWn2oxEB8DCbAZiOkfajBtrYKiJi/EdZU96jUYCAMJVW8g2FqZbkTEyoEVpFJYRbCahInjKjsD8TGQAFuB4D4r3G8VBmEgkGogDkQSBlutem9oZCA+BhJgIxCEgUDCVLO1CoqaxFDvVfao52YgDCRUrYHEvbUKwiqC1SRMPZOZgfgYSEDcgeBWkqgbEREGAqkH4kAkUWq9oZGB+BhIQJyBmG5ErGdrFRQ1mQHvQ7DVqvZ1op6TgbR4IETlDj+UuaiHiz4BW3Z5nn4gaiVzGkivfrxAaCBbd3ljWshtOiRqDRnZe/jBzKgEhAay5V5vRIqyT4dELSHs/QeEBgK6zRoXkSF9ELktYvWAyECy93u95xZkUkR69EHkJH1b/mJXpwxP3J/J6+FFIgOBbbu8bFFkTIdX6IPIKe/FMaJxTEoEYyDw7kqyKLvFk516SOQEnfgPdHXJbo0jr4eR9Osqo6H0aygjGsqIHsKQPojS4oBO9ryXkfEVnTKmYUxKBfR77Jmenh3WdWy/Dons8LwdfX3rx8USBkLpxkCIDBgIkQEDITJgIEQGDITIgIEQGTAQIgMGQmTAQIgMGAiRAQMhMmAgRAYMhMiAgRAZMBAiAwZCZMBAiAwYCFG0l195bcdnBgfGxRKrgfzjYG74uqs3MRCyJvWBbO7f+FhXZ+dGPSSK1alTpyemTrxxV6oDWbt2zX0bLu0bFqKYvX785IHT75y5P9WBFCUzdt2VH5W2tjb+E6YUm4XFxakjk8fWtok3kvZA9q/s6nxm8xUbPq2fIorFkcmp5xcWlz6pgaT7PQgC0aH0XbL+mb4P9DASqtvkMd1anT47pENxJhDo7l55oH/DpUM6JKrJq0ePPXN2YfH8H7ROBfKujEz1faB3Uh/nf5NEJsVice7N/Py/p9/K94snG/VT57kXyPvm2tvbX1uxonOuo63d02OiCywsLHQsFoprCoVCVg9DdbR7AzffNDChQyusBvLsC7nsUiGT0yGRFUODWatz2OqTw4GDE1wdyApPvKPDgwP9YpH9QJ7LjUkmc5sOiWLm7R0aHBgVi6wH8vfncyNeMbNPh0Sxsv0GHawHAgcO5sb1pYaEKDb2Vw9IJJCDB3P950QmMpLp0UOiuuh7jxd7VsrwwMBAXg+tSiQQwBmtxYKMMxKqB+LobJdRm6d2yyUWCORyud75s7JbX3anHhJVydu7bqV8L4mVoyTRQEqwmiwtyai+elb43oQi6GoxpxN0QofjXSJ7BgcHJiVh/wemziNQhWOwlgAAAABJRU5ErkJggg=="},88745:function(ze){"use strict";ze.exports="data:image/png;base64,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"},49321:function(ze){"use strict";ze.exports="data:image/png;base64,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"},96908:function(ze){"use strict";ze.exports="data:image/png;base64,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"},57177:function(ze){"use strict";ze.exports="data:image/png;base64,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"},81378:function(ze){"use strict";ze.exports="data:image/png;base64,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"},90302:function(ze,be,de){"use strict";de.d(be,{ZP:function(){return we}});const le=-1,Me=0,Ie=1,Pe=2,Ge=3,Oe=4,Ve=5,ot=6,Je=7,Xe=8,vt=typeof self=="object"?self:globalThis,st=(De,Re)=>{const Ze=(rt,ft)=>(De.set(ft,rt),rt),nt=rt=>{if(De.has(rt))return De.get(rt);const[ft,xt]=Re[rt];switch(ft){case Me:case le:return Ze(xt,rt);case Ie:{const at=Ze([],rt);for(const wt of xt)at.push(nt(wt));return at}case Pe:{const at=Ze({},rt);for(const[wt,Mt]of xt)at[nt(wt)]=nt(Mt);return at}case Ge:return Ze(new Date(xt),rt);case Oe:{const{source:at,flags:wt}=xt;return Ze(new RegExp(at,wt),rt)}case Ve:{const at=Ze(new Map,rt);for(const[wt,Mt]of xt)at.set(nt(wt),nt(Mt));return at}case ot:{const at=Ze(new Set,rt);for(const wt of xt)at.add(nt(wt));return at}case Je:{const{name:at,message:wt}=xt;return Ze(new vt[at](wt),rt)}case Xe:return Ze(BigInt(xt),rt);case"BigInt":return Ze(Object(BigInt(xt)),rt);case"ArrayBuffer":return Ze(new Uint8Array(xt).buffer,xt);case"DataView":{const{buffer:at}=new Uint8Array(xt);return Ze(new DataView(at),xt)}}return Ze(new vt[ft](xt),rt)};return nt},_t=De=>st(new Map,De)(0),Ue="",{toString:te}={},{keys:ne}=Object,fe=De=>{const Re=typeof De;if(Re!=="object"||!De)return[Me,Re];const Ze=te.call(De).slice(8,-1);switch(Ze){case"Array":return[Ie,Ue];case"Object":return[Pe,Ue];case"Date":return[Ge,Ue];case"RegExp":return[Oe,Ue];case"Map":return[Ve,Ue];case"Set":return[ot,Ue];case"DataView":return[Ie,Ze]}return Ze.includes("Array")?[Ie,Ze]:Ze.includes("Error")?[Je,Ze]:[Pe,Ze]},se=([De,Re])=>De===Me&&(Re==="function"||Re==="symbol"),pe=(De,Re,Ze,nt)=>{const rt=(xt,at)=>{const wt=nt.push(xt)-1;return Ze.set(at,wt),wt},ft=xt=>{if(Ze.has(xt))return Ze.get(xt);let[at,wt]=fe(xt);switch(at){case Me:{let Xt=xt;switch(wt){case"bigint":at=Xe,Xt=xt.toString();break;case"function":case"symbol":if(De)throw new TypeError("unable to serialize "+wt);Xt=null;break;case"undefined":return rt([le],xt)}return rt([at,Xt],xt)}case Ie:{if(wt){let pn=xt;return wt==="DataView"?pn=new Uint8Array(xt.buffer):wt==="ArrayBuffer"&&(pn=new Uint8Array(xt)),rt([wt,[...pn]],xt)}const Xt=[],bn=rt([at,Xt],xt);for(const pn of xt)Xt.push(ft(pn));return bn}case Pe:{if(wt)switch(wt){case"BigInt":return rt([wt,xt.toString()],xt);case"Boolean":case"Number":case"String":return rt([wt,xt.valueOf()],xt)}if(Re&&"toJSON"in xt)return ft(xt.toJSON());const Xt=[],bn=rt([at,Xt],xt);for(const pn of ne(xt))(De||!se(fe(xt[pn])))&&Xt.push([ft(pn),ft(xt[pn])]);return bn}case Ge:return rt([at,xt.toISOString()],xt);case Oe:{const{source:Xt,flags:bn}=xt;return rt([at,{source:Xt,flags:bn}],xt)}case Ve:{const Xt=[],bn=rt([at,Xt],xt);for(const[pn,fn]of xt)(De||!(se(fe(pn))||se(fe(fn))))&&Xt.push([ft(pn),ft(fn)]);return bn}case ot:{const Xt=[],bn=rt([at,Xt],xt);for(const pn of xt)(De||!se(fe(pn)))&&Xt.push(ft(pn));return bn}}const{message:Mt}=xt;return rt([at,{name:wt,message:Mt}],xt)};return ft},Se=(De,{json:Re,lossy:Ze}={})=>{const nt=[];return pe(!(Re||Ze),!!Re,new Map,nt)(De),nt};var we=typeof structuredClone=="function"?(De,Re)=>Re&&("json"in Re||"lossy"in Re)?_t(Se(De,Re)):structuredClone(De):(De,Re)=>_t(Se(De,Re))},11630:function(ze,be,de){"use strict";de.d(be,{P:function(){return Me},Q:function(){return le}});function le(Ie){const Pe=[],Ge=String(Ie||"");let Oe=Ge.indexOf(","),Ve=0,ot=!1;for(;!ot;){Oe===-1&&(Oe=Ge.length,ot=!0);const Je=Ge.slice(Ve,Oe).trim();(Je||!ot)&&Pe.push(Je),Ve=Oe+1,Oe=Ge.indexOf(",",Ve)}return Pe}function Me(Ie,Pe){const Ge=Pe||{};return(Ie[Ie.length-1]===""?[...Ie,""]:Ie).join((Ge.padRight?" ":"")+","+(Ge.padLeft===!1?"":" ")).trim()}},87342:function(ze,be,de){"use strict";de.d(be,{ok:function(){return Ie},t1:function(){return Pe}});function le(Ge){return Ge}function Me(){}function Ie(){}function Pe(){}},40797:function(ze,be,de){"use strict";de.d(be,{N:function(){return _t}});var le=de(81994),Me=de(43309);function Ie(te,ne){return Pe(te,ne||{})||{type:"root",children:[]}}function Pe(te,ne){const fe=Ge(te,ne);return fe&&ne.afterTransform&&ne.afterTransform(te,fe),fe}function Ge(te,ne){switch(te.nodeType){case 1:return Xe(te,ne);case 3:return ot(te);case 8:return Je(te);case 9:return Oe(te,ne);case 10:return Ve();case 11:return Oe(te,ne);default:return}}function Oe(te,ne){return{type:"root",children:vt(te,ne)}}function Ve(){return{type:"doctype"}}function ot(te){return{type:"text",value:te.nodeValue||""}}function Je(te){return{type:"comment",value:te.nodeValue||""}}function Xe(te,ne){const fe=te.namespaceURI,se=fe===Me.t.svg?le.s:le.h,pe=fe===Me.t.html?te.tagName.toLowerCase():te.tagName,Se=fe===Me.t.html&&pe==="template"?te.content:te,we=te.getAttributeNames(),De={};let Re=-1;for(;++Re<we.length;)De[we[Re]]=te.getAttribute(we[Re])||"";return se(pe,De,vt(Se,ne))}function vt(te,ne){const fe=te.childNodes,se=[];let pe=-1;for(;++pe<fe.length;){const Se=Pe(fe[pe],ne);Se!==void 0&&se.push(Se)}return se}const st=new DOMParser;function _t(te,ne){const fe=ne!=null&&ne.fragment?Ue(te):st.parseFromString(te,"text/html");return Ie(fe)}function Ue(te){const ne=document.createElement("template");return ne.innerHTML=te,ne.content}},91378:function(ze,be,de){"use strict";de.d(be,{l:function(){return se}});var le=de(10502);const Me=function(xt,at,wt){const Mt=(0,le.O)(wt);if(!xt||!xt.type||!xt.children)throw new Error("Expected parent node");if(typeof at=="number"){if(at<0||at===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(at=xt.children.indexOf(at),at<0)throw new Error("Expected child node or index");for(;++at<xt.children.length;)if(Mt(xt.children[at],at,xt))return xt.children[at]},Ie=function(xt,at,wt,Mt,Xt){const bn=Pe(at);if(wt!=null&&(typeof wt!="number"||wt<0||wt===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite `index`");if(Mt!=null&&(!Mt.type||!Mt.children))throw new Error("Expected valid `parent`");if(wt==null!=(Mt==null))throw new Error("Expected both `index` and `parent`");return Je(xt)?bn.call(Xt,xt,wt,Mt):!1},Pe=function(xt){if(xt==null)return ot;if(typeof xt=="string")return Oe(xt);if(typeof xt=="object")return Ge(xt);if(typeof xt=="function")return Ve(xt);throw new Error("Expected function, string, or array as `test`")};function Ge(xt){const at=[];let wt=-1;for(;++wt<xt.length;)at[wt]=Pe(xt[wt]);return Ve(Mt);function Mt(...Xt){let bn=-1;for(;++bn<at.length;)if(at[bn].apply(this,Xt))return!0;return!1}}function Oe(xt){return Ve(at);function at(wt){return wt.tagName===xt}}function Ve(xt){return at;function at(wt,Mt,Xt){return!!(Je(wt)&&xt.call(this,wt,typeof Mt=="number"?Mt:void 0,Xt||void 0))}}function ot(xt){return!!(xt&&typeof xt=="object"&&"type"in xt&&xt.type==="element"&&"tagName"in xt&&typeof xt.tagName=="string")}function Je(xt){return xt!==null&&typeof xt=="object"&&"type"in xt&&"tagName"in xt}const Xe=/\n/g,vt=/[\t ]+/g,st=Pe("br"),_t=Pe(rt),Ue=Pe("p"),te=Pe("tr"),ne=Pe(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",nt,ft]),fe=Pe(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function se(xt,at){const wt=at||{},Mt="children"in xt?xt.children:[],Xt=fe(xt),bn=Ze(xt,{whitespace:wt.whitespace||"normal",breakBefore:!1,breakAfter:!1}),pn=[];(xt.type==="text"||xt.type==="comment")&&pn.push(...we(xt,{whitespace:bn,breakBefore:!0,breakAfter:!0}));let fn=-1;for(;++fn<Mt.length;)pn.push(...pe(Mt[fn],xt,{whitespace:bn,breakBefore:fn?void 0:Xt,breakAfter:fn<Mt.length-1?st(Mt[fn+1]):Xt}));const gn=[];let Nt;for(fn=-1;++fn<pn.length;){const ut=pn[fn];typeof ut=="number"?Nt!==void 0&&ut>Nt&&(Nt=ut):ut&&(Nt!==void 0&&Nt>-1&&gn.push(`
`.repeat(Nt)||" "),Nt=-1,gn.push(ut))}return gn.join("")}function pe(xt,at,wt){return xt.type==="element"?Se(xt,at,wt):xt.type==="text"?wt.whitespace==="normal"?we(xt,wt):De(xt):[]}function Se(xt,at,wt){const Mt=Ze(xt,wt),Xt=xt.children||[];let bn=-1,pn=[];if(ne(xt))return pn;let fn,gn;for(st(xt)||te(xt)&&Me(at,xt,te)?gn=`
`:Ue(xt)?(fn=2,gn=2):fe(xt)&&(fn=1,gn=1);++bn<Xt.length;)pn=pn.concat(pe(Xt[bn],xt,{whitespace:Mt,breakBefore:bn?void 0:fn,breakAfter:bn<Xt.length-1?st(Xt[bn+1]):gn}));return _t(xt)&&Me(at,xt,_t)&&pn.push(" "),fn&&pn.unshift(fn),gn&&pn.push(gn),pn}function we(xt,at){const wt=String(xt.value),Mt=[],Xt=[];let bn=0;for(;bn<=wt.length;){Xe.lastIndex=bn;const gn=Xe.exec(wt),Nt=gn&&"index"in gn?gn.index:wt.length;Mt.push(Re(wt.slice(bn,Nt).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),bn===0?at.breakBefore:!0,Nt===wt.length?at.breakAfter:!0)),bn=Nt+1}let pn=-1,fn;for(;++pn<Mt.length;)Mt[pn].charCodeAt(Mt[pn].length-1)===8203||pn<Mt.length-1&&Mt[pn+1].charCodeAt(0)===8203?(Xt.push(Mt[pn]),fn=void 0):Mt[pn]?(typeof fn=="number"&&Xt.push(fn),Xt.push(Mt[pn]),fn=0):(pn===0||pn===Mt.length-1)&&Xt.push(0);return Xt}function De(xt){return[String(xt.value)]}function Re(xt,at,wt){const Mt=[];let Xt=0,bn;for(;Xt<xt.length;){vt.lastIndex=Xt;const pn=vt.exec(xt);bn=pn?pn.index:xt.length,!Xt&&!bn&&pn&&!at&&Mt.push(""),Xt!==bn&&Mt.push(xt.slice(Xt,bn)),Xt=pn?bn+pn[0].length:bn}return Xt!==bn&&!wt&&Mt.push(""),Mt.join(" ")}function Ze(xt,at){if(xt.type==="element"){const wt=xt.properties||{};switch(xt.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return wt.wrap?"pre-wrap":"pre";case"td":case"th":return wt.noWrap?"nowrap":at.whitespace;case"textarea":return"pre-wrap";default:}}return at.whitespace}function nt(xt){return!!(xt.properties||{}).hidden}function rt(xt){return xt.tagName==="td"||xt.tagName==="th"}function ft(xt){return xt.tagName==="dialog"&&!(xt.properties||{}).open}},81994:function(ze,be,de){"use strict";de.d(be,{h:function(){return ne},s:function(){return fe}});var le=de(58222),Me=de(11630);const Ie=/[#.]/g;function Pe(se,pe){const Se=se||"",we={};let De=0,Re,Ze;for(;De<Se.length;){Ie.lastIndex=De;const nt=Ie.exec(Se),rt=Se.slice(De,nt?nt.index:Se.length);rt&&(Re?Re==="#"?we.id=rt:Array.isArray(we.className)?we.className.push(rt):we.className=[rt]:Ze=rt,De+=rt.length),nt&&(Re=nt[0],De++)}return{type:"element",tagName:Ze||pe||"div",properties:we,children:[]}}var Ge=de(84837),Oe=de(64326),Ve=de(71523);function ot(se,pe,Se){const we=Se?Ue(Se):void 0;function De(Re,Ze,...nt){let rt;if(Re==null){rt={type:"root",children:[]};const ft=Ze;nt.unshift(ft)}else{rt=Pe(Re,pe);const ft=rt.tagName.toLowerCase(),xt=we?we.get(ft):void 0;if(rt.tagName=xt||ft,Je(Ze))nt.unshift(Ze);else for(const[at,wt]of Object.entries(Ze))Xe(se,rt.properties,at,wt)}for(const ft of nt)vt(rt.children,ft);return rt.type==="element"&&rt.tagName==="template"&&(rt.content={type:"root",children:rt.children},rt.children=[]),rt}return De}function Je(se){if(se===null||typeof se!="object"||Array.isArray(se))return!0;if(typeof se.type!="string")return!1;const pe=se,Se=Object.keys(se);for(const we of Se){const De=pe[we];if(De&&typeof De=="object"){if(!Array.isArray(De))return!0;const Re=De;for(const Ze of Re)if(typeof Ze!="number"&&typeof Ze!="string")return!0}}return!!("children"in se&&Array.isArray(se.children))}function Xe(se,pe,Se,we){const De=(0,Ge.s)(se,Se);let Re;if(we!=null){if(typeof we=="number"){if(Number.isNaN(we))return;Re=we}else typeof we=="boolean"?Re=we:typeof we=="string"?De.spaceSeparated?Re=(0,Ve.Q)(we):De.commaSeparated?Re=(0,Me.Q)(we):De.commaOrSpaceSeparated?Re=(0,Ve.Q)((0,Me.Q)(we).join(" ")):Re=st(De,De.property,we):Array.isArray(we)?Re=[...we]:Re=De.property==="style"?_t(we):String(we);if(Array.isArray(Re)){const Ze=[];for(const nt of Re)Ze.push(st(De,De.property,nt));Re=Ze}De.property==="className"&&Array.isArray(pe.className)&&(Re=pe.className.concat(Re)),pe[De.property]=Re}}function vt(se,pe){if(pe!=null)if(typeof pe=="number"||typeof pe=="string")se.push({type:"text",value:String(pe)});else if(Array.isArray(pe))for(const Se of pe)vt(se,Se);else if(typeof pe=="object"&&"type"in pe)pe.type==="root"?vt(se,pe.children):se.push(pe);else throw new Error("Expected node, nodes, or string, got `"+pe+"`")}function st(se,pe,Se){if(typeof Se=="string"){if(se.number&&Se&&!Number.isNaN(Number(Se)))return Number(Se);if((se.boolean||se.overloadedBoolean)&&(Se===""||(0,Oe.F)(Se)===(0,Oe.F)(pe)))return!0}return Se}function _t(se){const pe=[];for(const[Se,we]of Object.entries(se))pe.push([Se,we].join(": "));return pe.join("; ")}function Ue(se){const pe=new Map;for(const Se of se)pe.set(Se.toLowerCase(),Se);return pe}const te=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],ne=ot(le.dy,"div"),fe=ot(le.YP,"g",te)},26735:function(ze,be,de){"use strict";de.d(be,{f:function(){return Me}});var le=de(80722);function Me(Ie,Pe,Ge,Oe){const Ve=Oe?Oe-1:Number.POSITIVE_INFINITY;let ot=0;return Je;function Je(vt){return(0,le.xz)(vt)?(Ie.enter(Ge),Xe(vt)):Pe(vt)}function Xe(vt){return(0,le.xz)(vt)&&ot++<Ve?(Ie.consume(vt),Xe):(Ie.exit(Ge),Pe(vt))}}},80722:function(ze,be,de){"use strict";de.d(be,{AF:function(){return Oe},Av:function(){return Pe},B8:function(){return st},Ch:function(){return ot},H$:function(){return Me},Xh:function(){return vt},jv:function(){return le},n9:function(){return Ie},pY:function(){return Ge},sR:function(){return Ve},xz:function(){return Xe},z3:function(){return Je}});const le=_t(/[A-Za-z]/),Me=_t(/[\dA-Za-z]/),Ie=_t(/[#-'*+\--9=?A-Z^-~]/);function Pe(Ue){return Ue!==null&&(Ue<32||Ue===127)}const Ge=_t(/\d/),Oe=_t(/[\dA-Fa-f]/),Ve=_t(/[!-/:-@[-`{-~]/);function ot(Ue){return Ue!==null&&Ue<-2}function Je(Ue){return Ue!==null&&(Ue<0||Ue===32)}function Xe(Ue){return Ue===-2||Ue===-1||Ue===32}const vt=_t(new RegExp("\\p{P}|\\p{S}","u")),st=_t(/\s/);function _t(Ue){return te;function te(ne){return ne!==null&&ne>-1&&Ue.test(String.fromCharCode(ne))}}},58222:function(ze,be,de){"use strict";de.d(be,{dy:function(){return te},YP:function(){return ne}});class le{constructor(se,pe,Se){this.normal=pe,this.property=se,Se&&(this.space=Se)}}le.prototype.normal={},le.prototype.property={},le.prototype.space=void 0;function Me(fe,se){const pe={},Se={};for(const we of fe)Object.assign(pe,we.property),Object.assign(Se,we.normal);return new le(pe,Se,se)}var Ie=de(64326),Pe=de(95516);function Ge(fe){const se={},pe={};for(const[Se,we]of Object.entries(fe.properties)){const De=new Pe.I(Se,fe.transform(fe.attributes||{},Se),we,fe.space);fe.mustUseProperty&&fe.mustUseProperty.includes(Se)&&(De.mustUseProperty=!0),se[Se]=De,pe[(0,Ie.F)(Se)]=Se,pe[(0,Ie.F)(De.attribute)]=Se}return new le(se,pe,fe.space)}var Oe=de(56488);const Ve=Ge({properties:{ariaActiveDescendant:null,ariaAtomic:Oe.booleanish,ariaAutoComplete:null,ariaBusy:Oe.booleanish,ariaChecked:Oe.booleanish,ariaColCount:Oe.number,ariaColIndex:Oe.number,ariaColSpan:Oe.number,ariaControls:Oe.spaceSeparated,ariaCurrent:null,ariaDescribedBy:Oe.spaceSeparated,ariaDetails:null,ariaDisabled:Oe.booleanish,ariaDropEffect:Oe.spaceSeparated,ariaErrorMessage:null,ariaExpanded:Oe.booleanish,ariaFlowTo:Oe.spaceSeparated,ariaGrabbed:Oe.booleanish,ariaHasPopup:null,ariaHidden:Oe.booleanish,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Oe.spaceSeparated,ariaLevel:Oe.number,ariaLive:null,ariaModal:Oe.booleanish,ariaMultiLine:Oe.booleanish,ariaMultiSelectable:Oe.booleanish,ariaOrientation:null,ariaOwns:Oe.spaceSeparated,ariaPlaceholder:null,ariaPosInSet:Oe.number,ariaPressed:Oe.booleanish,ariaReadOnly:Oe.booleanish,ariaRelevant:null,ariaRequired:Oe.booleanish,ariaRoleDescription:Oe.spaceSeparated,ariaRowCount:Oe.number,ariaRowIndex:Oe.number,ariaRowSpan:Oe.number,ariaSelected:Oe.booleanish,ariaSetSize:Oe.number,ariaSort:null,ariaValueMax:Oe.number,ariaValueMin:Oe.number,ariaValueNow:Oe.number,ariaValueText:null,role:null},transform(fe,se){return se==="role"?se:"aria-"+se.slice(4).toLowerCase()}});function ot(fe,se){return se in fe?fe[se]:se}function Je(fe,se){return ot(fe,se.toLowerCase())}const Xe=Ge({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Oe.commaSeparated,acceptCharset:Oe.spaceSeparated,accessKey:Oe.spaceSeparated,action:null,allow:null,allowFullScreen:Oe.boolean,allowPaymentRequest:Oe.boolean,allowUserMedia:Oe.boolean,alt:null,as:null,async:Oe.boolean,autoCapitalize:null,autoComplete:Oe.spaceSeparated,autoFocus:Oe.boolean,autoPlay:Oe.boolean,blocking:Oe.spaceSeparated,capture:null,charSet:null,checked:Oe.boolean,cite:null,className:Oe.spaceSeparated,cols:Oe.number,colSpan:null,content:null,contentEditable:Oe.booleanish,controls:Oe.boolean,controlsList:Oe.spaceSeparated,coords:Oe.number|Oe.commaSeparated,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Oe.boolean,defer:Oe.boolean,dir:null,dirName:null,disabled:Oe.boolean,download:Oe.overloadedBoolean,draggable:Oe.booleanish,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Oe.boolean,formTarget:null,headers:Oe.spaceSeparated,height:Oe.number,hidden:Oe.boolean,high:Oe.number,href:null,hrefLang:null,htmlFor:Oe.spaceSeparated,httpEquiv:Oe.spaceSeparated,id:null,imageSizes:null,imageSrcSet:null,inert:Oe.boolean,inputMode:null,integrity:null,is:null,isMap:Oe.boolean,itemId:null,itemProp:Oe.spaceSeparated,itemRef:Oe.spaceSeparated,itemScope:Oe.boolean,itemType:Oe.spaceSeparated,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Oe.boolean,low:Oe.number,manifest:null,max:null,maxLength:Oe.number,media:null,method:null,min:null,minLength:Oe.number,multiple:Oe.boolean,muted:Oe.boolean,name:null,nonce:null,noModule:Oe.boolean,noValidate:Oe.boolean,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Oe.boolean,optimum:Oe.number,pattern:null,ping:Oe.spaceSeparated,placeholder:null,playsInline:Oe.boolean,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Oe.boolean,referrerPolicy:null,rel:Oe.spaceSeparated,required:Oe.boolean,reversed:Oe.boolean,rows:Oe.number,rowSpan:Oe.number,sandbox:Oe.spaceSeparated,scope:null,scoped:Oe.boolean,seamless:Oe.boolean,selected:Oe.boolean,shadowRootClonable:Oe.boolean,shadowRootDelegatesFocus:Oe.boolean,shadowRootMode:null,shape:null,size:Oe.number,sizes:null,slot:null,span:Oe.number,spellCheck:Oe.booleanish,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Oe.number,step:null,style:null,tabIndex:Oe.number,target:null,title:null,translate:null,type:null,typeMustMatch:Oe.boolean,useMap:null,value:Oe.booleanish,width:Oe.number,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Oe.spaceSeparated,axis:null,background:null,bgColor:null,border:Oe.number,borderColor:null,bottomMargin:Oe.number,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Oe.boolean,declare:Oe.boolean,event:null,face:null,frame:null,frameBorder:null,hSpace:Oe.number,leftMargin:Oe.number,link:null,longDesc:null,lowSrc:null,marginHeight:Oe.number,marginWidth:Oe.number,noResize:Oe.boolean,noHref:Oe.boolean,noShade:Oe.boolean,noWrap:Oe.boolean,object:null,profile:null,prompt:null,rev:null,rightMargin:Oe.number,rules:null,scheme:null,scrolling:Oe.booleanish,standby:null,summary:null,text:null,topMargin:Oe.number,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Oe.number,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Oe.boolean,disableRemotePlayback:Oe.boolean,prefix:null,property:null,results:Oe.number,security:null,unselectable:null},space:"html",transform:Je}),vt=Ge({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Oe.commaOrSpaceSeparated,accentHeight:Oe.number,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Oe.number,amplitude:Oe.number,arabicForm:null,ascent:Oe.number,attributeName:null,attributeType:null,azimuth:Oe.number,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Oe.number,by:null,calcMode:null,capHeight:Oe.number,className:Oe.spaceSeparated,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Oe.number,diffuseConstant:Oe.number,direction:null,display:null,dur:null,divisor:Oe.number,dominantBaseline:null,download:Oe.boolean,dx:null,dy:null,edgeMode:null,editable:null,elevation:Oe.number,enableBackground:null,end:null,event:null,exponent:Oe.number,externalResourcesRequired:null,fill:null,fillOpacity:Oe.number,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Oe.commaSeparated,g2:Oe.commaSeparated,glyphName:Oe.commaSeparated,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Oe.number,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Oe.number,horizOriginX:Oe.number,horizOriginY:Oe.number,id:null,ideographic:Oe.number,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Oe.number,k:Oe.number,k1:Oe.number,k2:Oe.number,k3:Oe.number,k4:Oe.number,kernelMatrix:Oe.commaOrSpaceSeparated,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Oe.number,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Oe.number,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Oe.number,overlineThickness:Oe.number,paintOrder:null,panose1:null,path:null,pathLength:Oe.number,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Oe.spaceSeparated,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Oe.number,pointsAtY:Oe.number,pointsAtZ:Oe.number,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Oe.commaOrSpaceSeparated,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Oe.commaOrSpaceSeparated,rev:Oe.commaOrSpaceSeparated,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Oe.commaOrSpaceSeparated,requiredFeatures:Oe.commaOrSpaceSeparated,requiredFonts:Oe.commaOrSpaceSeparated,requiredFormats:Oe.commaOrSpaceSeparated,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Oe.number,specularExponent:Oe.number,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Oe.number,strikethroughThickness:Oe.number,string:null,stroke:null,strokeDashArray:Oe.commaOrSpaceSeparated,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Oe.number,strokeOpacity:Oe.number,strokeWidth:null,style:null,surfaceScale:Oe.number,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Oe.commaOrSpaceSeparated,tabIndex:Oe.number,tableValues:null,target:null,targetX:Oe.number,targetY:Oe.number,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Oe.commaOrSpaceSeparated,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Oe.number,underlineThickness:Oe.number,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Oe.number,values:null,vAlphabetic:Oe.number,vMathematical:Oe.number,vectorEffect:null,vHanging:Oe.number,vIdeographic:Oe.number,version:null,vertAdvY:Oe.number,vertOriginX:Oe.number,vertOriginY:Oe.number,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Oe.number,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:ot}),st=Ge({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(fe,se){return"xlink:"+se.slice(5).toLowerCase()}}),_t=Ge({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Je}),Ue=Ge({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(fe,se){return"xml:"+se.slice(3).toLowerCase()}}),te=Me([Ve,Xe,st,_t,Ue],"html"),ne=Me([Ve,vt,st,_t,Ue],"svg")},84837:function(ze,be,de){"use strict";de.d(be,{s:function(){return Ve}});var le=de(95516),Me=de(56038),Ie=de(64326);const Pe=/[A-Z]/g,Ge=/-[a-z]/g,Oe=/^data[-\w.:]+$/i;function Ve(Xe,vt){const st=(0,Ie.F)(vt);let _t=vt,Ue=Me.k;if(st in Xe.normal)return Xe.property[Xe.normal[st]];if(st.length>4&&st.slice(0,4)==="data"&&Oe.test(vt)){if(vt.charAt(4)==="-"){const te=vt.slice(5).replace(Ge,Je);_t="data"+te.charAt(0).toUpperCase()+te.slice(1)}else{const te=vt.slice(4);if(!Ge.test(te)){let ne=te.replace(Pe,ot);ne.charAt(0)!=="-"&&(ne="-"+ne),vt="data"+ne}}Ue=le.I}return new Ue(_t,vt)}function ot(Xe){return"-"+Xe.toLowerCase()}function Je(Xe){return Xe.charAt(1).toUpperCase()}},64326:function(ze,be,de){"use strict";de.d(be,{F:function(){return le}});function le(Me){return Me.toLowerCase()}},95516:function(ze,be,de){"use strict";de.d(be,{I:function(){return Pe}});var le=de(56038),Me=de(56488);const Ie=Object.keys(Me);class Pe extends le.k{constructor(Ve,ot,Je,Xe){let vt=-1;if(super(Ve,ot),Ge(this,"space",Xe),typeof Je=="number")for(;++vt<Ie.length;){const st=Ie[vt];Ge(this,Ie[vt],(Je&Me[st])===Me[st])}}}Pe.prototype.defined=!0;function Ge(Oe,Ve,ot){ot&&(Oe[Ve]=ot)}},56038:function(ze,be,de){"use strict";de.d(be,{k:function(){return le}});class le{constructor(Ie,Pe){this.attribute=Pe,this.property=Ie}}le.prototype.attribute="",le.prototype.booleanish=!1,le.prototype.boolean=!1,le.prototype.commaOrSpaceSeparated=!1,le.prototype.commaSeparated=!1,le.prototype.defined=!1,le.prototype.mustUseProperty=!1,le.prototype.number=!1,le.prototype.overloadedBoolean=!1,le.prototype.property="",le.prototype.spaceSeparated=!1,le.prototype.space=void 0},56488:function(ze,be,de){"use strict";de.r(be),de.d(be,{boolean:function(){return Me},booleanish:function(){return Ie},commaOrSpaceSeparated:function(){return ot},commaSeparated:function(){return Ve},number:function(){return Ge},overloadedBoolean:function(){return Pe},spaceSeparated:function(){return Oe}});let le=0;const Me=Je(),Ie=Je(),Pe=Je(),Ge=Je(),Oe=Je(),Ve=Je(),ot=Je();function Je(){return Xy(2,++le)}},96536:function(ze,be,de){"use strict";de.d(be,{UG:function(){return ts}});var le={};de.r(le),de.d(le,{attentionMarkers:function(){return Dl},contentInitial:function(){return sl},disable:function(){return is},document:function(){return ca},flow:function(){return Xs},flowInitial:function(){return Ga},insideSpan:function(){return Pa},string:function(){return ps},text:function(){return cr}});var Me=de(87342),Ie=de(11630);const Pe=/[$_\p{ID_Start}]/u,Ge=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,Oe=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,Ve=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ot=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Je={};function Xe(xe){return xe?Pe.test(String.fromCodePoint(xe)):!1}function vt(xe,je){const et=(je||Je).jsx?Oe:Ge;return xe?et.test(String.fromCodePoint(xe)):!1}function st(xe,je){return((je||Je).jsx?ot:Ve).test(xe)}const _t=/[ \t\n\f\r]/g;function Ue(xe){return typeof xe=="object"?xe.type==="text"?te(xe.value):!1:te(xe)}function te(xe){return xe.replace(_t,"")===""}var ne=de(58222),fe=de(84837);const se={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var pe=de(71523),Se=de(77179),we=de(17970);function De(xe){return!xe||typeof xe!="object"?"":"position"in xe||"type"in xe?Ze(xe.position):"start"in xe||"end"in xe?Ze(xe):"line"in xe||"column"in xe?Re(xe):""}function Re(xe){return nt(xe&&xe.line)+":"+nt(xe&&xe.column)}function Ze(xe){return Re(xe&&xe.start)+"-"+Re(xe&&xe.end)}function nt(xe){return xe&&typeof xe=="number"?xe:1}class rt extends Error{constructor(je,We,et){super(),typeof We=="string"&&(et=We,We=void 0);let St="",Et={},Rt=!1;if(We&&("line"in We&&"column"in We?Et={place:We}:"start"in We&&"end"in We?Et={place:We}:"type"in We?Et={ancestors:[We],place:We.position}:Et=Mo({},We)),typeof je=="string"?St=je:!Et.cause&&je&&(Rt=!0,St=je.message,Et.cause=je),!Et.ruleId&&!Et.source&&typeof et=="string"){const _n=et.indexOf(":");_n===-1?Et.ruleId=et:(Et.source=et.slice(0,_n),Et.ruleId=et.slice(_n+1))}if(!Et.place&&Et.ancestors&&Et.ancestors){const _n=Et.ancestors[Et.ancestors.length-1];_n&&(Et.place=_n.position)}const Wt=Et.place&&"start"in Et.place?Et.place.start:Et.place;this.ancestors=Et.ancestors||void 0,this.cause=Et.cause||void 0,this.column=Wt?Wt.column:void 0,this.fatal=void 0,this.file,this.message=St,this.line=Wt?Wt.line:void 0,this.name=De(Et.place)||"1:1",this.place=Et.place||void 0,this.reason=this.message,this.ruleId=Et.ruleId||void 0,this.source=Et.source||void 0,this.stack=Rt&&Et.cause&&typeof Et.cause.stack=="string"?Et.cause.stack:"",this.actual,this.expected,this.note,this.url}}rt.prototype.file="",rt.prototype.name="",rt.prototype.reason="",rt.prototype.message="",rt.prototype.stack="",rt.prototype.column=void 0,rt.prototype.line=void 0,rt.prototype.ancestors=void 0,rt.prototype.cause=void 0,rt.prototype.fatal=void 0,rt.prototype.place=void 0,rt.prototype.ruleId=void 0,rt.prototype.source=void 0;const ft={}.hasOwnProperty,xt=new Map,at=/[A-Z]/g,wt=new Set(["table","tbody","thead","tfoot","tr"]),Mt=new Set(["td","th"]),Xt="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function bn(xe,je){if(!je||je.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const We=je.filePath||void 0;let et;if(je.development){if(typeof je.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");et=on(We,je.jsxDEV)}else{if(typeof je.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof je.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");et=un(We,je.jsx,je.jsxs)}const St={Fragment:je.Fragment,ancestors:[],components:je.components||{},create:et,elementAttributeNameCase:je.elementAttributeNameCase||"react",evaluater:je.createEvaluater?je.createEvaluater():void 0,filePath:We,ignoreInvalidStyle:je.ignoreInvalidStyle||!1,passKeys:je.passKeys!==!1,passNode:je.passNode||!1,schema:je.space==="svg"?ne.YP:ne.dy,stylePropertyNameCase:je.stylePropertyNameCase||"dom",tableCellAlignToStyle:je.tableCellAlignToStyle!==!1},Et=pn(St,xe,void 0);return Et&&typeof Et!="string"?Et:St.create(xe,St.Fragment,{children:Et||void 0},void 0)}function pn(xe,je,We){if(je.type==="element")return fn(xe,je,We);if(je.type==="mdxFlowExpression"||je.type==="mdxTextExpression")return gn(xe,je);if(je.type==="mdxJsxFlowElement"||je.type==="mdxJsxTextElement")return ut(xe,je,We);if(je.type==="mdxjsEsm")return Nt(xe,je);if(je.type==="root")return it(xe,je,We);if(je.type==="text")return an(xe,je)}function fn(xe,je,We){const et=xe.schema;let St=et;je.tagName.toLowerCase()==="svg"&&et.space==="html"&&(St=ne.YP,xe.schema=St),xe.ancestors.push(je);const Et=Ei(xe,je.tagName,!1),Rt=Bn(xe,je);let Wt=si(xe,je);return wt.has(je.tagName)&&(Wt=Wt.filter(function(_n){return typeof _n=="string"?!Ue(_n):!0})),mn(xe,Rt,Et,je),Ct(Rt,Wt),xe.ancestors.pop(),xe.schema=et,xe.create(je,Et,Rt,We)}function gn(xe,je){if(je.data&&je.data.estree&&xe.evaluater){const et=je.data.estree.body[0];return(0,Me.ok)(et.type==="ExpressionStatement"),xe.evaluater.evaluateExpression(et.expression)}$e(xe,je.position)}function Nt(xe,je){if(je.data&&je.data.estree&&xe.evaluater)return xe.evaluater.evaluateProgram(je.data.estree);$e(xe,je.position)}function ut(xe,je,We){const et=xe.schema;let St=et;je.name==="svg"&&et.space==="html"&&(St=ne.YP,xe.schema=St),xe.ancestors.push(je);const Et=je.name===null?xe.Fragment:Ei(xe,je.name,!0),Rt=Nn(xe,je),Wt=si(xe,je);return mn(xe,Rt,Et,je),Ct(Rt,Wt),xe.ancestors.pop(),xe.schema=et,xe.create(je,Et,Rt,We)}function it(xe,je,We){const et={};return Ct(et,si(xe,je)),xe.create(je,xe.Fragment,et,We)}function an(xe,je){return je.value}function mn(xe,je,We,et){typeof We!="string"&&We!==xe.Fragment&&xe.passNode&&(je.node=et)}function Ct(xe,je){if(je.length>0){const We=je.length>1?je:je[0];We&&(xe.children=We)}}function un(xe,je,We){return et;function et(St,Et,Rt,Wt){const Un=Array.isArray(Rt.children)?We:je;return Wt?Un(Et,Rt,Wt):Un(Et,Rt)}}function on(xe,je){return We;function We(et,St,Et,Rt){const Wt=Array.isArray(Et.children),_n=(0,we.Pk)(et);return je(St,Et,Rt,Wt,{columnNumber:_n?_n.column-1:void 0,fileName:xe,lineNumber:_n?_n.line:void 0},void 0)}}function Bn(xe,je){const We={};let et,St;for(St in je.properties)if(St!=="children"&&ft.call(je.properties,St)){const Et=Pt(xe,St,je.properties[St]);if(Et){const[Rt,Wt]=Et;xe.tableCellAlignToStyle&&Rt==="align"&&typeof Wt=="string"&&Mt.has(je.tagName)?et=Wt:We[Rt]=Wt}}if(et){const Et=We.style||(We.style={});Et[xe.stylePropertyNameCase==="css"?"text-align":"textAlign"]=et}return We}function Nn(xe,je){const We={};for(const et of je.attributes)if(et.type==="mdxJsxExpressionAttribute")if(et.data&&et.data.estree&&xe.evaluater){const Et=et.data.estree.body[0];(0,Me.ok)(Et.type==="ExpressionStatement");const Rt=Et.expression;(0,Me.ok)(Rt.type==="ObjectExpression");const Wt=Rt.properties[0];(0,Me.ok)(Wt.type==="SpreadElement"),Object.assign(We,xe.evaluater.evaluateExpression(Wt.argument))}else $e(xe,je.position);else{const St=et.name;let Et;if(et.value&&typeof et.value=="object")if(et.value.data&&et.value.data.estree&&xe.evaluater){const Wt=et.value.data.estree.body[0];(0,Me.ok)(Wt.type==="ExpressionStatement"),Et=xe.evaluater.evaluateExpression(Wt.expression)}else $e(xe,je.position);else Et=et.value===null?!0:et.value;We[St]=Et}return We}function si(xe,je){const We=[];let et=-1;const St=xe.passKeys?new Map:xt;for(;++et<je.children.length;){const Et=je.children[et];let Rt;if(xe.passKeys){const _n=Et.type==="element"?Et.tagName:Et.type==="mdxJsxFlowElement"||Et.type==="mdxJsxTextElement"?Et.name:void 0;if(_n){const Un=St.get(_n)||0;Rt=_n+"-"+Un,St.set(_n,Un+1)}}const Wt=pn(xe,Et,Rt);Wt!==void 0&&We.push(Wt)}return We}function Pt(xe,je,We){const et=(0,fe.s)(xe.schema,je);if(!(We==null||typeof We=="number"&&Number.isNaN(We))){if(Array.isArray(We)&&(We=et.commaSeparated?(0,Ie.P)(We):(0,pe.P)(We)),et.property==="style"){let St=typeof We=="object"?We:qn(xe,String(We));return xe.stylePropertyNameCase==="css"&&(St=Fe(St)),["style",St]}return[xe.elementAttributeNameCase==="react"&&et.space?se[et.property]||et.property:et.attribute,We]}}function qn(xe,je){try{return Se(je,{reactCompat:!0})}catch(We){if(xe.ignoreInvalidStyle)return{};const et=We,St=new rt("Cannot parse `style` attribute",{ancestors:xe.ancestors,cause:et,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw St.file=xe.filePath||void 0,St.url=Xt+"#cannot-parse-style-attribute",St}}function Ei(xe,je,We){let et;if(!We)et={type:"Literal",value:je};else if(je.includes(".")){const St=je.split(".");let Et=-1,Rt;for(;++Et<St.length;){const Wt=st(St[Et])?{type:"Identifier",name:St[Et]}:{type:"Literal",value:St[Et]};Rt=Rt?{type:"MemberExpression",object:Rt,property:Wt,computed:!!(Et&&Wt.type==="Literal"),optional:!1}:Wt}(0,Me.ok)(Rt,"always a result"),et=Rt}else et=st(je)&&!/^[a-z]/.test(je)?{type:"Identifier",name:je}:{type:"Literal",value:je};if(et.type==="Literal"){const St=et.value;return ft.call(xe.components,St)?xe.components[St]:St}if(xe.evaluater)return xe.evaluater.evaluateExpression(et);$e(xe)}function $e(xe,je){const We=new rt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:xe.ancestors,place:je,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw We.file=xe.filePath||void 0,We.url=Xt+"#cannot-handle-mdx-estrees-without-createevaluater",We}function Fe(xe){const je={};let We;for(We in xe)ft.call(xe,We)&&(je[Ne(We)]=xe[We]);return je}function Ne(xe){let je=xe.replace(at,Qe);return je.slice(0,3)==="ms-"&&(je="-"+je),je}function Qe(xe){return"-"+xe.toLowerCase()}const Ke={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]};var Le=de(37712),At=de(59301);const Lt={};function tn(xe,je){const We=je||Lt,et=typeof We.includeImageAlt=="boolean"?We.includeImageAlt:!0,St=typeof We.includeHtml=="boolean"?We.includeHtml:!0;return $t(xe,et,St)}function $t(xe,je,We){if(rn(xe)){if("value"in xe)return xe.type==="html"&&!We?"":xe.value;if(je&&"alt"in xe&&xe.alt)return xe.alt;if("children"in xe)return Ht(xe.children,je,We)}return Array.isArray(xe)?Ht(xe,je,We):""}function Ht(xe,je,We){const et=[];let St=-1;for(;++St<xe.length;)et[St]=$t(xe[St],je,We);return et.join("")}function rn(xe){return!!(xe&&typeof xe=="object")}function vn(xe,je,We,et){const St=xe.length;let Et=0,Rt;if(je<0?je=-je>St?0:St+je:je=je>St?St:je,We=We>0?We:0,et.length<1e4)Rt=Array.from(et),Rt.unshift(je,We),xe.splice(...Rt);else for(We&&xe.splice(je,We);Et<et.length;)Rt=et.slice(Et,Et+1e4),Rt.unshift(je,0),xe.splice(...Rt),Et+=1e4,je+=1e4}function cn(xe,je){return xe.length>0?(vn(xe,xe.length,0,je),xe):je}class wn{constructor(je){this.left=je?[...je]:[],this.right=[]}get(je){if(je<0||je>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+je+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return je<this.left.length?this.left[je]:this.right[this.right.length-je+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(je,We){const et=We==null?Number.POSITIVE_INFINITY:We;return et<this.left.length?this.left.slice(je,et):je>this.left.length?this.right.slice(this.right.length-et+this.left.length,this.right.length-je+this.left.length).reverse():this.left.slice(je).concat(this.right.slice(this.right.length-et+this.left.length).reverse())}splice(je,We,et){const St=We||0;this.setCursor(Math.trunc(je));const Et=this.right.splice(this.right.length-St,Number.POSITIVE_INFINITY);return et&&sn(this.left,et),Et.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(je){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(je)}pushMany(je){this.setCursor(Number.POSITIVE_INFINITY),sn(this.left,je)}unshift(je){this.setCursor(0),this.right.push(je)}unshiftMany(je){this.setCursor(0),sn(this.right,je.reverse())}setCursor(je){if(!(je===this.left.length||je>this.left.length&&this.right.length===0||je<0&&this.left.length===0))if(je<this.left.length){const We=this.left.splice(je,Number.POSITIVE_INFINITY);sn(this.right,We.reverse())}else{const We=this.right.splice(this.left.length+this.right.length-je,Number.POSITIVE_INFINITY);sn(this.left,We.reverse())}}}function sn(xe,je){let We=0;if(je.length<1e4)xe.push(...je);else for(;We<je.length;)xe.push(...je.slice(We,We+1e4)),We+=1e4}function Ft(xe){const je={};let We=-1,et,St,Et,Rt,Wt,_n,Un;const Sn=new wn(xe);for(;++We<Sn.length;){for(;We in je;)We=je[We];if(et=Sn.get(We),We&&et[1].type==="chunkFlow"&&Sn.get(We-1)[1].type==="listItemPrefix"&&(_n=et[1]._tokenizer.events,Et=0,Et<_n.length&&_n[Et][1].type==="lineEndingBlank"&&(Et+=2),Et<_n.length&&_n[Et][1].type==="content"))for(;++Et<_n.length&&_n[Et][1].type!=="content";)_n[Et][1].type==="chunkText"&&(_n[Et][1]._isInFirstContentOfListItem=!0,Et++);if(et[0]==="enter")et[1].contentType&&(Object.assign(je,jn(Sn,We)),We=je[We],Un=!0);else if(et[1]._container){for(Et=We,St=void 0;Et--;)if(Rt=Sn.get(Et),Rt[1].type==="lineEnding"||Rt[1].type==="lineEndingBlank")Rt[0]==="enter"&&(St&&(Sn.get(St)[1].type="lineEndingBlank"),Rt[1].type="lineEnding",St=Et);else if(!(Rt[1].type==="linePrefix"||Rt[1].type==="listItemIndent"))break;St&&(et[1].end=Mo({},Sn.get(St)[1].start),Wt=Sn.slice(St,We),Wt.unshift(et),Sn.splice(St,We-St+1,Wt))}}return vn(xe,0,Number.POSITIVE_INFINITY,Sn.slice(0)),!Un}function jn(xe,je){const We=xe.get(je)[1],et=xe.get(je)[2];let St=je-1;const Et=[];let Rt=We._tokenizer;Rt||(Rt=et.parser[We.contentType](We.start),We._contentTypeTextTrailing&&(Rt._contentTypeTextTrailing=!0));const Wt=Rt.events,_n=[],Un={};let Sn,ai,ei=-1,Ln=We,Rr=0,Jr=0;const uo=[Jr];for(;Ln;){for(;xe.get(++St)[1]!==Ln;);Et.push(St),Ln._tokenizer||(Sn=et.sliceStream(Ln),Ln.next||Sn.push(null),ai&&Rt.defineSkip(Ln.start),Ln._isInFirstContentOfListItem&&(Rt._gfmTasklistFirstContentOfListItem=!0),Rt.write(Sn),Ln._isInFirstContentOfListItem&&(Rt._gfmTasklistFirstContentOfListItem=void 0)),ai=Ln,Ln=Ln.next}for(Ln=We;++ei<Wt.length;)Wt[ei][0]==="exit"&&Wt[ei-1][0]==="enter"&&Wt[ei][1].type===Wt[ei-1][1].type&&Wt[ei][1].start.line!==Wt[ei][1].end.line&&(Jr=ei+1,uo.push(Jr),Ln._tokenizer=void 0,Ln.previous=void 0,Ln=Ln.next);for(Rt.events=[],Ln?(Ln._tokenizer=void 0,Ln.previous=void 0):uo.pop(),ei=uo.length;ei--;){const vr=Wt.slice(uo[ei],uo[ei+1]),_r=Et.pop();_n.push([_r,_r+vr.length-1]),xe.splice(_r,2,vr)}for(_n.reverse(),ei=-1;++ei<_n.length;)Un[Rr+_n[ei][0]]=Rr+_n[ei][1],Rr+=_n[ei][1]-_n[ei][0]-1;return Un}function dn(xe){for(;!Ft(xe););return xe}const En={}.hasOwnProperty;function Jt(xe){const je={};let We=-1;for(;++We<xe.length;)ui(je,xe[We]);return je}function ui(xe,je){let We;for(We in je){const St=(En.call(xe,We)?xe[We]:void 0)||(xe[We]={}),Et=je[We];let Rt;if(Et)for(Rt in Et){En.call(St,Rt)||(St[Rt]=[]);const Wt=Et[Rt];Gn(St[Rt],Array.isArray(Wt)?Wt:Wt?[Wt]:[])}}}function Gn(xe,je){let We=-1;const et=[];for(;++We<je.length;)(je[We].add==="after"?xe:et).push(je[We]);vn(xe,0,0,et)}function mt(xe){const je={};let We=-1;for(;++We<xe.length;)On(je,xe[We]);return je}function On(xe,je){let We;for(We in je){const St=(En.call(xe,We)?xe[We]:void 0)||(xe[We]={}),Et=je[We];let Rt;if(Et)for(Rt in Et)St[Rt]=Et[Rt]}}var Cn=de(26735),jt=de(80722);const mi={tokenize:Hi};function Hi(xe){const je=xe.attempt(this.parser.constructs.contentInitial,et,St);let We;return je;function et(Wt){if(Wt===null){xe.consume(Wt);return}return xe.enter("lineEnding"),xe.consume(Wt),xe.exit("lineEnding"),(0,Cn.f)(xe,je,"linePrefix")}function St(Wt){return xe.enter("paragraph"),Et(Wt)}function Et(Wt){const _n=xe.enter("chunkText",{contentType:"text",previous:We});return We&&(We.next=_n),We=_n,Rt(Wt)}function Rt(Wt){if(Wt===null){xe.exit("chunkText"),xe.exit("paragraph"),xe.consume(Wt);return}return(0,jt.Ch)(Wt)?(xe.consume(Wt),xe.exit("chunkText"),Et):(xe.consume(Wt),Rt)}}const Oi={tokenize:lr},Mn={tokenize:Gi};function lr(xe){const je=this,We=[];let et=0,St,Et,Rt;return Wt;function Wt(Hr){if(et<We.length){const sa=We[et];return je.containerState=sa[1],xe.attempt(sa[0].continuation,_n,Un)(Hr)}return Un(Hr)}function _n(Hr){if(et++,je.containerState._closeFlow){je.containerState._closeFlow=void 0,St&&_r();const sa=je.events.length;let la=sa,tr;for(;la--;)if(je.events[la][0]==="exit"&&je.events[la][1].type==="chunkFlow"){tr=je.events[la][1].end;break}vr(et);let da=sa;for(;da<je.events.length;)je.events[da][1].end=Mo({},tr),da++;return vn(je.events,la+1,0,je.events.slice(sa)),je.events.length=da,Un(Hr)}return Wt(Hr)}function Un(Hr){if(et===We.length){if(!St)return ei(Hr);if(St.currentConstruct&&St.currentConstruct.concrete)return Rr(Hr);je.interrupt=!!(St.currentConstruct&&!St._gfmTableDynamicInterruptHack)}return je.containerState={},xe.check(Mn,Sn,ai)(Hr)}function Sn(Hr){return St&&_r(),vr(et),ei(Hr)}function ai(Hr){return je.parser.lazy[je.now().line]=et!==We.length,Rt=je.now().offset,Rr(Hr)}function ei(Hr){return je.containerState={},xe.attempt(Mn,Ln,Rr)(Hr)}function Ln(Hr){return et++,We.push([je.currentConstruct,je.containerState]),ei(Hr)}function Rr(Hr){if(Hr===null){St&&_r(),vr(0),xe.consume(Hr);return}return St=St||je.parser.flow(je.now()),xe.enter("chunkFlow",{_tokenizer:St,contentType:"flow",previous:Et}),Jr(Hr)}function Jr(Hr){if(Hr===null){uo(xe.exit("chunkFlow"),!0),vr(0),xe.consume(Hr);return}return(0,jt.Ch)(Hr)?(xe.consume(Hr),uo(xe.exit("chunkFlow")),et=0,je.interrupt=void 0,Wt):(xe.consume(Hr),Jr)}function uo(Hr,sa){const la=je.sliceStream(Hr);if(sa&&la.push(null),Hr.previous=Et,Et&&(Et.next=Hr),Et=Hr,St.defineSkip(Hr.start),St.write(la),je.parser.lazy[Hr.start.line]){let tr=St.events.length;for(;tr--;)if(St.events[tr][1].start.offset<Rt&&(!St.events[tr][1].end||St.events[tr][1].end.offset>Rt))return;const da=je.events.length;let Oa=da,na,Or;for(;Oa--;)if(je.events[Oa][0]==="exit"&&je.events[Oa][1].type==="chunkFlow"){if(na){Or=je.events[Oa][1].end;break}na=!0}for(vr(et),tr=da;tr<je.events.length;)je.events[tr][1].end=Mo({},Or),tr++;vn(je.events,Oa+1,0,je.events.slice(da)),je.events.length=tr}}function vr(Hr){let sa=We.length;for(;sa-- >Hr;){const la=We[sa];je.containerState=la[1],la[0].exit.call(je,xe)}We.length=Hr}function _r(){St.write([null]),Et=void 0,St=void 0,je.containerState._closeFlow=void 0}}function Gi(xe,je,We){return(0,Cn.f)(xe,xe.attempt(this.parser.constructs.document,je,We),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const fi={partial:!0,tokenize:wi};function wi(xe,je,We){return et;function et(Et){return(0,jt.xz)(Et)?(0,Cn.f)(xe,St,"linePrefix")(Et):St(Et)}function St(Et){return Et===null||(0,jt.Ch)(Et)?je(Et):We(Et)}}const Li={resolve:Ci,tokenize:Bi},Ce={partial:!0,tokenize:Ri};function Ci(xe){return Ft(xe),xe}function Bi(xe,je){let We;return et;function et(Wt){return xe.enter("content"),We=xe.enter("chunkContent",{contentType:"content"}),St(Wt)}function St(Wt){return Wt===null?Et(Wt):(0,jt.Ch)(Wt)?xe.check(Ce,Rt,Et)(Wt):(xe.consume(Wt),St)}function Et(Wt){return xe.exit("chunkContent"),xe.exit("content"),je(Wt)}function Rt(Wt){return xe.consume(Wt),xe.exit("chunkContent"),We.next=xe.enter("chunkContent",{contentType:"content",previous:We}),We=We.next,St}}function Ri(xe,je,We){const et=this;return St;function St(Rt){return xe.exit("chunkContent"),xe.enter("lineEnding"),xe.consume(Rt),xe.exit("lineEnding"),(0,Cn.f)(xe,Et,"linePrefix")}function Et(Rt){if(Rt===null||(0,jt.Ch)(Rt))return We(Rt);const Wt=et.events[et.events.length-1];return!et.parser.constructs.disable.null.includes("codeIndented")&&Wt&&Wt[1].type==="linePrefix"&&Wt[2].sliceSerialize(Wt[1],!0).length>=4?je(Rt):xe.interrupt(et.parser.constructs.flow,We,je)(Rt)}}const Wn={tokenize:ci};function ci(xe){const je=this,We=xe.attempt(fi,et,xe.attempt(this.parser.constructs.flowInitial,St,(0,Cn.f)(xe,xe.attempt(this.parser.constructs.flow,St,xe.attempt(Li,St)),"linePrefix")));return We;function et(Et){if(Et===null){xe.consume(Et);return}return xe.enter("lineEndingBlank"),xe.consume(Et),xe.exit("lineEndingBlank"),je.currentConstruct=void 0,We}function St(Et){if(Et===null){xe.consume(Et);return}return xe.enter("lineEnding"),xe.consume(Et),xe.exit("lineEnding"),je.currentConstruct=void 0,We}}const ti={resolveAll:Ut()},ki=Vt("string"),ni=Vt("text");function Vt(xe){return{resolveAll:Ut(xe==="text"?It:void 0),tokenize:je};function je(We){const et=this,St=this.parser.constructs[xe],Et=We.attempt(St,Rt,Wt);return Rt;function Rt(Sn){return Un(Sn)?Et(Sn):Wt(Sn)}function Wt(Sn){if(Sn===null){We.consume(Sn);return}return We.enter("data"),We.consume(Sn),_n}function _n(Sn){return Un(Sn)?(We.exit("data"),Et(Sn)):(We.consume(Sn),_n)}function Un(Sn){if(Sn===null)return!0;const ai=St[Sn];let ei=-1;if(ai)for(;++ei<ai.length;){const Ln=ai[ei];if(!Ln.previous||Ln.previous.call(et,et.previous))return!0}return!1}}}function Ut(xe){return je;function je(We,et){let St=-1,Et;for(;++St<=We.length;)Et===void 0?We[St]&&We[St][1].type==="data"&&(Et=St,St++):(!We[St]||We[St][1].type!=="data")&&(St!==Et+2&&(We[Et][1].end=We[St-1][1].end,We.splice(Et+2,St-Et-2),St=Et+2),Et=void 0);return xe?xe(We,et):We}}function It(xe,je){let We=0;for(;++We<=xe.length;)if((We===xe.length||xe[We][1].type==="lineEnding")&&xe[We-1][1].type==="data"){const et=xe[We-1][1],St=je.sliceStream(et);let Et=St.length,Rt=-1,Wt=0,_n;for(;Et--;){const Un=St[Et];if(typeof Un=="string"){for(Rt=Un.length;Un.charCodeAt(Rt-1)===32;)Wt++,Rt--;if(Rt)break;Rt=-1}else if(Un===-2)_n=!0,Wt++;else if(Un!==-1){Et++;break}}if(je._contentTypeTextTrailing&&We===xe.length&&(Wt=0),Wt){const Un={type:We===xe.length||_n||Wt<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:Et?Rt:et.start._bufferIndex+Rt,_index:et.start._index+Et,line:et.end.line,column:et.end.column-Wt,offset:et.end.offset-Wt},end:Mo({},et.end)};et.end=Mo({},Un.start),et.start.offset===et.end.offset?Object.assign(et,Un):(xe.splice(We,0,["enter",Un,je],["exit",Un,je]),We+=2)}We++}return xe}const $n={name:"thematicBreak",tokenize:Yn};function Yn(xe,je,We){let et=0,St;return Et;function Et(Un){return xe.enter("thematicBreak"),Rt(Un)}function Rt(Un){return St=Un,Wt(Un)}function Wt(Un){return Un===St?(xe.enter("thematicBreakSequence"),_n(Un)):et>=3&&(Un===null||(0,jt.Ch)(Un))?(xe.exit("thematicBreak"),je(Un)):We(Un)}function _n(Un){return Un===St?(xe.consume(Un),et++,_n):(xe.exit("thematicBreakSequence"),(0,jt.xz)(Un)?(0,Cn.f)(xe,Wt,"whitespace")(Un):Wt(Un))}}const yi={continuation:{tokenize:Gt},exit:pt,name:"list",tokenize:qt},Rn={partial:!0,tokenize:yn},oi={partial:!0,tokenize:li};function qt(xe,je,We){const et=this,St=et.events[et.events.length-1];let Et=St&&St[1].type==="linePrefix"?St[2].sliceSerialize(St[1],!0).length:0,Rt=0;return Wt;function Wt(Ln){const Rr=et.containerState.type||(Ln===42||Ln===43||Ln===45?"listUnordered":"listOrdered");if(Rr==="listUnordered"?!et.containerState.marker||Ln===et.containerState.marker:(0,jt.pY)(Ln)){if(et.containerState.type||(et.containerState.type=Rr,xe.enter(Rr,{_container:!0})),Rr==="listUnordered")return xe.enter("listItemPrefix"),Ln===42||Ln===45?xe.check($n,We,Un)(Ln):Un(Ln);if(!et.interrupt||Ln===49)return xe.enter("listItemPrefix"),xe.enter("listItemValue"),_n(Ln)}return We(Ln)}function _n(Ln){return(0,jt.pY)(Ln)&&++Rt<10?(xe.consume(Ln),_n):(!et.interrupt||Rt<2)&&(et.containerState.marker?Ln===et.containerState.marker:Ln===41||Ln===46)?(xe.exit("listItemValue"),Un(Ln)):We(Ln)}function Un(Ln){return xe.enter("listItemMarker"),xe.consume(Ln),xe.exit("listItemMarker"),et.containerState.marker=et.containerState.marker||Ln,xe.check(fi,et.interrupt?We:Sn,xe.attempt(Rn,ei,ai))}function Sn(Ln){return et.containerState.initialBlankLine=!0,Et++,ei(Ln)}function ai(Ln){return(0,jt.xz)(Ln)?(xe.enter("listItemPrefixWhitespace"),xe.consume(Ln),xe.exit("listItemPrefixWhitespace"),ei):We(Ln)}function ei(Ln){return et.containerState.size=Et+et.sliceSerialize(xe.exit("listItemPrefix"),!0).length,je(Ln)}}function Gt(xe,je,We){const et=this;return et.containerState._closeFlow=void 0,xe.check(fi,St,Et);function St(Wt){return et.containerState.furtherBlankLines=et.containerState.furtherBlankLines||et.containerState.initialBlankLine,(0,Cn.f)(xe,je,"listItemIndent",et.containerState.size+1)(Wt)}function Et(Wt){return et.containerState.furtherBlankLines||!(0,jt.xz)(Wt)?(et.containerState.furtherBlankLines=void 0,et.containerState.initialBlankLine=void 0,Rt(Wt)):(et.containerState.furtherBlankLines=void 0,et.containerState.initialBlankLine=void 0,xe.attempt(oi,je,Rt)(Wt))}function Rt(Wt){return et.containerState._closeFlow=!0,et.interrupt=void 0,(0,Cn.f)(xe,xe.attempt(yi,je,We),"linePrefix",et.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Wt)}}function li(xe,je,We){const et=this;return(0,Cn.f)(xe,St,"listItemIndent",et.containerState.size+1);function St(Et){const Rt=et.events[et.events.length-1];return Rt&&Rt[1].type==="listItemIndent"&&Rt[2].sliceSerialize(Rt[1],!0).length===et.containerState.size?je(Et):We(Et)}}function pt(xe){xe.exit(this.containerState.type)}function yn(xe,je,We){const et=this;return(0,Cn.f)(xe,St,"listItemPrefixWhitespace",et.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function St(Et){const Rt=et.events[et.events.length-1];return!(0,jt.xz)(Et)&&Rt&&Rt[1].type==="listItemPrefixWhitespace"?je(Et):We(Et)}}const ii={continuation:{tokenize:zt},exit:xn,name:"blockQuote",tokenize:Ti};function Ti(xe,je,We){const et=this;return St;function St(Rt){if(Rt===62){const Wt=et.containerState;return Wt.open||(xe.enter("blockQuote",{_container:!0}),Wt.open=!0),xe.enter("blockQuotePrefix"),xe.enter("blockQuoteMarker"),xe.consume(Rt),xe.exit("blockQuoteMarker"),Et}return We(Rt)}function Et(Rt){return(0,jt.xz)(Rt)?(xe.enter("blockQuotePrefixWhitespace"),xe.consume(Rt),xe.exit("blockQuotePrefixWhitespace"),xe.exit("blockQuotePrefix"),je):(xe.exit("blockQuotePrefix"),je(Rt))}}function zt(xe,je,We){const et=this;return St;function St(Rt){return(0,jt.xz)(Rt)?(0,Cn.f)(xe,Et,"linePrefix",et.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Rt):Et(Rt)}function Et(Rt){return xe.attempt(ii,je,We)(Rt)}}function xn(xe){xe.exit("blockQuote")}function vi(xe,je,We,et,St,Et,Rt,Wt,_n){const Un=_n||Number.POSITIVE_INFINITY;let Sn=0;return ai;function ai(vr){return vr===60?(xe.enter(et),xe.enter(St),xe.enter(Et),xe.consume(vr),xe.exit(Et),ei):vr===null||vr===32||vr===41||(0,jt.Av)(vr)?We(vr):(xe.enter(et),xe.enter(Rt),xe.enter(Wt),xe.enter("chunkString",{contentType:"string"}),Jr(vr))}function ei(vr){return vr===62?(xe.enter(Et),xe.consume(vr),xe.exit(Et),xe.exit(St),xe.exit(et),je):(xe.enter(Wt),xe.enter("chunkString",{contentType:"string"}),Ln(vr))}function Ln(vr){return vr===62?(xe.exit("chunkString"),xe.exit(Wt),ei(vr)):vr===null||vr===60||(0,jt.Ch)(vr)?We(vr):(xe.consume(vr),vr===92?Rr:Ln)}function Rr(vr){return vr===60||vr===62||vr===92?(xe.consume(vr),Ln):Ln(vr)}function Jr(vr){return!Sn&&(vr===null||vr===41||(0,jt.z3)(vr))?(xe.exit("chunkString"),xe.exit(Wt),xe.exit(Rt),xe.exit(et),je(vr)):Sn<Un&&vr===40?(xe.consume(vr),Sn++,Jr):vr===41?(xe.consume(vr),Sn--,Jr):vr===null||vr===32||vr===40||(0,jt.Av)(vr)?We(vr):(xe.consume(vr),vr===92?uo:Jr)}function uo(vr){return vr===40||vr===41||vr===92?(xe.consume(vr),Jr):Jr(vr)}}function nn(xe,je,We,et,St,Et){const Rt=this;let Wt=0,_n;return Un;function Un(Ln){return xe.enter(et),xe.enter(St),xe.consume(Ln),xe.exit(St),xe.enter(Et),Sn}function Sn(Ln){return Wt>999||Ln===null||Ln===91||Ln===93&&!_n||Ln===94&&!Wt&&"_hiddenFootnoteSupport"in Rt.parser.constructs?We(Ln):Ln===93?(xe.exit(Et),xe.enter(St),xe.consume(Ln),xe.exit(St),xe.exit(et),je):(0,jt.Ch)(Ln)?(xe.enter("lineEnding"),xe.consume(Ln),xe.exit("lineEnding"),Sn):(xe.enter("chunkString",{contentType:"string"}),ai(Ln))}function ai(Ln){return Ln===null||Ln===91||Ln===93||(0,jt.Ch)(Ln)||Wt++>999?(xe.exit("chunkString"),Sn(Ln)):(xe.consume(Ln),_n||(_n=!(0,jt.xz)(Ln)),Ln===92?ei:ai)}function ei(Ln){return Ln===91||Ln===92||Ln===93?(xe.consume(Ln),Wt++,ai):ai(Ln)}}function _e(xe,je,We,et,St,Et){let Rt;return Wt;function Wt(ei){return ei===34||ei===39||ei===40?(xe.enter(et),xe.enter(St),xe.consume(ei),xe.exit(St),Rt=ei===40?41:ei,_n):We(ei)}function _n(ei){return ei===Rt?(xe.enter(St),xe.consume(ei),xe.exit(St),xe.exit(et),je):(xe.enter(Et),Un(ei))}function Un(ei){return ei===Rt?(xe.exit(Et),_n(Rt)):ei===null?We(ei):(0,jt.Ch)(ei)?(xe.enter("lineEnding"),xe.consume(ei),xe.exit("lineEnding"),(0,Cn.f)(xe,Un,"linePrefix")):(xe.enter("chunkString",{contentType:"string"}),Sn(ei))}function Sn(ei){return ei===Rt||ei===null||(0,jt.Ch)(ei)?(xe.exit("chunkString"),Un(ei)):(xe.consume(ei),ei===92?ai:Sn)}function ai(ei){return ei===Rt||ei===92?(xe.consume(ei),Sn):Sn(ei)}}function Ni(xe,je){let We;return et;function et(St){return(0,jt.Ch)(St)?(xe.enter("lineEnding"),xe.consume(St),xe.exit("lineEnding"),We=!0,et):(0,jt.xz)(St)?(0,Cn.f)(xe,et,We?"linePrefix":"lineSuffix")(St):je(St)}}function hi(xe){return xe.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Pn={name:"definition",tokenize:Qi},Yi={partial:!0,tokenize:er};function Qi(xe,je,We){const et=this;let St;return Et;function Et(Ln){return xe.enter("definition"),Rt(Ln)}function Rt(Ln){return nn.call(et,xe,Wt,We,"definitionLabel","definitionLabelMarker","definitionLabelString")(Ln)}function Wt(Ln){return St=hi(et.sliceSerialize(et.events[et.events.length-1][1]).slice(1,-1)),Ln===58?(xe.enter("definitionMarker"),xe.consume(Ln),xe.exit("definitionMarker"),_n):We(Ln)}function _n(Ln){return(0,jt.z3)(Ln)?Ni(xe,Un)(Ln):Un(Ln)}function Un(Ln){return vi(xe,Sn,We,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(Ln)}function Sn(Ln){return xe.attempt(Yi,ai,ai)(Ln)}function ai(Ln){return(0,jt.xz)(Ln)?(0,Cn.f)(xe,ei,"whitespace")(Ln):ei(Ln)}function ei(Ln){return Ln===null||(0,jt.Ch)(Ln)?(xe.exit("definition"),et.parser.defined.push(St),je(Ln)):We(Ln)}}function er(xe,je,We){return et;function et(Wt){return(0,jt.z3)(Wt)?Ni(xe,St)(Wt):We(Wt)}function St(Wt){return _e(xe,Et,We,"definitionTitle","definitionTitleMarker","definitionTitleString")(Wt)}function Et(Wt){return(0,jt.xz)(Wt)?(0,Cn.f)(xe,Rt,"whitespace")(Wt):Rt(Wt)}function Rt(Wt){return Wt===null||(0,jt.Ch)(Wt)?je(Wt):We(Wt)}}const Tn={name:"codeIndented",tokenize:$i},Zt={partial:!0,tokenize:Vr};function $i(xe,je,We){const et=this;return St;function St(Un){return xe.enter("codeIndented"),(0,Cn.f)(xe,Et,"linePrefix",5)(Un)}function Et(Un){const Sn=et.events[et.events.length-1];return Sn&&Sn[1].type==="linePrefix"&&Sn[2].sliceSerialize(Sn[1],!0).length>=4?Rt(Un):We(Un)}function Rt(Un){return Un===null?_n(Un):(0,jt.Ch)(Un)?xe.attempt(Zt,Rt,_n)(Un):(xe.enter("codeFlowValue"),Wt(Un))}function Wt(Un){return Un===null||(0,jt.Ch)(Un)?(xe.exit("codeFlowValue"),Rt(Un)):(xe.consume(Un),Wt)}function _n(Un){return xe.exit("codeIndented"),je(Un)}}function Vr(xe,je,We){const et=this;return St;function St(Rt){return et.parser.lazy[et.now().line]?We(Rt):(0,jt.Ch)(Rt)?(xe.enter("lineEnding"),xe.consume(Rt),xe.exit("lineEnding"),St):(0,Cn.f)(xe,Et,"linePrefix",5)(Rt)}function Et(Rt){const Wt=et.events[et.events.length-1];return Wt&&Wt[1].type==="linePrefix"&&Wt[2].sliceSerialize(Wt[1],!0).length>=4?je(Rt):(0,jt.Ch)(Rt)?St(Rt):We(Rt)}}const en={name:"headingAtx",resolve:gi,tokenize:Mi};function gi(xe,je){let We=xe.length-2,et=3,St,Et;return xe[et][1].type==="whitespace"&&(et+=2),We-2>et&&xe[We][1].type==="whitespace"&&(We-=2),xe[We][1].type==="atxHeadingSequence"&&(et===We-1||We-4>et&&xe[We-2][1].type==="whitespace")&&(We-=et+1===We?2:4),We>et&&(St={type:"atxHeadingText",start:xe[et][1].start,end:xe[We][1].end},Et={type:"chunkText",start:xe[et][1].start,end:xe[We][1].end,contentType:"text"},vn(xe,et,We-et+1,[["enter",St,je],["enter",Et,je],["exit",Et,je],["exit",St,je]])),xe}function Mi(xe,je,We){let et=0;return St;function St(Sn){return xe.enter("atxHeading"),Et(Sn)}function Et(Sn){return xe.enter("atxHeadingSequence"),Rt(Sn)}function Rt(Sn){return Sn===35&&et++<6?(xe.consume(Sn),Rt):Sn===null||(0,jt.z3)(Sn)?(xe.exit("atxHeadingSequence"),Wt(Sn)):We(Sn)}function Wt(Sn){return Sn===35?(xe.enter("atxHeadingSequence"),_n(Sn)):Sn===null||(0,jt.Ch)(Sn)?(xe.exit("atxHeading"),je(Sn)):(0,jt.xz)(Sn)?(0,Cn.f)(xe,Wt,"whitespace")(Sn):(xe.enter("atxHeadingText"),Un(Sn))}function _n(Sn){return Sn===35?(xe.consume(Sn),_n):(xe.exit("atxHeadingSequence"),Wt(Sn))}function Un(Sn){return Sn===null||Sn===35||(0,jt.z3)(Sn)?(xe.exit("atxHeadingText"),Wt(Sn)):(xe.consume(Sn),Un)}}const ji={name:"setextUnderline",resolveTo:Fi,tokenize:Zi};function Fi(xe,je){let We=xe.length,et,St,Et;for(;We--;)if(xe[We][0]==="enter"){if(xe[We][1].type==="content"){et=We;break}xe[We][1].type==="paragraph"&&(St=We)}else xe[We][1].type==="content"&&xe.splice(We,1),!Et&&xe[We][1].type==="definition"&&(Et=We);const Rt={type:"setextHeading",start:Mo({},xe[et][1].start),end:Mo({},xe[xe.length-1][1].end)};return xe[St][1].type="setextHeadingText",Et?(xe.splice(St,0,["enter",Rt,je]),xe.splice(Et+1,0,["exit",xe[et][1],je]),xe[et][1].end=Mo({},xe[Et][1].end)):xe[et][1]=Rt,xe.push(["exit",Rt,je]),xe}function Zi(xe,je,We){const et=this;let St;return Et;function Et(Un){let Sn=et.events.length,ai;for(;Sn--;)if(et.events[Sn][1].type!=="lineEnding"&&et.events[Sn][1].type!=="linePrefix"&&et.events[Sn][1].type!=="content"){ai=et.events[Sn][1].type==="paragraph";break}return!et.parser.lazy[et.now().line]&&(et.interrupt||ai)?(xe.enter("setextHeadingLine"),St=Un,Rt(Un)):We(Un)}function Rt(Un){return xe.enter("setextHeadingLineSequence"),Wt(Un)}function Wt(Un){return Un===St?(xe.consume(Un),Wt):(xe.exit("setextHeadingLineSequence"),(0,jt.xz)(Un)?(0,Cn.f)(xe,_n,"lineSuffix")(Un):_n(Un))}function _n(Un){return Un===null||(0,jt.Ch)(Un)?(xe.exit("setextHeadingLine"),je(Un)):We(Un)}}const Sr=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],gr=["pre","script","style","textarea"],mr={concrete:!0,name:"htmlFlow",resolveTo:dr,tokenize:In},br={partial:!0,tokenize:Cr},Fn={partial:!0,tokenize:wr};function dr(xe){let je=xe.length;for(;je--&&!(xe[je][0]==="enter"&&xe[je][1].type==="htmlFlow"););return je>1&&xe[je-2][1].type==="linePrefix"&&(xe[je][1].start=xe[je-2][1].start,xe[je+1][1].start=xe[je-2][1].start,xe.splice(je-2,2)),xe}function In(xe,je,We){const et=this;let St,Et,Rt,Wt,_n;return Un;function Un(Jn){return Sn(Jn)}function Sn(Jn){return xe.enter("htmlFlow"),xe.enter("htmlFlowData"),xe.consume(Jn),ai}function ai(Jn){return Jn===33?(xe.consume(Jn),ei):Jn===47?(xe.consume(Jn),Et=!0,Jr):Jn===63?(xe.consume(Jn),St=3,et.interrupt?je:Zn):(0,jt.jv)(Jn)?(xe.consume(Jn),Rt=String.fromCharCode(Jn),uo):We(Jn)}function ei(Jn){return Jn===45?(xe.consume(Jn),St=2,Ln):Jn===91?(xe.consume(Jn),St=5,Wt=0,Rr):(0,jt.jv)(Jn)?(xe.consume(Jn),St=4,et.interrupt?je:Zn):We(Jn)}function Ln(Jn){return Jn===45?(xe.consume(Jn),et.interrupt?je:Zn):We(Jn)}function Rr(Jn){const Ns="CDATA[";return Jn===Ns.charCodeAt(Wt++)?(xe.consume(Jn),Wt===Ns.length?et.interrupt?je:Ea:Rr):We(Jn)}function Jr(Jn){return(0,jt.jv)(Jn)?(xe.consume(Jn),Rt=String.fromCharCode(Jn),uo):We(Jn)}function uo(Jn){if(Jn===null||Jn===47||Jn===62||(0,jt.z3)(Jn)){const Ns=Jn===47,Fl=Rt.toLowerCase();return!Ns&&!Et&&gr.includes(Fl)?(St=1,et.interrupt?je(Jn):Ea(Jn)):Sr.includes(Rt.toLowerCase())?(St=6,Ns?(xe.consume(Jn),vr):et.interrupt?je(Jn):Ea(Jn)):(St=7,et.interrupt&&!et.parser.lazy[et.now().line]?We(Jn):Et?_r(Jn):Hr(Jn))}return Jn===45||(0,jt.H$)(Jn)?(xe.consume(Jn),Rt+=String.fromCharCode(Jn),uo):We(Jn)}function vr(Jn){return Jn===62?(xe.consume(Jn),et.interrupt?je:Ea):We(Jn)}function _r(Jn){return(0,jt.xz)(Jn)?(xe.consume(Jn),_r):Or(Jn)}function Hr(Jn){return Jn===47?(xe.consume(Jn),Or):Jn===58||Jn===95||(0,jt.jv)(Jn)?(xe.consume(Jn),sa):(0,jt.xz)(Jn)?(xe.consume(Jn),Hr):Or(Jn)}function sa(Jn){return Jn===45||Jn===46||Jn===58||Jn===95||(0,jt.H$)(Jn)?(xe.consume(Jn),sa):la(Jn)}function la(Jn){return Jn===61?(xe.consume(Jn),tr):(0,jt.xz)(Jn)?(xe.consume(Jn),la):Hr(Jn)}function tr(Jn){return Jn===null||Jn===60||Jn===61||Jn===62||Jn===96?We(Jn):Jn===34||Jn===39?(xe.consume(Jn),_n=Jn,da):(0,jt.xz)(Jn)?(xe.consume(Jn),tr):Oa(Jn)}function da(Jn){return Jn===_n?(xe.consume(Jn),_n=null,na):Jn===null||(0,jt.Ch)(Jn)?We(Jn):(xe.consume(Jn),da)}function Oa(Jn){return Jn===null||Jn===34||Jn===39||Jn===47||Jn===60||Jn===61||Jn===62||Jn===96||(0,jt.z3)(Jn)?la(Jn):(xe.consume(Jn),Oa)}function na(Jn){return Jn===47||Jn===62||(0,jt.xz)(Jn)?Hr(Jn):We(Jn)}function Or(Jn){return Jn===62?(xe.consume(Jn),Bs):We(Jn)}function Bs(Jn){return Jn===null||(0,jt.Ch)(Jn)?Ea(Jn):(0,jt.xz)(Jn)?(xe.consume(Jn),Bs):We(Jn)}function Ea(Jn){return Jn===45&&St===2?(xe.consume(Jn),ka):Jn===60&&St===1?(xe.consume(Jn),gs):Jn===62&&St===4?(xe.consume(Jn),_s):Jn===63&&St===3?(xe.consume(Jn),Zn):Jn===93&&St===5?(xe.consume(Jn),dl):(0,jt.Ch)(Jn)&&(St===6||St===7)?(xe.exit("htmlFlowData"),xe.check(br,bl,lo)(Jn)):Jn===null||(0,jt.Ch)(Jn)?(xe.exit("htmlFlowData"),lo(Jn)):(xe.consume(Jn),Ea)}function lo(Jn){return xe.check(Fn,io,bl)(Jn)}function io(Jn){return xe.enter("lineEnding"),xe.consume(Jn),xe.exit("lineEnding"),Bo}function Bo(Jn){return Jn===null||(0,jt.Ch)(Jn)?lo(Jn):(xe.enter("htmlFlowData"),Ea(Jn))}function ka(Jn){return Jn===45?(xe.consume(Jn),Zn):Ea(Jn)}function gs(Jn){return Jn===47?(xe.consume(Jn),Rt="",Cs):Ea(Jn)}function Cs(Jn){if(Jn===62){const Ns=Rt.toLowerCase();return gr.includes(Ns)?(xe.consume(Jn),_s):Ea(Jn)}return(0,jt.jv)(Jn)&&Rt.length<8?(xe.consume(Jn),Rt+=String.fromCharCode(Jn),Cs):Ea(Jn)}function dl(Jn){return Jn===93?(xe.consume(Jn),Zn):Ea(Jn)}function Zn(Jn){return Jn===62?(xe.consume(Jn),_s):Jn===45&&St===2?(xe.consume(Jn),Zn):Ea(Jn)}function _s(Jn){return Jn===null||(0,jt.Ch)(Jn)?(xe.exit("htmlFlowData"),bl(Jn)):(xe.consume(Jn),_s)}function bl(Jn){return xe.exit("htmlFlow"),je(Jn)}}function wr(xe,je,We){const et=this;return St;function St(Rt){return(0,jt.Ch)(Rt)?(xe.enter("lineEnding"),xe.consume(Rt),xe.exit("lineEnding"),Et):We(Rt)}function Et(Rt){return et.parser.lazy[et.now().line]?We(Rt):je(Rt)}}function Cr(xe,je,We){return et;function et(St){return xe.enter("lineEnding"),xe.consume(St),xe.exit("lineEnding"),xe.attempt(fi,je,We)}}const Tr={partial:!0,tokenize:Wr},mo={concrete:!0,name:"codeFenced",tokenize:ao};function ao(xe,je,We){const et=this,St={partial:!0,tokenize:la};let Et=0,Rt=0,Wt;return _n;function _n(tr){return Un(tr)}function Un(tr){const da=et.events[et.events.length-1];return Et=da&&da[1].type==="linePrefix"?da[2].sliceSerialize(da[1],!0).length:0,Wt=tr,xe.enter("codeFenced"),xe.enter("codeFencedFence"),xe.enter("codeFencedFenceSequence"),Sn(tr)}function Sn(tr){return tr===Wt?(Rt++,xe.consume(tr),Sn):Rt<3?We(tr):(xe.exit("codeFencedFenceSequence"),(0,jt.xz)(tr)?(0,Cn.f)(xe,ai,"whitespace")(tr):ai(tr))}function ai(tr){return tr===null||(0,jt.Ch)(tr)?(xe.exit("codeFencedFence"),et.interrupt?je(tr):xe.check(Tr,Jr,sa)(tr)):(xe.enter("codeFencedFenceInfo"),xe.enter("chunkString",{contentType:"string"}),ei(tr))}function ei(tr){return tr===null||(0,jt.Ch)(tr)?(xe.exit("chunkString"),xe.exit("codeFencedFenceInfo"),ai(tr)):(0,jt.xz)(tr)?(xe.exit("chunkString"),xe.exit("codeFencedFenceInfo"),(0,Cn.f)(xe,Ln,"whitespace")(tr)):tr===96&&tr===Wt?We(tr):(xe.consume(tr),ei)}function Ln(tr){return tr===null||(0,jt.Ch)(tr)?ai(tr):(xe.enter("codeFencedFenceMeta"),xe.enter("chunkString",{contentType:"string"}),Rr(tr))}function Rr(tr){return tr===null||(0,jt.Ch)(tr)?(xe.exit("chunkString"),xe.exit("codeFencedFenceMeta"),ai(tr)):tr===96&&tr===Wt?We(tr):(xe.consume(tr),Rr)}function Jr(tr){return xe.attempt(St,sa,uo)(tr)}function uo(tr){return xe.enter("lineEnding"),xe.consume(tr),xe.exit("lineEnding"),vr}function vr(tr){return Et>0&&(0,jt.xz)(tr)?(0,Cn.f)(xe,_r,"linePrefix",Et+1)(tr):_r(tr)}function _r(tr){return tr===null||(0,jt.Ch)(tr)?xe.check(Tr,Jr,sa)(tr):(xe.enter("codeFlowValue"),Hr(tr))}function Hr(tr){return tr===null||(0,jt.Ch)(tr)?(xe.exit("codeFlowValue"),_r(tr)):(xe.consume(tr),Hr)}function sa(tr){return xe.exit("codeFenced"),je(tr)}function la(tr,da,Oa){let na=0;return Or;function Or(Bo){return tr.enter("lineEnding"),tr.consume(Bo),tr.exit("lineEnding"),Bs}function Bs(Bo){return tr.enter("codeFencedFence"),(0,jt.xz)(Bo)?(0,Cn.f)(tr,Ea,"linePrefix",et.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Bo):Ea(Bo)}function Ea(Bo){return Bo===Wt?(tr.enter("codeFencedFenceSequence"),lo(Bo)):Oa(Bo)}function lo(Bo){return Bo===Wt?(na++,tr.consume(Bo),lo):na>=Rt?(tr.exit("codeFencedFenceSequence"),(0,jt.xz)(Bo)?(0,Cn.f)(tr,io,"whitespace")(Bo):io(Bo)):Oa(Bo)}function io(Bo){return Bo===null||(0,jt.Ch)(Bo)?(tr.exit("codeFencedFence"),da(Bo)):Oa(Bo)}}}function Wr(xe,je,We){const et=this;return St;function St(Rt){return Rt===null?We(Rt):(xe.enter("lineEnding"),xe.consume(Rt),xe.exit("lineEnding"),Et)}function Et(Rt){return et.parser.lazy[et.now().line]?We(Rt):je(Rt)}}const Xr=document.createElement("i");function pa(xe){const je="&"+xe+";";Xr.innerHTML=je;const We=Xr.textContent;return We.charCodeAt(We.length-1)===59&&xe!=="semi"||We===je?!1:We}const no={name:"characterReference",tokenize:zi};function zi(xe,je,We){const et=this;let St=0,Et,Rt;return Wt;function Wt(ai){return xe.enter("characterReference"),xe.enter("characterReferenceMarker"),xe.consume(ai),xe.exit("characterReferenceMarker"),_n}function _n(ai){return ai===35?(xe.enter("characterReferenceMarkerNumeric"),xe.consume(ai),xe.exit("characterReferenceMarkerNumeric"),Un):(xe.enter("characterReferenceValue"),Et=31,Rt=jt.H$,Sn(ai))}function Un(ai){return ai===88||ai===120?(xe.enter("characterReferenceMarkerHexadecimal"),xe.consume(ai),xe.exit("characterReferenceMarkerHexadecimal"),xe.enter("characterReferenceValue"),Et=6,Rt=jt.AF,Sn):(xe.enter("characterReferenceValue"),Et=7,Rt=jt.pY,Sn(ai))}function Sn(ai){if(ai===59&&St){const ei=xe.exit("characterReferenceValue");return Rt===jt.H$&&!pa(et.sliceSerialize(ei))?We(ai):(xe.enter("characterReferenceMarker"),xe.consume(ai),xe.exit("characterReferenceMarker"),xe.exit("characterReference"),je)}return Rt(ai)&&St++<Et?(xe.consume(ai),Sn):We(ai)}}const lt={name:"characterEscape",tokenize:Go};function Go(xe,je,We){return et;function et(Et){return xe.enter("characterEscape"),xe.enter("escapeMarker"),xe.consume(Et),xe.exit("escapeMarker"),St}function St(Et){return(0,jt.sR)(Et)?(xe.enter("characterEscapeValue"),xe.consume(Et),xe.exit("characterEscapeValue"),xe.exit("characterEscape"),je):We(Et)}}const Lr={name:"lineEnding",tokenize:zr};function zr(xe,je){return We;function We(et){return xe.enter("lineEnding"),xe.consume(et),xe.exit("lineEnding"),(0,Cn.f)(xe,je,"linePrefix")}}function $r(xe,je,We){const et=[];let St=-1;for(;++St<xe.length;){const Et=xe[St].resolveAll;Et&&!et.includes(Et)&&(je=Et(je,We),et.push(Et))}return je}const fo={name:"labelEnd",resolveAll:Ar,resolveTo:kr,tokenize:Uo},Xi={tokenize:hr},nr={tokenize:ar},Ir={tokenize:ri};function Ar(xe){let je=-1;const We=[];for(;++je<xe.length;){const et=xe[je][1];if(We.push(xe[je]),et.type==="labelImage"||et.type==="labelLink"||et.type==="labelEnd"){const St=et.type==="labelImage"?4:2;et.type="data",je+=St}}return xe.length!==We.length&&vn(xe,0,xe.length,We),xe}function kr(xe,je){let We=xe.length,et=0,St,Et,Rt,Wt;for(;We--;)if(St=xe[We][1],Et){if(St.type==="link"||St.type==="labelLink"&&St._inactive)break;xe[We][0]==="enter"&&St.type==="labelLink"&&(St._inactive=!0)}else if(Rt){if(xe[We][0]==="enter"&&(St.type==="labelImage"||St.type==="labelLink")&&!St._balanced&&(Et=We,St.type!=="labelLink")){et=2;break}}else St.type==="labelEnd"&&(Rt=We);const _n={type:xe[Et][1].type==="labelLink"?"link":"image",start:Mo({},xe[Et][1].start),end:Mo({},xe[xe.length-1][1].end)},Un={type:"label",start:Mo({},xe[Et][1].start),end:Mo({},xe[Rt][1].end)},Sn={type:"labelText",start:Mo({},xe[Et+et+2][1].end),end:Mo({},xe[Rt-2][1].start)};return Wt=[["enter",_n,je],["enter",Un,je]],Wt=cn(Wt,xe.slice(Et+1,Et+et+3)),Wt=cn(Wt,[["enter",Sn,je]]),Wt=cn(Wt,$r(je.parser.constructs.insideSpan.null,xe.slice(Et+et+4,Rt-3),je)),Wt=cn(Wt,[["exit",Sn,je],xe[Rt-2],xe[Rt-1],["exit",Un,je]]),Wt=cn(Wt,xe.slice(Rt+1)),Wt=cn(Wt,[["exit",_n,je]]),vn(xe,Et,xe.length,Wt),xe}function Uo(xe,je,We){const et=this;let St=et.events.length,Et,Rt;for(;St--;)if((et.events[St][1].type==="labelImage"||et.events[St][1].type==="labelLink")&&!et.events[St][1]._balanced){Et=et.events[St][1];break}return Wt;function Wt(ei){return Et?Et._inactive?ai(ei):(Rt=et.parser.defined.includes(hi(et.sliceSerialize({start:Et.end,end:et.now()}))),xe.enter("labelEnd"),xe.enter("labelMarker"),xe.consume(ei),xe.exit("labelMarker"),xe.exit("labelEnd"),_n):We(ei)}function _n(ei){return ei===40?xe.attempt(Xi,Sn,Rt?Sn:ai)(ei):ei===91?xe.attempt(nr,Sn,Rt?Un:ai)(ei):Rt?Sn(ei):ai(ei)}function Un(ei){return xe.attempt(Ir,Sn,ai)(ei)}function Sn(ei){return je(ei)}function ai(ei){return Et._balanced=!0,We(ei)}}function hr(xe,je,We){return et;function et(ai){return xe.enter("resource"),xe.enter("resourceMarker"),xe.consume(ai),xe.exit("resourceMarker"),St}function St(ai){return(0,jt.z3)(ai)?Ni(xe,Et)(ai):Et(ai)}function Et(ai){return ai===41?Sn(ai):vi(xe,Rt,Wt,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(ai)}function Rt(ai){return(0,jt.z3)(ai)?Ni(xe,_n)(ai):Sn(ai)}function Wt(ai){return We(ai)}function _n(ai){return ai===34||ai===39||ai===40?_e(xe,Un,We,"resourceTitle","resourceTitleMarker","resourceTitleString")(ai):Sn(ai)}function Un(ai){return(0,jt.z3)(ai)?Ni(xe,Sn)(ai):Sn(ai)}function Sn(ai){return ai===41?(xe.enter("resourceMarker"),xe.consume(ai),xe.exit("resourceMarker"),xe.exit("resource"),je):We(ai)}}function ar(xe,je,We){const et=this;return St;function St(Wt){return nn.call(et,xe,Et,Rt,"reference","referenceMarker","referenceString")(Wt)}function Et(Wt){return et.parser.defined.includes(hi(et.sliceSerialize(et.events[et.events.length-1][1]).slice(1,-1)))?je(Wt):We(Wt)}function Rt(Wt){return We(Wt)}}function ri(xe,je,We){return et;function et(Et){return xe.enter("reference"),xe.enter("referenceMarker"),xe.consume(Et),xe.exit("referenceMarker"),St}function St(Et){return Et===93?(xe.enter("referenceMarker"),xe.consume(Et),xe.exit("referenceMarker"),xe.exit("reference"),je):We(Et)}}const Ji={name:"labelStartImage",resolveAll:fo.resolveAll,tokenize:Zr};function Zr(xe,je,We){const et=this;return St;function St(Wt){return xe.enter("labelImage"),xe.enter("labelImageMarker"),xe.consume(Wt),xe.exit("labelImageMarker"),Et}function Et(Wt){return Wt===91?(xe.enter("labelMarker"),xe.consume(Wt),xe.exit("labelMarker"),xe.exit("labelImage"),Rt):We(Wt)}function Rt(Wt){return Wt===94&&"_hiddenFootnoteSupport"in et.parser.constructs?We(Wt):je(Wt)}}function jo(xe){if(xe===null||(0,jt.z3)(xe)||(0,jt.B8)(xe))return 1;if((0,jt.Xh)(xe))return 2}const Do={name:"attention",resolveAll:Ao,tokenize:Ho};function Ao(xe,je){let We=-1,et,St,Et,Rt,Wt,_n,Un,Sn;for(;++We<xe.length;)if(xe[We][0]==="enter"&&xe[We][1].type==="attentionSequence"&&xe[We][1]._close){for(et=We;et--;)if(xe[et][0]==="exit"&&xe[et][1].type==="attentionSequence"&&xe[et][1]._open&&je.sliceSerialize(xe[et][1]).charCodeAt(0)===je.sliceSerialize(xe[We][1]).charCodeAt(0)){if((xe[et][1]._close||xe[We][1]._open)&&(xe[We][1].end.offset-xe[We][1].start.offset)%3&&!((xe[et][1].end.offset-xe[et][1].start.offset+xe[We][1].end.offset-xe[We][1].start.offset)%3))continue;_n=xe[et][1].end.offset-xe[et][1].start.offset>1&&xe[We][1].end.offset-xe[We][1].start.offset>1?2:1;const ai=Mo({},xe[et][1].end),ei=Mo({},xe[We][1].start);Po(ai,-_n),Po(ei,_n),Rt={type:_n>1?"strongSequence":"emphasisSequence",start:ai,end:Mo({},xe[et][1].end)},Wt={type:_n>1?"strongSequence":"emphasisSequence",start:Mo({},xe[We][1].start),end:ei},Et={type:_n>1?"strongText":"emphasisText",start:Mo({},xe[et][1].end),end:Mo({},xe[We][1].start)},St={type:_n>1?"strong":"emphasis",start:Mo({},Rt.start),end:Mo({},Wt.end)},xe[et][1].end=Mo({},Rt.start),xe[We][1].start=Mo({},Wt.end),Un=[],xe[et][1].end.offset-xe[et][1].start.offset&&(Un=cn(Un,[["enter",xe[et][1],je],["exit",xe[et][1],je]])),Un=cn(Un,[["enter",St,je],["enter",Rt,je],["exit",Rt,je],["enter",Et,je]]),Un=cn(Un,$r(je.parser.constructs.insideSpan.null,xe.slice(et+1,We),je)),Un=cn(Un,[["exit",Et,je],["enter",Wt,je],["exit",Wt,je],["exit",St,je]]),xe[We][1].end.offset-xe[We][1].start.offset?(Sn=2,Un=cn(Un,[["enter",xe[We][1],je],["exit",xe[We][1],je]])):Sn=0,vn(xe,et-1,We-et+3,Un),We=et+Un.length-Sn-2;break}}for(We=-1;++We<xe.length;)xe[We][1].type==="attentionSequence"&&(xe[We][1].type="data");return xe}function Ho(xe,je){const We=this.parser.constructs.attentionMarkers.null,et=this.previous,St=jo(et);let Et;return Rt;function Rt(_n){return Et=_n,xe.enter("attentionSequence"),Wt(_n)}function Wt(_n){if(_n===Et)return xe.consume(_n),Wt;const Un=xe.exit("attentionSequence"),Sn=jo(_n),ai=!Sn||Sn===2&&St||We.includes(_n),ei=!St||St===2&&Sn||We.includes(et);return Un._open=!!(Et===42?ai:ai&&(St||!ei)),Un._close=!!(Et===42?ei:ei&&(Sn||!ai)),je(_n)}}function Po(xe,je){xe.column+=je,xe.offset+=je,xe._bufferIndex+=je}const Sa={name:"autolink",tokenize:aa};function aa(xe,je,We){let et=0;return St;function St(Ln){return xe.enter("autolink"),xe.enter("autolinkMarker"),xe.consume(Ln),xe.exit("autolinkMarker"),xe.enter("autolinkProtocol"),Et}function Et(Ln){return(0,jt.jv)(Ln)?(xe.consume(Ln),Rt):Ln===64?We(Ln):Un(Ln)}function Rt(Ln){return Ln===43||Ln===45||Ln===46||(0,jt.H$)(Ln)?(et=1,Wt(Ln)):Un(Ln)}function Wt(Ln){return Ln===58?(xe.consume(Ln),et=0,_n):(Ln===43||Ln===45||Ln===46||(0,jt.H$)(Ln))&&et++<32?(xe.consume(Ln),Wt):(et=0,Un(Ln))}function _n(Ln){return Ln===62?(xe.exit("autolinkProtocol"),xe.enter("autolinkMarker"),xe.consume(Ln),xe.exit("autolinkMarker"),xe.exit("autolink"),je):Ln===null||Ln===32||Ln===60||(0,jt.Av)(Ln)?We(Ln):(xe.consume(Ln),_n)}function Un(Ln){return Ln===64?(xe.consume(Ln),Sn):(0,jt.n9)(Ln)?(xe.consume(Ln),Un):We(Ln)}function Sn(Ln){return(0,jt.H$)(Ln)?ai(Ln):We(Ln)}function ai(Ln){return Ln===46?(xe.consume(Ln),et=0,Sn):Ln===62?(xe.exit("autolinkProtocol").type="autolinkEmail",xe.enter("autolinkMarker"),xe.consume(Ln),xe.exit("autolinkMarker"),xe.exit("autolink"),je):ei(Ln)}function ei(Ln){if((Ln===45||(0,jt.H$)(Ln))&&et++<63){const Rr=Ln===45?ei:ai;return xe.consume(Ln),Rr}return We(Ln)}}const es={name:"htmlText",tokenize:hn};function hn(xe,je,We){const et=this;let St,Et,Rt;return Wt;function Wt(Zn){return xe.enter("htmlText"),xe.enter("htmlTextData"),xe.consume(Zn),_n}function _n(Zn){return Zn===33?(xe.consume(Zn),Un):Zn===47?(xe.consume(Zn),la):Zn===63?(xe.consume(Zn),Hr):(0,jt.jv)(Zn)?(xe.consume(Zn),Oa):We(Zn)}function Un(Zn){return Zn===45?(xe.consume(Zn),Sn):Zn===91?(xe.consume(Zn),Et=0,Rr):(0,jt.jv)(Zn)?(xe.consume(Zn),_r):We(Zn)}function Sn(Zn){return Zn===45?(xe.consume(Zn),Ln):We(Zn)}function ai(Zn){return Zn===null?We(Zn):Zn===45?(xe.consume(Zn),ei):(0,jt.Ch)(Zn)?(Rt=ai,gs(Zn)):(xe.consume(Zn),ai)}function ei(Zn){return Zn===45?(xe.consume(Zn),Ln):ai(Zn)}function Ln(Zn){return Zn===62?ka(Zn):Zn===45?ei(Zn):ai(Zn)}function Rr(Zn){const _s="CDATA[";return Zn===_s.charCodeAt(Et++)?(xe.consume(Zn),Et===_s.length?Jr:Rr):We(Zn)}function Jr(Zn){return Zn===null?We(Zn):Zn===93?(xe.consume(Zn),uo):(0,jt.Ch)(Zn)?(Rt=Jr,gs(Zn)):(xe.consume(Zn),Jr)}function uo(Zn){return Zn===93?(xe.consume(Zn),vr):Jr(Zn)}function vr(Zn){return Zn===62?ka(Zn):Zn===93?(xe.consume(Zn),vr):Jr(Zn)}function _r(Zn){return Zn===null||Zn===62?ka(Zn):(0,jt.Ch)(Zn)?(Rt=_r,gs(Zn)):(xe.consume(Zn),_r)}function Hr(Zn){return Zn===null?We(Zn):Zn===63?(xe.consume(Zn),sa):(0,jt.Ch)(Zn)?(Rt=Hr,gs(Zn)):(xe.consume(Zn),Hr)}function sa(Zn){return Zn===62?ka(Zn):Hr(Zn)}function la(Zn){return(0,jt.jv)(Zn)?(xe.consume(Zn),tr):We(Zn)}function tr(Zn){return Zn===45||(0,jt.H$)(Zn)?(xe.consume(Zn),tr):da(Zn)}function da(Zn){return(0,jt.Ch)(Zn)?(Rt=da,gs(Zn)):(0,jt.xz)(Zn)?(xe.consume(Zn),da):ka(Zn)}function Oa(Zn){return Zn===45||(0,jt.H$)(Zn)?(xe.consume(Zn),Oa):Zn===47||Zn===62||(0,jt.z3)(Zn)?na(Zn):We(Zn)}function na(Zn){return Zn===47?(xe.consume(Zn),ka):Zn===58||Zn===95||(0,jt.jv)(Zn)?(xe.consume(Zn),Or):(0,jt.Ch)(Zn)?(Rt=na,gs(Zn)):(0,jt.xz)(Zn)?(xe.consume(Zn),na):ka(Zn)}function Or(Zn){return Zn===45||Zn===46||Zn===58||Zn===95||(0,jt.H$)(Zn)?(xe.consume(Zn),Or):Bs(Zn)}function Bs(Zn){return Zn===61?(xe.consume(Zn),Ea):(0,jt.Ch)(Zn)?(Rt=Bs,gs(Zn)):(0,jt.xz)(Zn)?(xe.consume(Zn),Bs):na(Zn)}function Ea(Zn){return Zn===null||Zn===60||Zn===61||Zn===62||Zn===96?We(Zn):Zn===34||Zn===39?(xe.consume(Zn),St=Zn,lo):(0,jt.Ch)(Zn)?(Rt=Ea,gs(Zn)):(0,jt.xz)(Zn)?(xe.consume(Zn),Ea):(xe.consume(Zn),io)}function lo(Zn){return Zn===St?(xe.consume(Zn),St=void 0,Bo):Zn===null?We(Zn):(0,jt.Ch)(Zn)?(Rt=lo,gs(Zn)):(xe.consume(Zn),lo)}function io(Zn){return Zn===null||Zn===34||Zn===39||Zn===60||Zn===61||Zn===96?We(Zn):Zn===47||Zn===62||(0,jt.z3)(Zn)?na(Zn):(xe.consume(Zn),io)}function Bo(Zn){return Zn===47||Zn===62||(0,jt.z3)(Zn)?na(Zn):We(Zn)}function ka(Zn){return Zn===62?(xe.consume(Zn),xe.exit("htmlTextData"),xe.exit("htmlText"),je):We(Zn)}function gs(Zn){return xe.exit("htmlTextData"),xe.enter("lineEnding"),xe.consume(Zn),xe.exit("lineEnding"),Cs}function Cs(Zn){return(0,jt.xz)(Zn)?(0,Cn.f)(xe,dl,"linePrefix",et.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Zn):dl(Zn)}function dl(Zn){return xe.enter("htmlTextData"),Rt(Zn)}}const ra={name:"labelStartLink",resolveAll:fo.resolveAll,tokenize:kl};function kl(xe,je,We){const et=this;return St;function St(Rt){return xe.enter("labelLink"),xe.enter("labelMarker"),xe.consume(Rt),xe.exit("labelMarker"),xe.exit("labelLink"),Et}function Et(Rt){return Rt===94&&"_hiddenFootnoteSupport"in et.parser.constructs?We(Rt):je(Rt)}}const Ha={name:"hardBreakEscape",tokenize:yl};function yl(xe,je,We){return et;function et(Et){return xe.enter("hardBreakEscape"),xe.consume(Et),St}function St(Et){return(0,jt.Ch)(Et)?(xe.exit("hardBreakEscape"),je(Et)):We(Et)}}const Lo={name:"codeText",previous:An,resolve:lu,tokenize:zo};function lu(xe){let je=xe.length-4,We=3,et,St;if((xe[We][1].type==="lineEnding"||xe[We][1].type==="space")&&(xe[je][1].type==="lineEnding"||xe[je][1].type==="space")){for(et=We;++et<je;)if(xe[et][1].type==="codeTextData"){xe[We][1].type="codeTextPadding",xe[je][1].type="codeTextPadding",We+=2,je-=2;break}}for(et=We-1,je++;++et<=je;)St===void 0?et!==je&&xe[et][1].type!=="lineEnding"&&(St=et):(et===je||xe[et][1].type==="lineEnding")&&(xe[St][1].type="codeTextData",et!==St+2&&(xe[St][1].end=xe[et-1][1].end,xe.splice(St+2,et-St-2),je-=et-St-2,et=St+2),St=void 0);return xe}function An(xe){return xe!==96||this.events[this.events.length-1][1].type==="characterEscape"}function zo(xe,je,We){const et=this;let St=0,Et,Rt;return Wt;function Wt(ei){return xe.enter("codeText"),xe.enter("codeTextSequence"),_n(ei)}function _n(ei){return ei===96?(xe.consume(ei),St++,_n):(xe.exit("codeTextSequence"),Un(ei))}function Un(ei){return ei===null?We(ei):ei===32?(xe.enter("space"),xe.consume(ei),xe.exit("space"),Un):ei===96?(Rt=xe.enter("codeTextSequence"),Et=0,ai(ei)):(0,jt.Ch)(ei)?(xe.enter("lineEnding"),xe.consume(ei),xe.exit("lineEnding"),Un):(xe.enter("codeTextData"),Sn(ei))}function Sn(ei){return ei===null||ei===32||ei===96||(0,jt.Ch)(ei)?(xe.exit("codeTextData"),Un(ei)):(xe.consume(ei),Sn)}function ai(ei){return ei===96?(xe.consume(ei),Et++,ai):Et===St?(xe.exit("codeTextSequence"),xe.exit("codeText"),je(ei)):(Rt.type="codeTextData",Sn(ei))}}const ca={42:yi,43:yi,45:yi,48:yi,49:yi,50:yi,51:yi,52:yi,53:yi,54:yi,55:yi,56:yi,57:yi,62:ii},sl={91:Pn},Ga={[-2]:Tn,[-1]:Tn,32:Tn},Xs={35:en,42:$n,45:[ji,$n],60:mr,61:ji,95:$n,96:mo,126:mo},ps={38:no,92:lt},cr={[-5]:Lr,[-4]:Lr,[-3]:Lr,33:Ji,38:no,42:Do,60:[Sa,es],91:ra,92:[Ha,lt],93:fo,95:Do,96:Lo},Pa={null:[Do,ti]},Dl={null:[42,95]},is={null:[]};function Kr(xe,je,We){let et={_bufferIndex:-1,_index:0,line:We&&We.line||1,column:We&&We.column||1,offset:We&&We.offset||0};const St={},Et=[];let Rt=[],Wt=[],_n=!0;const Un={attempt:na(da),check:na(Oa),consume:sa,enter:la,exit:tr,interrupt:na(Oa,{interrupt:!0})},Sn={code:null,containerState:{},defineSkip:vr,events:[],now:uo,parser:xe,previous:null,sliceSerialize:Rr,sliceStream:Jr,write:Ln};let ai=je.tokenize.call(Sn,Un),ei;return je.resolveAll&&Et.push(je),Sn;function Ln(lo){return Rt=cn(Rt,lo),_r(),Rt[Rt.length-1]!==null?[]:(Or(je,0),Sn.events=$r(Et,Sn.events,Sn),Sn.events)}function Rr(lo,io){return Yt(Jr(lo),io)}function Jr(lo){return so(Rt,lo)}function uo(){const{_bufferIndex:lo,_index:io,line:Bo,column:ka,offset:gs}=et;return{_bufferIndex:lo,_index:io,line:Bo,column:ka,offset:gs}}function vr(lo){St[lo.line]=lo.column,Ea()}function _r(){let lo;for(;et._index<Rt.length;){const io=Rt[et._index];if(typeof io=="string")for(lo=et._index,et._bufferIndex<0&&(et._bufferIndex=0);et._index===lo&&et._bufferIndex<io.length;)Hr(io.charCodeAt(et._bufferIndex));else Hr(io)}}function Hr(lo){_n=void 0,ei=lo,ai=ai(lo)}function sa(lo){(0,jt.Ch)(lo)?(et.line++,et.column=1,et.offset+=lo===-3?2:1,Ea()):lo!==-1&&(et.column++,et.offset++),et._bufferIndex<0?et._index++:(et._bufferIndex++,et._bufferIndex===Rt[et._index].length&&(et._bufferIndex=-1,et._index++)),Sn.previous=lo,_n=!0}function la(lo,io){const Bo=io||{};return Bo.type=lo,Bo.start=uo(),Sn.events.push(["enter",Bo,Sn]),Wt.push(Bo),Bo}function tr(lo){const io=Wt.pop();return io.end=uo(),Sn.events.push(["exit",io,Sn]),io}function da(lo,io){Or(lo,io.from)}function Oa(lo,io){io.restore()}function na(lo,io){return Bo;function Bo(ka,gs,Cs){let dl,Zn,_s,bl;return Array.isArray(ka)?Ns(ka):"tokenize"in ka?Ns([ka]):Jn(ka);function Jn(Da){return wl;function wl(Ss){const fu=Ss!==null&&Da[Ss],Lu=Ss!==null&&Da.null,dd=[...Array.isArray(fu)?fu:fu?[fu]:[],...Array.isArray(Lu)?Lu:Lu?[Lu]:[]];return Ns(dd)(Ss)}}function Ns(Da){return dl=Da,Zn=0,Da.length===0?Cs:Fl(Da[Zn])}function Fl(Da){return wl;function wl(Ss){return bl=Bs(),_s=Da,Da.partial||(Sn.currentConstruct=Da),Da.name&&Sn.parser.constructs.disable.null.includes(Da.name)?ss(Ss):Da.tokenize.call(io?Object.assign(Object.create(Sn),io):Sn,Un,Ql,ss)(Ss)}}function Ql(Da){return _n=!0,lo(_s,bl),gs}function ss(Da){return _n=!0,bl.restore(),++Zn<dl.length?Fl(dl[Zn]):Cs}}}function Or(lo,io){lo.resolveAll&&!Et.includes(lo)&&Et.push(lo),lo.resolve&&vn(Sn.events,io,Sn.events.length-io,lo.resolve(Sn.events.slice(io),Sn)),lo.resolveTo&&(Sn.events=lo.resolveTo(Sn.events,Sn))}function Bs(){const lo=uo(),io=Sn.previous,Bo=Sn.currentConstruct,ka=Sn.events.length,gs=Array.from(Wt);return{from:ka,restore:Cs};function Cs(){et=lo,Sn.previous=io,Sn.currentConstruct=Bo,Sn.events.length=ka,Wt=gs,Ea()}}function Ea(){et.line in St&&et.column<2&&(et.column=St[et.line],et.offset+=St[et.line]-1)}}function so(xe,je){const We=je.start._index,et=je.start._bufferIndex,St=je.end._index,Et=je.end._bufferIndex;let Rt;if(We===St)Rt=[xe[We].slice(et,Et)];else{if(Rt=xe.slice(We,St),et>-1){const Wt=Rt[0];typeof Wt=="string"?Rt[0]=Wt.slice(et):Rt.shift()}Et>0&&Rt.push(xe[St].slice(0,Et))}return Rt}function Yt(xe,je){let We=-1;const et=[];let St;for(;++We<xe.length;){const Et=xe[We];let Rt;if(typeof Et=="string")Rt=Et;else switch(Et){case-5:{Rt="\r";break}case-4:{Rt=`
`;break}case-3:{Rt=`\r
`;break}case-2:{Rt=je?" ":" ";break}case-1:{if(!je&&St)continue;Rt=" ";break}default:Rt=String.fromCharCode(Et)}St=Et===-2,et.push(Rt)}return et.join("")}function Pi(xe){const et={constructs:Jt([le,...(xe||{}).extensions||[]]),content:St(mi),defined:[],document:St(Oi),flow:St(Wn),lazy:{},string:St(ki),text:St(ni)};return et;function St(Et){return Rt;function Rt(Wt){return Kr(et,Et,Wt)}}}const Ki=/[\0\t\n\r]/g;function xr(){let xe=1,je="",We=!0,et;return St;function St(Et,Rt,Wt){const _n=[];let Un,Sn,ai,ei,Ln;for(Et=je+(typeof Et=="string"?Et.toString():new TextDecoder(Rt||void 0).decode(Et)),ai=0,je="",We&&(Et.charCodeAt(0)===65279&&ai++,We=void 0);ai<Et.length;){if(Ki.lastIndex=ai,Un=Ki.exec(Et),ei=Un&&Un.index!==void 0?Un.index:Et.length,Ln=Et.charCodeAt(ei),!Un){je=Et.slice(ai);break}if(Ln===10&&ai===ei&&et)_n.push(-3),et=void 0;else switch(et&&(_n.push(-5),et=void 0),ai<ei&&(_n.push(Et.slice(ai,ei)),xe+=ei-ai),Ln){case 0:{_n.push(65533),xe++;break}case 9:{for(Sn=Math.ceil(xe/4)*4,_n.push(-2);xe++<Sn;)_n.push(-1);break}case 10:{_n.push(-4),xe=1;break}default:et=!0,xe=1}ai=ei+1}return Wt&&(et&&_n.push(-5),je&&_n.push(je),_n.push(null)),_n}}function Qr(xe,je){const We=Number.parseInt(xe,je);return We<9||We===11||We>13&&We<32||We>126&&We<160||We>55295&&We<57344||We>64975&&We<65008||(We&65535)===65535||(We&65535)===65534||We>1114111?"\uFFFD":String.fromCodePoint(We)}const Yr=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ur(xe){return xe.replace(Yr,yo)}function yo(xe,je,We){if(je)return je;if(We.charCodeAt(0)===35){const St=We.charCodeAt(1),Et=St===120||St===88;return Qr(We.slice(Et?2:1),Et?16:10)}return pa(We)||xe}const Jo={}.hasOwnProperty;function Io(xe,je,We){return typeof je!="string"&&(We=je,je=void 0),Wo(We)(dn(Pi(We).document().write(xr()(xe,je,!0))))}function Wo(xe){const je={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:Et(Ye),autolinkProtocol:na,autolinkEmail:na,atxHeading:Et(Zu),blockQuote:Et(Ss),characterEscape:na,characterReference:na,codeFenced:Et(fu),codeFencedFenceInfo:Rt,codeFencedFenceMeta:Rt,codeIndented:Et(fu,Rt),codeText:Et(Lu,Rt),codeTextData:na,data:na,codeFlowValue:na,definition:Et(dd),definitionDestinationString:Rt,definitionLabelString:Rt,definitionTitleString:Rt,emphasis:Et(Bl),hardBreakEscape:Et(_d),hardBreakTrailing:Et(_d),htmlFlow:Et(ue,Rt),htmlFlowData:na,htmlText:Et(ue,Rt),htmlTextData:na,image:Et(ge),label:Rt,link:Et(Ye),listItem:Et(zn),listItemValue:ei,listOrdered:Et(Ot,ai),listUnordered:Et(Ot),paragraph:Et(bi),reference:Jn,referenceString:Rt,resourceDestinationString:Rt,resourceTitleString:Rt,setextHeading:Et(Zu),strong:Et(Vi),thematicBreak:Et(ro)},exit:{atxHeading:_n(),atxHeadingSequence:la,autolink:_n(),autolinkEmail:wl,autolinkProtocol:Da,blockQuote:_n(),characterEscapeValue:Or,characterReferenceMarkerHexadecimal:Fl,characterReferenceMarkerNumeric:Fl,characterReferenceValue:Ql,characterReference:ss,codeFenced:_n(uo),codeFencedFence:Jr,codeFencedFenceInfo:Ln,codeFencedFenceMeta:Rr,codeFlowValue:Or,codeIndented:_n(vr),codeText:_n(Bo),codeTextData:Or,data:Or,definition:_n(),definitionDestinationString:sa,definitionLabelString:_r,definitionTitleString:Hr,emphasis:_n(),hardBreakEscape:_n(Ea),hardBreakTrailing:_n(Ea),htmlFlow:_n(lo),htmlFlowData:Or,htmlText:_n(io),htmlTextData:Or,image:_n(gs),label:dl,labelText:Cs,lineEnding:Bs,link:_n(ka),listItem:_n(),listOrdered:_n(),listUnordered:_n(),paragraph:_n(),referenceString:Ns,resourceDestinationString:Zn,resourceTitleString:_s,resource:bl,setextHeading:_n(Oa),setextHeadingLineSequence:da,setextHeadingText:tr,strong:_n(),thematicBreak:_n()}};ms(je,(xe||{}).mdastExtensions||[]);const We={};return et;function et(Si){let fr={type:"root",children:[]};const co={stack:[fr],tokenStack:[],config:je,enter:Wt,exit:Un,buffer:Rt,resume:Sn,data:We},Vo=[];let ya=-1;for(;++ya<Si.length;)if(Si[ya][1].type==="listOrdered"||Si[ya][1].type==="listUnordered")if(Si[ya][0]==="enter")Vo.push(ya);else{const Xl=Vo.pop();ya=St(Si,Xl,ya)}for(ya=-1;++ya<Si.length;){const Xl=je[Si[ya][0]];Jo.call(Xl,Si[ya][1].type)&&Xl[Si[ya][1].type].call(Object.assign({sliceSerialize:Si[ya][2].sliceSerialize},co),Si[ya][1])}if(co.tokenStack.length>0){const Xl=co.tokenStack[co.tokenStack.length-1];(Xl[1]||Aa).call(co,void 0,Xl[0])}for(fr.position={start:oa(Si.length>0?Si[0][1].start:{line:1,column:1,offset:0}),end:oa(Si.length>0?Si[Si.length-2][1].end:{line:1,column:1,offset:0})},ya=-1;++ya<je.transforms.length;)fr=je.transforms[ya](fr)||fr;return fr}function St(Si,fr,co){let Vo=fr-1,ya=-1,Xl=!1,gu,Ku,Iu,$s;for(;++Vo<=co;){const _l=Si[Vo];switch(_l[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{_l[0]==="enter"?ya++:ya--,$s=void 0;break}case"lineEndingBlank":{_l[0]==="enter"&&(gu&&!$s&&!ya&&!Iu&&(Iu=Vo),$s=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:$s=void 0}if(!ya&&_l[0]==="enter"&&_l[1].type==="listItemPrefix"||ya===-1&&_l[0]==="exit"&&(_l[1].type==="listUnordered"||_l[1].type==="listOrdered")){if(gu){let Cc=Vo;for(Ku=void 0;Cc--;){const Tl=Si[Cc];if(Tl[1].type==="lineEnding"||Tl[1].type==="lineEndingBlank"){if(Tl[0]==="exit")continue;Ku&&(Si[Ku][1].type="lineEndingBlank",Xl=!0),Tl[1].type="lineEnding",Ku=Cc}else if(!(Tl[1].type==="linePrefix"||Tl[1].type==="blockQuotePrefix"||Tl[1].type==="blockQuotePrefixWhitespace"||Tl[1].type==="blockQuoteMarker"||Tl[1].type==="listItemIndent"))break}Iu&&(!Ku||Iu<Ku)&&(gu._spread=!0),gu.end=Object.assign({},Ku?Si[Ku][1].start:_l[1].end),Si.splice(Ku||Vo,0,["exit",gu,_l[2]]),Vo++,co++}if(_l[1].type==="listItemPrefix"){const Cc={type:"listItem",_spread:!1,start:Object.assign({},_l[1].start),end:void 0};gu=Cc,Si.splice(Vo,0,["enter",Cc,_l[2]]),Vo++,co++,Iu=void 0,$s=!0}}}return Si[fr][1]._spread=Xl,co}function Et(Si,fr){return co;function co(Vo){Wt.call(this,Si(Vo),Vo),fr&&fr.call(this,Vo)}}function Rt(){this.stack.push({type:"fragment",children:[]})}function Wt(Si,fr,co){this.stack[this.stack.length-1].children.push(Si),this.stack.push(Si),this.tokenStack.push([fr,co||void 0]),Si.position={start:oa(fr.start),end:void 0}}function _n(Si){return fr;function fr(co){Si&&Si.call(this,co),Un.call(this,co)}}function Un(Si,fr){const co=this.stack.pop(),Vo=this.tokenStack.pop();if(Vo)Vo[0].type!==Si.type&&(fr?fr.call(this,Si,Vo[0]):(Vo[1]||Aa).call(this,Si,Vo[0]));else throw new Error("Cannot close `"+Si.type+"` ("+De({start:Si.start,end:Si.end})+"): it\u2019s not open");co.position.end=oa(Si.end)}function Sn(){return tn(this.stack.pop())}function ai(){this.data.expectingFirstListItemValue=!0}function ei(Si){if(this.data.expectingFirstListItemValue){const fr=this.stack[this.stack.length-2];fr.start=Number.parseInt(this.sliceSerialize(Si),10),this.data.expectingFirstListItemValue=void 0}}function Ln(){const Si=this.resume(),fr=this.stack[this.stack.length-1];fr.lang=Si}function Rr(){const Si=this.resume(),fr=this.stack[this.stack.length-1];fr.meta=Si}function Jr(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function uo(){const Si=this.resume(),fr=this.stack[this.stack.length-1];fr.value=Si.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function vr(){const Si=this.resume(),fr=this.stack[this.stack.length-1];fr.value=Si.replace(/(\r?\n|\r)$/g,"")}function _r(Si){const fr=this.resume(),co=this.stack[this.stack.length-1];co.label=fr,co.identifier=hi(this.sliceSerialize(Si)).toLowerCase()}function Hr(){const Si=this.resume(),fr=this.stack[this.stack.length-1];fr.title=Si}function sa(){const Si=this.resume(),fr=this.stack[this.stack.length-1];fr.url=Si}function la(Si){const fr=this.stack[this.stack.length-1];if(!fr.depth){const co=this.sliceSerialize(Si).length;fr.depth=co}}function tr(){this.data.setextHeadingSlurpLineEnding=!0}function da(Si){const fr=this.stack[this.stack.length-1];fr.depth=this.sliceSerialize(Si).codePointAt(0)===61?1:2}function Oa(){this.data.setextHeadingSlurpLineEnding=void 0}function na(Si){const co=this.stack[this.stack.length-1].children;let Vo=co[co.length-1];(!Vo||Vo.type!=="text")&&(Vo=jr(),Vo.position={start:oa(Si.start),end:void 0},co.push(Vo)),this.stack.push(Vo)}function Or(Si){const fr=this.stack.pop();fr.value+=this.sliceSerialize(Si),fr.position.end=oa(Si.end)}function Bs(Si){const fr=this.stack[this.stack.length-1];if(this.data.atHardBreak){const co=fr.children[fr.children.length-1];co.position.end=oa(Si.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&je.canContainEols.includes(fr.type)&&(na.call(this,Si),Or.call(this,Si))}function Ea(){this.data.atHardBreak=!0}function lo(){const Si=this.resume(),fr=this.stack[this.stack.length-1];fr.value=Si}function io(){const Si=this.resume(),fr=this.stack[this.stack.length-1];fr.value=Si}function Bo(){const Si=this.resume(),fr=this.stack[this.stack.length-1];fr.value=Si}function ka(){const Si=this.stack[this.stack.length-1];if(this.data.inReference){const fr=this.data.referenceType||"shortcut";Si.type+="Reference",Si.referenceType=fr,delete Si.url,delete Si.title}else delete Si.identifier,delete Si.label;this.data.referenceType=void 0}function gs(){const Si=this.stack[this.stack.length-1];if(this.data.inReference){const fr=this.data.referenceType||"shortcut";Si.type+="Reference",Si.referenceType=fr,delete Si.url,delete Si.title}else delete Si.identifier,delete Si.label;this.data.referenceType=void 0}function Cs(Si){const fr=this.sliceSerialize(Si),co=this.stack[this.stack.length-2];co.label=ur(fr),co.identifier=hi(fr).toLowerCase()}function dl(){const Si=this.stack[this.stack.length-1],fr=this.resume(),co=this.stack[this.stack.length-1];if(this.data.inReference=!0,co.type==="link"){const Vo=Si.children;co.children=Vo}else co.alt=fr}function Zn(){const Si=this.resume(),fr=this.stack[this.stack.length-1];fr.url=Si}function _s(){const Si=this.resume(),fr=this.stack[this.stack.length-1];fr.title=Si}function bl(){this.data.inReference=void 0}function Jn(){this.data.referenceType="collapsed"}function Ns(Si){const fr=this.resume(),co=this.stack[this.stack.length-1];co.label=fr,co.identifier=hi(this.sliceSerialize(Si)).toLowerCase(),this.data.referenceType="full"}function Fl(Si){this.data.characterReferenceType=Si.type}function Ql(Si){const fr=this.sliceSerialize(Si),co=this.data.characterReferenceType;let Vo;co?(Vo=Qr(fr,co==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Vo=pa(fr);const ya=this.stack[this.stack.length-1];ya.value+=Vo}function ss(Si){const fr=this.stack.pop();fr.position.end=oa(Si.end)}function Da(Si){Or.call(this,Si);const fr=this.stack[this.stack.length-1];fr.url=this.sliceSerialize(Si)}function wl(Si){Or.call(this,Si);const fr=this.stack[this.stack.length-1];fr.url="mailto:"+this.sliceSerialize(Si)}function Ss(){return{type:"blockquote",children:[]}}function fu(){return{type:"code",lang:null,meta:null,value:""}}function Lu(){return{type:"inlineCode",value:""}}function dd(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Bl(){return{type:"emphasis",children:[]}}function Zu(){return{type:"heading",depth:0,children:[]}}function _d(){return{type:"break"}}function ue(){return{type:"html",value:""}}function ge(){return{type:"image",title:null,url:"",alt:null}}function Ye(){return{type:"link",title:null,url:"",children:[]}}function Ot(Si){return{type:"list",ordered:Si.type==="listOrdered",start:null,spread:Si._spread,children:[]}}function zn(Si){return{type:"listItem",spread:Si._spread,checked:null,children:[]}}function bi(){return{type:"paragraph",children:[]}}function Vi(){return{type:"strong",children:[]}}function jr(){return{type:"text",value:""}}function ro(){return{type:"thematicBreak"}}}function oa(xe){return{line:xe.line,column:xe.column,offset:xe.offset}}function ms(xe,je){let We=-1;for(;++We<je.length;){const et=je[We];Array.isArray(et)?ms(xe,et):Zo(xe,et)}}function Zo(xe,je){let We;for(We in je)if(Jo.call(je,We))switch(We){case"canContainEols":{const et=je[We];et&&xe[We].push(...et);break}case"transforms":{const et=je[We];et&&xe[We].push(...et);break}case"enter":case"exit":{const et=je[We];et&&Object.assign(xe[We],et);break}}}function Aa(xe,je){throw xe?new Error("Cannot close `"+xe.type+"` ("+De({start:xe.start,end:xe.end})+"): a different token (`"+je.type+"`, "+De({start:je.start,end:je.end})+") is open"):new Error("Cannot close document, a token (`"+je.type+"`, "+De({start:je.start,end:je.end})+") is still open")}function Sl(xe){const je=this;je.parser=We;function We(et){return Io(et,Nf(Mo(Mo({},je.data("settings")),xe),{extensions:je.data("micromarkExtensions")||[],mdastExtensions:je.data("fromMarkdownExtensions")||[]}))}}var ll=de(90302);function vs(xe,je){const We=encode(ul(xe||""));if(!je)return We;const et=We.indexOf(":"),St=We.indexOf("?"),Et=We.indexOf("#"),Rt=We.indexOf("/");return et<0||Rt>-1&&et>Rt||St>-1&&et>St||Et>-1&&et>Et||je.test(We.slice(0,et))?We:""}function ul(xe){const je=[];let We=-1,et=0,St=0;for(;++We<xe.length;){const Et=xe.charCodeAt(We);let Rt="";if(Et===37&&(0,jt.H$)(xe.charCodeAt(We+1))&&(0,jt.H$)(xe.charCodeAt(We+2)))St=2;else if(Et<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(Et))||(Rt=String.fromCharCode(Et));else if(Et>55295&&Et<57344){const Wt=xe.charCodeAt(We+1);Et<56320&&Wt>56319&&Wt<57344?(Rt=String.fromCharCode(Et,Wt),St=1):Rt="\uFFFD"}else Rt=String.fromCharCode(Et);Rt&&(je.push(xe.slice(et,We),encodeURIComponent(Rt)),et=We+St+1,Rt=""),St&&(We+=St,St=0)}return je.join("")+xe.slice(et)}function Ol(xe,je){const We=[{type:"text",value:"\u21A9"}];return je>1&&We.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(je)}]}),We}function cs(xe,je){return"Back to reference "+(xe+1)+(je>1?"-"+je:"")}function Ts(xe){const je=typeof xe.options.clobberPrefix=="string"?xe.options.clobberPrefix:"user-content-",We=xe.options.footnoteBackContent||Ol,et=xe.options.footnoteBackLabel||cs,St=xe.options.footnoteLabel||"Footnotes",Et=xe.options.footnoteLabelTagName||"h2",Rt=xe.options.footnoteLabelProperties||{className:["sr-only"]},Wt=[];let _n=-1;for(;++_n<xe.footnoteOrder.length;){const Un=xe.footnoteById.get(xe.footnoteOrder[_n]);if(!Un)continue;const Sn=xe.all(Un),ai=String(Un.identifier).toUpperCase(),ei=ul(ai.toLowerCase());let Ln=0;const Rr=[],Jr=xe.footnoteCounts.get(ai);for(;Jr!==void 0&&++Ln<=Jr;){Rr.length>0&&Rr.push({type:"text",value:" "});let _r=typeof We=="string"?We:We(_n,Ln);typeof _r=="string"&&(_r={type:"text",value:_r}),Rr.push({type:"element",tagName:"a",properties:{href:"#"+je+"fnref-"+ei+(Ln>1?"-"+Ln:""),dataFootnoteBackref:"",ariaLabel:typeof et=="string"?et:et(_n,Ln),className:["data-footnote-backref"]},children:Array.isArray(_r)?_r:[_r]})}const uo=Sn[Sn.length-1];if(uo&&uo.type==="element"&&uo.tagName==="p"){const _r=uo.children[uo.children.length-1];_r&&_r.type==="text"?_r.value+=" ":uo.children.push({type:"text",value:" "}),uo.children.push(...Rr)}else Sn.push(...Rr);const vr={type:"element",tagName:"li",properties:{id:je+"fn-"+ei},children:xe.wrap(Sn,!0)};xe.patch(Un,vr),Wt.push(vr)}if(Wt.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:Et,properties:Nf(Mo({},(0,ll.ZP)(Rt)),{id:"footnote-label"}),children:[{type:"text",value:St}]},{type:"text",value:`
`},{type:"element",tagName:"ol",properties:{},children:xe.wrap(Wt,!0)},{type:"text",value:`
`}]}}var Ds=de(10528);function Hu(xe,je){const We={type:"element",tagName:"blockquote",properties:{},children:xe.wrap(xe.all(je),!0)};return xe.patch(je,We),xe.applyData(je,We)}function xc(xe,je){const We={type:"element",tagName:"br",properties:{},children:[]};return xe.patch(je,We),[xe.applyData(je,We),{type:"text",value:`
`}]}function bc(xe,je){const We=je.value?je.value+`
`:"",et={};je.lang&&(et.className=["language-"+je.lang]);let St={type:"element",tagName:"code",properties:et,children:[{type:"text",value:We}]};return je.meta&&(St.data={meta:je.meta}),xe.patch(je,St),St=xe.applyData(je,St),St={type:"element",tagName:"pre",properties:{},children:[St]},xe.patch(je,St),St}function Ca(xe,je){const We={type:"element",tagName:"del",properties:{},children:xe.all(je)};return xe.patch(je,We),xe.applyData(je,We)}function ad(xe,je){const We={type:"element",tagName:"em",properties:{},children:xe.all(je)};return xe.patch(je,We),xe.applyData(je,We)}function wc(xe,je){const We=typeof xe.options.clobberPrefix=="string"?xe.options.clobberPrefix:"user-content-",et=String(je.identifier).toUpperCase(),St=ul(et.toLowerCase()),Et=xe.footnoteOrder.indexOf(et);let Rt,Wt=xe.footnoteCounts.get(et);Wt===void 0?(Wt=0,xe.footnoteOrder.push(et),Rt=xe.footnoteOrder.length):Rt=Et+1,Wt+=1,xe.footnoteCounts.set(et,Wt);const _n={type:"element",tagName:"a",properties:{href:"#"+We+"fn-"+St,id:We+"fnref-"+St+(Wt>1?"-"+Wt:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(Rt)}]};xe.patch(je,_n);const Un={type:"element",tagName:"sup",properties:{},children:[_n]};return xe.patch(je,Un),xe.applyData(je,Un)}function oc(xe,je){const We={type:"element",tagName:"h"+je.depth,properties:{},children:xe.all(je)};return xe.patch(je,We),xe.applyData(je,We)}function Gu(xe,je){if(xe.options.allowDangerousHtml){const We={type:"raw",value:je.value};return xe.patch(je,We),xe.applyData(je,We)}}function rs(xe,je){const We=je.referenceType;let et="]";if(We==="collapsed"?et+="[]":We==="full"&&(et+="["+(je.label||je.identifier)+"]"),je.type==="imageReference")return[{type:"text",value:"!["+je.alt+et}];const St=xe.all(je),Et=St[0];Et&&Et.type==="text"?Et.value="["+Et.value:St.unshift({type:"text",value:"["});const Rt=St[St.length-1];return Rt&&Rt.type==="text"?Rt.value+=et:St.push({type:"text",value:et}),St}function ds(xe,je){const We=String(je.identifier).toUpperCase(),et=xe.definitionById.get(We);if(!et)return rs(xe,je);const St={src:ul(et.url||""),alt:je.alt};et.title!==null&&et.title!==void 0&&(St.title=et.title);const Et={type:"element",tagName:"img",properties:St,children:[]};return xe.patch(je,Et),xe.applyData(je,Et)}function _a(xe,je){const We={src:ul(je.url)};je.alt!==null&&je.alt!==void 0&&(We.alt=je.alt),je.title!==null&&je.title!==void 0&&(We.title=je.title);const et={type:"element",tagName:"img",properties:We,children:[]};return xe.patch(je,et),xe.applyData(je,et)}function Ya(xe,je){const We={type:"text",value:je.value.replace(/\r?\n|\r/g," ")};xe.patch(je,We);const et={type:"element",tagName:"code",properties:{},children:[We]};return xe.patch(je,et),xe.applyData(je,et)}function Yo(xe,je){const We=String(je.identifier).toUpperCase(),et=xe.definitionById.get(We);if(!et)return rs(xe,je);const St={href:ul(et.url||"")};et.title!==null&&et.title!==void 0&&(St.title=et.title);const Et={type:"element",tagName:"a",properties:St,children:xe.all(je)};return xe.patch(je,Et),xe.applyData(je,Et)}function xo(xe,je){const We={href:ul(je.url)};je.title!==null&&je.title!==void 0&&(We.title=je.title);const et={type:"element",tagName:"a",properties:We,children:xe.all(je)};return xe.patch(je,et),xe.applyData(je,et)}function Fo(xe,je,We){const et=xe.all(je),St=We?hs(We):La(je),Et={},Rt=[];if(typeof je.checked=="boolean"){const Sn=et[0];let ai;Sn&&Sn.type==="element"&&Sn.tagName==="p"?ai=Sn:(ai={type:"element",tagName:"p",properties:{},children:[]},et.unshift(ai)),ai.children.length>0&&ai.children.unshift({type:"text",value:" "}),ai.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:je.checked,disabled:!0},children:[]}),Et.className=["task-list-item"]}let Wt=-1;for(;++Wt<et.length;){const Sn=et[Wt];(St||Wt!==0||Sn.type!=="element"||Sn.tagName!=="p")&&Rt.push({type:"text",value:`
`}),Sn.type==="element"&&Sn.tagName==="p"&&!St?Rt.push(...Sn.children):Rt.push(Sn)}const _n=et[et.length-1];_n&&(St||_n.type!=="element"||_n.tagName!=="p")&&Rt.push({type:"text",value:`
`});const Un={type:"element",tagName:"li",properties:Et,children:Rt};return xe.patch(je,Un),xe.applyData(je,Un)}function hs(xe){let je=!1;if(xe.type==="list"){je=xe.spread||!1;const We=xe.children;let et=-1;for(;!je&&++et<We.length;)je=La(We[et])}return je}function La(xe){const je=xe.spread;return je==null?xe.children.length>1:je}function Ka(xe,je){const We={},et=xe.all(je);let St=-1;for(typeof je.start=="number"&&je.start!==1&&(We.start=je.start);++St<et.length;){const Rt=et[St];if(Rt.type==="element"&&Rt.tagName==="li"&&Rt.properties&&Array.isArray(Rt.properties.className)&&Rt.properties.className.includes("task-list-item")){We.className=["contains-task-list"];break}}const Et={type:"element",tagName:je.ordered?"ol":"ul",properties:We,children:xe.wrap(et,!0)};return xe.patch(je,Et),xe.applyData(je,Et)}function ir(xe,je){const We={type:"element",tagName:"p",properties:{},children:xe.all(je)};return xe.patch(je,We),xe.applyData(je,We)}function cl(xe,je){const We={type:"root",children:xe.wrap(xe.all(je))};return xe.patch(je,We),xe.applyData(je,We)}function Bt(xe,je){const We={type:"element",tagName:"strong",properties:{},children:xe.all(je)};return xe.patch(je,We),xe.applyData(je,We)}function Kn(xe,je){const We=xe.all(je),et=We.shift(),St=[];if(et){const Rt={type:"element",tagName:"thead",properties:{},children:xe.wrap([et],!0)};xe.patch(je.children[0],Rt),St.push(Rt)}if(We.length>0){const Rt={type:"element",tagName:"tbody",properties:{},children:xe.wrap(We,!0)},Wt=(0,we.Pk)(je.children[1]),_n=(0,we.rb)(je.children[je.children.length-1]);Wt&&_n&&(Rt.position={start:Wt,end:_n}),St.push(Rt)}const Et={type:"element",tagName:"table",properties:{},children:xe.wrap(St,!0)};return xe.patch(je,Et),xe.applyData(je,Et)}function uu(xe,je,We){const et=We?We.children:void 0,Et=(et?et.indexOf(je):1)===0?"th":"td",Rt=We&&We.type==="table"?We.align:void 0,Wt=Rt?Rt.length:je.children.length;let _n=-1;const Un=[];for(;++_n<Wt;){const ai=je.children[_n],ei={},Ln=Rt?Rt[_n]:void 0;Ln&&(ei.align=Ln);let Rr={type:"element",tagName:Et,properties:ei,children:[]};ai&&(Rr.children=xe.all(ai),xe.patch(ai,Rr),Rr=xe.applyData(ai,Rr)),Un.push(Rr)}const Sn={type:"element",tagName:"tr",properties:{},children:xe.wrap(Un,!0)};return xe.patch(je,Sn),xe.applyData(je,Sn)}function ac(xe,je){const We={type:"element",tagName:"td",properties:{},children:xe.all(je)};return xe.patch(je,We),xe.applyData(je,We)}const Js=9,Wl=32;function sc(xe){const je=String(xe),We=/\r?\n|\r/g;let et=We.exec(je),St=0;const Et=[];for(;et;)Et.push(Yc(je.slice(St,et.index),St>0,!0),et[0]),St=et.index+et[0].length,et=We.exec(je);return Et.push(Yc(je.slice(St),St>0,!1)),Et.join("")}function Yc(xe,je,We){let et=0,St=xe.length;if(je){let Et=xe.codePointAt(et);for(;Et===Js||Et===Wl;)et++,Et=xe.codePointAt(et)}if(We){let Et=xe.codePointAt(St-1);for(;Et===Js||Et===Wl;)St--,Et=xe.codePointAt(St-1)}return St>et?xe.slice(et,St):""}function Vc(xe,je){const We={type:"text",value:sc(String(je.value))};return xe.patch(je,We),xe.applyData(je,We)}function ma(xe,je){const We={type:"element",tagName:"hr",properties:{},children:[]};return xe.patch(je,We),xe.applyData(je,We)}const Br={blockquote:Hu,break:xc,code:bc,delete:Ca,emphasis:ad,footnoteReference:wc,heading:oc,html:Gu,imageReference:ds,image:_a,inlineCode:Ya,linkReference:Yo,link:xo,listItem:Fo,list:Ka,paragraph:ir,root:cl,strong:Bt,table:Kn,tableCell:ac,tableRow:uu,text:Vc,thematicBreak:ma,toml:os,yaml:os,definition:os,footnoteDefinition:os};function os(){}const As={}.hasOwnProperty,ko={};function po(xe,je){const We=je||ko,et=new Map,St=new Map,Et=new Map,Rt=Mo(Mo({},Br),We.handlers),Wt={all:Un,applyData:Os,definitionById:et,footnoteById:St,footnoteCounts:Et,footnoteOrder:[],handlers:Rt,one:_n,options:We,patch:ja,wrap:qs};return(0,Ds.Vn)(xe,function(Sn){if(Sn.type==="definition"||Sn.type==="footnoteDefinition"){const ai=Sn.type==="definition"?et:St,ei=String(Sn.identifier).toUpperCase();ai.has(ei)||ai.set(ei,Sn)}}),Wt;function _n(Sn,ai){const ei=Sn.type,Ln=Wt.handlers[ei];if(As.call(Wt.handlers,ei)&&Ln)return Ln(Wt,Sn,ai);if(Wt.options.passThrough&&Wt.options.passThrough.includes(ei)){if("children"in Sn){const Jr=Sn,{children:uo}=Jr,vr=TE(Jr,["children"]),_r=(0,ll.ZP)(vr);return _r.children=Wt.all(Sn),_r}return(0,ll.ZP)(Sn)}return(Wt.options.unknownHandler||ta)(Wt,Sn,ai)}function Un(Sn){const ai=[];if("children"in Sn){const ei=Sn.children;let Ln=-1;for(;++Ln<ei.length;){const Rr=Wt.one(ei[Ln],Sn);if(Rr){if(Ln&&ei[Ln-1].type==="break"&&(!Array.isArray(Rr)&&Rr.type==="text"&&(Rr.value=Qa(Rr.value)),!Array.isArray(Rr)&&Rr.type==="element")){const Jr=Rr.children[0];Jr&&Jr.type==="text"&&(Jr.value=Qa(Jr.value))}Array.isArray(Rr)?ai.push(...Rr):ai.push(Rr)}}}return ai}}function ja(xe,je){xe.position&&(je.position=(0,we.FK)(xe))}function Os(xe,je){let We=je;if(xe&&xe.data){const et=xe.data.hName,St=xe.data.hChildren,Et=xe.data.hProperties;if(typeof et=="string")if(We.type==="element")We.tagName=et;else{const Rt="children"in We?We.children:[We];We={type:"element",tagName:et,properties:{},children:Rt}}We.type==="element"&&Et&&Object.assign(We.properties,(0,ll.ZP)(Et)),"children"in We&&We.children&&St!==null&&St!==void 0&&(We.children=St)}return We}function ta(xe,je){const We=je.data||{},et="value"in je&&!(As.call(We,"hProperties")||As.call(We,"hChildren"))?{type:"text",value:je.value}:{type:"element",tagName:"div",properties:{},children:xe.all(je)};return xe.patch(je,et),xe.applyData(je,et)}function qs(xe,je){const We=[];let et=-1;for(je&&We.push({type:"text",value:`
`});++et<xe.length;)et&&We.push({type:"text",value:`
`}),We.push(xe[et]);return je&&xe.length>0&&We.push({type:"text",value:`
`}),We}function Qa(xe){let je=0,We=xe.charCodeAt(je);for(;We===9||We===32;)je++,We=xe.charCodeAt(je);return xe.slice(je)}function Tu(xe,je){const We=po(xe,je),et=We.one(xe,void 0),St=Ts(We),Et=Array.isArray(et)?{type:"root",children:et}:et||{type:"root",children:[]};return St&&((0,Me.ok)("children"in Et),Et.children.push({type:"text",value:`
`},St)),Et}function Oo(xe,je){return xe&&"run"in xe?function(We,et){return Jy(this,null,function*(){const St=Tu(We,Mo({file:et},je));yield xe.run(St,et)})}:function(We,et){return Tu(We,Mo({file:et},xe||je))}}function ys(xe){if(xe)throw xe}var wo=de(58847);function Xo(xe){if(typeof xe!="object"||xe===null)return!1;const je=Object.getPrototypeOf(xe);return(je===null||je===Object.prototype||Object.getPrototypeOf(je)===null)&&!(Symbol.toStringTag in xe)&&!(Symbol.iterator in xe)}function $o(){const xe=[],je={run:We,use:et};return je;function We(...St){let Et=-1;const Rt=St.pop();if(typeof Rt!="function")throw new TypeError("Expected function as last argument, not "+Rt);Wt(null,...St);function Wt(_n,...Un){const Sn=xe[++Et];let ai=-1;if(_n){Rt(_n);return}for(;++ai<St.length;)(Un[ai]===null||Un[ai]===void 0)&&(Un[ai]=St[ai]);St=Un,Sn?va(Sn,Wt)(...Un):Rt(null,...Un)}}function et(St){if(typeof St!="function")throw new TypeError("Expected `middelware` to be a function, not "+St);return xe.push(St),je}}function va(xe,je){let We;return et;function et(...Rt){const Wt=xe.length>Rt.length;let _n;Wt&&Rt.push(St);try{_n=xe.apply(this,Rt)}catch(Un){const Sn=Un;if(Wt&&We)throw Sn;return St(Sn)}Wt||(_n&&_n.then&&typeof _n.then=="function"?_n.then(Et,St):_n instanceof Error?St(_n):Et(_n))}function St(Rt,...Wt){We||(We=!0,je(Rt,...Wt))}function Et(Rt){St(null,Rt)}}const ho={basename:lc,dirname:Pr,extname:gh,join:Co,sep:"/"};function lc(xe,je){if(je!==void 0&&typeof je!="string")throw new TypeError('"ext" argument must be a string');Au(xe);let We=0,et=-1,St=xe.length,Et;if(je===void 0||je.length===0||je.length>xe.length){for(;St--;)if(xe.codePointAt(St)===47){if(Et){We=St+1;break}}else et<0&&(Et=!0,et=St+1);return et<0?"":xe.slice(We,et)}if(je===xe)return"";let Rt=-1,Wt=je.length-1;for(;St--;)if(xe.codePointAt(St)===47){if(Et){We=St+1;break}}else Rt<0&&(Et=!0,Rt=St+1),Wt>-1&&(xe.codePointAt(St)===je.codePointAt(Wt--)?Wt<0&&(et=St):(Wt=-1,et=Rt));return We===et?et=Rt:et<0&&(et=xe.length),xe.slice(We,et)}function Pr(xe){if(Au(xe),xe.length===0)return".";let je=-1,We=xe.length,et;for(;--We;)if(xe.codePointAt(We)===47){if(et){je=We;break}}else et||(et=!0);return je<0?xe.codePointAt(0)===47?"/":".":je===1&&xe.codePointAt(0)===47?"//":xe.slice(0,je)}function gh(xe){Au(xe);let je=xe.length,We=-1,et=0,St=-1,Et=0,Rt;for(;je--;){const Wt=xe.codePointAt(je);if(Wt===47){if(Rt){et=je+1;break}continue}We<0&&(Rt=!0,We=je+1),Wt===46?St<0?St=je:Et!==1&&(Et=1):St>-1&&(Et=-1)}return St<0||We<0||Et===0||Et===1&&St===We-1&&St===et+1?"":xe.slice(St,We)}function Co(...xe){let je=-1,We;for(;++je<xe.length;)Au(xe[je]),xe[je]&&(We=We===void 0?xe[je]:We+"/"+xe[je]);return We===void 0?".":ph(We)}function ph(xe){Au(xe);const je=xe.codePointAt(0)===47;let We=Tc(xe,!je);return We.length===0&&!je&&(We="."),We.length>0&&xe.codePointAt(xe.length-1)===47&&(We+="/"),je?"/"+We:We}function Tc(xe,je){let We="",et=0,St=-1,Et=0,Rt=-1,Wt,_n;for(;++Rt<=xe.length;){if(Rt<xe.length)Wt=xe.codePointAt(Rt);else{if(Wt===47)break;Wt=47}if(Wt===47){if(!(St===Rt-1||Et===1))if(St!==Rt-1&&Et===2){if(We.length<2||et!==2||We.codePointAt(We.length-1)!==46||We.codePointAt(We.length-2)!==46){if(We.length>2){if(_n=We.lastIndexOf("/"),_n!==We.length-1){_n<0?(We="",et=0):(We=We.slice(0,_n),et=We.length-1-We.lastIndexOf("/")),St=Rt,Et=0;continue}}else if(We.length>0){We="",et=0,St=Rt,Et=0;continue}}je&&(We=We.length>0?We+"/..":"..",et=2)}else We.length>0?We+="/"+xe.slice(St+1,Rt):We=xe.slice(St+1,Rt),et=Rt-St-1;St=Rt,Et=0}else Wt===46&&Et>-1?Et++:Et=-1}return We}function Au(xe){if(typeof xe!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(xe))}const Bd={cwd:sd};function sd(){return"/"}function Zl(xe){return!!(xe!==null&&typeof xe=="object"&&"href"in xe&&xe.href&&"protocol"in xe&&xe.protocol&&xe.auth===void 0)}function Rl(xe){if(typeof xe=="string")xe=new URL(xe);else if(!Zl(xe)){const je=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+xe+"`");throw je.code="ERR_INVALID_ARG_TYPE",je}if(xe.protocol!=="file:"){const je=new TypeError("The URL must be of scheme file");throw je.code="ERR_INVALID_URL_SCHEME",je}return To(xe)}function To(xe){if(xe.hostname!==""){const et=new TypeError('File URL host must be "localhost" or empty on darwin');throw et.code="ERR_INVALID_FILE_URL_HOST",et}const je=xe.pathname;let We=-1;for(;++We<je.length;)if(je.codePointAt(We)===37&&je.codePointAt(We+1)===50){const et=je.codePointAt(We+2);if(et===70||et===102){const St=new TypeError("File URL path must not include encoded / characters");throw St.code="ERR_INVALID_FILE_URL_PATH",St}}return decodeURIComponent(je)}const Rs=["history","path","basename","stem","extname","dirname"];class Ac{constructor(je){let We;je?Zl(je)?We={path:je}:typeof je=="string"||El(je)?We={value:je}:We=je:We={},this.cwd="cwd"in We?"":Bd.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let et=-1;for(;++et<Rs.length;){const Et=Rs[et];Et in We&&We[Et]!==void 0&&We[Et]!==null&&(this[Et]=Et==="history"?[...We[Et]]:We[Et])}let St;for(St in We)Rs.includes(St)||(this[St]=We[St])}get basename(){return typeof this.path=="string"?ho.basename(this.path):void 0}set basename(je){Cu(je,"basename"),cu(je,"basename"),this.path=ho.join(this.dirname||"",je)}get dirname(){return typeof this.path=="string"?ho.dirname(this.path):void 0}set dirname(je){Kl(this.basename,"dirname"),this.path=ho.join(je||"",this.basename)}get extname(){return typeof this.path=="string"?ho.extname(this.path):void 0}set extname(je){if(cu(je,"extname"),Kl(this.dirname,"extname"),je){if(je.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(je.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ho.join(this.dirname,this.stem+(je||""))}get path(){return this.history[this.history.length-1]}set path(je){Zl(je)&&(je=Rl(je)),Cu(je,"path"),this.path!==je&&this.history.push(je)}get stem(){return typeof this.path=="string"?ho.basename(this.path,this.extname):void 0}set stem(je){Cu(je,"stem"),cu(je,"stem"),this.path=ho.join(this.dirname||"",je+(this.extname||""))}fail(je,We,et){const St=this.message(je,We,et);throw St.fatal=!0,St}info(je,We,et){const St=this.message(je,We,et);return St.fatal=void 0,St}message(je,We,et){const St=new rt(je,We,et);return this.path&&(St.name=this.path+":"+St.name,St.file=this.path),St.fatal=!1,this.messages.push(St),St}toString(je){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(je||void 0).decode(this.value)}}function cu(xe,je){if(xe&&xe.includes(ho.sep))throw new Error("`"+je+"` cannot be a path: did not expect `"+ho.sep+"`")}function Cu(xe,je){if(!xe)throw new Error("`"+je+"` cannot be empty")}function Kl(xe,je){if(!xe)throw new Error("Setting `"+je+"` requires `path` to be set too")}function El(xe){return!!(xe&&typeof xe=="object"&&"byteLength"in xe&&"byteOffset"in xe)}const Yu=function(xe){const et=this.constructor.prototype,St=et[xe],Et=function(){return St.apply(Et,arguments)};return Object.setPrototypeOf(Et,et),Et},xl={}.hasOwnProperty;class du extends Yu{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=$o()}copy(){const je=new du;let We=-1;for(;++We<this.attachers.length;){const et=this.attachers[We];je.use(...et)}return je.data(wo(!0,{},this.namespace)),je}data(je,We){return typeof je=="string"?arguments.length===2?(dc("data",this.frozen),this.namespace[je]=We,this):xl.call(this.namespace,je)&&this.namespace[je]||void 0:je?(dc("data",this.frozen),this.namespace=je,this):this.namespace}freeze(){if(this.frozen)return this;const je=this;for(;++this.freezeIndex<this.attachers.length;){const[We,...et]=this.attachers[this.freezeIndex];if(et[0]===!1)continue;et[0]===!0&&(et[0]=void 0);const St=We.call(je,...et);typeof St=="function"&&this.transformers.use(St)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(je){this.freeze();const We=ld(je),et=this.parser||this.Parser;return Vu("parse",et),et(String(We),We)}process(je,We){const et=this;return this.freeze(),Vu("process",this.parser||this.Parser),cc("process",this.compiler||this.Compiler),We?St(void 0,We):new Promise(St);function St(Et,Rt){const Wt=ld(je),_n=et.parse(Wt);et.run(_n,Wt,function(Sn,ai,ei){if(Sn||!ai||!ei)return Un(Sn);const Ln=ai,Rr=et.stringify(Ln,ei);vh(Rr)?ei.value=Rr:ei.result=Rr,Un(Sn,ei)});function Un(Sn,ai){Sn||!ai?Rt(Sn):Et?Et(ai):((0,Me.ok)(We,"`done` is defined if `resolve` is not"),We(void 0,ai))}}}processSync(je){let We=!1,et;return this.freeze(),Vu("processSync",this.parser||this.Parser),cc("processSync",this.compiler||this.Compiler),this.process(je,St),Nu("processSync","process",We),(0,Me.ok)(et,"we either bailed on an error or have a tree"),et;function St(Et,Rt){We=!0,ys(Et),et=Rt}}run(je,We,et){hu(je),this.freeze();const St=this.transformers;return!et&&typeof We=="function"&&(et=We,We=void 0),et?Et(void 0,et):new Promise(Et);function Et(Rt,Wt){(0,Me.ok)(typeof We!="function","`file` can\u2019t be a `done` anymore, we checked");const _n=ld(We);St.run(je,_n,Un);function Un(Sn,ai,ei){const Ln=ai||je;Sn?Wt(Sn):Rt?Rt(Ln):((0,Me.ok)(et,"`done` is defined if `resolve` is not"),et(void 0,Ln,ei))}}}runSync(je,We){let et=!1,St;return this.run(je,We,Et),Nu("runSync","run",et),(0,Me.ok)(St,"we either bailed on an error or have a tree"),St;function Et(Rt,Wt){ys(Rt),St=Wt,et=!0}}stringify(je,We){this.freeze();const et=ld(We),St=this.compiler||this.Compiler;return cc("stringify",St),hu(je),St(je,et)}use(je,...We){const et=this.attachers,St=this.namespace;if(dc("use",this.frozen),je!=null)if(typeof je=="function")_n(je,We);else if(typeof je=="object")Array.isArray(je)?Wt(je):Rt(je);else throw new TypeError("Expected usable value, not `"+je+"`");return this;function Et(Un){if(typeof Un=="function")_n(Un,[]);else if(typeof Un=="object")if(Array.isArray(Un)){const[Sn,...ai]=Un;_n(Sn,ai)}else Rt(Un);else throw new TypeError("Expected usable value, not `"+Un+"`")}function Rt(Un){if(!("plugins"in Un)&&!("settings"in Un))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");Wt(Un.plugins),Un.settings&&(St.settings=wo(!0,St.settings,Un.settings))}function Wt(Un){let Sn=-1;if(Un!=null)if(Array.isArray(Un))for(;++Sn<Un.length;){const ai=Un[Sn];Et(ai)}else throw new TypeError("Expected a list of plugins, not `"+Un+"`")}function _n(Un,Sn){let ai=-1,ei=-1;for(;++ai<et.length;)if(et[ai][0]===Un){ei=ai;break}if(ei===-1)et.push([Un,...Sn]);else if(Sn.length>0){let[Ln,...Rr]=Sn;const Jr=et[ei][1];Xo(Jr)&&Xo(Ln)&&(Ln=wo(!0,Jr,Ln)),et[ei]=[Un,Ln,...Rr]}}}}const uc=new du().freeze();function Vu(xe,je){if(typeof je!="function")throw new TypeError("Cannot `"+xe+"` without `parser`")}function cc(xe,je){if(typeof je!="function")throw new TypeError("Cannot `"+xe+"` without `compiler`")}function dc(xe,je){if(je)throw new Error("Cannot call `"+xe+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function hu(xe){if(!Xo(xe)||typeof xe.type!="string")throw new TypeError("Expected node, got `"+xe+"`")}function Nu(xe,je,We){if(!We)throw new Error("`"+xe+"` finished async. Use `"+je+"` instead")}function ld(xe){return mh(xe)?xe:new Ac(xe)}function mh(xe){return!!(xe&&typeof xe=="object"&&"message"in xe&&"messages"in xe)}function vh(xe){return typeof xe=="string"||yh(xe)}function yh(xe){return!!(xe&&typeof xe=="object"&&"byteLength"in xe&&"byteOffset"in xe)}const Ia="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Mu=[],Ko={allowDangerousHtml:!0},Xa=/^(https?|ircs?|mailto|xmpp)$/i,as=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function ts(xe){const je=Pu(xe),We=ud(xe);return cd(je.runSync(je.parse(We),We),xe)}function Wu(xe){return Jy(this,null,function*(){const je=Pu(xe),We=ud(xe),et=yield je.run(je.parse(We),We);return cd(et,xe)})}function fs(xe){const je=Pu(xe),[We,et]=useState(void 0),[St,Et]=useState(void 0);if(useEffect(function(){const Rt=ud(xe);je.run(je.parse(Rt),Rt,function(Wt,_n){et(Wt),Et(_n)})},[xe.children,xe.rehypePlugins,xe.remarkPlugins,xe.remarkRehypeOptions]),We)throw We;return St?cd(St,xe):createElement(Fragment)}function Pu(xe){const je=xe.rehypePlugins||Mu,We=xe.remarkPlugins||Mu,et=xe.remarkRehypeOptions?Mo(Mo({},xe.remarkRehypeOptions),Ko):Ko;return uc().use(Sl).use(We).use(Oo,et).use(je)}function ud(xe){const je=xe.children||"",We=new Ac;return typeof je=="string"?We.value=je:(0,Me.t1)("Unexpected value `"+je+"` for `children` prop, expected `string`"),We}function cd(xe,je){const We=je.allowedElements,et=je.allowElement,St=je.components,Et=je.disallowedElements,Rt=je.skipHtml,Wt=je.unwrapDisallowed,_n=je.urlTransform||Fs;for(const Sn of as)Object.hasOwn(je,Sn.from)&&(0,Me.t1)("Unexpected `"+Sn.from+"` prop, "+(Sn.to?"use `"+Sn.to+"` instead":"remove it")+" (see <"+Ia+"#"+Sn.id+"> for more info)");return We&&Et&&(0,Me.t1)("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other"),je.className&&(xe={type:"element",tagName:"div",properties:{className:je.className},children:xe.type==="root"?xe.children:[xe]}),(0,Ds.Vn)(xe,Un),bn(xe,{Fragment:Le.Fragment,components:St,ignoreInvalidStyle:!0,jsx:Le.jsx,jsxs:Le.jsxs,passKeys:!0,passNode:!0});function Un(Sn,ai,ei){if(Sn.type==="raw"&&ei&&typeof ai=="number")return Rt?ei.children.splice(ai,1):ei.children[ai]={type:"text",value:Sn.value},ai;if(Sn.type==="element"){let Ln;for(Ln in Ke)if(Object.hasOwn(Ke,Ln)&&Object.hasOwn(Sn.properties,Ln)){const Rr=Sn.properties[Ln],Jr=Ke[Ln];(Jr===null||Jr.includes(Sn.tagName))&&(Sn.properties[Ln]=_n(String(Rr||""),Ln,Sn))}}if(Sn.type==="element"){let Ln=We?!We.includes(Sn.tagName):Et?Et.includes(Sn.tagName):!1;if(!Ln&&et&&typeof ai=="number"&&(Ln=!et(Sn,ai,ei)),Ln&&ei&&typeof ai=="number")return Wt&&Sn.children?ei.children.splice(ai,1,...Sn.children):ei.children.splice(ai,1),ai}}}function Fs(xe){const je=xe.indexOf(":"),We=xe.indexOf("?"),et=xe.indexOf("#"),St=xe.indexOf("/");return je===-1||St!==-1&&je>St||We!==-1&&je>We||et!==-1&&je>et||Xa.test(xe.slice(0,je))?xe:""}},93772:function(ze,be,de){"use strict";de.d(be,{Z:function(){return _d}});var le={};de.r(le),de.d(le,{boolean:function(){return rt},booleanish:function(){return ft},commaOrSpaceSeparated:function(){return Xt},commaSeparated:function(){return Mt},number:function(){return at},overloadedBoolean:function(){return xt},spaceSeparated:function(){return wt}});var Me=de(90302),Ie=de(87342),Pe=de(81994),Ge=de(58222),Oe=de(84837);function Ve(ue){const ge=String(ue),Ye=[];return{toOffset:zn,toPoint:Ot};function Ot(bi){if(typeof bi=="number"&&bi>-1&&bi<=ge.length){let Vi=0;for(;;){let jr=Ye[Vi];if(jr===void 0){const ro=ot(ge,Ye[Vi-1]);jr=ro===-1?ge.length+1:ro+1,Ye[Vi]=jr}if(jr>bi)return{line:Vi+1,column:bi-(Vi>0?Ye[Vi-1]:0)+1,offset:bi};Vi++}}}function zn(bi){if(bi&&typeof bi.line=="number"&&typeof bi.column=="number"&&!Number.isNaN(bi.line)&&!Number.isNaN(bi.column)){for(;Ye.length<bi.line;){const jr=Ye[Ye.length-1],ro=ot(ge,jr),Si=ro===-1?ge.length+1:ro+1;if(jr===Si)break;Ye.push(Si)}const Vi=(bi.line>1?Ye[bi.line-2]:0)+bi.column-1;if(Vi<Ye[bi.line-1])return Vi}}}function ot(ue,ge){const Ye=ue.indexOf("\r",ge),Ot=ue.indexOf(`
`,ge);return Ot===-1?Ye:Ye===-1||Ye+1===Ot?Ot:Ye<Ot?Ye:Ot}var Je=de(43309);const Xe={}.hasOwnProperty,vt=Object.prototype;function st(ue,ge){const Ye=ge||{};return _t({file:Ye.file||void 0,location:!1,schema:Ye.space==="svg"?Ge.YP:Ge.dy,verbose:Ye.verbose||!1},ue)}function _t(ue,ge){let Ye;switch(ge.nodeName){case"#comment":{const Ot=ge;return Ye={type:"comment",value:Ot.data},ne(ue,Ot,Ye),Ye}case"#document":case"#document-fragment":{const Ot=ge,zn="mode"in Ot?Ot.mode==="quirks"||Ot.mode==="limited-quirks":!1;if(Ye={type:"root",children:Ue(ue,ge.childNodes),data:{quirksMode:zn}},ue.file&&ue.location){const bi=String(ue.file),Vi=Ve(bi),jr=Vi.toPoint(0),ro=Vi.toPoint(bi.length);(0,Ie.ok)(jr,"expected `start`"),(0,Ie.ok)(ro,"expected `end`"),Ye.position={start:jr,end:ro}}return Ye}case"#documentType":{const Ot=ge;return Ye={type:"doctype"},ne(ue,Ot,Ye),Ye}case"#text":{const Ot=ge;return Ye={type:"text",value:Ot.value},ne(ue,Ot,Ye),Ye}default:return Ye=te(ue,ge),Ye}}function Ue(ue,ge){let Ye=-1;const Ot=[];for(;++Ye<ge.length;){const zn=_t(ue,ge[Ye]);Ot.push(zn)}return Ot}function te(ue,ge){const Ye=ue.schema;ue.schema=ge.namespaceURI===Je.t.svg?Ge.YP:Ge.dy;let Ot=-1;const zn={};for(;++Ot<ge.attrs.length;){const jr=ge.attrs[Ot],ro=(jr.prefix?jr.prefix+":":"")+jr.name;Xe.call(vt,ro)||(zn[ro]=jr.value)}const Vi=(ue.schema.space==="svg"?Pe.s:Pe.h)(ge.tagName,zn,Ue(ue,ge.childNodes));if(ne(ue,ge,Vi),Vi.tagName==="template"){const jr=ge,ro=jr.sourceCodeLocation,Si=ro&&ro.startTag&&se(ro.startTag),fr=ro&&ro.endTag&&se(ro.endTag),co=_t(ue,jr.content);Si&&fr&&ue.file&&(co.position={start:Si.end,end:fr.start}),Vi.content=co}return ue.schema=Ye,Vi}function ne(ue,ge,Ye){if("sourceCodeLocation"in ge&&ge.sourceCodeLocation&&ue.file){const Ot=fe(ue,Ye,ge.sourceCodeLocation);Ot&&(ue.location=!0,Ye.position=Ot)}}function fe(ue,ge,Ye){const Ot=se(Ye);if(ge.type==="element"){const zn=ge.children[ge.children.length-1];if(Ot&&!Ye.endTag&&zn&&zn.position&&zn.position.end&&(Ot.end=Object.assign({},zn.position.end)),ue.verbose){const bi={};let Vi;if(Ye.attrs)for(Vi in Ye.attrs)Xe.call(Ye.attrs,Vi)&&(bi[(0,Oe.s)(ue.schema,Vi).property]=se(Ye.attrs[Vi]));(0,Ie.ok)(Ye.startTag,"a start tag should exist");const jr=se(Ye.startTag),ro=Ye.endTag?se(Ye.endTag):void 0,Si={opening:jr};ro&&(Si.closing=ro),Si.properties=bi,ge.data={position:Si}}}return Ot}function se(ue){const ge=pe({line:ue.startLine,column:ue.startCol,offset:ue.startOffset}),Ye=pe({line:ue.endLine,column:ue.endCol,offset:ue.endOffset});return ge||Ye?{start:ge,end:Ye}:void 0}function pe(ue){return ue.line&&ue.column?ue:void 0}var Se=de(11630);class we{constructor(ge,Ye,Ot){this.property=ge,this.normal=Ye,Ot&&(this.space=Ot)}}we.prototype.property={},we.prototype.normal={},we.prototype.space=null;function De(ue,ge){const Ye={},Ot={};let zn=-1;for(;++zn<ue.length;)Object.assign(Ye,ue[zn].property),Object.assign(Ot,ue[zn].normal);return new we(Ye,Ot,ge)}function Re(ue){return ue.toLowerCase()}class Ze{constructor(ge,Ye){this.property=ge,this.attribute=Ye}}Ze.prototype.space=null,Ze.prototype.boolean=!1,Ze.prototype.booleanish=!1,Ze.prototype.overloadedBoolean=!1,Ze.prototype.number=!1,Ze.prototype.commaSeparated=!1,Ze.prototype.spaceSeparated=!1,Ze.prototype.commaOrSpaceSeparated=!1,Ze.prototype.mustUseProperty=!1,Ze.prototype.defined=!1;let nt=0;const rt=bn(),ft=bn(),xt=bn(),at=bn(),wt=bn(),Mt=bn(),Xt=bn();function bn(){return Xy(2,++nt)}const pn=Object.keys(le);class fn extends Ze{constructor(ge,Ye,Ot,zn){let bi=-1;if(super(ge,Ye),gn(this,"space",zn),typeof Ot=="number")for(;++bi<pn.length;){const Vi=pn[bi];gn(this,pn[bi],(Ot&le[Vi])===le[Vi])}}}fn.prototype.defined=!0;function gn(ue,ge,Ye){Ye&&(ue[ge]=Ye)}const Nt={}.hasOwnProperty;function ut(ue){const ge={},Ye={};let Ot;for(Ot in ue.properties)if(Nt.call(ue.properties,Ot)){const zn=ue.properties[Ot],bi=new fn(Ot,ue.transform(ue.attributes||{},Ot),zn,ue.space);ue.mustUseProperty&&ue.mustUseProperty.includes(Ot)&&(bi.mustUseProperty=!0),ge[Ot]=bi,Ye[Re(Ot)]=Ot,Ye[Re(bi.attribute)]=Ot}return new we(ge,Ye,ue.space)}const it=ut({space:"xlink",transform(ue,ge){return"xlink:"+ge.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),an=ut({space:"xml",transform(ue,ge){return"xml:"+ge.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function mn(ue,ge){return ge in ue?ue[ge]:ge}function Ct(ue,ge){return mn(ue,ge.toLowerCase())}const un=ut({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Ct,properties:{xmlns:null,xmlnsXLink:null}}),on=ut({transform(ue,ge){return ge==="role"?ge:"aria-"+ge.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:ft,ariaAutoComplete:null,ariaBusy:ft,ariaChecked:ft,ariaColCount:at,ariaColIndex:at,ariaColSpan:at,ariaControls:wt,ariaCurrent:null,ariaDescribedBy:wt,ariaDetails:null,ariaDisabled:ft,ariaDropEffect:wt,ariaErrorMessage:null,ariaExpanded:ft,ariaFlowTo:wt,ariaGrabbed:ft,ariaHasPopup:null,ariaHidden:ft,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:wt,ariaLevel:at,ariaLive:null,ariaModal:ft,ariaMultiLine:ft,ariaMultiSelectable:ft,ariaOrientation:null,ariaOwns:wt,ariaPlaceholder:null,ariaPosInSet:at,ariaPressed:ft,ariaReadOnly:ft,ariaRelevant:null,ariaRequired:ft,ariaRoleDescription:wt,ariaRowCount:at,ariaRowIndex:at,ariaRowSpan:at,ariaSelected:ft,ariaSetSize:at,ariaSort:null,ariaValueMax:at,ariaValueMin:at,ariaValueNow:at,ariaValueText:null,role:null}}),Bn=ut({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Ct,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Mt,acceptCharset:wt,accessKey:wt,action:null,allow:null,allowFullScreen:rt,allowPaymentRequest:rt,allowUserMedia:rt,alt:null,as:null,async:rt,autoCapitalize:null,autoComplete:wt,autoFocus:rt,autoPlay:rt,blocking:wt,capture:null,charSet:null,checked:rt,cite:null,className:wt,cols:at,colSpan:null,content:null,contentEditable:ft,controls:rt,controlsList:wt,coords:at|Mt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:rt,defer:rt,dir:null,dirName:null,disabled:rt,download:xt,draggable:ft,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:rt,formTarget:null,headers:wt,height:at,hidden:rt,high:at,href:null,hrefLang:null,htmlFor:wt,httpEquiv:wt,id:null,imageSizes:null,imageSrcSet:null,inert:rt,inputMode:null,integrity:null,is:null,isMap:rt,itemId:null,itemProp:wt,itemRef:wt,itemScope:rt,itemType:wt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:rt,low:at,manifest:null,max:null,maxLength:at,media:null,method:null,min:null,minLength:at,multiple:rt,muted:rt,name:null,nonce:null,noModule:rt,noValidate:rt,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:rt,optimum:at,pattern:null,ping:wt,placeholder:null,playsInline:rt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:rt,referrerPolicy:null,rel:wt,required:rt,reversed:rt,rows:at,rowSpan:at,sandbox:wt,scope:null,scoped:rt,seamless:rt,selected:rt,shadowRootClonable:rt,shadowRootDelegatesFocus:rt,shadowRootMode:null,shape:null,size:at,sizes:null,slot:null,span:at,spellCheck:ft,src:null,srcDoc:null,srcLang:null,srcSet:null,start:at,step:null,style:null,tabIndex:at,target:null,title:null,translate:null,type:null,typeMustMatch:rt,useMap:null,value:ft,width:at,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:wt,axis:null,background:null,bgColor:null,border:at,borderColor:null,bottomMargin:at,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:rt,declare:rt,event:null,face:null,frame:null,frameBorder:null,hSpace:at,leftMargin:at,link:null,longDesc:null,lowSrc:null,marginHeight:at,marginWidth:at,noResize:rt,noHref:rt,noShade:rt,noWrap:rt,object:null,profile:null,prompt:null,rev:null,rightMargin:at,rules:null,scheme:null,scrolling:ft,standby:null,summary:null,text:null,topMargin:at,valueType:null,version:null,vAlign:null,vLink:null,vSpace:at,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:rt,disableRemotePlayback:rt,prefix:null,property:null,results:at,security:null,unselectable:null}}),Nn=ut({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:mn,properties:{about:Xt,accentHeight:at,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:at,amplitude:at,arabicForm:null,ascent:at,attributeName:null,attributeType:null,azimuth:at,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:at,by:null,calcMode:null,capHeight:at,className:wt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:at,diffuseConstant:at,direction:null,display:null,dur:null,divisor:at,dominantBaseline:null,download:rt,dx:null,dy:null,edgeMode:null,editable:null,elevation:at,enableBackground:null,end:null,event:null,exponent:at,externalResourcesRequired:null,fill:null,fillOpacity:at,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Mt,g2:Mt,glyphName:Mt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:at,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:at,horizOriginX:at,horizOriginY:at,id:null,ideographic:at,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:at,k:at,k1:at,k2:at,k3:at,k4:at,kernelMatrix:Xt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:at,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:at,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:at,overlineThickness:at,paintOrder:null,panose1:null,path:null,pathLength:at,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:wt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:at,pointsAtY:at,pointsAtZ:at,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Xt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Xt,rev:Xt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Xt,requiredFeatures:Xt,requiredFonts:Xt,requiredFormats:Xt,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:at,specularExponent:at,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:at,strikethroughThickness:at,string:null,stroke:null,strokeDashArray:Xt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:at,strokeOpacity:at,strokeWidth:null,style:null,surfaceScale:at,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Xt,tabIndex:at,tableValues:null,target:null,targetX:at,targetY:at,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Xt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:at,underlineThickness:at,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:at,values:null,vAlphabetic:at,vMathematical:at,vectorEffect:null,vHanging:at,vIdeographic:at,version:null,vertAdvY:at,vertOriginX:at,vertOriginY:at,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:at,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),si=De([an,it,un,on,Bn],"html"),Pt=De([an,it,un,on,Nn],"svg"),qn=/^data[-\w.:]+$/i,Ei=/-[a-z]/g,$e=/[A-Z]/g;function Fe(ue,ge){const Ye=Re(ge);let Ot=ge,zn=Ze;if(Ye in ue.normal)return ue.property[ue.normal[Ye]];if(Ye.length>4&&Ye.slice(0,4)==="data"&&qn.test(ge)){if(ge.charAt(4)==="-"){const bi=ge.slice(5).replace(Ei,Qe);Ot="data"+bi.charAt(0).toUpperCase()+bi.slice(1)}else{const bi=ge.slice(4);if(!Ei.test(bi)){let Vi=bi.replace($e,Ne);Vi.charAt(0)!=="-"&&(Vi="-"+Vi),ge="data"+Vi}}zn=fn}return new zn(Ot,ge)}function Ne(ue){return"-"+ue.toLowerCase()}function Qe(ue){return ue.charAt(1).toUpperCase()}var Ke=de(71523);const Le={}.hasOwnProperty;function At(ue,ge){const Ye=ge||{};function Ot(zn,...bi){let Vi=Ot.invalid;const jr=Ot.handlers;if(zn&&Le.call(zn,ue)){const ro=String(zn[ue]);Vi=Le.call(jr,ro)?jr[ro]:Ot.unknown}if(Vi)return Vi.call(this,zn,...bi)}return Ot.handlers=Ye.handlers||{},Ot.invalid=Ye.invalid,Ot.unknown=Ye.unknown,Ot}const Lt={},tn={}.hasOwnProperty,$t=At("type",{handlers:{root:rn,element:Ft,text:wn,comment:sn,doctype:cn}});function Ht(ue,ge){const Ot=(ge||Lt).space;return $t(ue,Ot==="svg"?Pt:si)}function rn(ue,ge){const Ye={nodeName:"#document",mode:(ue.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return Ye.childNodes=dn(ue.children,Ye,ge),En(ue,Ye),Ye}function vn(ue,ge){const Ye={nodeName:"#document-fragment",childNodes:[]};return Ye.childNodes=dn(ue.children,Ye,ge),En(ue,Ye),Ye}function cn(ue){const ge={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return En(ue,ge),ge}function wn(ue){const ge={nodeName:"#text",value:ue.value,parentNode:null};return En(ue,ge),ge}function sn(ue){const ge={nodeName:"#comment",data:ue.value,parentNode:null};return En(ue,ge),ge}function Ft(ue,ge){const Ye=ge;let Ot=Ye;ue.type==="element"&&ue.tagName.toLowerCase()==="svg"&&Ye.space==="html"&&(Ot=Pt);const zn=[];let bi;if(ue.properties){for(bi in ue.properties)if(bi!=="children"&&tn.call(ue.properties,bi)){const ro=jn(Ot,bi,ue.properties[bi]);ro&&zn.push(ro)}}const Vi=Ot.space;(0,Ie.ok)(Vi);const jr={nodeName:ue.tagName,tagName:ue.tagName,attrs:zn,namespaceURI:Je.t[Vi],childNodes:[],parentNode:null};return jr.childNodes=dn(ue.children,jr,Ot),En(ue,jr),ue.tagName==="template"&&ue.content&&(jr.content=vn(ue.content,Ot)),jr}function jn(ue,ge,Ye){const Ot=Fe(ue,ge);if(Ye===!1||Ye===null||Ye===void 0||typeof Ye=="number"&&Number.isNaN(Ye)||!Ye&&Ot.boolean)return;Array.isArray(Ye)&&(Ye=Ot.commaSeparated?(0,Se.P)(Ye):(0,Ke.P)(Ye));const zn={name:Ot.attribute,value:Ye===!0?"":String(Ye)};if(Ot.space&&Ot.space!=="html"&&Ot.space!=="svg"){const bi=zn.name.indexOf(":");bi<0?zn.prefix="":(zn.name=zn.name.slice(bi+1),zn.prefix=Ot.attribute.slice(0,bi)),zn.namespace=Je.t[Ot.space]}return zn}function dn(ue,ge,Ye){let Ot=-1;const zn=[];if(ue)for(;++Ot<ue.length;){const bi=$t(ue[Ot],Ye);bi.parentNode=ge,zn.push(bi)}return zn}function En(ue,ge){const Ye=ue.position;Ye&&Ye.start&&Ye.end&&((0,Ie.ok)(typeof Ye.start.offset=="number"),(0,Ie.ok)(typeof Ye.end.offset=="number"),ge.sourceCodeLocation={startLine:Ye.start.line,startCol:Ye.start.column,startOffset:Ye.start.offset,endLine:Ye.end.line,endCol:Ye.end.column,endOffset:Ye.end.offset})}const Jt=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],ui=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Gn="\uFFFD";var mt;(function(ue){ue[ue.EOF=-1]="EOF",ue[ue.NULL=0]="NULL",ue[ue.TABULATION=9]="TABULATION",ue[ue.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",ue[ue.LINE_FEED=10]="LINE_FEED",ue[ue.FORM_FEED=12]="FORM_FEED",ue[ue.SPACE=32]="SPACE",ue[ue.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",ue[ue.QUOTATION_MARK=34]="QUOTATION_MARK",ue[ue.AMPERSAND=38]="AMPERSAND",ue[ue.APOSTROPHE=39]="APOSTROPHE",ue[ue.HYPHEN_MINUS=45]="HYPHEN_MINUS",ue[ue.SOLIDUS=47]="SOLIDUS",ue[ue.DIGIT_0=48]="DIGIT_0",ue[ue.DIGIT_9=57]="DIGIT_9",ue[ue.SEMICOLON=59]="SEMICOLON",ue[ue.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",ue[ue.EQUALS_SIGN=61]="EQUALS_SIGN",ue[ue.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",ue[ue.QUESTION_MARK=63]="QUESTION_MARK",ue[ue.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",ue[ue.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",ue[ue.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",ue[ue.GRAVE_ACCENT=96]="GRAVE_ACCENT",ue[ue.LATIN_SMALL_A=97]="LATIN_SMALL_A",ue[ue.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(mt||(mt={}));const On={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Cn(ue){return ue>=55296&&ue<=57343}function jt(ue){return ue>=56320&&ue<=57343}function mi(ue,ge){return(ue-55296)*1024+9216+ge}function Hi(ue){return ue!==32&&ue!==10&&ue!==13&&ue!==9&&ue!==12&&ue>=1&&ue<=31||ue>=127&&ue<=159}function Oi(ue){return ue>=64976&&ue<=65007||ui.has(ue)}var Mn;(function(ue){ue.controlCharacterInInputStream="control-character-in-input-stream",ue.noncharacterInInputStream="noncharacter-in-input-stream",ue.surrogateInInputStream="surrogate-in-input-stream",ue.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",ue.endTagWithAttributes="end-tag-with-attributes",ue.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",ue.unexpectedSolidusInTag="unexpected-solidus-in-tag",ue.unexpectedNullCharacter="unexpected-null-character",ue.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",ue.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",ue.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",ue.missingEndTagName="missing-end-tag-name",ue.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",ue.unknownNamedCharacterReference="unknown-named-character-reference",ue.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",ue.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",ue.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",ue.eofBeforeTagName="eof-before-tag-name",ue.eofInTag="eof-in-tag",ue.missingAttributeValue="missing-attribute-value",ue.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",ue.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",ue.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",ue.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",ue.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",ue.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",ue.missingDoctypePublicIdentifier="missing-doctype-public-identifier",ue.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",ue.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",ue.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",ue.cdataInHtmlContent="cdata-in-html-content",ue.incorrectlyOpenedComment="incorrectly-opened-comment",ue.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",ue.eofInDoctype="eof-in-doctype",ue.nestedComment="nested-comment",ue.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",ue.eofInComment="eof-in-comment",ue.incorrectlyClosedComment="incorrectly-closed-comment",ue.eofInCdata="eof-in-cdata",ue.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",ue.nullCharacterReference="null-character-reference",ue.surrogateCharacterReference="surrogate-character-reference",ue.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",ue.controlCharacterReference="control-character-reference",ue.noncharacterCharacterReference="noncharacter-character-reference",ue.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",ue.missingDoctypeName="missing-doctype-name",ue.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",ue.duplicateAttribute="duplicate-attribute",ue.nonConformingDoctype="non-conforming-doctype",ue.missingDoctype="missing-doctype",ue.misplacedDoctype="misplaced-doctype",ue.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",ue.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",ue.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",ue.openElementsLeftAfterEof="open-elements-left-after-eof",ue.abandonedHeadElementChild="abandoned-head-element-child",ue.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",ue.nestedNoscriptInHead="nested-noscript-in-head",ue.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(Mn||(Mn={}));const lr=65536;class Gi{constructor(ge){this.handler=ge,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=lr,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(ge,Ye){const{line:Ot,col:zn,offset:bi}=this,Vi=zn+Ye,jr=bi+Ye;return{code:ge,startLine:Ot,endLine:Ot,startCol:Vi,endCol:Vi,startOffset:jr,endOffset:jr}}_err(ge){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(ge,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(ge){if(this.pos!==this.html.length-1){const Ye=this.html.charCodeAt(this.pos+1);if(jt(Ye))return this.pos++,this._addGap(),mi(ge,Ye)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,mt.EOF;return this._err(Mn.surrogateInInputStream),ge}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(ge,Ye){this.html.length>0?this.html+=ge:this.html=ge,this.endOfChunkHit=!1,this.lastChunkWritten=Ye}insertHtmlAtCurrentPos(ge){this.html=this.html.substring(0,this.pos+1)+ge+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(ge,Ye){if(this.pos+ge.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(Ye)return this.html.startsWith(ge,this.pos);for(let Ot=0;Ot<ge.length;Ot++)if((this.html.charCodeAt(this.pos+Ot)|32)!==ge.charCodeAt(Ot))return!1;return!0}peek(ge){const Ye=this.pos+ge;if(Ye>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,mt.EOF;const Ot=this.html.charCodeAt(Ye);return Ot===mt.CARRIAGE_RETURN?mt.LINE_FEED:Ot}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,mt.EOF;let ge=this.html.charCodeAt(this.pos);return ge===mt.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,mt.LINE_FEED):ge===mt.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Cn(ge)&&(ge=this._processSurrogate(ge)),this.handler.onParseError===null||ge>31&&ge<127||ge===mt.LINE_FEED||ge===mt.CARRIAGE_RETURN||ge>159&&ge<64976||this._checkForProblematicCharacters(ge),ge)}_checkForProblematicCharacters(ge){Hi(ge)?this._err(Mn.controlCharacterInInputStream):Oi(ge)&&this._err(Mn.noncharacterInInputStream)}retreat(ge){for(this.pos-=ge;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var fi;(function(ue){ue[ue.CHARACTER=0]="CHARACTER",ue[ue.NULL_CHARACTER=1]="NULL_CHARACTER",ue[ue.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",ue[ue.START_TAG=3]="START_TAG",ue[ue.END_TAG=4]="END_TAG",ue[ue.COMMENT=5]="COMMENT",ue[ue.DOCTYPE=6]="DOCTYPE",ue[ue.EOF=7]="EOF",ue[ue.HIBERNATION=8]="HIBERNATION"})(fi||(fi={}));function wi(ue,ge){for(let Ye=ue.attrs.length-1;Ye>=0;Ye--)if(ue.attrs[Ye].name===ge)return ue.attrs[Ye].value;return null}var Li=new Uint16Array('\u1D41<\xD5\u0131\u028A\u049D\u057B\u05D0\u0675\u06DE\u07A2\u07D6\u080F\u0A4A\u0A91\u0DA1\u0E6D\u0F09\u0F26\u10CA\u1228\u12E1\u1415\u149D\u14C3\u14DF\u1525\0\0\0\0\0\0\u156B\u16CD\u198D\u1C12\u1DDD\u1F7E\u2060\u21B0\u228D\u23C0\u23FB\u2442\u2824\u2912\u2D08\u2E48\u2FCE\u3016\u32BA\u3639\u37AC\u38FE\u3A28\u3A71\u3AE0\u3B2E\u0800EMabcfglmnoprstu\\bfms\x7F\x84\x8B\x90\x95\x98\xA6\xB3\xB9\xC8\xCFlig\u803B\xC6\u40C6P\u803B&\u4026cute\u803B\xC1\u40C1reve;\u4102\u0100iyx}rc\u803B\xC2\u40C2;\u4410r;\uC000\u{1D504}rave\u803B\xC0\u40C0pha;\u4391acr;\u4100d;\u6A53\u0100gp\x9D\xA1on;\u4104f;\uC000\u{1D538}plyFunction;\u6061ing\u803B\xC5\u40C5\u0100cs\xBE\xC3r;\uC000\u{1D49C}ign;\u6254ilde\u803B\xC3\u40C3ml\u803B\xC4\u40C4\u0400aceforsu\xE5\xFB\xFE\u0117\u011C\u0122\u0127\u012A\u0100cr\xEA\xF2kslash;\u6216\u0176\xF6\xF8;\u6AE7ed;\u6306y;\u4411\u0180crt\u0105\u010B\u0114ause;\u6235noullis;\u612Ca;\u4392r;\uC000\u{1D505}pf;\uC000\u{1D539}eve;\u42D8c\xF2\u0113mpeq;\u624E\u0700HOacdefhilorsu\u014D\u0151\u0156\u0180\u019E\u01A2\u01B5\u01B7\u01BA\u01DC\u0215\u0273\u0278\u027Ecy;\u4427PY\u803B\xA9\u40A9\u0180cpy\u015D\u0162\u017Aute;\u4106\u0100;i\u0167\u0168\u62D2talDifferentialD;\u6145leys;\u612D\u0200aeio\u0189\u018E\u0194\u0198ron;\u410Cdil\u803B\xC7\u40C7rc;\u4108nint;\u6230ot;\u410A\u0100dn\u01A7\u01ADilla;\u40B8terDot;\u40B7\xF2\u017Fi;\u43A7rcle\u0200DMPT\u01C7\u01CB\u01D1\u01D6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01E2\u01F8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020FoubleQuote;\u601Duote;\u6019\u0200lnpu\u021E\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6A74\u0180git\u022F\u0236\u023Aruent;\u6261nt;\u622FourIntegral;\u622E\u0100fr\u024C\u024E;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6A2Fcr;\uC000\u{1D49E}p\u0100;C\u0284\u0285\u62D3ap;\u624D\u0580DJSZacefios\u02A0\u02AC\u02B0\u02B4\u02B8\u02CB\u02D7\u02E1\u02E6\u0333\u048D\u0100;o\u0179\u02A5trahd;\u6911cy;\u4402cy;\u4405cy;\u440F\u0180grs\u02BF\u02C4\u02C7ger;\u6021r;\u61A1hv;\u6AE4\u0100ay\u02D0\u02D5ron;\u410E;\u4414l\u0100;t\u02DD\u02DE\u6207a;\u4394r;\uC000\u{1D507}\u0100af\u02EB\u0327\u0100cm\u02F0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031Ccute;\u40B4o\u0174\u030B\u030D;\u42D9bleAcute;\u42DDrave;\u4060ilde;\u42DCond;\u62C4ferentialD;\u6146\u0470\u033D\0\0\0\u0342\u0354\0\u0405f;\uC000\u{1D53B}\u0180;DE\u0348\u0349\u034D\u40A8ot;\u60DCqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03CF\u03E2\u03F8ontourIntegra\xEC\u0239o\u0274\u0379\0\0\u037B\xBB\u0349nArrow;\u61D3\u0100eo\u0387\u03A4ft\u0180ART\u0390\u0396\u03A1rrow;\u61D0ightArrow;\u61D4e\xE5\u02CAng\u0100LR\u03AB\u03C4eft\u0100AR\u03B3\u03B9rrow;\u67F8ightArrow;\u67FAightArrow;\u67F9ight\u0100AT\u03D8\u03DErrow;\u61D2ee;\u62A8p\u0241\u03E9\0\0\u03EFrrow;\u61D1ownArrow;\u61D5erticalBar;\u6225n\u0300ABLRTa\u0412\u042A\u0430\u045E\u047F\u037Crrow\u0180;BU\u041D\u041E\u0422\u6193ar;\u6913pArrow;\u61F5reve;\u4311eft\u02D2\u043A\0\u0446\0\u0450ightVector;\u6950eeVector;\u695Eector\u0100;B\u0459\u045A\u61BDar;\u6956ight\u01D4\u0467\0\u0471eeVector;\u695Fector\u0100;B\u047A\u047B\u61C1ar;\u6957ee\u0100;A\u0486\u0487\u62A4rrow;\u61A7\u0100ct\u0492\u0497r;\uC000\u{1D49F}rok;\u4110\u0800NTacdfglmopqstux\u04BD\u04C0\u04C4\u04CB\u04DE\u04E2\u04E7\u04EE\u04F5\u0521\u052F\u0536\u0552\u055D\u0560\u0565G;\u414AH\u803B\xD0\u40D0cute\u803B\xC9\u40C9\u0180aiy\u04D2\u04D7\u04DCron;\u411Arc\u803B\xCA\u40CA;\u442Dot;\u4116r;\uC000\u{1D508}rave\u803B\xC8\u40C8ement;\u6208\u0100ap\u04FA\u04FEcr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65FBerySmallSquare;\u65AB\u0100gp\u0526\u052Aon;\u4118f;\uC000\u{1D53C}silon;\u4395u\u0100ai\u053C\u0549l\u0100;T\u0542\u0543\u6A75ilde;\u6242librium;\u61CC\u0100ci\u0557\u055Ar;\u6130m;\u6A73a;\u4397ml\u803B\xCB\u40CB\u0100ip\u056A\u056Fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058D\u05B2\u05CCy;\u4424r;\uC000\u{1D509}lled\u0253\u0597\0\0\u05A3mallSquare;\u65FCerySmallSquare;\u65AA\u0370\u05BA\0\u05BF\0\0\u05C4f;\uC000\u{1D53D}All;\u6200riertrf;\u6131c\xF2\u05CB\u0600JTabcdfgorst\u05E8\u05EC\u05EF\u05FA\u0600\u0612\u0616\u061B\u061D\u0623\u066C\u0672cy;\u4403\u803B>\u403Emma\u0100;d\u05F7\u05F8\u4393;\u43DCreve;\u411E\u0180eiy\u0607\u060C\u0610dil;\u4122rc;\u411C;\u4413ot;\u4120r;\uC000\u{1D50A};\u62D9pf;\uC000\u{1D53E}eater\u0300EFGLST\u0635\u0644\u064E\u0656\u065B\u0666qual\u0100;L\u063E\u063F\u6265ess;\u62DBullEqual;\u6267reater;\u6AA2ess;\u6277lantEqual;\u6A7Eilde;\u6273cr;\uC000\u{1D4A2};\u626B\u0400Aacfiosu\u0685\u068B\u0696\u069B\u069E\u06AA\u06BE\u06CARDcy;\u442A\u0100ct\u0690\u0694ek;\u42C7;\u405Eirc;\u4124r;\u610ClbertSpace;\u610B\u01F0\u06AF\0\u06B2f;\u610DizontalLine;\u6500\u0100ct\u06C3\u06C5\xF2\u06A9rok;\u4126mp\u0144\u06D0\u06D8ownHum\xF0\u012Fqual;\u624F\u0700EJOacdfgmnostu\u06FA\u06FE\u0703\u0707\u070E\u071A\u071E\u0721\u0728\u0744\u0778\u078B\u078F\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803B\xCD\u40CD\u0100iy\u0713\u0718rc\u803B\xCE\u40CE;\u4418ot;\u4130r;\u6111rave\u803B\xCC\u40CC\u0180;ap\u0720\u072F\u073F\u0100cg\u0734\u0737r;\u412AinaryI;\u6148lie\xF3\u03DD\u01F4\u0749\0\u0762\u0100;e\u074D\u074E\u622C\u0100gr\u0753\u0758ral;\u622Bsection;\u62C2isible\u0100CT\u076C\u0772omma;\u6063imes;\u6062\u0180gpt\u077F\u0783\u0788on;\u412Ef;\uC000\u{1D540}a;\u4399cr;\u6110ilde;\u4128\u01EB\u079A\0\u079Ecy;\u4406l\u803B\xCF\u40CF\u0280cfosu\u07AC\u07B7\u07BC\u07C2\u07D0\u0100iy\u07B1\u07B5rc;\u4134;\u4419r;\uC000\u{1D50D}pf;\uC000\u{1D541}\u01E3\u07C7\0\u07CCr;\uC000\u{1D4A5}rcy;\u4408kcy;\u4404\u0380HJacfos\u07E4\u07E8\u07EC\u07F1\u07FD\u0802\u0808cy;\u4425cy;\u440Cppa;\u439A\u0100ey\u07F6\u07FBdil;\u4136;\u441Ar;\uC000\u{1D50E}pf;\uC000\u{1D542}cr;\uC000\u{1D4A6}\u0580JTaceflmost\u0825\u0829\u082C\u0850\u0863\u09B3\u09B8\u09C7\u09CD\u0A37\u0A47cy;\u4409\u803B<\u403C\u0280cmnpr\u0837\u083C\u0841\u0844\u084Dute;\u4139bda;\u439Bg;\u67EAlacetrf;\u6112r;\u619E\u0180aey\u0857\u085C\u0861ron;\u413Ddil;\u413B;\u441B\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087E\u08A9\u08B1\u08E0\u08E6\u08FC\u092F\u095B\u0390\u096A\u0100nr\u0883\u088FgleBracket;\u67E8row\u0180;BR\u0899\u089A\u089E\u6190ar;\u61E4ightArrow;\u61C6eiling;\u6308o\u01F5\u08B7\0\u08C3bleBracket;\u67E6n\u01D4\u08C8\0\u08D2eeVector;\u6961ector\u0100;B\u08DB\u08DC\u61C3ar;\u6959loor;\u630Aight\u0100AV\u08EF\u08F5rrow;\u6194ector;\u694E\u0100er\u0901\u0917e\u0180;AV\u0909\u090A\u0910\u62A3rrow;\u61A4ector;\u695Aiangle\u0180;BE\u0924\u0925\u0929\u62B2ar;\u69CFqual;\u62B4p\u0180DTV\u0937\u0942\u094CownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61BFar;\u6958ector\u0100;B\u0965\u0966\u61BCar;\u6952ight\xE1\u039Cs\u0300EFGLST\u097E\u098B\u0995\u099D\u09A2\u09ADqualGreater;\u62DAullEqual;\u6266reater;\u6276ess;\u6AA1lantEqual;\u6A7Dilde;\u6272r;\uC000\u{1D50F}\u0100;e\u09BD\u09BE\u62D8ftarrow;\u61DAidot;\u413F\u0180npw\u09D4\u0A16\u0A1Bg\u0200LRlr\u09DE\u09F7\u0A02\u0A10eft\u0100AR\u09E6\u09ECrrow;\u67F5ightArrow;\u67F7ightArrow;\u67F6eft\u0100ar\u03B3\u0A0Aight\xE1\u03BFight\xE1\u03CAf;\uC000\u{1D543}er\u0100LR\u0A22\u0A2CeftArrow;\u6199ightArrow;\u6198\u0180cht\u0A3E\u0A40\u0A42\xF2\u084C;\u61B0rok;\u4141;\u626A\u0400acefiosu\u0A5A\u0A5D\u0A60\u0A77\u0A7C\u0A85\u0A8B\u0A8Ep;\u6905y;\u441C\u0100dl\u0A65\u0A6FiumSpace;\u605Flintrf;\u6133r;\uC000\u{1D510}nusPlus;\u6213pf;\uC000\u{1D544}c\xF2\u0A76;\u439C\u0480Jacefostu\u0AA3\u0AA7\u0AAD\u0AC0\u0B14\u0B19\u0D91\u0D97\u0D9Ecy;\u440Acute;\u4143\u0180aey\u0AB4\u0AB9\u0ABEron;\u4147dil;\u4145;\u441D\u0180gsw\u0AC7\u0AF0\u0B0Eative\u0180MTV\u0AD3\u0ADF\u0AE8ediumSpace;\u600Bhi\u0100cn\u0AE6\u0AD8\xEB\u0AD9eryThi\xEE\u0AD9ted\u0100GL\u0AF8\u0B06reaterGreate\xF2\u0673essLes\xF3\u0A48Line;\u400Ar;\uC000\u{1D511}\u0200Bnpt\u0B22\u0B28\u0B37\u0B3Areak;\u6060BreakingSpace;\u40A0f;\u6115\u0680;CDEGHLNPRSTV\u0B55\u0B56\u0B6A\u0B7C\u0BA1\u0BEB\u0C04\u0C5E\u0C84\u0CA6\u0CD8\u0D61\u0D85\u6AEC\u0100ou\u0B5B\u0B64ngruent;\u6262pCap;\u626DoubleVerticalBar;\u6226\u0180lqx\u0B83\u0B8A\u0B9Bement;\u6209ual\u0100;T\u0B92\u0B93\u6260ilde;\uC000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0BB6\u0BB7\u0BBD\u0BC9\u0BD3\u0BD8\u0BE5\u626Fqual;\u6271ullEqual;\uC000\u2267\u0338reater;\uC000\u226B\u0338ess;\u6279lantEqual;\uC000\u2A7E\u0338ilde;\u6275ump\u0144\u0BF2\u0BFDownHump;\uC000\u224E\u0338qual;\uC000\u224F\u0338e\u0100fs\u0C0A\u0C27tTriangle\u0180;BE\u0C1A\u0C1B\u0C21\u62EAar;\uC000\u29CF\u0338qual;\u62ECs\u0300;EGLST\u0C35\u0C36\u0C3C\u0C44\u0C4B\u0C58\u626Equal;\u6270reater;\u6278ess;\uC000\u226A\u0338lantEqual;\uC000\u2A7D\u0338ilde;\u6274ested\u0100GL\u0C68\u0C79reaterGreater;\uC000\u2AA2\u0338essLess;\uC000\u2AA1\u0338recedes\u0180;ES\u0C92\u0C93\u0C9B\u6280qual;\uC000\u2AAF\u0338lantEqual;\u62E0\u0100ei\u0CAB\u0CB9verseElement;\u620CghtTriangle\u0180;BE\u0CCB\u0CCC\u0CD2\u62EBar;\uC000\u29D0\u0338qual;\u62ED\u0100qu\u0CDD\u0D0CuareSu\u0100bp\u0CE8\u0CF9set\u0100;E\u0CF0\u0CF3\uC000\u228F\u0338qual;\u62E2erset\u0100;E\u0D03\u0D06\uC000\u2290\u0338qual;\u62E3\u0180bcp\u0D13\u0D24\u0D4Eset\u0100;E\u0D1B\u0D1E\uC000\u2282\u20D2qual;\u6288ceeds\u0200;EST\u0D32\u0D33\u0D3B\u0D46\u6281qual;\uC000\u2AB0\u0338lantEqual;\u62E1ilde;\uC000\u227F\u0338erset\u0100;E\u0D58\u0D5B\uC000\u2283\u20D2qual;\u6289ilde\u0200;EFT\u0D6E\u0D6F\u0D75\u0D7F\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uC000\u{1D4A9}ilde\u803B\xD1\u40D1;\u439D\u0700Eacdfgmoprstuv\u0DBD\u0DC2\u0DC9\u0DD5\u0DDB\u0DE0\u0DE7\u0DFC\u0E02\u0E20\u0E22\u0E32\u0E3F\u0E44lig;\u4152cute\u803B\xD3\u40D3\u0100iy\u0DCE\u0DD3rc\u803B\xD4\u40D4;\u441Eblac;\u4150r;\uC000\u{1D512}rave\u803B\xD2\u40D2\u0180aei\u0DEE\u0DF2\u0DF6cr;\u414Cga;\u43A9cron;\u439Fpf;\uC000\u{1D546}enCurly\u0100DQ\u0E0E\u0E1AoubleQuote;\u601Cuote;\u6018;\u6A54\u0100cl\u0E27\u0E2Cr;\uC000\u{1D4AA}ash\u803B\xD8\u40D8i\u016C\u0E37\u0E3Cde\u803B\xD5\u40D5es;\u6A37ml\u803B\xD6\u40D6er\u0100BP\u0E4B\u0E60\u0100ar\u0E50\u0E53r;\u603Eac\u0100ek\u0E5A\u0E5C;\u63DEet;\u63B4arenthesis;\u63DC\u0480acfhilors\u0E7F\u0E87\u0E8A\u0E8F\u0E92\u0E94\u0E9D\u0EB0\u0EFCrtialD;\u6202y;\u441Fr;\uC000\u{1D513}i;\u43A6;\u43A0usMinus;\u40B1\u0100ip\u0EA2\u0EADncareplan\xE5\u069Df;\u6119\u0200;eio\u0EB9\u0EBA\u0EE0\u0EE4\u6ABBcedes\u0200;EST\u0EC8\u0EC9\u0ECF\u0EDA\u627Aqual;\u6AAFlantEqual;\u627Cilde;\u627Eme;\u6033\u0100dp\u0EE9\u0EEEuct;\u620Fortion\u0100;a\u0225\u0EF9l;\u621D\u0100ci\u0F01\u0F06r;\uC000\u{1D4AB};\u43A8\u0200Ufos\u0F11\u0F16\u0F1B\u0F1FOT\u803B"\u4022r;\uC000\u{1D514}pf;\u611Acr;\uC000\u{1D4AC}\u0600BEacefhiorsu\u0F3E\u0F43\u0F47\u0F60\u0F73\u0FA7\u0FAA\u0FAD\u1096\u10A9\u10B4\u10BEarr;\u6910G\u803B\xAE\u40AE\u0180cnr\u0F4E\u0F53\u0F56ute;\u4154g;\u67EBr\u0100;t\u0F5C\u0F5D\u61A0l;\u6916\u0180aey\u0F67\u0F6C\u0F71ron;\u4158dil;\u4156;\u4420\u0100;v\u0F78\u0F79\u611Cerse\u0100EU\u0F82\u0F99\u0100lq\u0F87\u0F8Eement;\u620Builibrium;\u61CBpEquilibrium;\u696Fr\xBB\u0F79o;\u43A1ght\u0400ACDFTUVa\u0FC1\u0FEB\u0FF3\u1022\u1028\u105B\u1087\u03D8\u0100nr\u0FC6\u0FD2gleBracket;\u67E9row\u0180;BL\u0FDC\u0FDD\u0FE1\u6192ar;\u61E5eftArrow;\u61C4eiling;\u6309o\u01F5\u0FF9\0\u1005bleBracket;\u67E7n\u01D4\u100A\0\u1014eeVector;\u695Dector\u0100;B\u101D\u101E\u61C2ar;\u6955loor;\u630B\u0100er\u102D\u1043e\u0180;AV\u1035\u1036\u103C\u62A2rrow;\u61A6ector;\u695Biangle\u0180;BE\u1050\u1051\u1055\u62B3ar;\u69D0qual;\u62B5p\u0180DTV\u1063\u106E\u1078ownVector;\u694FeeVector;\u695Cector\u0100;B\u1082\u1083\u61BEar;\u6954ector\u0100;B\u1091\u1092\u61C0ar;\u6953\u0100pu\u109B\u109Ef;\u611DndImplies;\u6970ightarrow;\u61DB\u0100ch\u10B9\u10BCr;\u611B;\u61B1leDelayed;\u69F4\u0680HOacfhimoqstu\u10E4\u10F1\u10F7\u10FD\u1119\u111E\u1151\u1156\u1161\u1167\u11B5\u11BB\u11BF\u0100Cc\u10E9\u10EEHcy;\u4429y;\u4428FTcy;\u442Ccute;\u415A\u0280;aeiy\u1108\u1109\u110E\u1113\u1117\u6ABCron;\u4160dil;\u415Erc;\u415C;\u4421r;\uC000\u{1D516}ort\u0200DLRU\u112A\u1134\u113E\u1149ownArrow\xBB\u041EeftArrow\xBB\u089AightArrow\xBB\u0FDDpArrow;\u6191gma;\u43A3allCircle;\u6218pf;\uC000\u{1D54A}\u0272\u116D\0\0\u1170t;\u621Aare\u0200;ISU\u117B\u117C\u1189\u11AF\u65A1ntersection;\u6293u\u0100bp\u118F\u119Eset\u0100;E\u1197\u1198\u628Fqual;\u6291erset\u0100;E\u11A8\u11A9\u6290qual;\u6292nion;\u6294cr;\uC000\u{1D4AE}ar;\u62C6\u0200bcmp\u11C8\u11DB\u1209\u120B\u0100;s\u11CD\u11CE\u62D0et\u0100;E\u11CD\u11D5qual;\u6286\u0100ch\u11E0\u1205eeds\u0200;EST\u11ED\u11EE\u11F4\u11FF\u627Bqual;\u6AB0lantEqual;\u627Dilde;\u627FTh\xE1\u0F8C;\u6211\u0180;es\u1212\u1213\u1223\u62D1rset\u0100;E\u121C\u121D\u6283qual;\u6287et\xBB\u1213\u0580HRSacfhiors\u123E\u1244\u1249\u1255\u125E\u1271\u1276\u129F\u12C2\u12C8\u12D1ORN\u803B\xDE\u40DEADE;\u6122\u0100Hc\u124E\u1252cy;\u440By;\u4426\u0100bu\u125A\u125C;\u4009;\u43A4\u0180aey\u1265\u126A\u126Fron;\u4164dil;\u4162;\u4422r;\uC000\u{1D517}\u0100ei\u127B\u1289\u01F2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128E\u1298kSpace;\uC000\u205F\u200ASpace;\u6009lde\u0200;EFT\u12AB\u12AC\u12B2\u12BC\u623Cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uC000\u{1D54B}ipleDot;\u60DB\u0100ct\u12D6\u12DBr;\uC000\u{1D4AF}rok;\u4166\u0AE1\u12F7\u130E\u131A\u1326\0\u132C\u1331\0\0\0\0\0\u1338\u133D\u1377\u1385\0\u13FF\u1404\u140A\u1410\u0100cr\u12FB\u1301ute\u803B\xDA\u40DAr\u0100;o\u1307\u1308\u619Fcir;\u6949r\u01E3\u1313\0\u1316y;\u440Eve;\u416C\u0100iy\u131E\u1323rc\u803B\xDB\u40DB;\u4423blac;\u4170r;\uC000\u{1D518}rave\u803B\xD9\u40D9acr;\u416A\u0100di\u1341\u1369er\u0100BP\u1348\u135D\u0100ar\u134D\u1350r;\u405Fac\u0100ek\u1357\u1359;\u63DFet;\u63B5arenthesis;\u63DDon\u0100;P\u1370\u1371\u62C3lus;\u628E\u0100gp\u137B\u137Fon;\u4172f;\uC000\u{1D54C}\u0400ADETadps\u1395\u13AE\u13B8\u13C4\u03E8\u13D2\u13D7\u13F3rrow\u0180;BD\u1150\u13A0\u13A4ar;\u6912ownArrow;\u61C5ownArrow;\u6195quilibrium;\u696Eee\u0100;A\u13CB\u13CC\u62A5rrow;\u61A5own\xE1\u03F3er\u0100LR\u13DE\u13E8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13F9\u13FA\u43D2on;\u43A5ing;\u416Ecr;\uC000\u{1D4B0}ilde;\u4168ml\u803B\xDC\u40DC\u0480Dbcdefosv\u1427\u142C\u1430\u1433\u143E\u1485\u148A\u1490\u1496ash;\u62ABar;\u6AEBy;\u4412ash\u0100;l\u143B\u143C\u62A9;\u6AE6\u0100er\u1443\u1445;\u62C1\u0180bty\u144C\u1450\u147Aar;\u6016\u0100;i\u144F\u1455cal\u0200BLST\u1461\u1465\u146A\u1474ar;\u6223ine;\u407Ceparator;\u6758ilde;\u6240ThinSpace;\u600Ar;\uC000\u{1D519}pf;\uC000\u{1D54D}cr;\uC000\u{1D4B1}dash;\u62AA\u0280cefos\u14A7\u14AC\u14B1\u14B6\u14BCirc;\u4174dge;\u62C0r;\uC000\u{1D51A}pf;\uC000\u{1D54E}cr;\uC000\u{1D4B2}\u0200fios\u14CB\u14D0\u14D2\u14D8r;\uC000\u{1D51B};\u439Epf;\uC000\u{1D54F}cr;\uC000\u{1D4B3}\u0480AIUacfosu\u14F1\u14F5\u14F9\u14FD\u1504\u150F\u1514\u151A\u1520cy;\u442Fcy;\u4407cy;\u442Ecute\u803B\xDD\u40DD\u0100iy\u1509\u150Drc;\u4176;\u442Br;\uC000\u{1D51C}pf;\uC000\u{1D550}cr;\uC000\u{1D4B4}ml;\u4178\u0400Hacdefos\u1535\u1539\u153F\u154B\u154F\u155D\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417D;\u4417ot;\u417B\u01F2\u1554\0\u155BoWidt\xE8\u0AD9a;\u4396r;\u6128pf;\u6124cr;\uC000\u{1D4B5}\u0BE1\u1583\u158A\u1590\0\u15B0\u15B6\u15BF\0\0\0\0\u15C6\u15DB\u15EB\u165F\u166D\0\u1695\u169B\u16B2\u16B9\0\u16BEcute\u803B\xE1\u40E1reve;\u4103\u0300;Ediuy\u159C\u159D\u15A1\u15A3\u15A8\u15AD\u623E;\uC000\u223E\u0333;\u623Frc\u803B\xE2\u40E2te\u80BB\xB4\u0306;\u4430lig\u803B\xE6\u40E6\u0100;r\xB2\u15BA;\uC000\u{1D51E}rave\u803B\xE0\u40E0\u0100ep\u15CA\u15D6\u0100fp\u15CF\u15D4sym;\u6135\xE8\u15D3ha;\u43B1\u0100ap\u15DFc\u0100cl\u15E4\u15E7r;\u4101g;\u6A3F\u0264\u15F0\0\0\u160A\u0280;adsv\u15FA\u15FB\u15FF\u1601\u1607\u6227nd;\u6A55;\u6A5Clope;\u6A58;\u6A5A\u0380;elmrsz\u1618\u1619\u161B\u161E\u163F\u164F\u1659\u6220;\u69A4e\xBB\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163A\u163C\u163E;\u69A8;\u69A9;\u69AA;\u69AB;\u69AC;\u69AD;\u69AE;\u69AFt\u0100;v\u1645\u1646\u621Fb\u0100;d\u164C\u164D\u62BE;\u699D\u0100pt\u1654\u1657h;\u6222\xBB\xB9arr;\u637C\u0100gp\u1663\u1667on;\u4105f;\uC000\u{1D552}\u0380;Eaeiop\u12C1\u167B\u167D\u1682\u1684\u1687\u168A;\u6A70cir;\u6A6F;\u624Ad;\u624Bs;\u4027rox\u0100;e\u12C1\u1692\xF1\u1683ing\u803B\xE5\u40E5\u0180cty\u16A1\u16A6\u16A8r;\uC000\u{1D4B6};\u402Amp\u0100;e\u12C1\u16AF\xF1\u0288ilde\u803B\xE3\u40E3ml\u803B\xE4\u40E4\u0100ci\u16C2\u16C8onin\xF4\u0272nt;\u6A11\u0800Nabcdefiklnoprsu\u16ED\u16F1\u1730\u173C\u1743\u1748\u1778\u177D\u17E0\u17E6\u1839\u1850\u170D\u193D\u1948\u1970ot;\u6AED\u0100cr\u16F6\u171Ek\u0200ceps\u1700\u1705\u170D\u1713ong;\u624Cpsilon;\u43F6rime;\u6035im\u0100;e\u171A\u171B\u623Dq;\u62CD\u0176\u1722\u1726ee;\u62BDed\u0100;g\u172C\u172D\u6305e\xBB\u172Drk\u0100;t\u135C\u1737brk;\u63B6\u0100oy\u1701\u1741;\u4431quo;\u601E\u0280cmprt\u1753\u175B\u1761\u1764\u1768aus\u0100;e\u010A\u0109ptyv;\u69B0s\xE9\u170Cno\xF5\u0113\u0180ahw\u176F\u1771\u1773;\u43B2;\u6136een;\u626Cr;\uC000\u{1D51F}g\u0380costuvw\u178D\u179D\u17B3\u17C1\u17D5\u17DB\u17DE\u0180aiu\u1794\u1796\u179A\xF0\u0760rc;\u65EFp\xBB\u1371\u0180dpt\u17A4\u17A8\u17ADot;\u6A00lus;\u6A01imes;\u6A02\u0271\u17B9\0\0\u17BEcup;\u6A06ar;\u6605riangle\u0100du\u17CD\u17D2own;\u65BDp;\u65B3plus;\u6A04e\xE5\u1444\xE5\u14ADarow;\u690D\u0180ako\u17ED\u1826\u1835\u0100cn\u17F2\u1823k\u0180lst\u17FA\u05AB\u1802ozenge;\u69EBriangle\u0200;dlr\u1812\u1813\u1818\u181D\u65B4own;\u65BEeft;\u65C2ight;\u65B8k;\u6423\u01B1\u182B\0\u1833\u01B2\u182F\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183E\u184D\u0100;q\u1843\u1846\uC000=\u20E5uiv;\uC000\u2261\u20E5t;\u6310\u0200ptwx\u1859\u185E\u1867\u186Cf;\uC000\u{1D553}\u0100;t\u13CB\u1863om\xBB\u13CCtie;\u62C8\u0600DHUVbdhmptuv\u1885\u1896\u18AA\u18BB\u18D7\u18DB\u18EC\u18FF\u1905\u190A\u1910\u1921\u0200LRlr\u188E\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18A1\u18A2\u18A4\u18A6\u18A8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18B3\u18B5\u18B7\u18B9;\u655D;\u655A;\u655C;\u6559\u0380;HLRhlr\u18CA\u18CB\u18CD\u18CF\u18D1\u18D3\u18D5\u6551;\u656C;\u6563;\u6560;\u656B;\u6562;\u655Fox;\u69C9\u0200LRlr\u18E4\u18E6\u18E8\u18EA;\u6555;\u6552;\u6510;\u650C\u0280;DUdu\u06BD\u18F7\u18F9\u18FB\u18FD;\u6565;\u6568;\u652C;\u6534inus;\u629Flus;\u629Eimes;\u62A0\u0200LRlr\u1919\u191B\u191D\u191F;\u655B;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193B\u6502;\u656A;\u6561;\u655E;\u653C;\u6524;\u651C\u0100ev\u0123\u1942bar\u803B\xA6\u40A6\u0200ceio\u1951\u1956\u195A\u1960r;\uC000\u{1D4B7}mi;\u604Fm\u0100;e\u171A\u171Cl\u0180;bh\u1968\u1969\u196B\u405C;\u69C5sub;\u67C8\u016C\u1974\u197El\u0100;e\u1979\u197A\u6022t\xBB\u197Ap\u0180;Ee\u012F\u1985\u1987;\u6AAE\u0100;q\u06DC\u06DB\u0CE1\u19A7\0\u19E8\u1A11\u1A15\u1A32\0\u1A37\u1A50\0\0\u1AB4\0\0\u1AC1\0\0\u1B21\u1B2E\u1B4D\u1B52\0\u1BFD\0\u1C0C\u0180cpr\u19AD\u19B2\u19DDute;\u4107\u0300;abcds\u19BF\u19C0\u19C4\u19CA\u19D5\u19D9\u6229nd;\u6A44rcup;\u6A49\u0100au\u19CF\u19D2p;\u6A4Bp;\u6A47ot;\u6A40;\uC000\u2229\uFE00\u0100eo\u19E2\u19E5t;\u6041\xEE\u0693\u0200aeiu\u19F0\u19FB\u1A01\u1A05\u01F0\u19F5\0\u19F8s;\u6A4Don;\u410Ddil\u803B\xE7\u40E7rc;\u4109ps\u0100;s\u1A0C\u1A0D\u6A4Cm;\u6A50ot;\u410B\u0180dmn\u1A1B\u1A20\u1A26il\u80BB\xB8\u01ADptyv;\u69B2t\u8100\xA2;e\u1A2D\u1A2E\u40A2r\xE4\u01B2r;\uC000\u{1D520}\u0180cei\u1A3D\u1A40\u1A4Dy;\u4447ck\u0100;m\u1A47\u1A48\u6713ark\xBB\u1A48;\u43C7r\u0380;Ecefms\u1A5F\u1A60\u1A62\u1A6B\u1AA4\u1AAA\u1AAE\u65CB;\u69C3\u0180;el\u1A69\u1A6A\u1A6D\u42C6q;\u6257e\u0261\u1A74\0\0\u1A88rrow\u0100lr\u1A7C\u1A81eft;\u61BAight;\u61BB\u0280RSacd\u1A92\u1A94\u1A96\u1A9A\u1A9F\xBB\u0F47;\u64C8st;\u629Birc;\u629Aash;\u629Dnint;\u6A10id;\u6AEFcir;\u69C2ubs\u0100;u\u1ABB\u1ABC\u6663it\xBB\u1ABC\u02EC\u1AC7\u1AD4\u1AFA\0\u1B0Aon\u0100;e\u1ACD\u1ACE\u403A\u0100;q\xC7\xC6\u026D\u1AD9\0\0\u1AE2a\u0100;t\u1ADE\u1ADF\u402C;\u4040\u0180;fl\u1AE8\u1AE9\u1AEB\u6201\xEE\u1160e\u0100mx\u1AF1\u1AF6ent\xBB\u1AE9e\xF3\u024D\u01E7\u1AFE\0\u1B07\u0100;d\u12BB\u1B02ot;\u6A6Dn\xF4\u0246\u0180fry\u1B10\u1B14\u1B17;\uC000\u{1D554}o\xE4\u0254\u8100\xA9;s\u0155\u1B1Dr;\u6117\u0100ao\u1B25\u1B29rr;\u61B5ss;\u6717\u0100cu\u1B32\u1B37r;\uC000\u{1D4B8}\u0100bp\u1B3C\u1B44\u0100;e\u1B41\u1B42\u6ACF;\u6AD1\u0100;e\u1B49\u1B4A\u6AD0;\u6AD2dot;\u62EF\u0380delprvw\u1B60\u1B6C\u1B77\u1B82\u1BAC\u1BD4\u1BF9arr\u0100lr\u1B68\u1B6A;\u6938;\u6935\u0270\u1B72\0\0\u1B75r;\u62DEc;\u62DFarr\u0100;p\u1B7F\u1B80\u61B6;\u693D\u0300;bcdos\u1B8F\u1B90\u1B96\u1BA1\u1BA5\u1BA8\u622Arcap;\u6A48\u0100au\u1B9B\u1B9Ep;\u6A46p;\u6A4Aot;\u628Dr;\u6A45;\uC000\u222A\uFE00\u0200alrv\u1BB5\u1BBF\u1BDE\u1BE3rr\u0100;m\u1BBC\u1BBD\u61B7;\u693Cy\u0180evw\u1BC7\u1BD4\u1BD8q\u0270\u1BCE\0\0\u1BD2re\xE3\u1B73u\xE3\u1B75ee;\u62CEedge;\u62CFen\u803B\xA4\u40A4earrow\u0100lr\u1BEE\u1BF3eft\xBB\u1B80ight\xBB\u1BBDe\xE4\u1BDD\u0100ci\u1C01\u1C07onin\xF4\u01F7nt;\u6231lcty;\u632D\u0980AHabcdefhijlorstuwz\u1C38\u1C3B\u1C3F\u1C5D\u1C69\u1C75\u1C8A\u1C9E\u1CAC\u1CB7\u1CFB\u1CFF\u1D0D\u1D7B\u1D91\u1DAB\u1DBB\u1DC6\u1DCDr\xF2\u0381ar;\u6965\u0200glrs\u1C48\u1C4D\u1C52\u1C54ger;\u6020eth;\u6138\xF2\u1133h\u0100;v\u1C5A\u1C5B\u6010\xBB\u090A\u016B\u1C61\u1C67arow;\u690Fa\xE3\u0315\u0100ay\u1C6E\u1C73ron;\u410F;\u4434\u0180;ao\u0332\u1C7C\u1C84\u0100gr\u02BF\u1C81r;\u61CAtseq;\u6A77\u0180glm\u1C91\u1C94\u1C98\u803B\xB0\u40B0ta;\u43B4ptyv;\u69B1\u0100ir\u1CA3\u1CA8sht;\u697F;\uC000\u{1D521}ar\u0100lr\u1CB3\u1CB5\xBB\u08DC\xBB\u101E\u0280aegsv\u1CC2\u0378\u1CD6\u1CDC\u1CE0m\u0180;os\u0326\u1CCA\u1CD4nd\u0100;s\u0326\u1CD1uit;\u6666amma;\u43DDin;\u62F2\u0180;io\u1CE7\u1CE8\u1CF8\u40F7de\u8100\xF7;o\u1CE7\u1CF0ntimes;\u62C7n\xF8\u1CF7cy;\u4452c\u026F\u1D06\0\0\u1D0Arn;\u631Eop;\u630D\u0280lptuw\u1D18\u1D1D\u1D22\u1D49\u1D55lar;\u4024f;\uC000\u{1D555}\u0280;emps\u030B\u1D2D\u1D37\u1D3D\u1D42q\u0100;d\u0352\u1D33ot;\u6251inus;\u6238lus;\u6214quare;\u62A1blebarwedg\xE5\xFAn\u0180adh\u112E\u1D5D\u1D67ownarrow\xF3\u1C83arpoon\u0100lr\u1D72\u1D76ef\xF4\u1CB4igh\xF4\u1CB6\u0162\u1D7F\u1D85karo\xF7\u0F42\u026F\u1D8A\0\0\u1D8Ern;\u631Fop;\u630C\u0180cot\u1D98\u1DA3\u1DA6\u0100ry\u1D9D\u1DA1;\uC000\u{1D4B9};\u4455l;\u69F6rok;\u4111\u0100dr\u1DB0\u1DB4ot;\u62F1i\u0100;f\u1DBA\u1816\u65BF\u0100ah\u1DC0\u1DC3r\xF2\u0429a\xF2\u0FA6angle;\u69A6\u0100ci\u1DD2\u1DD5y;\u445Fgrarr;\u67FF\u0900Dacdefglmnopqrstux\u1E01\u1E09\u1E19\u1E38\u0578\u1E3C\u1E49\u1E61\u1E7E\u1EA5\u1EAF\u1EBD\u1EE1\u1F2A\u1F37\u1F44\u1F4E\u1F5A\u0100Do\u1E06\u1D34o\xF4\u1C89\u0100cs\u1E0E\u1E14ute\u803B\xE9\u40E9ter;\u6A6E\u0200aioy\u1E22\u1E27\u1E31\u1E36ron;\u411Br\u0100;c\u1E2D\u1E2E\u6256\u803B\xEA\u40EAlon;\u6255;\u444Dot;\u4117\u0100Dr\u1E41\u1E45ot;\u6252;\uC000\u{1D522}\u0180;rs\u1E50\u1E51\u1E57\u6A9Aave\u803B\xE8\u40E8\u0100;d\u1E5C\u1E5D\u6A96ot;\u6A98\u0200;ils\u1E6A\u1E6B\u1E72\u1E74\u6A99nters;\u63E7;\u6113\u0100;d\u1E79\u1E7A\u6A95ot;\u6A97\u0180aps\u1E85\u1E89\u1E97cr;\u4113ty\u0180;sv\u1E92\u1E93\u1E95\u6205et\xBB\u1E93p\u01001;\u1E9D\u1EA4\u0133\u1EA1\u1EA3;\u6004;\u6005\u6003\u0100gs\u1EAA\u1EAC;\u414Bp;\u6002\u0100gp\u1EB4\u1EB8on;\u4119f;\uC000\u{1D556}\u0180als\u1EC4\u1ECE\u1ED2r\u0100;s\u1ECA\u1ECB\u62D5l;\u69E3us;\u6A71i\u0180;lv\u1EDA\u1EDB\u1EDF\u43B5on\xBB\u1EDB;\u43F5\u0200csuv\u1EEA\u1EF3\u1F0B\u1F23\u0100io\u1EEF\u1E31rc\xBB\u1E2E\u0269\u1EF9\0\0\u1EFB\xED\u0548ant\u0100gl\u1F02\u1F06tr\xBB\u1E5Dess\xBB\u1E7A\u0180aei\u1F12\u1F16\u1F1Als;\u403Dst;\u625Fv\u0100;D\u0235\u1F20D;\u6A78parsl;\u69E5\u0100Da\u1F2F\u1F33ot;\u6253rr;\u6971\u0180cdi\u1F3E\u1F41\u1EF8r;\u612Fo\xF4\u0352\u0100ah\u1F49\u1F4B;\u43B7\u803B\xF0\u40F0\u0100mr\u1F53\u1F57l\u803B\xEB\u40EBo;\u60AC\u0180cip\u1F61\u1F64\u1F67l;\u4021s\xF4\u056E\u0100eo\u1F6C\u1F74ctatio\xEE\u0559nential\xE5\u0579\u09E1\u1F92\0\u1F9E\0\u1FA1\u1FA7\0\0\u1FC6\u1FCC\0\u1FD3\0\u1FE6\u1FEA\u2000\0\u2008\u205Allingdotse\xF1\u1E44y;\u4444male;\u6640\u0180ilr\u1FAD\u1FB3\u1FC1lig;\u8000\uFB03\u0269\u1FB9\0\0\u1FBDg;\u8000\uFB00ig;\u8000\uFB04;\uC000\u{1D523}lig;\u8000\uFB01lig;\uC000fj\u0180alt\u1FD9\u1FDC\u1FE1t;\u666Dig;\u8000\uFB02ns;\u65B1of;\u4192\u01F0\u1FEE\0\u1FF3f;\uC000\u{1D557}\u0100ak\u05BF\u1FF7\u0100;v\u1FFC\u1FFD\u62D4;\u6AD9artint;\u6A0D\u0100ao\u200C\u2055\u0100cs\u2011\u2052\u03B1\u201A\u2030\u2038\u2045\u2048\0\u2050\u03B2\u2022\u2025\u2027\u202A\u202C\0\u202E\u803B\xBD\u40BD;\u6153\u803B\xBC\u40BC;\u6155;\u6159;\u615B\u01B3\u2034\0\u2036;\u6154;\u6156\u02B4\u203E\u2041\0\0\u2043\u803B\xBE\u40BE;\u6157;\u615C5;\u6158\u01B6\u204C\0\u204E;\u615A;\u615D8;\u615El;\u6044wn;\u6322cr;\uC000\u{1D4BB}\u0880Eabcdefgijlnorstv\u2082\u2089\u209F\u20A5\u20B0\u20B4\u20F0\u20F5\u20FA\u20FF\u2103\u2112\u2138\u0317\u213E\u2152\u219E\u0100;l\u064D\u2087;\u6A8C\u0180cmp\u2090\u2095\u209Dute;\u41F5ma\u0100;d\u209C\u1CDA\u43B3;\u6A86reve;\u411F\u0100iy\u20AA\u20AErc;\u411D;\u4433ot;\u4121\u0200;lqs\u063E\u0642\u20BD\u20C9\u0180;qs\u063E\u064C\u20C4lan\xF4\u0665\u0200;cdl\u0665\u20D2\u20D5\u20E5c;\u6AA9ot\u0100;o\u20DC\u20DD\u6A80\u0100;l\u20E2\u20E3\u6A82;\u6A84\u0100;e\u20EA\u20ED\uC000\u22DB\uFE00s;\u6A94r;\uC000\u{1D524}\u0100;g\u0673\u061Bmel;\u6137cy;\u4453\u0200;Eaj\u065A\u210C\u210E\u2110;\u6A92;\u6AA5;\u6AA4\u0200Eaes\u211B\u211D\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6A8Arox\xBB\u2124\u0100;q\u212E\u212F\u6A88\u0100;q\u212E\u211Bim;\u62E7pf;\uC000\u{1D558}\u0100ci\u2143\u2146r;\u610Am\u0180;el\u066B\u214E\u2150;\u6A8E;\u6A90\u8300>;cdlqr\u05EE\u2160\u216A\u216E\u2173\u2179\u0100ci\u2165\u2167;\u6AA7r;\u6A7Aot;\u62D7Par;\u6995uest;\u6A7C\u0280adels\u2184\u216A\u2190\u0656\u219B\u01F0\u2189\0\u218Epro\xF8\u209Er;\u6978q\u0100lq\u063F\u2196les\xF3\u2088i\xED\u066B\u0100en\u21A3\u21ADrtneqq;\uC000\u2269\uFE00\xC5\u21AA\u0500Aabcefkosy\u21C4\u21C7\u21F1\u21F5\u21FA\u2218\u221D\u222F\u2268\u227Dr\xF2\u03A0\u0200ilmr\u21D0\u21D4\u21D7\u21DBrs\xF0\u1484f\xBB\u2024il\xF4\u06A9\u0100dr\u21E0\u21E4cy;\u444A\u0180;cw\u08F4\u21EB\u21EFir;\u6948;\u61ADar;\u610Firc;\u4125\u0180alr\u2201\u220E\u2213rts\u0100;u\u2209\u220A\u6665it\xBB\u220Alip;\u6026con;\u62B9r;\uC000\u{1D525}s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223A\u223E\u2243\u225E\u2263rr;\u61FFtht;\u623Bk\u0100lr\u2249\u2253eftarrow;\u61A9ightarrow;\u61AAf;\uC000\u{1D559}bar;\u6015\u0180clt\u226F\u2274\u2278r;\uC000\u{1D4BD}as\xE8\u21F4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xBB\u1C5B\u0AE1\u22A3\0\u22AA\0\u22B8\u22C5\u22CE\0\u22D5\u22F3\0\0\u22F8\u2322\u2367\u2362\u237F\0\u2386\u23AA\u23B4cute\u803B\xED\u40ED\u0180;iy\u0771\u22B0\u22B5rc\u803B\xEE\u40EE;\u4438\u0100cx\u22BC\u22BFy;\u4435cl\u803B\xA1\u40A1\u0100fr\u039F\u22C9;\uC000\u{1D526}rave\u803B\xEC\u40EC\u0200;ino\u073E\u22DD\u22E9\u22EE\u0100in\u22E2\u22E6nt;\u6A0Ct;\u622Dfin;\u69DCta;\u6129lig;\u4133\u0180aop\u22FE\u231A\u231D\u0180cgt\u2305\u2308\u2317r;\u412B\u0180elp\u071F\u230F\u2313in\xE5\u078Ear\xF4\u0720h;\u4131f;\u62B7ed;\u41B5\u0280;cfot\u04F4\u232C\u2331\u233D\u2341are;\u6105in\u0100;t\u2338\u2339\u621Eie;\u69DDdo\xF4\u2319\u0280;celp\u0757\u234C\u2350\u235B\u2361al;\u62BA\u0100gr\u2355\u2359er\xF3\u1563\xE3\u234Darhk;\u6A17rod;\u6A3C\u0200cgpt\u236F\u2372\u2376\u237By;\u4451on;\u412Ff;\uC000\u{1D55A}a;\u43B9uest\u803B\xBF\u40BF\u0100ci\u238A\u238Fr;\uC000\u{1D4BE}n\u0280;Edsv\u04F4\u239B\u239D\u23A1\u04F3;\u62F9ot;\u62F5\u0100;v\u23A6\u23A7\u62F4;\u62F3\u0100;i\u0777\u23AElde;\u4129\u01EB\u23B8\0\u23BCcy;\u4456l\u803B\xEF\u40EF\u0300cfmosu\u23CC\u23D7\u23DC\u23E1\u23E7\u23F5\u0100iy\u23D1\u23D5rc;\u4135;\u4439r;\uC000\u{1D527}ath;\u4237pf;\uC000\u{1D55B}\u01E3\u23EC\0\u23F1r;\uC000\u{1D4BF}rcy;\u4458kcy;\u4454\u0400acfghjos\u240B\u2416\u2422\u2427\u242D\u2431\u2435\u243Bppa\u0100;v\u2413\u2414\u43BA;\u43F0\u0100ey\u241B\u2420dil;\u4137;\u443Ar;\uC000\u{1D528}reen;\u4138cy;\u4445cy;\u445Cpf;\uC000\u{1D55C}cr;\uC000\u{1D4C0}\u0B80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248D\u2491\u250E\u253D\u255A\u2580\u264E\u265E\u2665\u2679\u267D\u269A\u26B2\u26D8\u275D\u2768\u278B\u27C0\u2801\u2812\u0180art\u2477\u247A\u247Cr\xF2\u09C6\xF2\u0395ail;\u691Barr;\u690E\u0100;g\u0994\u248B;\u6A8Bar;\u6962\u0963\u24A5\0\u24AA\0\u24B1\0\0\0\0\0\u24B5\u24BA\0\u24C6\u24C8\u24CD\0\u24F9ute;\u413Amptyv;\u69B4ra\xEE\u084Cbda;\u43BBg\u0180;dl\u088E\u24C1\u24C3;\u6991\xE5\u088E;\u6A85uo\u803B\xAB\u40ABr\u0400;bfhlpst\u0899\u24DE\u24E6\u24E9\u24EB\u24EE\u24F1\u24F5\u0100;f\u089D\u24E3s;\u691Fs;\u691D\xEB\u2252p;\u61ABl;\u6939im;\u6973l;\u61A2\u0180;ae\u24FF\u2500\u2504\u6AABil;\u6919\u0100;s\u2509\u250A\u6AAD;\uC000\u2AAD\uFE00\u0180abr\u2515\u2519\u251Drr;\u690Crk;\u6772\u0100ak\u2522\u252Cc\u0100ek\u2528\u252A;\u407B;\u405B\u0100es\u2531\u2533;\u698Bl\u0100du\u2539\u253B;\u698F;\u698D\u0200aeuy\u2546\u254B\u2556\u2558ron;\u413E\u0100di\u2550\u2554il;\u413C\xEC\u08B0\xE2\u2529;\u443B\u0200cqrs\u2563\u2566\u256D\u257Da;\u6936uo\u0100;r\u0E19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694Bh;\u61B2\u0280;fgqs\u258B\u258C\u0989\u25F3\u25FF\u6264t\u0280ahlrt\u2598\u25A4\u25B7\u25C2\u25E8rrow\u0100;t\u0899\u25A1a\xE9\u24F6arpoon\u0100du\u25AF\u25B4own\xBB\u045Ap\xBB\u0966eftarrows;\u61C7ight\u0180ahs\u25CD\u25D6\u25DErrow\u0100;s\u08F4\u08A7arpoon\xF3\u0F98quigarro\xF7\u21F0hreetimes;\u62CB\u0180;qs\u258B\u0993\u25FAlan\xF4\u09AC\u0280;cdgs\u09AC\u260A\u260D\u261D\u2628c;\u6AA8ot\u0100;o\u2614\u2615\u6A7F\u0100;r\u261A\u261B\u6A81;\u6A83\u0100;e\u2622\u2625\uC000\u22DA\uFE00s;\u6A93\u0280adegs\u2633\u2639\u263D\u2649\u264Bppro\xF8\u24C6ot;\u62D6q\u0100gq\u2643\u2645\xF4\u0989gt\xF2\u248C\xF4\u099Bi\xED\u09B2\u0180ilr\u2655\u08E1\u265Asht;\u697C;\uC000\u{1D529}\u0100;E\u099C\u2663;\u6A91\u0161\u2669\u2676r\u0100du\u25B2\u266E\u0100;l\u0965\u2673;\u696Alk;\u6584cy;\u4459\u0280;acht\u0A48\u2688\u268B\u2691\u2696r\xF2\u25C1orne\xF2\u1D08ard;\u696Bri;\u65FA\u0100io\u269F\u26A4dot;\u4140ust\u0100;a\u26AC\u26AD\u63B0che\xBB\u26AD\u0200Eaes\u26BB\u26BD\u26C9\u26D4;\u6268p\u0100;p\u26C3\u26C4\u6A89rox\xBB\u26C4\u0100;q\u26CE\u26CF\u6A87\u0100;q\u26CE\u26BBim;\u62E6\u0400abnoptwz\u26E9\u26F4\u26F7\u271A\u272F\u2741\u2747\u2750\u0100nr\u26EE\u26F1g;\u67ECr;\u61FDr\xEB\u08C1g\u0180lmr\u26FF\u270D\u2714eft\u0100ar\u09E6\u2707ight\xE1\u09F2apsto;\u67FCight\xE1\u09FDparrow\u0100lr\u2725\u2729ef\xF4\u24EDight;\u61AC\u0180afl\u2736\u2739\u273Dr;\u6985;\uC000\u{1D55D}us;\u6A2Dimes;\u6A34\u0161\u274B\u274Fst;\u6217\xE1\u134E\u0180;ef\u2757\u2758\u1800\u65CAnge\xBB\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277C\u2785\u2787r\xF2\u08A8orne\xF2\u1D8Car\u0100;d\u0F98\u2783;\u696D;\u600Eri;\u62BF\u0300achiqt\u2798\u279D\u0A40\u27A2\u27AE\u27BBquo;\u6039r;\uC000\u{1D4C1}m\u0180;eg\u09B2\u27AA\u27AC;\u6A8D;\u6A8F\u0100bu\u252A\u27B3o\u0100;r\u0E1F\u27B9;\u601Arok;\u4142\u8400<;cdhilqr\u082B\u27D2\u2639\u27DC\u27E0\u27E5\u27EA\u27F0\u0100ci\u27D7\u27D9;\u6AA6r;\u6A79re\xE5\u25F2mes;\u62C9arr;\u6976uest;\u6A7B\u0100Pi\u27F5\u27F9ar;\u6996\u0180;ef\u2800\u092D\u181B\u65C3r\u0100du\u2807\u280Dshar;\u694Ahar;\u6966\u0100en\u2817\u2821rtneqq;\uC000\u2268\uFE00\xC5\u281E\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288E\u2893\u28A0\u28A5\u28A8\u28DA\u28E2\u28E4\u0A83\u28F3\u2902Dot;\u623A\u0200clpr\u284E\u2852\u2863\u287Dr\u803B\xAF\u40AF\u0100et\u2857\u2859;\u6642\u0100;e\u285E\u285F\u6720se\xBB\u285F\u0100;s\u103B\u2868to\u0200;dlu\u103B\u2873\u2877\u287Bow\xEE\u048Cef\xF4\u090F\xF0\u13D1ker;\u65AE\u0100oy\u2887\u288Cmma;\u6A29;\u443Cash;\u6014asuredangle\xBB\u1626r;\uC000\u{1D52A}o;\u6127\u0180cdn\u28AF\u28B4\u28C9ro\u803B\xB5\u40B5\u0200;acd\u1464\u28BD\u28C0\u28C4s\xF4\u16A7ir;\u6AF0ot\u80BB\xB7\u01B5us\u0180;bd\u28D2\u1903\u28D3\u6212\u0100;u\u1D3C\u28D8;\u6A2A\u0163\u28DE\u28E1p;\u6ADB\xF2\u2212\xF0\u0A81\u0100dp\u28E9\u28EEels;\u62A7f;\uC000\u{1D55E}\u0100ct\u28F8\u28FDr;\uC000\u{1D4C2}pos\xBB\u159D\u0180;lm\u2909\u290A\u290D\u43BCtimap;\u62B8\u0C00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297E\u2989\u2998\u29DA\u29E9\u2A15\u2A1A\u2A58\u2A5D\u2A83\u2A95\u2AA4\u2AA8\u2B04\u2B07\u2B44\u2B7F\u2BAE\u2C34\u2C67\u2C7C\u2CE9\u0100gt\u2947\u294B;\uC000\u22D9\u0338\u0100;v\u2950\u0BCF\uC000\u226B\u20D2\u0180elt\u295A\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61CDightarrow;\u61CE;\uC000\u22D8\u0338\u0100;v\u297B\u0C47\uC000\u226A\u20D2ightarrow;\u61CF\u0100Dd\u298E\u2993ash;\u62AFash;\u62AE\u0280bcnpt\u29A3\u29A7\u29AC\u29B1\u29CCla\xBB\u02DEute;\u4144g;\uC000\u2220\u20D2\u0280;Eiop\u0D84\u29BC\u29C0\u29C5\u29C8;\uC000\u2A70\u0338d;\uC000\u224B\u0338s;\u4149ro\xF8\u0D84ur\u0100;a\u29D3\u29D4\u666El\u0100;s\u29D3\u0B38\u01F3\u29DF\0\u29E3p\u80BB\xA0\u0B37mp\u0100;e\u0BF9\u0C00\u0280aeouy\u29F4\u29FE\u2A03\u2A10\u2A13\u01F0\u29F9\0\u29FB;\u6A43on;\u4148dil;\u4146ng\u0100;d\u0D7E\u2A0Aot;\uC000\u2A6D\u0338p;\u6A42;\u443Dash;\u6013\u0380;Aadqsx\u0B92\u2A29\u2A2D\u2A3B\u2A41\u2A45\u2A50rr;\u61D7r\u0100hr\u2A33\u2A36k;\u6924\u0100;o\u13F2\u13F0ot;\uC000\u2250\u0338ui\xF6\u0B63\u0100ei\u2A4A\u2A4Ear;\u6928\xED\u0B98ist\u0100;s\u0BA0\u0B9Fr;\uC000\u{1D52B}\u0200Eest\u0BC5\u2A66\u2A79\u2A7C\u0180;qs\u0BBC\u2A6D\u0BE1\u0180;qs\u0BBC\u0BC5\u2A74lan\xF4\u0BE2i\xED\u0BEA\u0100;r\u0BB6\u2A81\xBB\u0BB7\u0180Aap\u2A8A\u2A8D\u2A91r\xF2\u2971rr;\u61AEar;\u6AF2\u0180;sv\u0F8D\u2A9C\u0F8C\u0100;d\u2AA1\u2AA2\u62FC;\u62FAcy;\u445A\u0380AEadest\u2AB7\u2ABA\u2ABE\u2AC2\u2AC5\u2AF6\u2AF9r\xF2\u2966;\uC000\u2266\u0338rr;\u619Ar;\u6025\u0200;fqs\u0C3B\u2ACE\u2AE3\u2AEFt\u0100ar\u2AD4\u2AD9rro\xF7\u2AC1ightarro\xF7\u2A90\u0180;qs\u0C3B\u2ABA\u2AEAlan\xF4\u0C55\u0100;s\u0C55\u2AF4\xBB\u0C36i\xED\u0C5D\u0100;r\u0C35\u2AFEi\u0100;e\u0C1A\u0C25i\xE4\u0D90\u0100pt\u2B0C\u2B11f;\uC000\u{1D55F}\u8180\xAC;in\u2B19\u2B1A\u2B36\u40ACn\u0200;Edv\u0B89\u2B24\u2B28\u2B2E;\uC000\u22F9\u0338ot;\uC000\u22F5\u0338\u01E1\u0B89\u2B33\u2B35;\u62F7;\u62F6i\u0100;v\u0CB8\u2B3C\u01E1\u0CB8\u2B41\u2B43;\u62FE;\u62FD\u0180aor\u2B4B\u2B63\u2B69r\u0200;ast\u0B7B\u2B55\u2B5A\u2B5Flle\xEC\u0B7Bl;\uC000\u2AFD\u20E5;\uC000\u2202\u0338lint;\u6A14\u0180;ce\u0C92\u2B70\u2B73u\xE5\u0CA5\u0100;c\u0C98\u2B78\u0100;e\u0C92\u2B7D\xF1\u0C98\u0200Aait\u2B88\u2B8B\u2B9D\u2BA7r\xF2\u2988rr\u0180;cw\u2B94\u2B95\u2B99\u619B;\uC000\u2933\u0338;\uC000\u219D\u0338ghtarrow\xBB\u2B95ri\u0100;e\u0CCB\u0CD6\u0380chimpqu\u2BBD\u2BCD\u2BD9\u2B04\u0B78\u2BE4\u2BEF\u0200;cer\u0D32\u2BC6\u0D37\u2BC9u\xE5\u0D45;\uC000\u{1D4C3}ort\u026D\u2B05\0\0\u2BD6ar\xE1\u2B56m\u0100;e\u0D6E\u2BDF\u0100;q\u0D74\u0D73su\u0100bp\u2BEB\u2BED\xE5\u0CF8\xE5\u0D0B\u0180bcp\u2BF6\u2C11\u2C19\u0200;Ees\u2BFF\u2C00\u0D22\u2C04\u6284;\uC000\u2AC5\u0338et\u0100;e\u0D1B\u2C0Bq\u0100;q\u0D23\u2C00c\u0100;e\u0D32\u2C17\xF1\u0D38\u0200;Ees\u2C22\u2C23\u0D5F\u2C27\u6285;\uC000\u2AC6\u0338et\u0100;e\u0D58\u2C2Eq\u0100;q\u0D60\u2C23\u0200gilr\u2C3D\u2C3F\u2C45\u2C47\xEC\u0BD7lde\u803B\xF1\u40F1\xE7\u0C43iangle\u0100lr\u2C52\u2C5Ceft\u0100;e\u0C1A\u2C5A\xF1\u0C26ight\u0100;e\u0CCB\u2C65\xF1\u0CD7\u0100;m\u2C6C\u2C6D\u43BD\u0180;es\u2C74\u2C75\u2C79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2C8F\u2C94\u2C99\u2C9E\u2CA3\u2CB0\u2CB6\u2CD3\u2CE3ash;\u62ADarr;\u6904p;\uC000\u224D\u20D2ash;\u62AC\u0100et\u2CA8\u2CAC;\uC000\u2265\u20D2;\uC000>\u20D2nfin;\u69DE\u0180Aet\u2CBD\u2CC1\u2CC5rr;\u6902;\uC000\u2264\u20D2\u0100;r\u2CCA\u2CCD\uC000<\u20D2ie;\uC000\u22B4\u20D2\u0100At\u2CD8\u2CDCrr;\u6903rie;\uC000\u22B5\u20D2im;\uC000\u223C\u20D2\u0180Aan\u2CF0\u2CF4\u2D02rr;\u61D6r\u0100hr\u2CFA\u2CFDk;\u6923\u0100;o\u13E7\u13E5ear;\u6927\u1253\u1A95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2D2D\0\u2D38\u2D48\u2D60\u2D65\u2D72\u2D84\u1B07\0\0\u2D8D\u2DAB\0\u2DC8\u2DCE\0\u2DDC\u2E19\u2E2B\u2E3E\u2E43\u0100cs\u2D31\u1A97ute\u803B\xF3\u40F3\u0100iy\u2D3C\u2D45r\u0100;c\u1A9E\u2D42\u803B\xF4\u40F4;\u443E\u0280abios\u1AA0\u2D52\u2D57\u01C8\u2D5Alac;\u4151v;\u6A38old;\u69BClig;\u4153\u0100cr\u2D69\u2D6Dir;\u69BF;\uC000\u{1D52C}\u036F\u2D79\0\0\u2D7C\0\u2D82n;\u42DBave\u803B\xF2\u40F2;\u69C1\u0100bm\u2D88\u0DF4ar;\u69B5\u0200acit\u2D95\u2D98\u2DA5\u2DA8r\xF2\u1A80\u0100ir\u2D9D\u2DA0r;\u69BEoss;\u69BBn\xE5\u0E52;\u69C0\u0180aei\u2DB1\u2DB5\u2DB9cr;\u414Dga;\u43C9\u0180cdn\u2DC0\u2DC5\u01CDron;\u43BF;\u69B6pf;\uC000\u{1D560}\u0180ael\u2DD4\u2DD7\u01D2r;\u69B7rp;\u69B9\u0380;adiosv\u2DEA\u2DEB\u2DEE\u2E08\u2E0D\u2E10\u2E16\u6228r\xF2\u1A86\u0200;efm\u2DF7\u2DF8\u2E02\u2E05\u6A5Dr\u0100;o\u2DFE\u2DFF\u6134f\xBB\u2DFF\u803B\xAA\u40AA\u803B\xBA\u40BAgof;\u62B6r;\u6A56lope;\u6A57;\u6A5B\u0180clo\u2E1F\u2E21\u2E27\xF2\u2E01ash\u803B\xF8\u40F8l;\u6298i\u016C\u2E2F\u2E34de\u803B\xF5\u40F5es\u0100;a\u01DB\u2E3As;\u6A36ml\u803B\xF6\u40F6bar;\u633D\u0AE1\u2E5E\0\u2E7D\0\u2E80\u2E9D\0\u2EA2\u2EB9\0\0\u2ECB\u0E9C\0\u2F13\0\0\u2F2B\u2FBC\0\u2FC8r\u0200;ast\u0403\u2E67\u2E72\u0E85\u8100\xB6;l\u2E6D\u2E6E\u40B6le\xEC\u0403\u0269\u2E78\0\0\u2E7Bm;\u6AF3;\u6AFDy;\u443Fr\u0280cimpt\u2E8B\u2E8F\u2E93\u1865\u2E97nt;\u4025od;\u402Eil;\u6030enk;\u6031r;\uC000\u{1D52D}\u0180imo\u2EA8\u2EB0\u2EB4\u0100;v\u2EAD\u2EAE\u43C6;\u43D5ma\xF4\u0A76ne;\u660E\u0180;tv\u2EBF\u2EC0\u2EC8\u43C0chfork\xBB\u1FFD;\u43D6\u0100au\u2ECF\u2EDFn\u0100ck\u2ED5\u2EDDk\u0100;h\u21F4\u2EDB;\u610E\xF6\u21F4s\u0480;abcdemst\u2EF3\u2EF4\u1908\u2EF9\u2EFD\u2F04\u2F06\u2F0A\u2F0E\u402Bcir;\u6A23ir;\u6A22\u0100ou\u1D40\u2F02;\u6A25;\u6A72n\u80BB\xB1\u0E9Dim;\u6A26wo;\u6A27\u0180ipu\u2F19\u2F20\u2F25ntint;\u6A15f;\uC000\u{1D561}nd\u803B\xA3\u40A3\u0500;Eaceinosu\u0EC8\u2F3F\u2F41\u2F44\u2F47\u2F81\u2F89\u2F92\u2F7E\u2FB6;\u6AB3p;\u6AB7u\xE5\u0ED9\u0100;c\u0ECE\u2F4C\u0300;acens\u0EC8\u2F59\u2F5F\u2F66\u2F68\u2F7Eppro\xF8\u2F43urlye\xF1\u0ED9\xF1\u0ECE\u0180aes\u2F6F\u2F76\u2F7Approx;\u6AB9qq;\u6AB5im;\u62E8i\xED\u0EDFme\u0100;s\u2F88\u0EAE\u6032\u0180Eas\u2F78\u2F90\u2F7A\xF0\u2F75\u0180dfp\u0EEC\u2F99\u2FAF\u0180als\u2FA0\u2FA5\u2FAAlar;\u632Eine;\u6312urf;\u6313\u0100;t\u0EFB\u2FB4\xEF\u0EFBrel;\u62B0\u0100ci\u2FC0\u2FC5r;\uC000\u{1D4C5};\u43C8ncsp;\u6008\u0300fiopsu\u2FDA\u22E2\u2FDF\u2FE5\u2FEB\u2FF1r;\uC000\u{1D52E}pf;\uC000\u{1D562}rime;\u6057cr;\uC000\u{1D4C6}\u0180aeo\u2FF8\u3009\u3013t\u0100ei\u2FFE\u3005rnion\xF3\u06B0nt;\u6A16st\u0100;e\u3010\u3011\u403F\xF1\u1F19\xF4\u0F14\u0A80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30E0\u310E\u312B\u3147\u3162\u3172\u318E\u3206\u3215\u3224\u3229\u3258\u326E\u3272\u3290\u32B0\u32B7\u0180art\u3047\u304A\u304Cr\xF2\u10B3\xF2\u03DDail;\u691Car\xF2\u1C65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307F\u308F\u3094\u30CC\u0100eu\u306D\u3071;\uC000\u223D\u0331te;\u4155i\xE3\u116Emptyv;\u69B3g\u0200;del\u0FD1\u3089\u308B\u308D;\u6992;\u69A5\xE5\u0FD1uo\u803B\xBB\u40BBr\u0580;abcfhlpstw\u0FDC\u30AC\u30AF\u30B7\u30B9\u30BC\u30BE\u30C0\u30C3\u30C7\u30CAp;\u6975\u0100;f\u0FE0\u30B4s;\u6920;\u6933s;\u691E\xEB\u225D\xF0\u272El;\u6945im;\u6974l;\u61A3;\u619D\u0100ai\u30D1\u30D5il;\u691Ao\u0100;n\u30DB\u30DC\u6236al\xF3\u0F1E\u0180abr\u30E7\u30EA\u30EEr\xF2\u17E5rk;\u6773\u0100ak\u30F3\u30FDc\u0100ek\u30F9\u30FB;\u407D;\u405D\u0100es\u3102\u3104;\u698Cl\u0100du\u310A\u310C;\u698E;\u6990\u0200aeuy\u3117\u311C\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xEC\u0FF2\xE2\u30FA;\u4440\u0200clqs\u3134\u3137\u313D\u3144a;\u6937dhar;\u6969uo\u0100;r\u020E\u020Dh;\u61B3\u0180acg\u314E\u315F\u0F44l\u0200;ips\u0F78\u3158\u315B\u109Cn\xE5\u10BBar\xF4\u0FA9t;\u65AD\u0180ilr\u3169\u1023\u316Esht;\u697D;\uC000\u{1D52F}\u0100ao\u3177\u3186r\u0100du\u317D\u317F\xBB\u047B\u0100;l\u1091\u3184;\u696C\u0100;v\u318B\u318C\u43C1;\u43F1\u0180gns\u3195\u31F9\u31FCht\u0300ahlrst\u31A4\u31B0\u31C2\u31D8\u31E4\u31EErrow\u0100;t\u0FDC\u31ADa\xE9\u30C8arpoon\u0100du\u31BB\u31BFow\xEE\u317Ep\xBB\u1092eft\u0100ah\u31CA\u31D0rrow\xF3\u0FEAarpoon\xF3\u0551ightarrows;\u61C9quigarro\xF7\u30CBhreetimes;\u62CCg;\u42DAingdotse\xF1\u1F32\u0180ahm\u320D\u3210\u3213r\xF2\u0FEAa\xF2\u0551;\u600Foust\u0100;a\u321E\u321F\u63B1che\xBB\u321Fmid;\u6AEE\u0200abpt\u3232\u323D\u3240\u3252\u0100nr\u3237\u323Ag;\u67EDr;\u61FEr\xEB\u1003\u0180afl\u3247\u324A\u324Er;\u6986;\uC000\u{1D563}us;\u6A2Eimes;\u6A35\u0100ap\u325D\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6A12ar\xF2\u31E3\u0200achq\u327B\u3280\u10BC\u3285quo;\u603Ar;\uC000\u{1D4C7}\u0100bu\u30FB\u328Ao\u0100;r\u0214\u0213\u0180hir\u3297\u329B\u32A0re\xE5\u31F8mes;\u62CAi\u0200;efl\u32AA\u1059\u1821\u32AB\u65B9tri;\u69CEluhar;\u6968;\u611E\u0D61\u32D5\u32DB\u32DF\u332C\u3338\u3371\0\u337A\u33A4\0\0\u33EC\u33F0\0\u3428\u3448\u345A\u34AD\u34B1\u34CA\u34F1\0\u3616\0\0\u3633cute;\u415Bqu\xEF\u27BA\u0500;Eaceinpsy\u11ED\u32F3\u32F5\u32FF\u3302\u330B\u330F\u331F\u3326\u3329;\u6AB4\u01F0\u32FA\0\u32FC;\u6AB8on;\u4161u\xE5\u11FE\u0100;d\u11F3\u3307il;\u415Frc;\u415D\u0180Eas\u3316\u3318\u331B;\u6AB6p;\u6ABAim;\u62E9olint;\u6A13i\xED\u1204;\u4441ot\u0180;be\u3334\u1D47\u3335\u62C5;\u6A66\u0380Aacmstx\u3346\u334A\u3357\u335B\u335E\u3363\u336Drr;\u61D8r\u0100hr\u3350\u3352\xEB\u2228\u0100;o\u0A36\u0A34t\u803B\xA7\u40A7i;\u403Bwar;\u6929m\u0100in\u3369\xF0nu\xF3\xF1t;\u6736r\u0100;o\u3376\u2055\uC000\u{1D530}\u0200acoy\u3382\u3386\u3391\u33A0rp;\u666F\u0100hy\u338B\u338Fcy;\u4449;\u4448rt\u026D\u3399\0\0\u339Ci\xE4\u1464ara\xEC\u2E6F\u803B\xAD\u40AD\u0100gm\u33A8\u33B4ma\u0180;fv\u33B1\u33B2\u33B2\u43C3;\u43C2\u0400;deglnpr\u12AB\u33C5\u33C9\u33CE\u33D6\u33DE\u33E1\u33E6ot;\u6A6A\u0100;q\u12B1\u12B0\u0100;E\u33D3\u33D4\u6A9E;\u6AA0\u0100;E\u33DB\u33DC\u6A9D;\u6A9Fe;\u6246lus;\u6A24arr;\u6972ar\xF2\u113D\u0200aeit\u33F8\u3408\u340F\u3417\u0100ls\u33FD\u3404lsetm\xE9\u336Ahp;\u6A33parsl;\u69E4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341C\u341D\u6AAA\u0100;s\u3422\u3423\u6AAC;\uC000\u2AAC\uFE00\u0180flp\u342E\u3433\u3442tcy;\u444C\u0100;b\u3438\u3439\u402F\u0100;a\u343E\u343F\u69C4r;\u633Ff;\uC000\u{1D564}a\u0100dr\u344D\u0402es\u0100;u\u3454\u3455\u6660it\xBB\u3455\u0180csu\u3460\u3479\u349F\u0100au\u3465\u346Fp\u0100;s\u1188\u346B;\uC000\u2293\uFE00p\u0100;s\u11B4\u3475;\uC000\u2294\uFE00u\u0100bp\u347F\u348F\u0180;es\u1197\u119C\u3486et\u0100;e\u1197\u348D\xF1\u119D\u0180;es\u11A8\u11AD\u3496et\u0100;e\u11A8\u349D\xF1\u11AE\u0180;af\u117B\u34A6\u05B0r\u0165\u34AB\u05B1\xBB\u117Car\xF2\u1148\u0200cemt\u34B9\u34BE\u34C2\u34C5r;\uC000\u{1D4C8}tm\xEE\xF1i\xEC\u3415ar\xE6\u11BE\u0100ar\u34CE\u34D5r\u0100;f\u34D4\u17BF\u6606\u0100an\u34DA\u34EDight\u0100ep\u34E3\u34EApsilo\xEE\u1EE0h\xE9\u2EAFs\xBB\u2852\u0280bcmnp\u34FB\u355E\u1209\u358B\u358E\u0480;Edemnprs\u350E\u350F\u3511\u3515\u351E\u3523\u352C\u3531\u3536\u6282;\u6AC5ot;\u6ABD\u0100;d\u11DA\u351Aot;\u6AC3ult;\u6AC1\u0100Ee\u3528\u352A;\u6ACB;\u628Alus;\u6ABFarr;\u6979\u0180eiu\u353D\u3552\u3555t\u0180;en\u350E\u3545\u354Bq\u0100;q\u11DA\u350Feq\u0100;q\u352B\u3528m;\u6AC7\u0100bp\u355A\u355C;\u6AD5;\u6AD3c\u0300;acens\u11ED\u356C\u3572\u3579\u357B\u3326ppro\xF8\u32FAurlye\xF1\u11FE\xF1\u11F3\u0180aes\u3582\u3588\u331Bppro\xF8\u331Aq\xF1\u3317g;\u666A\u0680123;Edehlmnps\u35A9\u35AC\u35AF\u121C\u35B2\u35B4\u35C0\u35C9\u35D5\u35DA\u35DF\u35E8\u35ED\u803B\xB9\u40B9\u803B\xB2\u40B2\u803B\xB3\u40B3;\u6AC6\u0100os\u35B9\u35BCt;\u6ABEub;\u6AD8\u0100;d\u1222\u35C5ot;\u6AC4s\u0100ou\u35CF\u35D2l;\u67C9b;\u6AD7arr;\u697Bult;\u6AC2\u0100Ee\u35E4\u35E6;\u6ACC;\u628Blus;\u6AC0\u0180eiu\u35F4\u3609\u360Ct\u0180;en\u121C\u35FC\u3602q\u0100;q\u1222\u35B2eq\u0100;q\u35E7\u35E4m;\u6AC8\u0100bp\u3611\u3613;\u6AD4;\u6AD6\u0180Aan\u361C\u3620\u362Drr;\u61D9r\u0100hr\u3626\u3628\xEB\u222E\u0100;o\u0A2B\u0A29war;\u692Alig\u803B\xDF\u40DF\u0BE1\u3651\u365D\u3660\u12CE\u3673\u3679\0\u367E\u36C2\0\0\0\0\0\u36DB\u3703\0\u3709\u376C\0\0\0\u3787\u0272\u3656\0\0\u365Bget;\u6316;\u43C4r\xEB\u0E5F\u0180aey\u3666\u366B\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uC000\u{1D531}\u0200eiko\u3686\u369D\u36B5\u36BC\u01F2\u368B\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369B\u43B8ym;\u43D1\u0100cn\u36A2\u36B2k\u0100as\u36A8\u36AEppro\xF8\u12C1im\xBB\u12ACs\xF0\u129E\u0100as\u36BA\u36AE\xF0\u12C1rn\u803B\xFE\u40FE\u01EC\u031F\u36C6\u22E7es\u8180\xD7;bd\u36CF\u36D0\u36D8\u40D7\u0100;a\u190F\u36D5r;\u6A31;\u6A30\u0180eps\u36E1\u36E3\u3700\xE1\u2A4D\u0200;bcf\u0486\u36EC\u36F0\u36F4ot;\u6336ir;\u6AF1\u0100;o\u36F9\u36FC\uC000\u{1D565}rk;\u6ADA\xE1\u3362rime;\u6034\u0180aip\u370F\u3712\u3764d\xE5\u1248\u0380adempst\u3721\u374D\u3740\u3751\u3757\u375C\u375Fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65B5own\xBB\u1DBBeft\u0100;e\u2800\u373E\xF1\u092E;\u625Cight\u0100;e\u32AA\u374B\xF1\u105Aot;\u65ECinus;\u6A3Alus;\u6A39b;\u69CDime;\u6A3Bezium;\u63E2\u0180cht\u3772\u377D\u3781\u0100ry\u3777\u377B;\uC000\u{1D4C9};\u4446cy;\u445Brok;\u4167\u0100io\u378B\u378Ex\xF4\u1777head\u0100lr\u3797\u37A0eftarro\xF7\u084Fightarrow\xBB\u0F5D\u0900AHabcdfghlmoprstuw\u37D0\u37D3\u37D7\u37E4\u37F0\u37FC\u380E\u381C\u3823\u3834\u3851\u385D\u386B\u38A9\u38CC\u38D2\u38EA\u38F6r\xF2\u03EDar;\u6963\u0100cr\u37DC\u37E2ute\u803B\xFA\u40FA\xF2\u1150r\u01E3\u37EA\0\u37EDy;\u445Eve;\u416D\u0100iy\u37F5\u37FArc\u803B\xFB\u40FB;\u4443\u0180abh\u3803\u3806\u380Br\xF2\u13ADlac;\u4171a\xF2\u13C3\u0100ir\u3813\u3818sht;\u697E;\uC000\u{1D532}rave\u803B\xF9\u40F9\u0161\u3827\u3831r\u0100lr\u382C\u382E\xBB\u0957\xBB\u1083lk;\u6580\u0100ct\u3839\u384D\u026F\u383F\0\0\u384Arn\u0100;e\u3845\u3846\u631Cr\xBB\u3846op;\u630Fri;\u65F8\u0100al\u3856\u385Acr;\u416B\u80BB\xA8\u0349\u0100gp\u3862\u3866on;\u4173f;\uC000\u{1D566}\u0300adhlsu\u114B\u3878\u387D\u1372\u3891\u38A0own\xE1\u13B3arpoon\u0100lr\u3888\u388Cef\xF4\u382Digh\xF4\u382Fi\u0180;hl\u3899\u389A\u389C\u43C5\xBB\u13FAon\xBB\u389Aparrows;\u61C8\u0180cit\u38B0\u38C4\u38C8\u026F\u38B6\0\0\u38C1rn\u0100;e\u38BC\u38BD\u631Dr\xBB\u38BDop;\u630Eng;\u416Fri;\u65F9cr;\uC000\u{1D4CA}\u0180dir\u38D9\u38DD\u38E2ot;\u62F0lde;\u4169i\u0100;f\u3730\u38E8\xBB\u1813\u0100am\u38EF\u38F2r\xF2\u38A8l\u803B\xFC\u40FCangle;\u69A7\u0780ABDacdeflnoprsz\u391C\u391F\u3929\u392D\u39B5\u39B8\u39BD\u39DF\u39E4\u39E8\u39F3\u39F9\u39FD\u3A01\u3A20r\xF2\u03F7ar\u0100;v\u3926\u3927\u6AE8;\u6AE9as\xE8\u03E1\u0100nr\u3932\u3937grt;\u699C\u0380eknprst\u34E3\u3946\u394B\u3952\u395D\u3964\u3996app\xE1\u2415othin\xE7\u1E96\u0180hir\u34EB\u2EC8\u3959op\xF4\u2FB5\u0100;h\u13B7\u3962\xEF\u318D\u0100iu\u3969\u396Dgm\xE1\u33B3\u0100bp\u3972\u3984setneq\u0100;q\u397D\u3980\uC000\u228A\uFE00;\uC000\u2ACB\uFE00setneq\u0100;q\u398F\u3992\uC000\u228B\uFE00;\uC000\u2ACC\uFE00\u0100hr\u399B\u399Fet\xE1\u369Ciangle\u0100lr\u39AA\u39AFeft\xBB\u0925ight\xBB\u1051y;\u4432ash\xBB\u1036\u0180elr\u39C4\u39D2\u39D7\u0180;be\u2DEA\u39CB\u39CFar;\u62BBq;\u625Alip;\u62EE\u0100bt\u39DC\u1468a\xF2\u1469r;\uC000\u{1D533}tr\xE9\u39AEsu\u0100bp\u39EF\u39F1\xBB\u0D1C\xBB\u0D59pf;\uC000\u{1D567}ro\xF0\u0EFBtr\xE9\u39B4\u0100cu\u3A06\u3A0Br;\uC000\u{1D4CB}\u0100bp\u3A10\u3A18n\u0100Ee\u3980\u3A16\xBB\u397En\u0100Ee\u3992\u3A1E\xBB\u3990igzag;\u699A\u0380cefoprs\u3A36\u3A3B\u3A56\u3A5B\u3A54\u3A61\u3A6Airc;\u4175\u0100di\u3A40\u3A51\u0100bg\u3A45\u3A49ar;\u6A5Fe\u0100;q\u15FA\u3A4F;\u6259erp;\u6118r;\uC000\u{1D534}pf;\uC000\u{1D568}\u0100;e\u1479\u3A66at\xE8\u1479cr;\uC000\u{1D4CC}\u0AE3\u178E\u3A87\0\u3A8B\0\u3A90\u3A9B\0\0\u3A9D\u3AA8\u3AAB\u3AAF\0\0\u3AC3\u3ACE\0\u3AD8\u17DC\u17DFtr\xE9\u17D1r;\uC000\u{1D535}\u0100Aa\u3A94\u3A97r\xF2\u03C3r\xF2\u09F6;\u43BE\u0100Aa\u3AA1\u3AA4r\xF2\u03B8r\xF2\u09EBa\xF0\u2713is;\u62FB\u0180dpt\u17A4\u3AB5\u3ABE\u0100fl\u3ABA\u17A9;\uC000\u{1D569}im\xE5\u17B2\u0100Aa\u3AC7\u3ACAr\xF2\u03CEr\xF2\u0A01\u0100cq\u3AD2\u17B8r;\uC000\u{1D4CD}\u0100pt\u17D6\u3ADCr\xE9\u17D4\u0400acefiosu\u3AF0\u3AFD\u3B08\u3B0C\u3B11\u3B15\u3B1B\u3B21c\u0100uy\u3AF6\u3AFBte\u803B\xFD\u40FD;\u444F\u0100iy\u3B02\u3B06rc;\u4177;\u444Bn\u803B\xA5\u40A5r;\uC000\u{1D536}cy;\u4457pf;\uC000\u{1D56A}cr;\uC000\u{1D4CE}\u0100cm\u3B26\u3B29y;\u444El\u803B\xFF\u40FF\u0500acdefhiosw\u3B42\u3B48\u3B54\u3B58\u3B64\u3B69\u3B6D\u3B74\u3B7A\u3B80cute;\u417A\u0100ay\u3B4D\u3B52ron;\u417E;\u4437ot;\u417C\u0100et\u3B5D\u3B61tr\xE6\u155Fa;\u43B6r;\uC000\u{1D537}cy;\u4436grarr;\u61DDpf;\uC000\u{1D56B}cr;\uC000\u{1D4CF}\u0100jn\u3B85\u3B87;\u600Dj;\u600C'.split("").map(ue=>ue.charCodeAt(0))),Ce=new Uint16Array("\u0200aglq \x1B\u026D\0\0p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map(ue=>ue.charCodeAt(0))),Ci;const Bi=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Ri=(Ci=String.fromCodePoint)!==null&&Ci!==void 0?Ci:function(ue){let ge="";return ue>65535&&(ue-=65536,ge+=String.fromCharCode(ue>>>10&1023|55296),ue=56320|ue&1023),ge+=String.fromCharCode(ue),ge};function Wn(ue){var ge;return ue>=55296&&ue<=57343||ue>1114111?65533:(ge=Bi.get(ue))!==null&&ge!==void 0?ge:ue}function ci(ue){return Ri(Wn(ue))}var ti;(function(ue){ue[ue.NUM=35]="NUM",ue[ue.SEMI=59]="SEMI",ue[ue.EQUALS=61]="EQUALS",ue[ue.ZERO=48]="ZERO",ue[ue.NINE=57]="NINE",ue[ue.LOWER_A=97]="LOWER_A",ue[ue.LOWER_F=102]="LOWER_F",ue[ue.LOWER_X=120]="LOWER_X",ue[ue.LOWER_Z=122]="LOWER_Z",ue[ue.UPPER_A=65]="UPPER_A",ue[ue.UPPER_F=70]="UPPER_F",ue[ue.UPPER_Z=90]="UPPER_Z"})(ti||(ti={}));const ki=32;var ni;(function(ue){ue[ue.VALUE_LENGTH=49152]="VALUE_LENGTH",ue[ue.BRANCH_LENGTH=16256]="BRANCH_LENGTH",ue[ue.JUMP_TABLE=127]="JUMP_TABLE"})(ni||(ni={}));function Vt(ue){return ue>=ti.ZERO&&ue<=ti.NINE}function Ut(ue){return ue>=ti.UPPER_A&&ue<=ti.UPPER_F||ue>=ti.LOWER_A&&ue<=ti.LOWER_F}function It(ue){return ue>=ti.UPPER_A&&ue<=ti.UPPER_Z||ue>=ti.LOWER_A&&ue<=ti.LOWER_Z||Vt(ue)}function $n(ue){return ue===ti.EQUALS||It(ue)}var Yn;(function(ue){ue[ue.EntityStart=0]="EntityStart",ue[ue.NumericStart=1]="NumericStart",ue[ue.NumericDecimal=2]="NumericDecimal",ue[ue.NumericHex=3]="NumericHex",ue[ue.NamedEntity=4]="NamedEntity"})(Yn||(Yn={}));var yi;(function(ue){ue[ue.Legacy=0]="Legacy",ue[ue.Strict=1]="Strict",ue[ue.Attribute=2]="Attribute"})(yi||(yi={}));class Rn{constructor(ge,Ye,Ot){this.decodeTree=ge,this.emitCodePoint=Ye,this.errors=Ot,this.state=Yn.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=yi.Strict}startEntity(ge){this.decodeMode=ge,this.state=Yn.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(ge,Ye){switch(this.state){case Yn.EntityStart:return ge.charCodeAt(Ye)===ti.NUM?(this.state=Yn.NumericStart,this.consumed+=1,this.stateNumericStart(ge,Ye+1)):(this.state=Yn.NamedEntity,this.stateNamedEntity(ge,Ye));case Yn.NumericStart:return this.stateNumericStart(ge,Ye);case Yn.NumericDecimal:return this.stateNumericDecimal(ge,Ye);case Yn.NumericHex:return this.stateNumericHex(ge,Ye);case Yn.NamedEntity:return this.stateNamedEntity(ge,Ye)}}stateNumericStart(ge,Ye){return Ye>=ge.length?-1:(ge.charCodeAt(Ye)|ki)===ti.LOWER_X?(this.state=Yn.NumericHex,this.consumed+=1,this.stateNumericHex(ge,Ye+1)):(this.state=Yn.NumericDecimal,this.stateNumericDecimal(ge,Ye))}addToNumericResult(ge,Ye,Ot,zn){if(Ye!==Ot){const bi=Ot-Ye;this.result=this.result*Math.pow(zn,bi)+parseInt(ge.substr(Ye,bi),zn),this.consumed+=bi}}stateNumericHex(ge,Ye){const Ot=Ye;for(;Ye<ge.length;){const zn=ge.charCodeAt(Ye);if(Vt(zn)||Ut(zn))Ye+=1;else return this.addToNumericResult(ge,Ot,Ye,16),this.emitNumericEntity(zn,3)}return this.addToNumericResult(ge,Ot,Ye,16),-1}stateNumericDecimal(ge,Ye){const Ot=Ye;for(;Ye<ge.length;){const zn=ge.charCodeAt(Ye);if(Vt(zn))Ye+=1;else return this.addToNumericResult(ge,Ot,Ye,10),this.emitNumericEntity(zn,2)}return this.addToNumericResult(ge,Ot,Ye,10),-1}emitNumericEntity(ge,Ye){var Ot;if(this.consumed<=Ye)return(Ot=this.errors)===null||Ot===void 0||Ot.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(ge===ti.SEMI)this.consumed+=1;else if(this.decodeMode===yi.Strict)return 0;return this.emitCodePoint(Wn(this.result),this.consumed),this.errors&&(ge!==ti.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(ge,Ye){const{decodeTree:Ot}=this;let zn=Ot[this.treeIndex],bi=(zn&ni.VALUE_LENGTH)>>14;for(;Ye<ge.length;Ye++,this.excess++){const Vi=ge.charCodeAt(Ye);if(this.treeIndex=qt(Ot,zn,this.treeIndex+Math.max(1,bi),Vi),this.treeIndex<0)return this.result===0||this.decodeMode===yi.Attribute&&(bi===0||$n(Vi))?0:this.emitNotTerminatedNamedEntity();if(zn=Ot[this.treeIndex],bi=(zn&ni.VALUE_LENGTH)>>14,bi!==0){if(Vi===ti.SEMI)return this.emitNamedEntityData(this.treeIndex,bi,this.consumed+this.excess);this.decodeMode!==yi.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var ge;const{result:Ye,decodeTree:Ot}=this,zn=(Ot[Ye]&ni.VALUE_LENGTH)>>14;return this.emitNamedEntityData(Ye,zn,this.consumed),(ge=this.errors)===null||ge===void 0||ge.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(ge,Ye,Ot){const{decodeTree:zn}=this;return this.emitCodePoint(Ye===1?zn[ge]&~ni.VALUE_LENGTH:zn[ge+1],Ot),Ye===3&&this.emitCodePoint(zn[ge+2],Ot),Ot}end(){var ge;switch(this.state){case Yn.NamedEntity:return this.result!==0&&(this.decodeMode!==yi.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Yn.NumericDecimal:return this.emitNumericEntity(0,2);case Yn.NumericHex:return this.emitNumericEntity(0,3);case Yn.NumericStart:return(ge=this.errors)===null||ge===void 0||ge.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Yn.EntityStart:return 0}}}function oi(ue){let ge="";const Ye=new Rn(ue,Ot=>ge+=Ri(Ot));return function(zn,bi){let Vi=0,jr=0;for(;(jr=zn.indexOf("&",jr))>=0;){ge+=zn.slice(Vi,jr),Ye.startEntity(bi);const Si=Ye.write(zn,jr+1);if(Si<0){Vi=jr+Ye.end();break}Vi=jr+Si,jr=Si===0?Vi+1:Vi}const ro=ge+zn.slice(Vi);return ge="",ro}}function qt(ue,ge,Ye,Ot){const zn=(ge&ni.BRANCH_LENGTH)>>7,bi=ge&ni.JUMP_TABLE;if(zn===0)return bi!==0&&Ot===bi?Ye:-1;if(bi){const ro=Ot-bi;return ro<0||ro>=zn?-1:ue[Ye+ro]-1}let Vi=Ye,jr=Vi+zn-1;for(;Vi<=jr;){const ro=Vi+jr>>>1,Si=ue[ro];if(Si<Ot)Vi=ro+1;else if(Si>Ot)jr=ro-1;else return ue[ro+zn]}return-1}const Gt=oi(Li),li=oi(Ce);function pt(ue,ge=yi.Legacy){return Gt(ue,ge)}function yn(ue){return Gt(ue,yi.Attribute)}function ii(ue){return Gt(ue,yi.Strict)}function Ti(ue){return li(ue,yi.Strict)}var zt;(function(ue){ue.HTML="http://www.w3.org/1999/xhtml",ue.MATHML="http://www.w3.org/1998/Math/MathML",ue.SVG="http://www.w3.org/2000/svg",ue.XLINK="http://www.w3.org/1999/xlink",ue.XML="http://www.w3.org/XML/1998/namespace",ue.XMLNS="http://www.w3.org/2000/xmlns/"})(zt||(zt={}));var xn;(function(ue){ue.TYPE="type",ue.ACTION="action",ue.ENCODING="encoding",ue.PROMPT="prompt",ue.NAME="name",ue.COLOR="color",ue.FACE="face",ue.SIZE="size"})(xn||(xn={}));var vi;(function(ue){ue.NO_QUIRKS="no-quirks",ue.QUIRKS="quirks",ue.LIMITED_QUIRKS="limited-quirks"})(vi||(vi={}));var nn;(function(ue){ue.A="a",ue.ADDRESS="address",ue.ANNOTATION_XML="annotation-xml",ue.APPLET="applet",ue.AREA="area",ue.ARTICLE="article",ue.ASIDE="aside",ue.B="b",ue.BASE="base",ue.BASEFONT="basefont",ue.BGSOUND="bgsound",ue.BIG="big",ue.BLOCKQUOTE="blockquote",ue.BODY="body",ue.BR="br",ue.BUTTON="button",ue.CAPTION="caption",ue.CENTER="center",ue.CODE="code",ue.COL="col",ue.COLGROUP="colgroup",ue.DD="dd",ue.DESC="desc",ue.DETAILS="details",ue.DIALOG="dialog",ue.DIR="dir",ue.DIV="div",ue.DL="dl",ue.DT="dt",ue.EM="em",ue.EMBED="embed",ue.FIELDSET="fieldset",ue.FIGCAPTION="figcaption",ue.FIGURE="figure",ue.FONT="font",ue.FOOTER="footer",ue.FOREIGN_OBJECT="foreignObject",ue.FORM="form",ue.FRAME="frame",ue.FRAMESET="frameset",ue.H1="h1",ue.H2="h2",ue.H3="h3",ue.H4="h4",ue.H5="h5",ue.H6="h6",ue.HEAD="head",ue.HEADER="header",ue.HGROUP="hgroup",ue.HR="hr",ue.HTML="html",ue.I="i",ue.IMG="img",ue.IMAGE="image",ue.INPUT="input",ue.IFRAME="iframe",ue.KEYGEN="keygen",ue.LABEL="label",ue.LI="li",ue.LINK="link",ue.LISTING="listing",ue.MAIN="main",ue.MALIGNMARK="malignmark",ue.MARQUEE="marquee",ue.MATH="math",ue.MENU="menu",ue.META="meta",ue.MGLYPH="mglyph",ue.MI="mi",ue.MO="mo",ue.MN="mn",ue.MS="ms",ue.MTEXT="mtext",ue.NAV="nav",ue.NOBR="nobr",ue.NOFRAMES="noframes",ue.NOEMBED="noembed",ue.NOSCRIPT="noscript",ue.OBJECT="object",ue.OL="ol",ue.OPTGROUP="optgroup",ue.OPTION="option",ue.P="p",ue.PARAM="param",ue.PLAINTEXT="plaintext",ue.PRE="pre",ue.RB="rb",ue.RP="rp",ue.RT="rt",ue.RTC="rtc",ue.RUBY="ruby",ue.S="s",ue.SCRIPT="script",ue.SEARCH="search",ue.SECTION="section",ue.SELECT="select",ue.SOURCE="source",ue.SMALL="small",ue.SPAN="span",ue.STRIKE="strike",ue.STRONG="strong",ue.STYLE="style",ue.SUB="sub",ue.SUMMARY="summary",ue.SUP="sup",ue.TABLE="table",ue.TBODY="tbody",ue.TEMPLATE="template",ue.TEXTAREA="textarea",ue.TFOOT="tfoot",ue.TD="td",ue.TH="th",ue.THEAD="thead",ue.TITLE="title",ue.TR="tr",ue.TRACK="track",ue.TT="tt",ue.U="u",ue.UL="ul",ue.SVG="svg",ue.VAR="var",ue.WBR="wbr",ue.XMP="xmp"})(nn||(nn={}));var _e;(function(ue){ue[ue.UNKNOWN=0]="UNKNOWN",ue[ue.A=1]="A",ue[ue.ADDRESS=2]="ADDRESS",ue[ue.ANNOTATION_XML=3]="ANNOTATION_XML",ue[ue.APPLET=4]="APPLET",ue[ue.AREA=5]="AREA",ue[ue.ARTICLE=6]="ARTICLE",ue[ue.ASIDE=7]="ASIDE",ue[ue.B=8]="B",ue[ue.BASE=9]="BASE",ue[ue.BASEFONT=10]="BASEFONT",ue[ue.BGSOUND=11]="BGSOUND",ue[ue.BIG=12]="BIG",ue[ue.BLOCKQUOTE=13]="BLOCKQUOTE",ue[ue.BODY=14]="BODY",ue[ue.BR=15]="BR",ue[ue.BUTTON=16]="BUTTON",ue[ue.CAPTION=17]="CAPTION",ue[ue.CENTER=18]="CENTER",ue[ue.CODE=19]="CODE",ue[ue.COL=20]="COL",ue[ue.COLGROUP=21]="COLGROUP",ue[ue.DD=22]="DD",ue[ue.DESC=23]="DESC",ue[ue.DETAILS=24]="DETAILS",ue[ue.DIALOG=25]="DIALOG",ue[ue.DIR=26]="DIR",ue[ue.DIV=27]="DIV",ue[ue.DL=28]="DL",ue[ue.DT=29]="DT",ue[ue.EM=30]="EM",ue[ue.EMBED=31]="EMBED",ue[ue.FIELDSET=32]="FIELDSET",ue[ue.FIGCAPTION=33]="FIGCAPTION",ue[ue.FIGURE=34]="FIGURE",ue[ue.FONT=35]="FONT",ue[ue.FOOTER=36]="FOOTER",ue[ue.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",ue[ue.FORM=38]="FORM",ue[ue.FRAME=39]="FRAME",ue[ue.FRAMESET=40]="FRAMESET",ue[ue.H1=41]="H1",ue[ue.H2=42]="H2",ue[ue.H3=43]="H3",ue[ue.H4=44]="H4",ue[ue.H5=45]="H5",ue[ue.H6=46]="H6",ue[ue.HEAD=47]="HEAD",ue[ue.HEADER=48]="HEADER",ue[ue.HGROUP=49]="HGROUP",ue[ue.HR=50]="HR",ue[ue.HTML=51]="HTML",ue[ue.I=52]="I",ue[ue.IMG=53]="IMG",ue[ue.IMAGE=54]="IMAGE",ue[ue.INPUT=55]="INPUT",ue[ue.IFRAME=56]="IFRAME",ue[ue.KEYGEN=57]="KEYGEN",ue[ue.LABEL=58]="LABEL",ue[ue.LI=59]="LI",ue[ue.LINK=60]="LINK",ue[ue.LISTING=61]="LISTING",ue[ue.MAIN=62]="MAIN",ue[ue.MALIGNMARK=63]="MALIGNMARK",ue[ue.MARQUEE=64]="MARQUEE",ue[ue.MATH=65]="MATH",ue[ue.MENU=66]="MENU",ue[ue.META=67]="META",ue[ue.MGLYPH=68]="MGLYPH",ue[ue.MI=69]="MI",ue[ue.MO=70]="MO",ue[ue.MN=71]="MN",ue[ue.MS=72]="MS",ue[ue.MTEXT=73]="MTEXT",ue[ue.NAV=74]="NAV",ue[ue.NOBR=75]="NOBR",ue[ue.NOFRAMES=76]="NOFRAMES",ue[ue.NOEMBED=77]="NOEMBED",ue[ue.NOSCRIPT=78]="NOSCRIPT",ue[ue.OBJECT=79]="OBJECT",ue[ue.OL=80]="OL",ue[ue.OPTGROUP=81]="OPTGROUP",ue[ue.OPTION=82]="OPTION",ue[ue.P=83]="P",ue[ue.PARAM=84]="PARAM",ue[ue.PLAINTEXT=85]="PLAINTEXT",ue[ue.PRE=86]="PRE",ue[ue.RB=87]="RB",ue[ue.RP=88]="RP",ue[ue.RT=89]="RT",ue[ue.RTC=90]="RTC",ue[ue.RUBY=91]="RUBY",ue[ue.S=92]="S",ue[ue.SCRIPT=93]="SCRIPT",ue[ue.SEARCH=94]="SEARCH",ue[ue.SECTION=95]="SECTION",ue[ue.SELECT=96]="SELECT",ue[ue.SOURCE=97]="SOURCE",ue[ue.SMALL=98]="SMALL",ue[ue.SPAN=99]="SPAN",ue[ue.STRIKE=100]="STRIKE",ue[ue.STRONG=101]="STRONG",ue[ue.STYLE=102]="STYLE",ue[ue.SUB=103]="SUB",ue[ue.SUMMARY=104]="SUMMARY",ue[ue.SUP=105]="SUP",ue[ue.TABLE=106]="TABLE",ue[ue.TBODY=107]="TBODY",ue[ue.TEMPLATE=108]="TEMPLATE",ue[ue.TEXTAREA=109]="TEXTAREA",ue[ue.TFOOT=110]="TFOOT",ue[ue.TD=111]="TD",ue[ue.TH=112]="TH",ue[ue.THEAD=113]="THEAD",ue[ue.TITLE=114]="TITLE",ue[ue.TR=115]="TR",ue[ue.TRACK=116]="TRACK",ue[ue.TT=117]="TT",ue[ue.U=118]="U",ue[ue.UL=119]="UL",ue[ue.SVG=120]="SVG",ue[ue.VAR=121]="VAR",ue[ue.WBR=122]="WBR",ue[ue.XMP=123]="XMP"})(_e||(_e={}));const Ni=new Map([[nn.A,_e.A],[nn.ADDRESS,_e.ADDRESS],[nn.ANNOTATION_XML,_e.ANNOTATION_XML],[nn.APPLET,_e.APPLET],[nn.AREA,_e.AREA],[nn.ARTICLE,_e.ARTICLE],[nn.ASIDE,_e.ASIDE],[nn.B,_e.B],[nn.BASE,_e.BASE],[nn.BASEFONT,_e.BASEFONT],[nn.BGSOUND,_e.BGSOUND],[nn.BIG,_e.BIG],[nn.BLOCKQUOTE,_e.BLOCKQUOTE],[nn.BODY,_e.BODY],[nn.BR,_e.BR],[nn.BUTTON,_e.BUTTON],[nn.CAPTION,_e.CAPTION],[nn.CENTER,_e.CENTER],[nn.CODE,_e.CODE],[nn.COL,_e.COL],[nn.COLGROUP,_e.COLGROUP],[nn.DD,_e.DD],[nn.DESC,_e.DESC],[nn.DETAILS,_e.DETAILS],[nn.DIALOG,_e.DIALOG],[nn.DIR,_e.DIR],[nn.DIV,_e.DIV],[nn.DL,_e.DL],[nn.DT,_e.DT],[nn.EM,_e.EM],[nn.EMBED,_e.EMBED],[nn.FIELDSET,_e.FIELDSET],[nn.FIGCAPTION,_e.FIGCAPTION],[nn.FIGURE,_e.FIGURE],[nn.FONT,_e.FONT],[nn.FOOTER,_e.FOOTER],[nn.FOREIGN_OBJECT,_e.FOREIGN_OBJECT],[nn.FORM,_e.FORM],[nn.FRAME,_e.FRAME],[nn.FRAMESET,_e.FRAMESET],[nn.H1,_e.H1],[nn.H2,_e.H2],[nn.H3,_e.H3],[nn.H4,_e.H4],[nn.H5,_e.H5],[nn.H6,_e.H6],[nn.HEAD,_e.HEAD],[nn.HEADER,_e.HEADER],[nn.HGROUP,_e.HGROUP],[nn.HR,_e.HR],[nn.HTML,_e.HTML],[nn.I,_e.I],[nn.IMG,_e.IMG],[nn.IMAGE,_e.IMAGE],[nn.INPUT,_e.INPUT],[nn.IFRAME,_e.IFRAME],[nn.KEYGEN,_e.KEYGEN],[nn.LABEL,_e.LABEL],[nn.LI,_e.LI],[nn.LINK,_e.LINK],[nn.LISTING,_e.LISTING],[nn.MAIN,_e.MAIN],[nn.MALIGNMARK,_e.MALIGNMARK],[nn.MARQUEE,_e.MARQUEE],[nn.MATH,_e.MATH],[nn.MENU,_e.MENU],[nn.META,_e.META],[nn.MGLYPH,_e.MGLYPH],[nn.MI,_e.MI],[nn.MO,_e.MO],[nn.MN,_e.MN],[nn.MS,_e.MS],[nn.MTEXT,_e.MTEXT],[nn.NAV,_e.NAV],[nn.NOBR,_e.NOBR],[nn.NOFRAMES,_e.NOFRAMES],[nn.NOEMBED,_e.NOEMBED],[nn.NOSCRIPT,_e.NOSCRIPT],[nn.OBJECT,_e.OBJECT],[nn.OL,_e.OL],[nn.OPTGROUP,_e.OPTGROUP],[nn.OPTION,_e.OPTION],[nn.P,_e.P],[nn.PARAM,_e.PARAM],[nn.PLAINTEXT,_e.PLAINTEXT],[nn.PRE,_e.PRE],[nn.RB,_e.RB],[nn.RP,_e.RP],[nn.RT,_e.RT],[nn.RTC,_e.RTC],[nn.RUBY,_e.RUBY],[nn.S,_e.S],[nn.SCRIPT,_e.SCRIPT],[nn.SEARCH,_e.SEARCH],[nn.SECTION,_e.SECTION],[nn.SELECT,_e.SELECT],[nn.SOURCE,_e.SOURCE],[nn.SMALL,_e.SMALL],[nn.SPAN,_e.SPAN],[nn.STRIKE,_e.STRIKE],[nn.STRONG,_e.STRONG],[nn.STYLE,_e.STYLE],[nn.SUB,_e.SUB],[nn.SUMMARY,_e.SUMMARY],[nn.SUP,_e.SUP],[nn.TABLE,_e.TABLE],[nn.TBODY,_e.TBODY],[nn.TEMPLATE,_e.TEMPLATE],[nn.TEXTAREA,_e.TEXTAREA],[nn.TFOOT,_e.TFOOT],[nn.TD,_e.TD],[nn.TH,_e.TH],[nn.THEAD,_e.THEAD],[nn.TITLE,_e.TITLE],[nn.TR,_e.TR],[nn.TRACK,_e.TRACK],[nn.TT,_e.TT],[nn.U,_e.U],[nn.UL,_e.UL],[nn.SVG,_e.SVG],[nn.VAR,_e.VAR],[nn.WBR,_e.WBR],[nn.XMP,_e.XMP]]);function hi(ue){var ge;return(ge=Ni.get(ue))!==null&&ge!==void 0?ge:_e.UNKNOWN}const Pn=_e,Yi={[zt.HTML]:new Set([Pn.ADDRESS,Pn.APPLET,Pn.AREA,Pn.ARTICLE,Pn.ASIDE,Pn.BASE,Pn.BASEFONT,Pn.BGSOUND,Pn.BLOCKQUOTE,Pn.BODY,Pn.BR,Pn.BUTTON,Pn.CAPTION,Pn.CENTER,Pn.COL,Pn.COLGROUP,Pn.DD,Pn.DETAILS,Pn.DIR,Pn.DIV,Pn.DL,Pn.DT,Pn.EMBED,Pn.FIELDSET,Pn.FIGCAPTION,Pn.FIGURE,Pn.FOOTER,Pn.FORM,Pn.FRAME,Pn.FRAMESET,Pn.H1,Pn.H2,Pn.H3,Pn.H4,Pn.H5,Pn.H6,Pn.HEAD,Pn.HEADER,Pn.HGROUP,Pn.HR,Pn.HTML,Pn.IFRAME,Pn.IMG,Pn.INPUT,Pn.LI,Pn.LINK,Pn.LISTING,Pn.MAIN,Pn.MARQUEE,Pn.MENU,Pn.META,Pn.NAV,Pn.NOEMBED,Pn.NOFRAMES,Pn.NOSCRIPT,Pn.OBJECT,Pn.OL,Pn.P,Pn.PARAM,Pn.PLAINTEXT,Pn.PRE,Pn.SCRIPT,Pn.SECTION,Pn.SELECT,Pn.SOURCE,Pn.STYLE,Pn.SUMMARY,Pn.TABLE,Pn.TBODY,Pn.TD,Pn.TEMPLATE,Pn.TEXTAREA,Pn.TFOOT,Pn.TH,Pn.THEAD,Pn.TITLE,Pn.TR,Pn.TRACK,Pn.UL,Pn.WBR,Pn.XMP]),[zt.MATHML]:new Set([Pn.MI,Pn.MO,Pn.MN,Pn.MS,Pn.MTEXT,Pn.ANNOTATION_XML]),[zt.SVG]:new Set([Pn.TITLE,Pn.FOREIGN_OBJECT,Pn.DESC]),[zt.XLINK]:new Set,[zt.XML]:new Set,[zt.XMLNS]:new Set},Qi=new Set([Pn.H1,Pn.H2,Pn.H3,Pn.H4,Pn.H5,Pn.H6]),er=new Set([nn.STYLE,nn.SCRIPT,nn.XMP,nn.IFRAME,nn.NOEMBED,nn.NOFRAMES,nn.PLAINTEXT]);function Tn(ue,ge){return er.has(ue)||ge&&ue===nn.NOSCRIPT}var Zt;(function(ue){ue[ue.DATA=0]="DATA",ue[ue.RCDATA=1]="RCDATA",ue[ue.RAWTEXT=2]="RAWTEXT",ue[ue.SCRIPT_DATA=3]="SCRIPT_DATA",ue[ue.PLAINTEXT=4]="PLAINTEXT",ue[ue.TAG_OPEN=5]="TAG_OPEN",ue[ue.END_TAG_OPEN=6]="END_TAG_OPEN",ue[ue.TAG_NAME=7]="TAG_NAME",ue[ue.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",ue[ue.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",ue[ue.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",ue[ue.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",ue[ue.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",ue[ue.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",ue[ue.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",ue[ue.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",ue[ue.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",ue[ue.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",ue[ue.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",ue[ue.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",ue[ue.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",ue[ue.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",ue[ue.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",ue[ue.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",ue[ue.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",ue[ue.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",ue[ue.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",ue[ue.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",ue[ue.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",ue[ue.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",ue[ue.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",ue[ue.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",ue[ue.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",ue[ue.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",ue[ue.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",ue[ue.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",ue[ue.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",ue[ue.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",ue[ue.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",ue[ue.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",ue[ue.BOGUS_COMMENT=40]="BOGUS_COMMENT",ue[ue.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",ue[ue.COMMENT_START=42]="COMMENT_START",ue[ue.COMMENT_START_DASH=43]="COMMENT_START_DASH",ue[ue.COMMENT=44]="COMMENT",ue[ue.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",ue[ue.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",ue[ue.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",ue[ue.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",ue[ue.COMMENT_END_DASH=49]="COMMENT_END_DASH",ue[ue.COMMENT_END=50]="COMMENT_END",ue[ue.COMMENT_END_BANG=51]="COMMENT_END_BANG",ue[ue.DOCTYPE=52]="DOCTYPE",ue[ue.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",ue[ue.DOCTYPE_NAME=54]="DOCTYPE_NAME",ue[ue.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",ue[ue.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",ue[ue.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",ue[ue.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",ue[ue.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",ue[ue.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",ue[ue.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",ue[ue.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",ue[ue.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",ue[ue.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",ue[ue.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",ue[ue.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",ue[ue.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",ue[ue.CDATA_SECTION=68]="CDATA_SECTION",ue[ue.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",ue[ue.CDATA_SECTION_END=70]="CDATA_SECTION_END",ue[ue.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",ue[ue.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(Zt||(Zt={}));const $i={DATA:Zt.DATA,RCDATA:Zt.RCDATA,RAWTEXT:Zt.RAWTEXT,SCRIPT_DATA:Zt.SCRIPT_DATA,PLAINTEXT:Zt.PLAINTEXT,CDATA_SECTION:Zt.CDATA_SECTION};function Vr(ue){return ue>=mt.DIGIT_0&&ue<=mt.DIGIT_9}function en(ue){return ue>=mt.LATIN_CAPITAL_A&&ue<=mt.LATIN_CAPITAL_Z}function gi(ue){return ue>=mt.LATIN_SMALL_A&&ue<=mt.LATIN_SMALL_Z}function Mi(ue){return gi(ue)||en(ue)}function ji(ue){return Mi(ue)||Vr(ue)}function Fi(ue){return ue+32}function Zi(ue){return ue===mt.SPACE||ue===mt.LINE_FEED||ue===mt.TABULATION||ue===mt.FORM_FEED}function Sr(ue){return Zi(ue)||ue===mt.SOLIDUS||ue===mt.GREATER_THAN_SIGN}function gr(ue){return ue===mt.NULL?Mn.nullCharacterReference:ue>1114111?Mn.characterReferenceOutsideUnicodeRange:Cn(ue)?Mn.surrogateCharacterReference:Oi(ue)?Mn.noncharacterCharacterReference:Hi(ue)||ue===mt.CARRIAGE_RETURN?Mn.controlCharacterReference:null}class mr{constructor(ge,Ye){this.options=ge,this.handler=Ye,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=Zt.DATA,this.returnState=Zt.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Gi(Ye),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new Rn(Li,(Ot,zn)=>{this.preprocessor.pos=this.entityStartPos+zn-1,this._flushCodePointConsumedAsCharacterReference(Ot)},Ye.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(Mn.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:Ot=>{this._err(Mn.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+Ot)},validateNumericCharacterReference:Ot=>{const zn=gr(Ot);zn&&this._err(zn,1)}}:void 0)}_err(ge,Ye=0){var Ot,zn;(zn=(Ot=this.handler).onParseError)===null||zn===void 0||zn.call(Ot,this.preprocessor.getError(ge,Ye))}getCurrentLocation(ge){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-ge,startOffset:this.preprocessor.offset-ge,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const ge=this._consume();this._ensureHibernation()||this._callState(ge)}this.inLoop=!1}}pause(){this.paused=!0}resume(ge){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||ge==null||ge())}write(ge,Ye,Ot){this.active=!0,this.preprocessor.write(ge,Ye),this._runParsingLoop(),this.paused||Ot==null||Ot()}insertHtmlAtCurrentPos(ge){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(ge),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(ge){this.consumedAfterSnapshot+=ge;for(let Ye=0;Ye<ge;Ye++)this.preprocessor.advance()}_consumeSequenceIfMatch(ge,Ye){return this.preprocessor.startsWith(ge,Ye)?(this._advanceBy(ge.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:fi.START_TAG,tagName:"",tagID:_e.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:fi.END_TAG,tagName:"",tagID:_e.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(ge){this.currentToken={type:fi.COMMENT,data:"",location:this.getCurrentLocation(ge)}}_createDoctypeToken(ge){this.currentToken={type:fi.DOCTYPE,name:ge,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(ge,Ye){this.currentCharacterToken={type:ge,chars:Ye,location:this.currentLocation}}_createAttr(ge){this.currentAttr={name:ge,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var ge,Ye;const Ot=this.currentToken;if(wi(Ot,this.currentAttr.name)===null){if(Ot.attrs.push(this.currentAttr),Ot.location&&this.currentLocation){const zn=(ge=(Ye=Ot.location).attrs)!==null&&ge!==void 0?ge:Ye.attrs=Object.create(null);zn[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(Mn.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(ge){this._emitCurrentCharacterToken(ge.location),this.currentToken=null,ge.location&&(ge.location.endLine=this.preprocessor.line,ge.location.endCol=this.preprocessor.col+1,ge.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const ge=this.currentToken;this.prepareToken(ge),ge.tagID=hi(ge.tagName),ge.type===fi.START_TAG?(this.lastStartTagName=ge.tagName,this.handler.onStartTag(ge)):(ge.attrs.length>0&&this._err(Mn.endTagWithAttributes),ge.selfClosing&&this._err(Mn.endTagWithTrailingSolidus),this.handler.onEndTag(ge)),this.preprocessor.dropParsedChunk()}emitCurrentComment(ge){this.prepareToken(ge),this.handler.onComment(ge),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(ge){this.prepareToken(ge),this.handler.onDoctype(ge),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(ge){if(this.currentCharacterToken){switch(ge&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=ge.startLine,this.currentCharacterToken.location.endCol=ge.startCol,this.currentCharacterToken.location.endOffset=ge.startOffset),this.currentCharacterToken.type){case fi.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case fi.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case fi.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const ge=this.getCurrentLocation(0);ge&&(ge.endLine=ge.startLine,ge.endCol=ge.startCol,ge.endOffset=ge.startOffset),this._emitCurrentCharacterToken(ge),this.handler.onEof({type:fi.EOF,location:ge}),this.active=!1}_appendCharToCurrentCharacterToken(ge,Ye){if(this.currentCharacterToken)if(this.currentCharacterToken.type===ge){this.currentCharacterToken.chars+=Ye;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(ge,Ye)}_emitCodePoint(ge){const Ye=Zi(ge)?fi.WHITESPACE_CHARACTER:ge===mt.NULL?fi.NULL_CHARACTER:fi.CHARACTER;this._appendCharToCurrentCharacterToken(Ye,String.fromCodePoint(ge))}_emitChars(ge){this._appendCharToCurrentCharacterToken(fi.CHARACTER,ge)}_startCharacterReference(){this.returnState=this.state,this.state=Zt.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?yi.Attribute:yi.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===Zt.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===Zt.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===Zt.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(ge){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(ge):this._emitCodePoint(ge)}_callState(ge){switch(this.state){case Zt.DATA:{this._stateData(ge);break}case Zt.RCDATA:{this._stateRcdata(ge);break}case Zt.RAWTEXT:{this._stateRawtext(ge);break}case Zt.SCRIPT_DATA:{this._stateScriptData(ge);break}case Zt.PLAINTEXT:{this._statePlaintext(ge);break}case Zt.TAG_OPEN:{this._stateTagOpen(ge);break}case Zt.END_TAG_OPEN:{this._stateEndTagOpen(ge);break}case Zt.TAG_NAME:{this._stateTagName(ge);break}case Zt.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(ge);break}case Zt.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(ge);break}case Zt.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(ge);break}case Zt.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(ge);break}case Zt.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(ge);break}case Zt.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(ge);break}case Zt.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(ge);break}case Zt.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(ge);break}case Zt.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(ge);break}case Zt.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(ge);break}case Zt.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(ge);break}case Zt.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(ge);break}case Zt.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(ge);break}case Zt.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(ge);break}case Zt.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(ge);break}case Zt.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(ge);break}case Zt.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(ge);break}case Zt.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(ge);break}case Zt.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(ge);break}case Zt.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(ge);break}case Zt.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(ge);break}case Zt.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(ge);break}case Zt.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(ge);break}case Zt.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(ge);break}case Zt.ATTRIBUTE_NAME:{this._stateAttributeName(ge);break}case Zt.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(ge);break}case Zt.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(ge);break}case Zt.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(ge);break}case Zt.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(ge);break}case Zt.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(ge);break}case Zt.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(ge);break}case Zt.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(ge);break}case Zt.BOGUS_COMMENT:{this._stateBogusComment(ge);break}case Zt.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(ge);break}case Zt.COMMENT_START:{this._stateCommentStart(ge);break}case Zt.COMMENT_START_DASH:{this._stateCommentStartDash(ge);break}case Zt.COMMENT:{this._stateComment(ge);break}case Zt.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(ge);break}case Zt.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(ge);break}case Zt.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(ge);break}case Zt.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(ge);break}case Zt.COMMENT_END_DASH:{this._stateCommentEndDash(ge);break}case Zt.COMMENT_END:{this._stateCommentEnd(ge);break}case Zt.COMMENT_END_BANG:{this._stateCommentEndBang(ge);break}case Zt.DOCTYPE:{this._stateDoctype(ge);break}case Zt.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(ge);break}case Zt.DOCTYPE_NAME:{this._stateDoctypeName(ge);break}case Zt.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(ge);break}case Zt.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(ge);break}case Zt.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(ge);break}case Zt.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(ge);break}case Zt.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(ge);break}case Zt.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(ge);break}case Zt.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(ge);break}case Zt.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(ge);break}case Zt.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(ge);break}case Zt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(ge);break}case Zt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(ge);break}case Zt.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(ge);break}case Zt.BOGUS_DOCTYPE:{this._stateBogusDoctype(ge);break}case Zt.CDATA_SECTION:{this._stateCdataSection(ge);break}case Zt.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(ge);break}case Zt.CDATA_SECTION_END:{this._stateCdataSectionEnd(ge);break}case Zt.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case Zt.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(ge);break}default:throw new Error("Unknown state")}}_stateData(ge){switch(ge){case mt.LESS_THAN_SIGN:{this.state=Zt.TAG_OPEN;break}case mt.AMPERSAND:{this._startCharacterReference();break}case mt.NULL:{this._err(Mn.unexpectedNullCharacter),this._emitCodePoint(ge);break}case mt.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(ge)}}_stateRcdata(ge){switch(ge){case mt.AMPERSAND:{this._startCharacterReference();break}case mt.LESS_THAN_SIGN:{this.state=Zt.RCDATA_LESS_THAN_SIGN;break}case mt.NULL:{this._err(Mn.unexpectedNullCharacter),this._emitChars(Gn);break}case mt.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(ge)}}_stateRawtext(ge){switch(ge){case mt.LESS_THAN_SIGN:{this.state=Zt.RAWTEXT_LESS_THAN_SIGN;break}case mt.NULL:{this._err(Mn.unexpectedNullCharacter),this._emitChars(Gn);break}case mt.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(ge)}}_stateScriptData(ge){switch(ge){case mt.LESS_THAN_SIGN:{this.state=Zt.SCRIPT_DATA_LESS_THAN_SIGN;break}case mt.NULL:{this._err(Mn.unexpectedNullCharacter),this._emitChars(Gn);break}case mt.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(ge)}}_statePlaintext(ge){switch(ge){case mt.NULL:{this._err(Mn.unexpectedNullCharacter),this._emitChars(Gn);break}case mt.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(ge)}}_stateTagOpen(ge){if(Mi(ge))this._createStartTagToken(),this.state=Zt.TAG_NAME,this._stateTagName(ge);else switch(ge){case mt.EXCLAMATION_MARK:{this.state=Zt.MARKUP_DECLARATION_OPEN;break}case mt.SOLIDUS:{this.state=Zt.END_TAG_OPEN;break}case mt.QUESTION_MARK:{this._err(Mn.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=Zt.BOGUS_COMMENT,this._stateBogusComment(ge);break}case mt.EOF:{this._err(Mn.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(Mn.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=Zt.DATA,this._stateData(ge)}}_stateEndTagOpen(ge){if(Mi(ge))this._createEndTagToken(),this.state=Zt.TAG_NAME,this._stateTagName(ge);else switch(ge){case mt.GREATER_THAN_SIGN:{this._err(Mn.missingEndTagName),this.state=Zt.DATA;break}case mt.EOF:{this._err(Mn.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(Mn.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=Zt.BOGUS_COMMENT,this._stateBogusComment(ge)}}_stateTagName(ge){const Ye=this.currentToken;switch(ge){case mt.SPACE:case mt.LINE_FEED:case mt.TABULATION:case mt.FORM_FEED:{this.state=Zt.BEFORE_ATTRIBUTE_NAME;break}case mt.SOLIDUS:{this.state=Zt.SELF_CLOSING_START_TAG;break}case mt.GREATER_THAN_SIGN:{this.state=Zt.DATA,this.emitCurrentTagToken();break}case mt.NULL:{this._err(Mn.unexpectedNullCharacter),Ye.tagName+=Gn;break}case mt.EOF:{this._err(Mn.eofInTag),this._emitEOFToken();break}default:Ye.tagName+=String.fromCodePoint(en(ge)?Fi(ge):ge)}}_stateRcdataLessThanSign(ge){ge===mt.SOLIDUS?this.state=Zt.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=Zt.RCDATA,this._stateRcdata(ge))}_stateRcdataEndTagOpen(ge){Mi(ge)?(this.state=Zt.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(ge)):(this._emitChars("</"),this.state=Zt.RCDATA,this._stateRcdata(ge))}handleSpecialEndTag(ge){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const Ye=this.currentToken;switch(Ye.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case mt.SPACE:case mt.LINE_FEED:case mt.TABULATION:case mt.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=Zt.BEFORE_ATTRIBUTE_NAME,!1;case mt.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=Zt.SELF_CLOSING_START_TAG,!1;case mt.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=Zt.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(ge){this.handleSpecialEndTag(ge)&&(this._emitChars("</"),this.state=Zt.RCDATA,this._stateRcdata(ge))}_stateRawtextLessThanSign(ge){ge===mt.SOLIDUS?this.state=Zt.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=Zt.RAWTEXT,this._stateRawtext(ge))}_stateRawtextEndTagOpen(ge){Mi(ge)?(this.state=Zt.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(ge)):(this._emitChars("</"),this.state=Zt.RAWTEXT,this._stateRawtext(ge))}_stateRawtextEndTagName(ge){this.handleSpecialEndTag(ge)&&(this._emitChars("</"),this.state=Zt.RAWTEXT,this._stateRawtext(ge))}_stateScriptDataLessThanSign(ge){switch(ge){case mt.SOLIDUS:{this.state=Zt.SCRIPT_DATA_END_TAG_OPEN;break}case mt.EXCLAMATION_MARK:{this.state=Zt.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=Zt.SCRIPT_DATA,this._stateScriptData(ge)}}_stateScriptDataEndTagOpen(ge){Mi(ge)?(this.state=Zt.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(ge)):(this._emitChars("</"),this.state=Zt.SCRIPT_DATA,this._stateScriptData(ge))}_stateScriptDataEndTagName(ge){this.handleSpecialEndTag(ge)&&(this._emitChars("</"),this.state=Zt.SCRIPT_DATA,this._stateScriptData(ge))}_stateScriptDataEscapeStart(ge){ge===mt.HYPHEN_MINUS?(this.state=Zt.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=Zt.SCRIPT_DATA,this._stateScriptData(ge))}_stateScriptDataEscapeStartDash(ge){ge===mt.HYPHEN_MINUS?(this.state=Zt.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=Zt.SCRIPT_DATA,this._stateScriptData(ge))}_stateScriptDataEscaped(ge){switch(ge){case mt.HYPHEN_MINUS:{this.state=Zt.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case mt.LESS_THAN_SIGN:{this.state=Zt.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case mt.NULL:{this._err(Mn.unexpectedNullCharacter),this._emitChars(Gn);break}case mt.EOF:{this._err(Mn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(ge)}}_stateScriptDataEscapedDash(ge){switch(ge){case mt.HYPHEN_MINUS:{this.state=Zt.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case mt.LESS_THAN_SIGN:{this.state=Zt.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case mt.NULL:{this._err(Mn.unexpectedNullCharacter),this.state=Zt.SCRIPT_DATA_ESCAPED,this._emitChars(Gn);break}case mt.EOF:{this._err(Mn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=Zt.SCRIPT_DATA_ESCAPED,this._emitCodePoint(ge)}}_stateScriptDataEscapedDashDash(ge){switch(ge){case mt.HYPHEN_MINUS:{this._emitChars("-");break}case mt.LESS_THAN_SIGN:{this.state=Zt.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case mt.GREATER_THAN_SIGN:{this.state=Zt.SCRIPT_DATA,this._emitChars(">");break}case mt.NULL:{this._err(Mn.unexpectedNullCharacter),this.state=Zt.SCRIPT_DATA_ESCAPED,this._emitChars(Gn);break}case mt.EOF:{this._err(Mn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=Zt.SCRIPT_DATA_ESCAPED,this._emitCodePoint(ge)}}_stateScriptDataEscapedLessThanSign(ge){ge===mt.SOLIDUS?this.state=Zt.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Mi(ge)?(this._emitChars("<"),this.state=Zt.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(ge)):(this._emitChars("<"),this.state=Zt.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(ge))}_stateScriptDataEscapedEndTagOpen(ge){Mi(ge)?(this.state=Zt.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(ge)):(this._emitChars("</"),this.state=Zt.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(ge))}_stateScriptDataEscapedEndTagName(ge){this.handleSpecialEndTag(ge)&&(this._emitChars("</"),this.state=Zt.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(ge))}_stateScriptDataDoubleEscapeStart(ge){if(this.preprocessor.startsWith(On.SCRIPT,!1)&&Sr(this.preprocessor.peek(On.SCRIPT.length))){this._emitCodePoint(ge);for(let Ye=0;Ye<On.SCRIPT.length;Ye++)this._emitCodePoint(this._consume());this.state=Zt.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=Zt.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(ge))}_stateScriptDataDoubleEscaped(ge){switch(ge){case mt.HYPHEN_MINUS:{this.state=Zt.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case mt.LESS_THAN_SIGN:{this.state=Zt.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case mt.NULL:{this._err(Mn.unexpectedNullCharacter),this._emitChars(Gn);break}case mt.EOF:{this._err(Mn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(ge)}}_stateScriptDataDoubleEscapedDash(ge){switch(ge){case mt.HYPHEN_MINUS:{this.state=Zt.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case mt.LESS_THAN_SIGN:{this.state=Zt.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case mt.NULL:{this._err(Mn.unexpectedNullCharacter),this.state=Zt.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Gn);break}case mt.EOF:{this._err(Mn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=Zt.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(ge)}}_stateScriptDataDoubleEscapedDashDash(ge){switch(ge){case mt.HYPHEN_MINUS:{this._emitChars("-");break}case mt.LESS_THAN_SIGN:{this.state=Zt.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case mt.GREATER_THAN_SIGN:{this.state=Zt.SCRIPT_DATA,this._emitChars(">");break}case mt.NULL:{this._err(Mn.unexpectedNullCharacter),this.state=Zt.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Gn);break}case mt.EOF:{this._err(Mn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=Zt.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(ge)}}_stateScriptDataDoubleEscapedLessThanSign(ge){ge===mt.SOLIDUS?(this.state=Zt.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=Zt.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(ge))}_stateScriptDataDoubleEscapeEnd(ge){if(this.preprocessor.startsWith(On.SCRIPT,!1)&&Sr(this.preprocessor.peek(On.SCRIPT.length))){this._emitCodePoint(ge);for(let Ye=0;Ye<On.SCRIPT.length;Ye++)this._emitCodePoint(this._consume());this.state=Zt.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=Zt.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(ge))}_stateBeforeAttributeName(ge){switch(ge){case mt.SPACE:case mt.LINE_FEED:case mt.TABULATION:case mt.FORM_FEED:break;case mt.SOLIDUS:case mt.GREATER_THAN_SIGN:case mt.EOF:{this.state=Zt.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(ge);break}case mt.EQUALS_SIGN:{this._err(Mn.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=Zt.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=Zt.ATTRIBUTE_NAME,this._stateAttributeName(ge)}}_stateAttributeName(ge){switch(ge){case mt.SPACE:case mt.LINE_FEED:case mt.TABULATION:case mt.FORM_FEED:case mt.SOLIDUS:case mt.GREATER_THAN_SIGN:case mt.EOF:{this._leaveAttrName(),this.state=Zt.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(ge);break}case mt.EQUALS_SIGN:{this._leaveAttrName(),this.state=Zt.BEFORE_ATTRIBUTE_VALUE;break}case mt.QUOTATION_MARK:case mt.APOSTROPHE:case mt.LESS_THAN_SIGN:{this._err(Mn.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(ge);break}case mt.NULL:{this._err(Mn.unexpectedNullCharacter),this.currentAttr.name+=Gn;break}default:this.currentAttr.name+=String.fromCodePoint(en(ge)?Fi(ge):ge)}}_stateAfterAttributeName(ge){switch(ge){case mt.SPACE:case mt.LINE_FEED:case mt.TABULATION:case mt.FORM_FEED:break;case mt.SOLIDUS:{this.state=Zt.SELF_CLOSING_START_TAG;break}case mt.EQUALS_SIGN:{this.state=Zt.BEFORE_ATTRIBUTE_VALUE;break}case mt.GREATER_THAN_SIGN:{this.state=Zt.DATA,this.emitCurrentTagToken();break}case mt.EOF:{this._err(Mn.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=Zt.ATTRIBUTE_NAME,this._stateAttributeName(ge)}}_stateBeforeAttributeValue(ge){switch(ge){case mt.SPACE:case mt.LINE_FEED:case mt.TABULATION:case mt.FORM_FEED:break;case mt.QUOTATION_MARK:{this.state=Zt.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case mt.APOSTROPHE:{this.state=Zt.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case mt.GREATER_THAN_SIGN:{this._err(Mn.missingAttributeValue),this.state=Zt.DATA,this.emitCurrentTagToken();break}default:this.state=Zt.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(ge)}}_stateAttributeValueDoubleQuoted(ge){switch(ge){case mt.QUOTATION_MARK:{this.state=Zt.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case mt.AMPERSAND:{this._startCharacterReference();break}case mt.NULL:{this._err(Mn.unexpectedNullCharacter),this.currentAttr.value+=Gn;break}case mt.EOF:{this._err(Mn.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(ge)}}_stateAttributeValueSingleQuoted(ge){switch(ge){case mt.APOSTROPHE:{this.state=Zt.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case mt.AMPERSAND:{this._startCharacterReference();break}case mt.NULL:{this._err(Mn.unexpectedNullCharacter),this.currentAttr.value+=Gn;break}case mt.EOF:{this._err(Mn.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(ge)}}_stateAttributeValueUnquoted(ge){switch(ge){case mt.SPACE:case mt.LINE_FEED:case mt.TABULATION:case mt.FORM_FEED:{this._leaveAttrValue(),this.state=Zt.BEFORE_ATTRIBUTE_NAME;break}case mt.AMPERSAND:{this._startCharacterReference();break}case mt.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=Zt.DATA,this.emitCurrentTagToken();break}case mt.NULL:{this._err(Mn.unexpectedNullCharacter),this.currentAttr.value+=Gn;break}case mt.QUOTATION_MARK:case mt.APOSTROPHE:case mt.LESS_THAN_SIGN:case mt.EQUALS_SIGN:case mt.GRAVE_ACCENT:{this._err(Mn.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(ge);break}case mt.EOF:{this._err(Mn.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(ge)}}_stateAfterAttributeValueQuoted(ge){switch(ge){case mt.SPACE:case mt.LINE_FEED:case mt.TABULATION:case mt.FORM_FEED:{this._leaveAttrValue(),this.state=Zt.BEFORE_ATTRIBUTE_NAME;break}case mt.SOLIDUS:{this._leaveAttrValue(),this.state=Zt.SELF_CLOSING_START_TAG;break}case mt.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=Zt.DATA,this.emitCurrentTagToken();break}case mt.EOF:{this._err(Mn.eofInTag),this._emitEOFToken();break}default:this._err(Mn.missingWhitespaceBetweenAttributes),this.state=Zt.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(ge)}}_stateSelfClosingStartTag(ge){switch(ge){case mt.GREATER_THAN_SIGN:{const Ye=this.currentToken;Ye.selfClosing=!0,this.state=Zt.DATA,this.emitCurrentTagToken();break}case mt.EOF:{this._err(Mn.eofInTag),this._emitEOFToken();break}default:this._err(Mn.unexpectedSolidusInTag),this.state=Zt.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(ge)}}_stateBogusComment(ge){const Ye=this.currentToken;switch(ge){case mt.GREATER_THAN_SIGN:{this.state=Zt.DATA,this.emitCurrentComment(Ye);break}case mt.EOF:{this.emitCurrentComment(Ye),this._emitEOFToken();break}case mt.NULL:{this._err(Mn.unexpectedNullCharacter),Ye.data+=Gn;break}default:Ye.data+=String.fromCodePoint(ge)}}_stateMarkupDeclarationOpen(ge){this._consumeSequenceIfMatch(On.DASH_DASH,!0)?(this._createCommentToken(On.DASH_DASH.length+1),this.state=Zt.COMMENT_START):this._consumeSequenceIfMatch(On.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(On.DOCTYPE.length+1),this.state=Zt.DOCTYPE):this._consumeSequenceIfMatch(On.CDATA_START,!0)?this.inForeignNode?this.state=Zt.CDATA_SECTION:(this._err(Mn.cdataInHtmlContent),this._createCommentToken(On.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=Zt.BOGUS_COMMENT):this._ensureHibernation()||(this._err(Mn.incorrectlyOpenedComment),this._createCommentToken(2),this.state=Zt.BOGUS_COMMENT,this._stateBogusComment(ge))}_stateCommentStart(ge){switch(ge){case mt.HYPHEN_MINUS:{this.state=Zt.COMMENT_START_DASH;break}case mt.GREATER_THAN_SIGN:{this._err(Mn.abruptClosingOfEmptyComment),this.state=Zt.DATA;const Ye=this.currentToken;this.emitCurrentComment(Ye);break}default:this.state=Zt.COMMENT,this._stateComment(ge)}}_stateCommentStartDash(ge){const Ye=this.currentToken;switch(ge){case mt.HYPHEN_MINUS:{this.state=Zt.COMMENT_END;break}case mt.GREATER_THAN_SIGN:{this._err(Mn.abruptClosingOfEmptyComment),this.state=Zt.DATA,this.emitCurrentComment(Ye);break}case mt.EOF:{this._err(Mn.eofInComment),this.emitCurrentComment(Ye),this._emitEOFToken();break}default:Ye.data+="-",this.state=Zt.COMMENT,this._stateComment(ge)}}_stateComment(ge){const Ye=this.currentToken;switch(ge){case mt.HYPHEN_MINUS:{this.state=Zt.COMMENT_END_DASH;break}case mt.LESS_THAN_SIGN:{Ye.data+="<",this.state=Zt.COMMENT_LESS_THAN_SIGN;break}case mt.NULL:{this._err(Mn.unexpectedNullCharacter),Ye.data+=Gn;break}case mt.EOF:{this._err(Mn.eofInComment),this.emitCurrentComment(Ye),this._emitEOFToken();break}default:Ye.data+=String.fromCodePoint(ge)}}_stateCommentLessThanSign(ge){const Ye=this.currentToken;switch(ge){case mt.EXCLAMATION_MARK:{Ye.data+="!",this.state=Zt.COMMENT_LESS_THAN_SIGN_BANG;break}case mt.LESS_THAN_SIGN:{Ye.data+="<";break}default:this.state=Zt.COMMENT,this._stateComment(ge)}}_stateCommentLessThanSignBang(ge){ge===mt.HYPHEN_MINUS?this.state=Zt.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=Zt.COMMENT,this._stateComment(ge))}_stateCommentLessThanSignBangDash(ge){ge===mt.HYPHEN_MINUS?this.state=Zt.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=Zt.COMMENT_END_DASH,this._stateCommentEndDash(ge))}_stateCommentLessThanSignBangDashDash(ge){ge!==mt.GREATER_THAN_SIGN&&ge!==mt.EOF&&this._err(Mn.nestedComment),this.state=Zt.COMMENT_END,this._stateCommentEnd(ge)}_stateCommentEndDash(ge){const Ye=this.currentToken;switch(ge){case mt.HYPHEN_MINUS:{this.state=Zt.COMMENT_END;break}case mt.EOF:{this._err(Mn.eofInComment),this.emitCurrentComment(Ye),this._emitEOFToken();break}default:Ye.data+="-",this.state=Zt.COMMENT,this._stateComment(ge)}}_stateCommentEnd(ge){const Ye=this.currentToken;switch(ge){case mt.GREATER_THAN_SIGN:{this.state=Zt.DATA,this.emitCurrentComment(Ye);break}case mt.EXCLAMATION_MARK:{this.state=Zt.COMMENT_END_BANG;break}case mt.HYPHEN_MINUS:{Ye.data+="-";break}case mt.EOF:{this._err(Mn.eofInComment),this.emitCurrentComment(Ye),this._emitEOFToken();break}default:Ye.data+="--",this.state=Zt.COMMENT,this._stateComment(ge)}}_stateCommentEndBang(ge){const Ye=this.currentToken;switch(ge){case mt.HYPHEN_MINUS:{Ye.data+="--!",this.state=Zt.COMMENT_END_DASH;break}case mt.GREATER_THAN_SIGN:{this._err(Mn.incorrectlyClosedComment),this.state=Zt.DATA,this.emitCurrentComment(Ye);break}case mt.EOF:{this._err(Mn.eofInComment),this.emitCurrentComment(Ye),this._emitEOFToken();break}default:Ye.data+="--!",this.state=Zt.COMMENT,this._stateComment(ge)}}_stateDoctype(ge){switch(ge){case mt.SPACE:case mt.LINE_FEED:case mt.TABULATION:case mt.FORM_FEED:{this.state=Zt.BEFORE_DOCTYPE_NAME;break}case mt.GREATER_THAN_SIGN:{this.state=Zt.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(ge);break}case mt.EOF:{this._err(Mn.eofInDoctype),this._createDoctypeToken(null);const Ye=this.currentToken;Ye.forceQuirks=!0,this.emitCurrentDoctype(Ye),this._emitEOFToken();break}default:this._err(Mn.missingWhitespaceBeforeDoctypeName),this.state=Zt.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(ge)}}_stateBeforeDoctypeName(ge){if(en(ge))this._createDoctypeToken(String.fromCharCode(Fi(ge))),this.state=Zt.DOCTYPE_NAME;else switch(ge){case mt.SPACE:case mt.LINE_FEED:case mt.TABULATION:case mt.FORM_FEED:break;case mt.NULL:{this._err(Mn.unexpectedNullCharacter),this._createDoctypeToken(Gn),this.state=Zt.DOCTYPE_NAME;break}case mt.GREATER_THAN_SIGN:{this._err(Mn.missingDoctypeName),this._createDoctypeToken(null);const Ye=this.currentToken;Ye.forceQuirks=!0,this.emitCurrentDoctype(Ye),this.state=Zt.DATA;break}case mt.EOF:{this._err(Mn.eofInDoctype),this._createDoctypeToken(null);const Ye=this.currentToken;Ye.forceQuirks=!0,this.emitCurrentDoctype(Ye),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(ge)),this.state=Zt.DOCTYPE_NAME}}_stateDoctypeName(ge){const Ye=this.currentToken;switch(ge){case mt.SPACE:case mt.LINE_FEED:case mt.TABULATION:case mt.FORM_FEED:{this.state=Zt.AFTER_DOCTYPE_NAME;break}case mt.GREATER_THAN_SIGN:{this.state=Zt.DATA,this.emitCurrentDoctype(Ye);break}case mt.NULL:{this._err(Mn.unexpectedNullCharacter),Ye.name+=Gn;break}case mt.EOF:{this._err(Mn.eofInDoctype),Ye.forceQuirks=!0,this.emitCurrentDoctype(Ye),this._emitEOFToken();break}default:Ye.name+=String.fromCodePoint(en(ge)?Fi(ge):ge)}}_stateAfterDoctypeName(ge){const Ye=this.currentToken;switch(ge){case mt.SPACE:case mt.LINE_FEED:case mt.TABULATION:case mt.FORM_FEED:break;case mt.GREATER_THAN_SIGN:{this.state=Zt.DATA,this.emitCurrentDoctype(Ye);break}case mt.EOF:{this._err(Mn.eofInDoctype),Ye.forceQuirks=!0,this.emitCurrentDoctype(Ye),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(On.PUBLIC,!1)?this.state=Zt.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(On.SYSTEM,!1)?this.state=Zt.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(Mn.invalidCharacterSequenceAfterDoctypeName),Ye.forceQuirks=!0,this.state=Zt.BOGUS_DOCTYPE,this._stateBogusDoctype(ge))}}_stateAfterDoctypePublicKeyword(ge){const Ye=this.currentToken;switch(ge){case mt.SPACE:case mt.LINE_FEED:case mt.TABULATION:case mt.FORM_FEED:{this.state=Zt.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case mt.QUOTATION_MARK:{this._err(Mn.missingWhitespaceAfterDoctypePublicKeyword),Ye.publicId="",this.state=Zt.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case mt.APOSTROPHE:{this._err(Mn.missingWhitespaceAfterDoctypePublicKeyword),Ye.publicId="",this.state=Zt.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case mt.GREATER_THAN_SIGN:{this._err(Mn.missingDoctypePublicIdentifier),Ye.forceQuirks=!0,this.state=Zt.DATA,this.emitCurrentDoctype(Ye);break}case mt.EOF:{this._err(Mn.eofInDoctype),Ye.forceQuirks=!0,this.emitCurrentDoctype(Ye),this._emitEOFToken();break}default:this._err(Mn.missingQuoteBeforeDoctypePublicIdentifier),Ye.forceQuirks=!0,this.state=Zt.BOGUS_DOCTYPE,this._stateBogusDoctype(ge)}}_stateBeforeDoctypePublicIdentifier(ge){const Ye=this.currentToken;switch(ge){case mt.SPACE:case mt.LINE_FEED:case mt.TABULATION:case mt.FORM_FEED:break;case mt.QUOTATION_MARK:{Ye.publicId="",this.state=Zt.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case mt.APOSTROPHE:{Ye.publicId="",this.state=Zt.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case mt.GREATER_THAN_SIGN:{this._err(Mn.missingDoctypePublicIdentifier),Ye.forceQuirks=!0,this.state=Zt.DATA,this.emitCurrentDoctype(Ye);break}case mt.EOF:{this._err(Mn.eofInDoctype),Ye.forceQuirks=!0,this.emitCurrentDoctype(Ye),this._emitEOFToken();break}default:this._err(Mn.missingQuoteBeforeDoctypePublicIdentifier),Ye.forceQuirks=!0,this.state=Zt.BOGUS_DOCTYPE,this._stateBogusDoctype(ge)}}_stateDoctypePublicIdentifierDoubleQuoted(ge){const Ye=this.currentToken;switch(ge){case mt.QUOTATION_MARK:{this.state=Zt.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case mt.NULL:{this._err(Mn.unexpectedNullCharacter),Ye.publicId+=Gn;break}case mt.GREATER_THAN_SIGN:{this._err(Mn.abruptDoctypePublicIdentifier),Ye.forceQuirks=!0,this.emitCurrentDoctype(Ye),this.state=Zt.DATA;break}case mt.EOF:{this._err(Mn.eofInDoctype),Ye.forceQuirks=!0,this.emitCurrentDoctype(Ye),this._emitEOFToken();break}default:Ye.publicId+=String.fromCodePoint(ge)}}_stateDoctypePublicIdentifierSingleQuoted(ge){const Ye=this.currentToken;switch(ge){case mt.APOSTROPHE:{this.state=Zt.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case mt.NULL:{this._err(Mn.unexpectedNullCharacter),Ye.publicId+=Gn;break}case mt.GREATER_THAN_SIGN:{this._err(Mn.abruptDoctypePublicIdentifier),Ye.forceQuirks=!0,this.emitCurrentDoctype(Ye),this.state=Zt.DATA;break}case mt.EOF:{this._err(Mn.eofInDoctype),Ye.forceQuirks=!0,this.emitCurrentDoctype(Ye),this._emitEOFToken();break}default:Ye.publicId+=String.fromCodePoint(ge)}}_stateAfterDoctypePublicIdentifier(ge){const Ye=this.currentToken;switch(ge){case mt.SPACE:case mt.LINE_FEED:case mt.TABULATION:case mt.FORM_FEED:{this.state=Zt.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case mt.GREATER_THAN_SIGN:{this.state=Zt.DATA,this.emitCurrentDoctype(Ye);break}case mt.QUOTATION_MARK:{this._err(Mn.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),Ye.systemId="",this.state=Zt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case mt.APOSTROPHE:{this._err(Mn.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),Ye.systemId="",this.state=Zt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case mt.EOF:{this._err(Mn.eofInDoctype),Ye.forceQuirks=!0,this.emitCurrentDoctype(Ye),this._emitEOFToken();break}default:this._err(Mn.missingQuoteBeforeDoctypeSystemIdentifier),Ye.forceQuirks=!0,this.state=Zt.BOGUS_DOCTYPE,this._stateBogusDoctype(ge)}}_stateBetweenDoctypePublicAndSystemIdentifiers(ge){const Ye=this.currentToken;switch(ge){case mt.SPACE:case mt.LINE_FEED:case mt.TABULATION:case mt.FORM_FEED:break;case mt.GREATER_THAN_SIGN:{this.emitCurrentDoctype(Ye),this.state=Zt.DATA;break}case mt.QUOTATION_MARK:{Ye.systemId="",this.state=Zt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case mt.APOSTROPHE:{Ye.systemId="",this.state=Zt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case mt.EOF:{this._err(Mn.eofInDoctype),Ye.forceQuirks=!0,this.emitCurrentDoctype(Ye),this._emitEOFToken();break}default:this._err(Mn.missingQuoteBeforeDoctypeSystemIdentifier),Ye.forceQuirks=!0,this.state=Zt.BOGUS_DOCTYPE,this._stateBogusDoctype(ge)}}_stateAfterDoctypeSystemKeyword(ge){const Ye=this.currentToken;switch(ge){case mt.SPACE:case mt.LINE_FEED:case mt.TABULATION:case mt.FORM_FEED:{this.state=Zt.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case mt.QUOTATION_MARK:{this._err(Mn.missingWhitespaceAfterDoctypeSystemKeyword),Ye.systemId="",this.state=Zt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case mt.APOSTROPHE:{this._err(Mn.missingWhitespaceAfterDoctypeSystemKeyword),Ye.systemId="",this.state=Zt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case mt.GREATER_THAN_SIGN:{this._err(Mn.missingDoctypeSystemIdentifier),Ye.forceQuirks=!0,this.state=Zt.DATA,this.emitCurrentDoctype(Ye);break}case mt.EOF:{this._err(Mn.eofInDoctype),Ye.forceQuirks=!0,this.emitCurrentDoctype(Ye),this._emitEOFToken();break}default:this._err(Mn.missingQuoteBeforeDoctypeSystemIdentifier),Ye.forceQuirks=!0,this.state=Zt.BOGUS_DOCTYPE,this._stateBogusDoctype(ge)}}_stateBeforeDoctypeSystemIdentifier(ge){const Ye=this.currentToken;switch(ge){case mt.SPACE:case mt.LINE_FEED:case mt.TABULATION:case mt.FORM_FEED:break;case mt.QUOTATION_MARK:{Ye.systemId="",this.state=Zt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case mt.APOSTROPHE:{Ye.systemId="",this.state=Zt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case mt.GREATER_THAN_SIGN:{this._err(Mn.missingDoctypeSystemIdentifier),Ye.forceQuirks=!0,this.state=Zt.DATA,this.emitCurrentDoctype(Ye);break}case mt.EOF:{this._err(Mn.eofInDoctype),Ye.forceQuirks=!0,this.emitCurrentDoctype(Ye),this._emitEOFToken();break}default:this._err(Mn.missingQuoteBeforeDoctypeSystemIdentifier),Ye.forceQuirks=!0,this.state=Zt.BOGUS_DOCTYPE,this._stateBogusDoctype(ge)}}_stateDoctypeSystemIdentifierDoubleQuoted(ge){const Ye=this.currentToken;switch(ge){case mt.QUOTATION_MARK:{this.state=Zt.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case mt.NULL:{this._err(Mn.unexpectedNullCharacter),Ye.systemId+=Gn;break}case mt.GREATER_THAN_SIGN:{this._err(Mn.abruptDoctypeSystemIdentifier),Ye.forceQuirks=!0,this.emitCurrentDoctype(Ye),this.state=Zt.DATA;break}case mt.EOF:{this._err(Mn.eofInDoctype),Ye.forceQuirks=!0,this.emitCurrentDoctype(Ye),this._emitEOFToken();break}default:Ye.systemId+=String.fromCodePoint(ge)}}_stateDoctypeSystemIdentifierSingleQuoted(ge){const Ye=this.currentToken;switch(ge){case mt.APOSTROPHE:{this.state=Zt.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case mt.NULL:{this._err(Mn.unexpectedNullCharacter),Ye.systemId+=Gn;break}case mt.GREATER_THAN_SIGN:{this._err(Mn.abruptDoctypeSystemIdentifier),Ye.forceQuirks=!0,this.emitCurrentDoctype(Ye),this.state=Zt.DATA;break}case mt.EOF:{this._err(Mn.eofInDoctype),Ye.forceQuirks=!0,this.emitCurrentDoctype(Ye),this._emitEOFToken();break}default:Ye.systemId+=String.fromCodePoint(ge)}}_stateAfterDoctypeSystemIdentifier(ge){const Ye=this.currentToken;switch(ge){case mt.SPACE:case mt.LINE_FEED:case mt.TABULATION:case mt.FORM_FEED:break;case mt.GREATER_THAN_SIGN:{this.emitCurrentDoctype(Ye),this.state=Zt.DATA;break}case mt.EOF:{this._err(Mn.eofInDoctype),Ye.forceQuirks=!0,this.emitCurrentDoctype(Ye),this._emitEOFToken();break}default:this._err(Mn.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=Zt.BOGUS_DOCTYPE,this._stateBogusDoctype(ge)}}_stateBogusDoctype(ge){const Ye=this.currentToken;switch(ge){case mt.GREATER_THAN_SIGN:{this.emitCurrentDoctype(Ye),this.state=Zt.DATA;break}case mt.NULL:{this._err(Mn.unexpectedNullCharacter);break}case mt.EOF:{this.emitCurrentDoctype(Ye),this._emitEOFToken();break}default:}}_stateCdataSection(ge){switch(ge){case mt.RIGHT_SQUARE_BRACKET:{this.state=Zt.CDATA_SECTION_BRACKET;break}case mt.EOF:{this._err(Mn.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(ge)}}_stateCdataSectionBracket(ge){ge===mt.RIGHT_SQUARE_BRACKET?this.state=Zt.CDATA_SECTION_END:(this._emitChars("]"),this.state=Zt.CDATA_SECTION,this._stateCdataSection(ge))}_stateCdataSectionEnd(ge){switch(ge){case mt.GREATER_THAN_SIGN:{this.state=Zt.DATA;break}case mt.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=Zt.CDATA_SECTION,this._stateCdataSection(ge)}}_stateCharacterReference(){let ge=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(ge<0)if(this.preprocessor.lastChunkWritten)ge=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}ge===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(mt.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&ji(this.preprocessor.peek(1))?Zt.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(ge){ji(ge)?this._flushCodePointConsumedAsCharacterReference(ge):(ge===mt.SEMICOLON&&this._err(Mn.unknownNamedCharacterReference),this.state=this.returnState,this._callState(ge))}}const br=new Set([_e.DD,_e.DT,_e.LI,_e.OPTGROUP,_e.OPTION,_e.P,_e.RB,_e.RP,_e.RT,_e.RTC]),Fn=new Set([...br,_e.CAPTION,_e.COLGROUP,_e.TBODY,_e.TD,_e.TFOOT,_e.TH,_e.THEAD,_e.TR]),dr=new Set([_e.APPLET,_e.CAPTION,_e.HTML,_e.MARQUEE,_e.OBJECT,_e.TABLE,_e.TD,_e.TEMPLATE,_e.TH]),In=new Set([...dr,_e.OL,_e.UL]),wr=new Set([...dr,_e.BUTTON]),Cr=new Set([_e.ANNOTATION_XML,_e.MI,_e.MN,_e.MO,_e.MS,_e.MTEXT]),Tr=new Set([_e.DESC,_e.FOREIGN_OBJECT,_e.TITLE]),mo=new Set([_e.TR,_e.TEMPLATE,_e.HTML]),ao=new Set([_e.TBODY,_e.TFOOT,_e.THEAD,_e.TEMPLATE,_e.HTML]),Wr=new Set([_e.TABLE,_e.TEMPLATE,_e.HTML]),Xr=new Set([_e.TD,_e.TH]);class pa{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(ge,Ye,Ot){this.treeAdapter=Ye,this.handler=Ot,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=_e.UNKNOWN,this.current=ge}_indexOf(ge){return this.items.lastIndexOf(ge,this.stackTop)}_isInTemplate(){return this.currentTagId===_e.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===zt.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(ge,Ye){this.stackTop++,this.items[this.stackTop]=ge,this.current=ge,this.tagIDs[this.stackTop]=Ye,this.currentTagId=Ye,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(ge,Ye,!0)}pop(){const ge=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(ge,!0)}replace(ge,Ye){const Ot=this._indexOf(ge);this.items[Ot]=Ye,Ot===this.stackTop&&(this.current=Ye)}insertAfter(ge,Ye,Ot){const zn=this._indexOf(ge)+1;this.items.splice(zn,0,Ye),this.tagIDs.splice(zn,0,Ot),this.stackTop++,zn===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,zn===this.stackTop)}popUntilTagNamePopped(ge){let Ye=this.stackTop+1;do Ye=this.tagIDs.lastIndexOf(ge,Ye-1);while(Ye>0&&this.treeAdapter.getNamespaceURI(this.items[Ye])!==zt.HTML);this.shortenToLength(Ye<0?0:Ye)}shortenToLength(ge){for(;this.stackTop>=ge;){const Ye=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(Ye,this.stackTop<ge)}}popUntilElementPopped(ge){const Ye=this._indexOf(ge);this.shortenToLength(Ye<0?0:Ye)}popUntilPopped(ge,Ye){const Ot=this._indexOfTagNames(ge,Ye);this.shortenToLength(Ot<0?0:Ot)}popUntilNumberedHeaderPopped(){this.popUntilPopped(Qi,zt.HTML)}popUntilTableCellPopped(){this.popUntilPopped(Xr,zt.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(ge,Ye){for(let Ot=this.stackTop;Ot>=0;Ot--)if(ge.has(this.tagIDs[Ot])&&this.treeAdapter.getNamespaceURI(this.items[Ot])===Ye)return Ot;return-1}clearBackTo(ge,Ye){const Ot=this._indexOfTagNames(ge,Ye);this.shortenToLength(Ot+1)}clearBackToTableContext(){this.clearBackTo(Wr,zt.HTML)}clearBackToTableBodyContext(){this.clearBackTo(ao,zt.HTML)}clearBackToTableRowContext(){this.clearBackTo(mo,zt.HTML)}remove(ge){const Ye=this._indexOf(ge);Ye>=0&&(Ye===this.stackTop?this.pop():(this.items.splice(Ye,1),this.tagIDs.splice(Ye,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(ge,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===_e.BODY?this.items[1]:null}contains(ge){return this._indexOf(ge)>-1}getCommonAncestor(ge){const Ye=this._indexOf(ge)-1;return Ye>=0?this.items[Ye]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===_e.HTML}hasInDynamicScope(ge,Ye){for(let Ot=this.stackTop;Ot>=0;Ot--){const zn=this.tagIDs[Ot];switch(this.treeAdapter.getNamespaceURI(this.items[Ot])){case zt.HTML:{if(zn===ge)return!0;if(Ye.has(zn))return!1;break}case zt.SVG:{if(Tr.has(zn))return!1;break}case zt.MATHML:{if(Cr.has(zn))return!1;break}}}return!0}hasInScope(ge){return this.hasInDynamicScope(ge,dr)}hasInListItemScope(ge){return this.hasInDynamicScope(ge,In)}hasInButtonScope(ge){return this.hasInDynamicScope(ge,wr)}hasNumberedHeaderInScope(){for(let ge=this.stackTop;ge>=0;ge--){const Ye=this.tagIDs[ge];switch(this.treeAdapter.getNamespaceURI(this.items[ge])){case zt.HTML:{if(Qi.has(Ye))return!0;if(dr.has(Ye))return!1;break}case zt.SVG:{if(Tr.has(Ye))return!1;break}case zt.MATHML:{if(Cr.has(Ye))return!1;break}}}return!0}hasInTableScope(ge){for(let Ye=this.stackTop;Ye>=0;Ye--)if(this.treeAdapter.getNamespaceURI(this.items[Ye])===zt.HTML)switch(this.tagIDs[Ye]){case ge:return!0;case _e.TABLE:case _e.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let ge=this.stackTop;ge>=0;ge--)if(this.treeAdapter.getNamespaceURI(this.items[ge])===zt.HTML)switch(this.tagIDs[ge]){case _e.TBODY:case _e.THEAD:case _e.TFOOT:return!0;case _e.TABLE:case _e.HTML:return!1}return!0}hasInSelectScope(ge){for(let Ye=this.stackTop;Ye>=0;Ye--)if(this.treeAdapter.getNamespaceURI(this.items[Ye])===zt.HTML)switch(this.tagIDs[Ye]){case ge:return!0;case _e.OPTION:case _e.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;br.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;Fn.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(ge){for(;this.currentTagId!==ge&&Fn.has(this.currentTagId);)this.pop()}}const no=3;var zi;(function(ue){ue[ue.Marker=0]="Marker",ue[ue.Element=1]="Element"})(zi||(zi={}));const lt={type:zi.Marker};class Go{constructor(ge){this.treeAdapter=ge,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(ge,Ye){const Ot=[],zn=Ye.length,bi=this.treeAdapter.getTagName(ge),Vi=this.treeAdapter.getNamespaceURI(ge);for(let jr=0;jr<this.entries.length;jr++){const ro=this.entries[jr];if(ro.type===zi.Marker)break;const{element:Si}=ro;if(this.treeAdapter.getTagName(Si)===bi&&this.treeAdapter.getNamespaceURI(Si)===Vi){const fr=this.treeAdapter.getAttrList(Si);fr.length===zn&&Ot.push({idx:jr,attrs:fr})}}return Ot}_ensureNoahArkCondition(ge){if(this.entries.length<no)return;const Ye=this.treeAdapter.getAttrList(ge),Ot=this._getNoahArkConditionCandidates(ge,Ye);if(Ot.length<no)return;const zn=new Map(Ye.map(Vi=>[Vi.name,Vi.value]));let bi=0;for(let Vi=0;Vi<Ot.length;Vi++){const jr=Ot[Vi];jr.attrs.every(ro=>zn.get(ro.name)===ro.value)&&(bi+=1,bi>=no&&this.entries.splice(jr.idx,1))}}insertMarker(){this.entries.unshift(lt)}pushElement(ge,Ye){this._ensureNoahArkCondition(ge),this.entries.unshift({type:zi.Element,element:ge,token:Ye})}insertElementAfterBookmark(ge,Ye){const Ot=this.entries.indexOf(this.bookmark);this.entries.splice(Ot,0,{type:zi.Element,element:ge,token:Ye})}removeEntry(ge){const Ye=this.entries.indexOf(ge);Ye>=0&&this.entries.splice(Ye,1)}clearToLastMarker(){const ge=this.entries.indexOf(lt);ge>=0?this.entries.splice(0,ge+1):this.entries.length=0}getElementEntryInScopeWithTagName(ge){const Ye=this.entries.find(Ot=>Ot.type===zi.Marker||this.treeAdapter.getTagName(Ot.element)===ge);return Ye&&Ye.type===zi.Element?Ye:null}getElementEntry(ge){return this.entries.find(Ye=>Ye.type===zi.Element&&Ye.element===ge)}}const Lr={createDocument(){return{nodeName:"#document",mode:vi.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(ue,ge,Ye){return{nodeName:ue,tagName:ue,attrs:Ye,namespaceURI:ge,childNodes:[],parentNode:null}},createCommentNode(ue){return{nodeName:"#comment",data:ue,parentNode:null}},createTextNode(ue){return{nodeName:"#text",value:ue,parentNode:null}},appendChild(ue,ge){ue.childNodes.push(ge),ge.parentNode=ue},insertBefore(ue,ge,Ye){const Ot=ue.childNodes.indexOf(Ye);ue.childNodes.splice(Ot,0,ge),ge.parentNode=ue},setTemplateContent(ue,ge){ue.content=ge},getTemplateContent(ue){return ue.content},setDocumentType(ue,ge,Ye,Ot){const zn=ue.childNodes.find(bi=>bi.nodeName==="#documentType");if(zn)zn.name=ge,zn.publicId=Ye,zn.systemId=Ot;else{const bi={nodeName:"#documentType",name:ge,publicId:Ye,systemId:Ot,parentNode:null};Lr.appendChild(ue,bi)}},setDocumentMode(ue,ge){ue.mode=ge},getDocumentMode(ue){return ue.mode},detachNode(ue){if(ue.parentNode){const ge=ue.parentNode.childNodes.indexOf(ue);ue.parentNode.childNodes.splice(ge,1),ue.parentNode=null}},insertText(ue,ge){if(ue.childNodes.length>0){const Ye=ue.childNodes[ue.childNodes.length-1];if(Lr.isTextNode(Ye)){Ye.value+=ge;return}}Lr.appendChild(ue,Lr.createTextNode(ge))},insertTextBefore(ue,ge,Ye){const Ot=ue.childNodes[ue.childNodes.indexOf(Ye)-1];Ot&&Lr.isTextNode(Ot)?Ot.value+=ge:Lr.insertBefore(ue,Lr.createTextNode(ge),Ye)},adoptAttributes(ue,ge){const Ye=new Set(ue.attrs.map(Ot=>Ot.name));for(let Ot=0;Ot<ge.length;Ot++)Ye.has(ge[Ot].name)||ue.attrs.push(ge[Ot])},getFirstChild(ue){return ue.childNodes[0]},getChildNodes(ue){return ue.childNodes},getParentNode(ue){return ue.parentNode},getAttrList(ue){return ue.attrs},getTagName(ue){return ue.tagName},getNamespaceURI(ue){return ue.namespaceURI},getTextNodeContent(ue){return ue.value},getCommentNodeContent(ue){return ue.data},getDocumentTypeNodeName(ue){return ue.name},getDocumentTypeNodePublicId(ue){return ue.publicId},getDocumentTypeNodeSystemId(ue){return ue.systemId},isTextNode(ue){return ue.nodeName==="#text"},isCommentNode(ue){return ue.nodeName==="#comment"},isDocumentTypeNode(ue){return ue.nodeName==="#documentType"},isElementNode(ue){return Object.prototype.hasOwnProperty.call(ue,"tagName")},setNodeSourceCodeLocation(ue,ge){ue.sourceCodeLocation=ge},getNodeSourceCodeLocation(ue){return ue.sourceCodeLocation},updateNodeSourceCodeLocation(ue,ge){ue.sourceCodeLocation=Mo(Mo({},ue.sourceCodeLocation),ge)}},zr="html",$r="about:legacy-compat",fo="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Xi=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],nr=[...Xi,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],Ir=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Ar=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],kr=[...Ar,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Uo(ue,ge){return ge.some(Ye=>ue.startsWith(Ye))}function hr(ue){return ue.name===zr&&ue.publicId===null&&(ue.systemId===null||ue.systemId===$r)}function ar(ue){if(ue.name!==zr)return vi.QUIRKS;const{systemId:ge}=ue;if(ge&&ge.toLowerCase()===fo)return vi.QUIRKS;let{publicId:Ye}=ue;if(Ye!==null){if(Ye=Ye.toLowerCase(),Ir.has(Ye))return vi.QUIRKS;let Ot=ge===null?nr:Xi;if(Uo(Ye,Ot))return vi.QUIRKS;if(Ot=ge===null?Ar:kr,Uo(Ye,Ot))return vi.LIMITED_QUIRKS}return vi.NO_QUIRKS}const ri={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Ji="definitionurl",Zr="definitionURL",jo=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(ue=>[ue.toLowerCase(),ue])),Do=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:zt.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:zt.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:zt.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:zt.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:zt.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:zt.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:zt.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:zt.XML}],["xml:space",{prefix:"xml",name:"space",namespace:zt.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:zt.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:zt.XMLNS}]]),Ao=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(ue=>[ue.toLowerCase(),ue])),Ho=new Set([_e.B,_e.BIG,_e.BLOCKQUOTE,_e.BODY,_e.BR,_e.CENTER,_e.CODE,_e.DD,_e.DIV,_e.DL,_e.DT,_e.EM,_e.EMBED,_e.H1,_e.H2,_e.H3,_e.H4,_e.H5,_e.H6,_e.HEAD,_e.HR,_e.I,_e.IMG,_e.LI,_e.LISTING,_e.MENU,_e.META,_e.NOBR,_e.OL,_e.P,_e.PRE,_e.RUBY,_e.S,_e.SMALL,_e.SPAN,_e.STRONG,_e.STRIKE,_e.SUB,_e.SUP,_e.TABLE,_e.TT,_e.U,_e.UL,_e.VAR]);function Po(ue){const ge=ue.tagID;return ge===_e.FONT&&ue.attrs.some(({name:Ot})=>Ot===xn.COLOR||Ot===xn.SIZE||Ot===xn.FACE)||Ho.has(ge)}function Sa(ue){for(let ge=0;ge<ue.attrs.length;ge++)if(ue.attrs[ge].name===Ji){ue.attrs[ge].name=Zr;break}}function aa(ue){for(let ge=0;ge<ue.attrs.length;ge++){const Ye=jo.get(ue.attrs[ge].name);Ye!=null&&(ue.attrs[ge].name=Ye)}}function es(ue){for(let ge=0;ge<ue.attrs.length;ge++){const Ye=Do.get(ue.attrs[ge].name);Ye&&(ue.attrs[ge].prefix=Ye.prefix,ue.attrs[ge].name=Ye.name,ue.attrs[ge].namespace=Ye.namespace)}}function hn(ue){const ge=Ao.get(ue.tagName);ge!=null&&(ue.tagName=ge,ue.tagID=hi(ue.tagName))}function ra(ue,ge){return ge===zt.MATHML&&(ue===_e.MI||ue===_e.MO||ue===_e.MN||ue===_e.MS||ue===_e.MTEXT)}function kl(ue,ge,Ye){if(ge===zt.MATHML&&ue===_e.ANNOTATION_XML){for(let Ot=0;Ot<Ye.length;Ot++)if(Ye[Ot].name===xn.ENCODING){const zn=Ye[Ot].value.toLowerCase();return zn===ri.TEXT_HTML||zn===ri.APPLICATION_XML}}return ge===zt.SVG&&(ue===_e.FOREIGN_OBJECT||ue===_e.DESC||ue===_e.TITLE)}function Ha(ue,ge,Ye,Ot){return(!Ot||Ot===zt.HTML)&&kl(ue,ge,Ye)||(!Ot||Ot===zt.MATHML)&&ra(ue,ge)}const yl="hidden",Lo=8,lu=3;var An;(function(ue){ue[ue.INITIAL=0]="INITIAL",ue[ue.BEFORE_HTML=1]="BEFORE_HTML",ue[ue.BEFORE_HEAD=2]="BEFORE_HEAD",ue[ue.IN_HEAD=3]="IN_HEAD",ue[ue.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",ue[ue.AFTER_HEAD=5]="AFTER_HEAD",ue[ue.IN_BODY=6]="IN_BODY",ue[ue.TEXT=7]="TEXT",ue[ue.IN_TABLE=8]="IN_TABLE",ue[ue.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",ue[ue.IN_CAPTION=10]="IN_CAPTION",ue[ue.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",ue[ue.IN_TABLE_BODY=12]="IN_TABLE_BODY",ue[ue.IN_ROW=13]="IN_ROW",ue[ue.IN_CELL=14]="IN_CELL",ue[ue.IN_SELECT=15]="IN_SELECT",ue[ue.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",ue[ue.IN_TEMPLATE=17]="IN_TEMPLATE",ue[ue.AFTER_BODY=18]="AFTER_BODY",ue[ue.IN_FRAMESET=19]="IN_FRAMESET",ue[ue.AFTER_FRAMESET=20]="AFTER_FRAMESET",ue[ue.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",ue[ue.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(An||(An={}));const zo={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},ca=new Set([_e.TABLE,_e.TBODY,_e.TFOOT,_e.THEAD,_e.TR]),sl={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Lr,onParseError:null};class Ga{constructor(ge,Ye,Ot=null,zn=null){this.fragmentContext=Ot,this.scriptHandler=zn,this.currentToken=null,this.stopped=!1,this.insertionMode=An.INITIAL,this.originalInsertionMode=An.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options=Mo(Mo({},sl),ge),this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=Ye!=null?Ye:this.treeAdapter.createDocument(),this.tokenizer=new mr(this.options,this),this.activeFormattingElements=new Go(this.treeAdapter),this.fragmentContextID=Ot?hi(this.treeAdapter.getTagName(Ot)):_e.UNKNOWN,this._setContextModes(Ot!=null?Ot:this.document,this.fragmentContextID),this.openElements=new pa(this.document,this.treeAdapter,this)}static parse(ge,Ye){const Ot=new this(Ye);return Ot.tokenizer.write(ge,!0),Ot.document}static getFragmentParser(ge,Ye){const Ot=Mo(Mo({},sl),Ye);ge!=null||(ge=Ot.treeAdapter.createElement(nn.TEMPLATE,zt.HTML,[]));const zn=Ot.treeAdapter.createElement("documentmock",zt.HTML,[]),bi=new this(Ot,zn,ge);return bi.fragmentContextID===_e.TEMPLATE&&bi.tmplInsertionModeStack.unshift(An.IN_TEMPLATE),bi._initTokenizerForFragmentParsing(),bi._insertFakeRootElement(),bi._resetInsertionMode(),bi._findFormInFragmentContext(),bi}getFragment(){const ge=this.treeAdapter.getFirstChild(this.document),Ye=this.treeAdapter.createDocumentFragment();return this._adoptNodes(ge,Ye),Ye}_err(ge,Ye,Ot){var zn;if(!this.onParseError)return;const bi=(zn=ge.location)!==null&&zn!==void 0?zn:zo,Vi={code:Ye,startLine:bi.startLine,startCol:bi.startCol,startOffset:bi.startOffset,endLine:Ot?bi.startLine:bi.endLine,endCol:Ot?bi.startCol:bi.endCol,endOffset:Ot?bi.startOffset:bi.endOffset};this.onParseError(Vi)}onItemPush(ge,Ye,Ot){var zn,bi;(bi=(zn=this.treeAdapter).onItemPush)===null||bi===void 0||bi.call(zn,ge),Ot&&this.openElements.stackTop>0&&this._setContextModes(ge,Ye)}onItemPop(ge,Ye){var Ot,zn;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(ge,this.currentToken),(zn=(Ot=this.treeAdapter).onItemPop)===null||zn===void 0||zn.call(Ot,ge,this.openElements.current),Ye){let bi,Vi;this.openElements.stackTop===0&&this.fragmentContext?(bi=this.fragmentContext,Vi=this.fragmentContextID):{current:bi,currentTagId:Vi}=this.openElements,this._setContextModes(bi,Vi)}}_setContextModes(ge,Ye){const Ot=ge===this.document||this.treeAdapter.getNamespaceURI(ge)===zt.HTML;this.currentNotInHTML=!Ot,this.tokenizer.inForeignNode=!Ot&&!this._isIntegrationPoint(Ye,ge)}_switchToTextParsing(ge,Ye){this._insertElement(ge,zt.HTML),this.tokenizer.state=Ye,this.originalInsertionMode=this.insertionMode,this.insertionMode=An.TEXT}switchToPlaintextParsing(){this.insertionMode=An.TEXT,this.originalInsertionMode=An.IN_BODY,this.tokenizer.state=$i.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let ge=this.fragmentContext;for(;ge;){if(this.treeAdapter.getTagName(ge)===nn.FORM){this.formElement=ge;break}ge=this.treeAdapter.getParentNode(ge)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==zt.HTML))switch(this.fragmentContextID){case _e.TITLE:case _e.TEXTAREA:{this.tokenizer.state=$i.RCDATA;break}case _e.STYLE:case _e.XMP:case _e.IFRAME:case _e.NOEMBED:case _e.NOFRAMES:case _e.NOSCRIPT:{this.tokenizer.state=$i.RAWTEXT;break}case _e.SCRIPT:{this.tokenizer.state=$i.SCRIPT_DATA;break}case _e.PLAINTEXT:{this.tokenizer.state=$i.PLAINTEXT;break}default:}}_setDocumentType(ge){const Ye=ge.name||"",Ot=ge.publicId||"",zn=ge.systemId||"";if(this.treeAdapter.setDocumentType(this.document,Ye,Ot,zn),ge.location){const Vi=this.treeAdapter.getChildNodes(this.document).find(jr=>this.treeAdapter.isDocumentTypeNode(jr));Vi&&this.treeAdapter.setNodeSourceCodeLocation(Vi,ge.location)}}_attachElementToTree(ge,Ye){if(this.options.sourceCodeLocationInfo){const Ot=Ye&&Nf(Mo({},Ye),{startTag:Ye});this.treeAdapter.setNodeSourceCodeLocation(ge,Ot)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(ge);else{const Ot=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(Ot,ge)}}_appendElement(ge,Ye){const Ot=this.treeAdapter.createElement(ge.tagName,Ye,ge.attrs);this._attachElementToTree(Ot,ge.location)}_insertElement(ge,Ye){const Ot=this.treeAdapter.createElement(ge.tagName,Ye,ge.attrs);this._attachElementToTree(Ot,ge.location),this.openElements.push(Ot,ge.tagID)}_insertFakeElement(ge,Ye){const Ot=this.treeAdapter.createElement(ge,zt.HTML,[]);this._attachElementToTree(Ot,null),this.openElements.push(Ot,Ye)}_insertTemplate(ge){const Ye=this.treeAdapter.createElement(ge.tagName,zt.HTML,ge.attrs),Ot=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(Ye,Ot),this._attachElementToTree(Ye,ge.location),this.openElements.push(Ye,ge.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(Ot,null)}_insertFakeRootElement(){const ge=this.treeAdapter.createElement(nn.HTML,zt.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(ge,null),this.treeAdapter.appendChild(this.openElements.current,ge),this.openElements.push(ge,_e.HTML)}_appendCommentNode(ge,Ye){const Ot=this.treeAdapter.createCommentNode(ge.data);this.treeAdapter.appendChild(Ye,Ot),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(Ot,ge.location)}_insertCharacters(ge){let Ye,Ot;if(this._shouldFosterParentOnInsertion()?({parent:Ye,beforeElement:Ot}=this._findFosterParentingLocation(),Ot?this.treeAdapter.insertTextBefore(Ye,ge.chars,Ot):this.treeAdapter.insertText(Ye,ge.chars)):(Ye=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(Ye,ge.chars)),!ge.location)return;const zn=this.treeAdapter.getChildNodes(Ye),bi=Ot?zn.lastIndexOf(Ot):zn.length,Vi=zn[bi-1];if(this.treeAdapter.getNodeSourceCodeLocation(Vi)){const{endLine:ro,endCol:Si,endOffset:fr}=ge.location;this.treeAdapter.updateNodeSourceCodeLocation(Vi,{endLine:ro,endCol:Si,endOffset:fr})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(Vi,ge.location)}_adoptNodes(ge,Ye){for(let Ot=this.treeAdapter.getFirstChild(ge);Ot;Ot=this.treeAdapter.getFirstChild(ge))this.treeAdapter.detachNode(Ot),this.treeAdapter.appendChild(Ye,Ot)}_setEndLocation(ge,Ye){if(this.treeAdapter.getNodeSourceCodeLocation(ge)&&Ye.location){const Ot=Ye.location,zn=this.treeAdapter.getTagName(ge),bi=Ye.type===fi.END_TAG&&zn===Ye.tagName?{endTag:Mo({},Ot),endLine:Ot.endLine,endCol:Ot.endCol,endOffset:Ot.endOffset}:{endLine:Ot.startLine,endCol:Ot.startCol,endOffset:Ot.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(ge,bi)}}shouldProcessStartTagTokenInForeignContent(ge){if(!this.currentNotInHTML)return!1;let Ye,Ot;return this.openElements.stackTop===0&&this.fragmentContext?(Ye=this.fragmentContext,Ot=this.fragmentContextID):{current:Ye,currentTagId:Ot}=this.openElements,ge.tagID===_e.SVG&&this.treeAdapter.getTagName(Ye)===nn.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(Ye)===zt.MATHML?!1:this.tokenizer.inForeignNode||(ge.tagID===_e.MGLYPH||ge.tagID===_e.MALIGNMARK)&&!this._isIntegrationPoint(Ot,Ye,zt.HTML)}_processToken(ge){switch(ge.type){case fi.CHARACTER:{this.onCharacter(ge);break}case fi.NULL_CHARACTER:{this.onNullCharacter(ge);break}case fi.COMMENT:{this.onComment(ge);break}case fi.DOCTYPE:{this.onDoctype(ge);break}case fi.START_TAG:{this._processStartTag(ge);break}case fi.END_TAG:{this.onEndTag(ge);break}case fi.EOF:{this.onEof(ge);break}case fi.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(ge);break}}}_isIntegrationPoint(ge,Ye,Ot){const zn=this.treeAdapter.getNamespaceURI(Ye),bi=this.treeAdapter.getAttrList(Ye);return Ha(ge,zn,bi,Ot)}_reconstructActiveFormattingElements(){const ge=this.activeFormattingElements.entries.length;if(ge){const Ye=this.activeFormattingElements.entries.findIndex(zn=>zn.type===zi.Marker||this.openElements.contains(zn.element)),Ot=Ye<0?ge-1:Ye-1;for(let zn=Ot;zn>=0;zn--){const bi=this.activeFormattingElements.entries[zn];this._insertElement(bi.token,this.treeAdapter.getNamespaceURI(bi.element)),bi.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=An.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(_e.P),this.openElements.popUntilTagNamePopped(_e.P)}_resetInsertionMode(){for(let ge=this.openElements.stackTop;ge>=0;ge--)switch(ge===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[ge]){case _e.TR:{this.insertionMode=An.IN_ROW;return}case _e.TBODY:case _e.THEAD:case _e.TFOOT:{this.insertionMode=An.IN_TABLE_BODY;return}case _e.CAPTION:{this.insertionMode=An.IN_CAPTION;return}case _e.COLGROUP:{this.insertionMode=An.IN_COLUMN_GROUP;return}case _e.TABLE:{this.insertionMode=An.IN_TABLE;return}case _e.BODY:{this.insertionMode=An.IN_BODY;return}case _e.FRAMESET:{this.insertionMode=An.IN_FRAMESET;return}case _e.SELECT:{this._resetInsertionModeForSelect(ge);return}case _e.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case _e.HTML:{this.insertionMode=this.headElement?An.AFTER_HEAD:An.BEFORE_HEAD;return}case _e.TD:case _e.TH:{if(ge>0){this.insertionMode=An.IN_CELL;return}break}case _e.HEAD:{if(ge>0){this.insertionMode=An.IN_HEAD;return}break}}this.insertionMode=An.IN_BODY}_resetInsertionModeForSelect(ge){if(ge>0)for(let Ye=ge-1;Ye>0;Ye--){const Ot=this.openElements.tagIDs[Ye];if(Ot===_e.TEMPLATE)break;if(Ot===_e.TABLE){this.insertionMode=An.IN_SELECT_IN_TABLE;return}}this.insertionMode=An.IN_SELECT}_isElementCausesFosterParenting(ge){return ca.has(ge)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let ge=this.openElements.stackTop;ge>=0;ge--){const Ye=this.openElements.items[ge];switch(this.openElements.tagIDs[ge]){case _e.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(Ye)===zt.HTML)return{parent:this.treeAdapter.getTemplateContent(Ye),beforeElement:null};break}case _e.TABLE:{const Ot=this.treeAdapter.getParentNode(Ye);return Ot?{parent:Ot,beforeElement:Ye}:{parent:this.openElements.items[ge-1],beforeElement:null}}default:}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(ge){const Ye=this._findFosterParentingLocation();Ye.beforeElement?this.treeAdapter.insertBefore(Ye.parent,ge,Ye.beforeElement):this.treeAdapter.appendChild(Ye.parent,ge)}_isSpecialElement(ge,Ye){const Ot=this.treeAdapter.getNamespaceURI(ge);return Yi[Ot].has(Ye)}onCharacter(ge){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){et(this,ge);return}switch(this.insertionMode){case An.INITIAL:{Qr(this,ge);break}case An.BEFORE_HTML:{yo(this,ge);break}case An.BEFORE_HEAD:{Wo(this,ge);break}case An.IN_HEAD:{Aa(this,ge);break}case An.IN_HEAD_NO_SCRIPT:{vs(this,ge);break}case An.AFTER_HEAD:{cs(this,ge);break}case An.IN_BODY:case An.IN_CAPTION:case An.IN_CELL:case An.IN_TEMPLATE:{Hu(this,ge);break}case An.TEXT:case An.IN_SELECT:case An.IN_SELECT_IN_TABLE:{this._insertCharacters(ge);break}case An.IN_TABLE:case An.IN_TABLE_BODY:case An.IN_ROW:{Pr(this,ge);break}case An.IN_TABLE_TEXT:{cu(this,ge);break}case An.IN_COLUMN_GROUP:{uc(this,ge);break}case An.AFTER_BODY:{Wu(this,ge);break}case An.AFTER_AFTER_BODY:{xe(this,ge);break}default:}}onNullCharacter(ge){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){We(this,ge);return}switch(this.insertionMode){case An.INITIAL:{Qr(this,ge);break}case An.BEFORE_HTML:{yo(this,ge);break}case An.BEFORE_HEAD:{Wo(this,ge);break}case An.IN_HEAD:{Aa(this,ge);break}case An.IN_HEAD_NO_SCRIPT:{vs(this,ge);break}case An.AFTER_HEAD:{cs(this,ge);break}case An.TEXT:{this._insertCharacters(ge);break}case An.IN_TABLE:case An.IN_TABLE_BODY:case An.IN_ROW:{Pr(this,ge);break}case An.IN_COLUMN_GROUP:{uc(this,ge);break}case An.AFTER_BODY:{Wu(this,ge);break}case An.AFTER_AFTER_BODY:{xe(this,ge);break}default:}}onComment(ge){if(this.skipNextNewLine=!1,this.currentNotInHTML){so(this,ge);return}switch(this.insertionMode){case An.INITIAL:case An.BEFORE_HTML:case An.BEFORE_HEAD:case An.IN_HEAD:case An.IN_HEAD_NO_SCRIPT:case An.AFTER_HEAD:case An.IN_BODY:case An.IN_TABLE:case An.IN_CAPTION:case An.IN_COLUMN_GROUP:case An.IN_TABLE_BODY:case An.IN_ROW:case An.IN_CELL:case An.IN_SELECT:case An.IN_SELECT_IN_TABLE:case An.IN_TEMPLATE:case An.IN_FRAMESET:case An.AFTER_FRAMESET:{so(this,ge);break}case An.IN_TABLE_TEXT:{Cu(this,ge);break}case An.AFTER_BODY:{Yt(this,ge);break}case An.AFTER_AFTER_BODY:case An.AFTER_AFTER_FRAMESET:{Pi(this,ge);break}default:}}onDoctype(ge){switch(this.skipNextNewLine=!1,this.insertionMode){case An.INITIAL:{xr(this,ge);break}case An.BEFORE_HEAD:case An.IN_HEAD:case An.IN_HEAD_NO_SCRIPT:case An.AFTER_HEAD:{this._err(ge,Mn.misplacedDoctype);break}case An.IN_TABLE_TEXT:{Cu(this,ge);break}default:}}onStartTag(ge){this.skipNextNewLine=!1,this.currentToken=ge,this._processStartTag(ge),ge.selfClosing&&!ge.ackSelfClosing&&this._err(ge,Mn.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(ge){this.shouldProcessStartTagTokenInForeignContent(ge)?Et(this,ge):this._startTagOutsideForeignContent(ge)}_startTagOutsideForeignContent(ge){switch(this.insertionMode){case An.INITIAL:{Qr(this,ge);break}case An.BEFORE_HTML:{Yr(this,ge);break}case An.BEFORE_HEAD:{Jo(this,ge);break}case An.IN_HEAD:{oa(this,ge);break}case An.IN_HEAD_NO_SCRIPT:{Sl(this,ge);break}case An.AFTER_HEAD:{ul(this,ge);break}case An.IN_BODY:{ko(this,ge);break}case An.IN_TABLE:{Rl(this,ge);break}case An.IN_TABLE_TEXT:{Cu(this,ge);break}case An.IN_CAPTION:{El(this,ge);break}case An.IN_COLUMN_GROUP:{xl(this,ge);break}case An.IN_TABLE_BODY:{Vu(this,ge);break}case An.IN_ROW:{dc(this,ge);break}case An.IN_CELL:{Nu(this,ge);break}case An.IN_SELECT:{mh(this,ge);break}case An.IN_SELECT_IN_TABLE:{yh(this,ge);break}case An.IN_TEMPLATE:{Mu(this,ge);break}case An.AFTER_BODY:{as(this,ge);break}case An.IN_FRAMESET:{fs(this,ge);break}case An.AFTER_FRAMESET:{ud(this,ge);break}case An.AFTER_AFTER_BODY:{Fs(this,ge);break}case An.AFTER_AFTER_FRAMESET:{je(this,ge);break}default:}}onEndTag(ge){this.skipNextNewLine=!1,this.currentToken=ge,this.currentNotInHTML?Rt(this,ge):this._endTagOutsideForeignContent(ge)}_endTagOutsideForeignContent(ge){switch(this.insertionMode){case An.INITIAL:{Qr(this,ge);break}case An.BEFORE_HTML:{ur(this,ge);break}case An.BEFORE_HEAD:{Io(this,ge);break}case An.IN_HEAD:{ms(this,ge);break}case An.IN_HEAD_NO_SCRIPT:{ll(this,ge);break}case An.AFTER_HEAD:{Ol(this,ge);break}case An.IN_BODY:{$o(this,ge);break}case An.TEXT:{ho(this,ge);break}case An.IN_TABLE:{To(this,ge);break}case An.IN_TABLE_TEXT:{Cu(this,ge);break}case An.IN_CAPTION:{Yu(this,ge);break}case An.IN_COLUMN_GROUP:{du(this,ge);break}case An.IN_TABLE_BODY:{cc(this,ge);break}case An.IN_ROW:{hu(this,ge);break}case An.IN_CELL:{ld(this,ge);break}case An.IN_SELECT:{vh(this,ge);break}case An.IN_SELECT_IN_TABLE:{Ia(this,ge);break}case An.IN_TEMPLATE:{Ko(this,ge);break}case An.AFTER_BODY:{ts(this,ge);break}case An.IN_FRAMESET:{Pu(this,ge);break}case An.AFTER_FRAMESET:{cd(this,ge);break}case An.AFTER_AFTER_BODY:{xe(this,ge);break}default:}}onEof(ge){switch(this.insertionMode){case An.INITIAL:{Qr(this,ge);break}case An.BEFORE_HTML:{yo(this,ge);break}case An.BEFORE_HEAD:{Wo(this,ge);break}case An.IN_HEAD:{Aa(this,ge);break}case An.IN_HEAD_NO_SCRIPT:{vs(this,ge);break}case An.AFTER_HEAD:{cs(this,ge);break}case An.IN_BODY:case An.IN_TABLE:case An.IN_CAPTION:case An.IN_COLUMN_GROUP:case An.IN_TABLE_BODY:case An.IN_ROW:case An.IN_CELL:case An.IN_SELECT:case An.IN_SELECT_IN_TABLE:{va(this,ge);break}case An.TEXT:{lc(this,ge);break}case An.IN_TABLE_TEXT:{Cu(this,ge);break}case An.IN_TEMPLATE:{Xa(this,ge);break}case An.AFTER_BODY:case An.IN_FRAMESET:case An.AFTER_FRAMESET:case An.AFTER_AFTER_BODY:case An.AFTER_AFTER_FRAMESET:{Ki(this,ge);break}default:}}onWhitespaceCharacter(ge){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,ge.chars.charCodeAt(0)===mt.LINE_FEED)){if(ge.chars.length===1)return;ge.chars=ge.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(ge);return}switch(this.insertionMode){case An.IN_HEAD:case An.IN_HEAD_NO_SCRIPT:case An.AFTER_HEAD:case An.TEXT:case An.IN_COLUMN_GROUP:case An.IN_SELECT:case An.IN_SELECT_IN_TABLE:case An.IN_FRAMESET:case An.AFTER_FRAMESET:{this._insertCharacters(ge);break}case An.IN_BODY:case An.IN_CAPTION:case An.IN_CELL:case An.IN_TEMPLATE:case An.AFTER_BODY:case An.AFTER_AFTER_BODY:case An.AFTER_AFTER_FRAMESET:{Ds(this,ge);break}case An.IN_TABLE:case An.IN_TABLE_BODY:case An.IN_ROW:{Pr(this,ge);break}case An.IN_TABLE_TEXT:{Ac(this,ge);break}default:}}}function Xs(ue,ge){let Ye=ue.activeFormattingElements.getElementEntryInScopeWithTagName(ge.tagName);return Ye?ue.openElements.contains(Ye.element)?ue.openElements.hasInScope(ge.tagID)||(Ye=null):(ue.activeFormattingElements.removeEntry(Ye),Ye=null):Xo(ue,ge),Ye}function ps(ue,ge){let Ye=null,Ot=ue.openElements.stackTop;for(;Ot>=0;Ot--){const zn=ue.openElements.items[Ot];if(zn===ge.element)break;ue._isSpecialElement(zn,ue.openElements.tagIDs[Ot])&&(Ye=zn)}return Ye||(ue.openElements.shortenToLength(Ot<0?0:Ot),ue.activeFormattingElements.removeEntry(ge)),Ye}function cr(ue,ge,Ye){let Ot=ge,zn=ue.openElements.getCommonAncestor(ge);for(let bi=0,Vi=zn;Vi!==Ye;bi++,Vi=zn){zn=ue.openElements.getCommonAncestor(Vi);const jr=ue.activeFormattingElements.getElementEntry(Vi),ro=jr&&bi>=lu;!jr||ro?(ro&&ue.activeFormattingElements.removeEntry(jr),ue.openElements.remove(Vi)):(Vi=Pa(ue,jr),Ot===ge&&(ue.activeFormattingElements.bookmark=jr),ue.treeAdapter.detachNode(Ot),ue.treeAdapter.appendChild(Vi,Ot),Ot=Vi)}return Ot}function Pa(ue,ge){const Ye=ue.treeAdapter.getNamespaceURI(ge.element),Ot=ue.treeAdapter.createElement(ge.token.tagName,Ye,ge.token.attrs);return ue.openElements.replace(ge.element,Ot),ge.element=Ot,Ot}function Dl(ue,ge,Ye){const Ot=ue.treeAdapter.getTagName(ge),zn=hi(Ot);if(ue._isElementCausesFosterParenting(zn))ue._fosterParentElement(Ye);else{const bi=ue.treeAdapter.getNamespaceURI(ge);zn===_e.TEMPLATE&&bi===zt.HTML&&(ge=ue.treeAdapter.getTemplateContent(ge)),ue.treeAdapter.appendChild(ge,Ye)}}function is(ue,ge,Ye){const Ot=ue.treeAdapter.getNamespaceURI(Ye.element),{token:zn}=Ye,bi=ue.treeAdapter.createElement(zn.tagName,Ot,zn.attrs);ue._adoptNodes(ge,bi),ue.treeAdapter.appendChild(ge,bi),ue.activeFormattingElements.insertElementAfterBookmark(bi,zn),ue.activeFormattingElements.removeEntry(Ye),ue.openElements.remove(Ye.element),ue.openElements.insertAfter(ge,bi,zn.tagID)}function Kr(ue,ge){for(let Ye=0;Ye<Lo;Ye++){const Ot=Xs(ue,ge);if(!Ot)break;const zn=ps(ue,Ot);if(!zn)break;ue.activeFormattingElements.bookmark=Ot;const bi=cr(ue,zn,Ot.element),Vi=ue.openElements.getCommonAncestor(Ot.element);ue.treeAdapter.detachNode(bi),Vi&&Dl(ue,Vi,bi),is(ue,zn,Ot)}}function so(ue,ge){ue._appendCommentNode(ge,ue.openElements.currentTmplContentOrNode)}function Yt(ue,ge){ue._appendCommentNode(ge,ue.openElements.items[0])}function Pi(ue,ge){ue._appendCommentNode(ge,ue.document)}function Ki(ue,ge){if(ue.stopped=!0,ge.location){const Ye=ue.fragmentContext?0:2;for(let Ot=ue.openElements.stackTop;Ot>=Ye;Ot--)ue._setEndLocation(ue.openElements.items[Ot],ge);if(!ue.fragmentContext&&ue.openElements.stackTop>=0){const Ot=ue.openElements.items[0],zn=ue.treeAdapter.getNodeSourceCodeLocation(Ot);if(zn&&!zn.endTag&&(ue._setEndLocation(Ot,ge),ue.openElements.stackTop>=1)){const bi=ue.openElements.items[1],Vi=ue.treeAdapter.getNodeSourceCodeLocation(bi);Vi&&!Vi.endTag&&ue._setEndLocation(bi,ge)}}}}function xr(ue,ge){ue._setDocumentType(ge);const Ye=ge.forceQuirks?vi.QUIRKS:ar(ge);hr(ge)||ue._err(ge,Mn.nonConformingDoctype),ue.treeAdapter.setDocumentMode(ue.document,Ye),ue.insertionMode=An.BEFORE_HTML}function Qr(ue,ge){ue._err(ge,Mn.missingDoctype,!0),ue.treeAdapter.setDocumentMode(ue.document,vi.QUIRKS),ue.insertionMode=An.BEFORE_HTML,ue._processToken(ge)}function Yr(ue,ge){ge.tagID===_e.HTML?(ue._insertElement(ge,zt.HTML),ue.insertionMode=An.BEFORE_HEAD):yo(ue,ge)}function ur(ue,ge){const Ye=ge.tagID;(Ye===_e.HTML||Ye===_e.HEAD||Ye===_e.BODY||Ye===_e.BR)&&yo(ue,ge)}function yo(ue,ge){ue._insertFakeRootElement(),ue.insertionMode=An.BEFORE_HEAD,ue._processToken(ge)}function Jo(ue,ge){switch(ge.tagID){case _e.HTML:{ko(ue,ge);break}case _e.HEAD:{ue._insertElement(ge,zt.HTML),ue.headElement=ue.openElements.current,ue.insertionMode=An.IN_HEAD;break}default:Wo(ue,ge)}}function Io(ue,ge){const Ye=ge.tagID;Ye===_e.HEAD||Ye===_e.BODY||Ye===_e.HTML||Ye===_e.BR?Wo(ue,ge):ue._err(ge,Mn.endTagWithoutMatchingOpenElement)}function Wo(ue,ge){ue._insertFakeElement(nn.HEAD,_e.HEAD),ue.headElement=ue.openElements.current,ue.insertionMode=An.IN_HEAD,ue._processToken(ge)}function oa(ue,ge){switch(ge.tagID){case _e.HTML:{ko(ue,ge);break}case _e.BASE:case _e.BASEFONT:case _e.BGSOUND:case _e.LINK:case _e.META:{ue._appendElement(ge,zt.HTML),ge.ackSelfClosing=!0;break}case _e.TITLE:{ue._switchToTextParsing(ge,$i.RCDATA);break}case _e.NOSCRIPT:{ue.options.scriptingEnabled?ue._switchToTextParsing(ge,$i.RAWTEXT):(ue._insertElement(ge,zt.HTML),ue.insertionMode=An.IN_HEAD_NO_SCRIPT);break}case _e.NOFRAMES:case _e.STYLE:{ue._switchToTextParsing(ge,$i.RAWTEXT);break}case _e.SCRIPT:{ue._switchToTextParsing(ge,$i.SCRIPT_DATA);break}case _e.TEMPLATE:{ue._insertTemplate(ge),ue.activeFormattingElements.insertMarker(),ue.framesetOk=!1,ue.insertionMode=An.IN_TEMPLATE,ue.tmplInsertionModeStack.unshift(An.IN_TEMPLATE);break}case _e.HEAD:{ue._err(ge,Mn.misplacedStartTagForHeadElement);break}default:Aa(ue,ge)}}function ms(ue,ge){switch(ge.tagID){case _e.HEAD:{ue.openElements.pop(),ue.insertionMode=An.AFTER_HEAD;break}case _e.BODY:case _e.BR:case _e.HTML:{Aa(ue,ge);break}case _e.TEMPLATE:{Zo(ue,ge);break}default:ue._err(ge,Mn.endTagWithoutMatchingOpenElement)}}function Zo(ue,ge){ue.openElements.tmplCount>0?(ue.openElements.generateImpliedEndTagsThoroughly(),ue.openElements.currentTagId!==_e.TEMPLATE&&ue._err(ge,Mn.closingOfElementWithOpenChildElements),ue.openElements.popUntilTagNamePopped(_e.TEMPLATE),ue.activeFormattingElements.clearToLastMarker(),ue.tmplInsertionModeStack.shift(),ue._resetInsertionMode()):ue._err(ge,Mn.endTagWithoutMatchingOpenElement)}function Aa(ue,ge){ue.openElements.pop(),ue.insertionMode=An.AFTER_HEAD,ue._processToken(ge)}function Sl(ue,ge){switch(ge.tagID){case _e.HTML:{ko(ue,ge);break}case _e.BASEFONT:case _e.BGSOUND:case _e.HEAD:case _e.LINK:case _e.META:case _e.NOFRAMES:case _e.STYLE:{oa(ue,ge);break}case _e.NOSCRIPT:{ue._err(ge,Mn.nestedNoscriptInHead);break}default:vs(ue,ge)}}function ll(ue,ge){switch(ge.tagID){case _e.NOSCRIPT:{ue.openElements.pop(),ue.insertionMode=An.IN_HEAD;break}case _e.BR:{vs(ue,ge);break}default:ue._err(ge,Mn.endTagWithoutMatchingOpenElement)}}function vs(ue,ge){const Ye=ge.type===fi.EOF?Mn.openElementsLeftAfterEof:Mn.disallowedContentInNoscriptInHead;ue._err(ge,Ye),ue.openElements.pop(),ue.insertionMode=An.IN_HEAD,ue._processToken(ge)}function ul(ue,ge){switch(ge.tagID){case _e.HTML:{ko(ue,ge);break}case _e.BODY:{ue._insertElement(ge,zt.HTML),ue.framesetOk=!1,ue.insertionMode=An.IN_BODY;break}case _e.FRAMESET:{ue._insertElement(ge,zt.HTML),ue.insertionMode=An.IN_FRAMESET;break}case _e.BASE:case _e.BASEFONT:case _e.BGSOUND:case _e.LINK:case _e.META:case _e.NOFRAMES:case _e.SCRIPT:case _e.STYLE:case _e.TEMPLATE:case _e.TITLE:{ue._err(ge,Mn.abandonedHeadElementChild),ue.openElements.push(ue.headElement,_e.HEAD),oa(ue,ge),ue.openElements.remove(ue.headElement);break}case _e.HEAD:{ue._err(ge,Mn.misplacedStartTagForHeadElement);break}default:cs(ue,ge)}}function Ol(ue,ge){switch(ge.tagID){case _e.BODY:case _e.HTML:case _e.BR:{cs(ue,ge);break}case _e.TEMPLATE:{Zo(ue,ge);break}default:ue._err(ge,Mn.endTagWithoutMatchingOpenElement)}}function cs(ue,ge){ue._insertFakeElement(nn.BODY,_e.BODY),ue.insertionMode=An.IN_BODY,Ts(ue,ge)}function Ts(ue,ge){switch(ge.type){case fi.CHARACTER:{Hu(ue,ge);break}case fi.WHITESPACE_CHARACTER:{Ds(ue,ge);break}case fi.COMMENT:{so(ue,ge);break}case fi.START_TAG:{ko(ue,ge);break}case fi.END_TAG:{$o(ue,ge);break}case fi.EOF:{va(ue,ge);break}default:}}function Ds(ue,ge){ue._reconstructActiveFormattingElements(),ue._insertCharacters(ge)}function Hu(ue,ge){ue._reconstructActiveFormattingElements(),ue._insertCharacters(ge),ue.framesetOk=!1}function xc(ue,ge){ue.openElements.tmplCount===0&&ue.treeAdapter.adoptAttributes(ue.openElements.items[0],ge.attrs)}function bc(ue,ge){const Ye=ue.openElements.tryPeekProperlyNestedBodyElement();Ye&&ue.openElements.tmplCount===0&&(ue.framesetOk=!1,ue.treeAdapter.adoptAttributes(Ye,ge.attrs))}function Ca(ue,ge){const Ye=ue.openElements.tryPeekProperlyNestedBodyElement();ue.framesetOk&&Ye&&(ue.treeAdapter.detachNode(Ye),ue.openElements.popAllUpToHtmlElement(),ue._insertElement(ge,zt.HTML),ue.insertionMode=An.IN_FRAMESET)}function ad(ue,ge){ue.openElements.hasInButtonScope(_e.P)&&ue._closePElement(),ue._insertElement(ge,zt.HTML)}function wc(ue,ge){ue.openElements.hasInButtonScope(_e.P)&&ue._closePElement(),Qi.has(ue.openElements.currentTagId)&&ue.openElements.pop(),ue._insertElement(ge,zt.HTML)}function oc(ue,ge){ue.openElements.hasInButtonScope(_e.P)&&ue._closePElement(),ue._insertElement(ge,zt.HTML),ue.skipNextNewLine=!0,ue.framesetOk=!1}function Gu(ue,ge){const Ye=ue.openElements.tmplCount>0;(!ue.formElement||Ye)&&(ue.openElements.hasInButtonScope(_e.P)&&ue._closePElement(),ue._insertElement(ge,zt.HTML),Ye||(ue.formElement=ue.openElements.current))}function rs(ue,ge){ue.framesetOk=!1;const Ye=ge.tagID;for(let Ot=ue.openElements.stackTop;Ot>=0;Ot--){const zn=ue.openElements.tagIDs[Ot];if(Ye===_e.LI&&zn===_e.LI||(Ye===_e.DD||Ye===_e.DT)&&(zn===_e.DD||zn===_e.DT)){ue.openElements.generateImpliedEndTagsWithExclusion(zn),ue.openElements.popUntilTagNamePopped(zn);break}if(zn!==_e.ADDRESS&&zn!==_e.DIV&&zn!==_e.P&&ue._isSpecialElement(ue.openElements.items[Ot],zn))break}ue.openElements.hasInButtonScope(_e.P)&&ue._closePElement(),ue._insertElement(ge,zt.HTML)}function ds(ue,ge){ue.openElements.hasInButtonScope(_e.P)&&ue._closePElement(),ue._insertElement(ge,zt.HTML),ue.tokenizer.state=$i.PLAINTEXT}function _a(ue,ge){ue.openElements.hasInScope(_e.BUTTON)&&(ue.openElements.generateImpliedEndTags(),ue.openElements.popUntilTagNamePopped(_e.BUTTON)),ue._reconstructActiveFormattingElements(),ue._insertElement(ge,zt.HTML),ue.framesetOk=!1}function Ya(ue,ge){const Ye=ue.activeFormattingElements.getElementEntryInScopeWithTagName(nn.A);Ye&&(Kr(ue,ge),ue.openElements.remove(Ye.element),ue.activeFormattingElements.removeEntry(Ye)),ue._reconstructActiveFormattingElements(),ue._insertElement(ge,zt.HTML),ue.activeFormattingElements.pushElement(ue.openElements.current,ge)}function Yo(ue,ge){ue._reconstructActiveFormattingElements(),ue._insertElement(ge,zt.HTML),ue.activeFormattingElements.pushElement(ue.openElements.current,ge)}function xo(ue,ge){ue._reconstructActiveFormattingElements(),ue.openElements.hasInScope(_e.NOBR)&&(Kr(ue,ge),ue._reconstructActiveFormattingElements()),ue._insertElement(ge,zt.HTML),ue.activeFormattingElements.pushElement(ue.openElements.current,ge)}function Fo(ue,ge){ue._reconstructActiveFormattingElements(),ue._insertElement(ge,zt.HTML),ue.activeFormattingElements.insertMarker(),ue.framesetOk=!1}function hs(ue,ge){ue.treeAdapter.getDocumentMode(ue.document)!==vi.QUIRKS&&ue.openElements.hasInButtonScope(_e.P)&&ue._closePElement(),ue._insertElement(ge,zt.HTML),ue.framesetOk=!1,ue.insertionMode=An.IN_TABLE}function La(ue,ge){ue._reconstructActiveFormattingElements(),ue._appendElement(ge,zt.HTML),ue.framesetOk=!1,ge.ackSelfClosing=!0}function Ka(ue){const ge=wi(ue,xn.TYPE);return ge!=null&&ge.toLowerCase()===yl}function ir(ue,ge){ue._reconstructActiveFormattingElements(),ue._appendElement(ge,zt.HTML),Ka(ge)||(ue.framesetOk=!1),ge.ackSelfClosing=!0}function cl(ue,ge){ue._appendElement(ge,zt.HTML),ge.ackSelfClosing=!0}function Bt(ue,ge){ue.openElements.hasInButtonScope(_e.P)&&ue._closePElement(),ue._appendElement(ge,zt.HTML),ue.framesetOk=!1,ge.ackSelfClosing=!0}function Kn(ue,ge){ge.tagName=nn.IMG,ge.tagID=_e.IMG,La(ue,ge)}function uu(ue,ge){ue._insertElement(ge,zt.HTML),ue.skipNextNewLine=!0,ue.tokenizer.state=$i.RCDATA,ue.originalInsertionMode=ue.insertionMode,ue.framesetOk=!1,ue.insertionMode=An.TEXT}function ac(ue,ge){ue.openElements.hasInButtonScope(_e.P)&&ue._closePElement(),ue._reconstructActiveFormattingElements(),ue.framesetOk=!1,ue._switchToTextParsing(ge,$i.RAWTEXT)}function Js(ue,ge){ue.framesetOk=!1,ue._switchToTextParsing(ge,$i.RAWTEXT)}function Wl(ue,ge){ue._switchToTextParsing(ge,$i.RAWTEXT)}function sc(ue,ge){ue._reconstructActiveFormattingElements(),ue._insertElement(ge,zt.HTML),ue.framesetOk=!1,ue.insertionMode=ue.insertionMode===An.IN_TABLE||ue.insertionMode===An.IN_CAPTION||ue.insertionMode===An.IN_TABLE_BODY||ue.insertionMode===An.IN_ROW||ue.insertionMode===An.IN_CELL?An.IN_SELECT_IN_TABLE:An.IN_SELECT}function Yc(ue,ge){ue.openElements.currentTagId===_e.OPTION&&ue.openElements.pop(),ue._reconstructActiveFormattingElements(),ue._insertElement(ge,zt.HTML)}function Vc(ue,ge){ue.openElements.hasInScope(_e.RUBY)&&ue.openElements.generateImpliedEndTags(),ue._insertElement(ge,zt.HTML)}function ma(ue,ge){ue.openElements.hasInScope(_e.RUBY)&&ue.openElements.generateImpliedEndTagsWithExclusion(_e.RTC),ue._insertElement(ge,zt.HTML)}function Br(ue,ge){ue._reconstructActiveFormattingElements(),Sa(ge),es(ge),ge.selfClosing?ue._appendElement(ge,zt.MATHML):ue._insertElement(ge,zt.MATHML),ge.ackSelfClosing=!0}function os(ue,ge){ue._reconstructActiveFormattingElements(),aa(ge),es(ge),ge.selfClosing?ue._appendElement(ge,zt.SVG):ue._insertElement(ge,zt.SVG),ge.ackSelfClosing=!0}function As(ue,ge){ue._reconstructActiveFormattingElements(),ue._insertElement(ge,zt.HTML)}function ko(ue,ge){switch(ge.tagID){case _e.I:case _e.S:case _e.B:case _e.U:case _e.EM:case _e.TT:case _e.BIG:case _e.CODE:case _e.FONT:case _e.SMALL:case _e.STRIKE:case _e.STRONG:{Yo(ue,ge);break}case _e.A:{Ya(ue,ge);break}case _e.H1:case _e.H2:case _e.H3:case _e.H4:case _e.H5:case _e.H6:{wc(ue,ge);break}case _e.P:case _e.DL:case _e.OL:case _e.UL:case _e.DIV:case _e.DIR:case _e.NAV:case _e.MAIN:case _e.MENU:case _e.ASIDE:case _e.CENTER:case _e.FIGURE:case _e.FOOTER:case _e.HEADER:case _e.HGROUP:case _e.DIALOG:case _e.DETAILS:case _e.ADDRESS:case _e.ARTICLE:case _e.SEARCH:case _e.SECTION:case _e.SUMMARY:case _e.FIELDSET:case _e.BLOCKQUOTE:case _e.FIGCAPTION:{ad(ue,ge);break}case _e.LI:case _e.DD:case _e.DT:{rs(ue,ge);break}case _e.BR:case _e.IMG:case _e.WBR:case _e.AREA:case _e.EMBED:case _e.KEYGEN:{La(ue,ge);break}case _e.HR:{Bt(ue,ge);break}case _e.RB:case _e.RTC:{Vc(ue,ge);break}case _e.RT:case _e.RP:{ma(ue,ge);break}case _e.PRE:case _e.LISTING:{oc(ue,ge);break}case _e.XMP:{ac(ue,ge);break}case _e.SVG:{os(ue,ge);break}case _e.HTML:{xc(ue,ge);break}case _e.BASE:case _e.LINK:case _e.META:case _e.STYLE:case _e.TITLE:case _e.SCRIPT:case _e.BGSOUND:case _e.BASEFONT:case _e.TEMPLATE:{oa(ue,ge);break}case _e.BODY:{bc(ue,ge);break}case _e.FORM:{Gu(ue,ge);break}case _e.NOBR:{xo(ue,ge);break}case _e.MATH:{Br(ue,ge);break}case _e.TABLE:{hs(ue,ge);break}case _e.INPUT:{ir(ue,ge);break}case _e.PARAM:case _e.TRACK:case _e.SOURCE:{cl(ue,ge);break}case _e.IMAGE:{Kn(ue,ge);break}case _e.BUTTON:{_a(ue,ge);break}case _e.APPLET:case _e.OBJECT:case _e.MARQUEE:{Fo(ue,ge);break}case _e.IFRAME:{Js(ue,ge);break}case _e.SELECT:{sc(ue,ge);break}case _e.OPTION:case _e.OPTGROUP:{Yc(ue,ge);break}case _e.NOEMBED:case _e.NOFRAMES:{Wl(ue,ge);break}case _e.FRAMESET:{Ca(ue,ge);break}case _e.TEXTAREA:{uu(ue,ge);break}case _e.NOSCRIPT:{ue.options.scriptingEnabled?Wl(ue,ge):As(ue,ge);break}case _e.PLAINTEXT:{ds(ue,ge);break}case _e.COL:case _e.TH:case _e.TD:case _e.TR:case _e.HEAD:case _e.FRAME:case _e.TBODY:case _e.TFOOT:case _e.THEAD:case _e.CAPTION:case _e.COLGROUP:break;default:As(ue,ge)}}function po(ue,ge){if(ue.openElements.hasInScope(_e.BODY)&&(ue.insertionMode=An.AFTER_BODY,ue.options.sourceCodeLocationInfo)){const Ye=ue.openElements.tryPeekProperlyNestedBodyElement();Ye&&ue._setEndLocation(Ye,ge)}}function ja(ue,ge){ue.openElements.hasInScope(_e.BODY)&&(ue.insertionMode=An.AFTER_BODY,ts(ue,ge))}function Os(ue,ge){const Ye=ge.tagID;ue.openElements.hasInScope(Ye)&&(ue.openElements.generateImpliedEndTags(),ue.openElements.popUntilTagNamePopped(Ye))}function ta(ue){const ge=ue.openElements.tmplCount>0,{formElement:Ye}=ue;ge||(ue.formElement=null),(Ye||ge)&&ue.openElements.hasInScope(_e.FORM)&&(ue.openElements.generateImpliedEndTags(),ge?ue.openElements.popUntilTagNamePopped(_e.FORM):Ye&&ue.openElements.remove(Ye))}function qs(ue){ue.openElements.hasInButtonScope(_e.P)||ue._insertFakeElement(nn.P,_e.P),ue._closePElement()}function Qa(ue){ue.openElements.hasInListItemScope(_e.LI)&&(ue.openElements.generateImpliedEndTagsWithExclusion(_e.LI),ue.openElements.popUntilTagNamePopped(_e.LI))}function Tu(ue,ge){const Ye=ge.tagID;ue.openElements.hasInScope(Ye)&&(ue.openElements.generateImpliedEndTagsWithExclusion(Ye),ue.openElements.popUntilTagNamePopped(Ye))}function Oo(ue){ue.openElements.hasNumberedHeaderInScope()&&(ue.openElements.generateImpliedEndTags(),ue.openElements.popUntilNumberedHeaderPopped())}function ys(ue,ge){const Ye=ge.tagID;ue.openElements.hasInScope(Ye)&&(ue.openElements.generateImpliedEndTags(),ue.openElements.popUntilTagNamePopped(Ye),ue.activeFormattingElements.clearToLastMarker())}function wo(ue){ue._reconstructActiveFormattingElements(),ue._insertFakeElement(nn.BR,_e.BR),ue.openElements.pop(),ue.framesetOk=!1}function Xo(ue,ge){const Ye=ge.tagName,Ot=ge.tagID;for(let zn=ue.openElements.stackTop;zn>0;zn--){const bi=ue.openElements.items[zn],Vi=ue.openElements.tagIDs[zn];if(Ot===Vi&&(Ot!==_e.UNKNOWN||ue.treeAdapter.getTagName(bi)===Ye)){ue.openElements.generateImpliedEndTagsWithExclusion(Ot),ue.openElements.stackTop>=zn&&ue.openElements.shortenToLength(zn);break}if(ue._isSpecialElement(bi,Vi))break}}function $o(ue,ge){switch(ge.tagID){case _e.A:case _e.B:case _e.I:case _e.S:case _e.U:case _e.EM:case _e.TT:case _e.BIG:case _e.CODE:case _e.FONT:case _e.NOBR:case _e.SMALL:case _e.STRIKE:case _e.STRONG:{Kr(ue,ge);break}case _e.P:{qs(ue);break}case _e.DL:case _e.UL:case _e.OL:case _e.DIR:case _e.DIV:case _e.NAV:case _e.PRE:case _e.MAIN:case _e.MENU:case _e.ASIDE:case _e.BUTTON:case _e.CENTER:case _e.FIGURE:case _e.FOOTER:case _e.HEADER:case _e.HGROUP:case _e.DIALOG:case _e.ADDRESS:case _e.ARTICLE:case _e.DETAILS:case _e.SEARCH:case _e.SECTION:case _e.SUMMARY:case _e.LISTING:case _e.FIELDSET:case _e.BLOCKQUOTE:case _e.FIGCAPTION:{Os(ue,ge);break}case _e.LI:{Qa(ue);break}case _e.DD:case _e.DT:{Tu(ue,ge);break}case _e.H1:case _e.H2:case _e.H3:case _e.H4:case _e.H5:case _e.H6:{Oo(ue);break}case _e.BR:{wo(ue);break}case _e.BODY:{po(ue,ge);break}case _e.HTML:{ja(ue,ge);break}case _e.FORM:{ta(ue);break}case _e.APPLET:case _e.OBJECT:case _e.MARQUEE:{ys(ue,ge);break}case _e.TEMPLATE:{Zo(ue,ge);break}default:Xo(ue,ge)}}function va(ue,ge){ue.tmplInsertionModeStack.length>0?Xa(ue,ge):Ki(ue,ge)}function ho(ue,ge){var Ye;ge.tagID===_e.SCRIPT&&((Ye=ue.scriptHandler)===null||Ye===void 0||Ye.call(ue,ue.openElements.current)),ue.openElements.pop(),ue.insertionMode=ue.originalInsertionMode}function lc(ue,ge){ue._err(ge,Mn.eofInElementThatCanContainOnlyText),ue.openElements.pop(),ue.insertionMode=ue.originalInsertionMode,ue.onEof(ge)}function Pr(ue,ge){if(ca.has(ue.openElements.currentTagId))switch(ue.pendingCharacterTokens.length=0,ue.hasNonWhitespacePendingCharacterToken=!1,ue.originalInsertionMode=ue.insertionMode,ue.insertionMode=An.IN_TABLE_TEXT,ge.type){case fi.CHARACTER:{cu(ue,ge);break}case fi.WHITESPACE_CHARACTER:{Ac(ue,ge);break}}else Rs(ue,ge)}function gh(ue,ge){ue.openElements.clearBackToTableContext(),ue.activeFormattingElements.insertMarker(),ue._insertElement(ge,zt.HTML),ue.insertionMode=An.IN_CAPTION}function Co(ue,ge){ue.openElements.clearBackToTableContext(),ue._insertElement(ge,zt.HTML),ue.insertionMode=An.IN_COLUMN_GROUP}function ph(ue,ge){ue.openElements.clearBackToTableContext(),ue._insertFakeElement(nn.COLGROUP,_e.COLGROUP),ue.insertionMode=An.IN_COLUMN_GROUP,xl(ue,ge)}function Tc(ue,ge){ue.openElements.clearBackToTableContext(),ue._insertElement(ge,zt.HTML),ue.insertionMode=An.IN_TABLE_BODY}function Au(ue,ge){ue.openElements.clearBackToTableContext(),ue._insertFakeElement(nn.TBODY,_e.TBODY),ue.insertionMode=An.IN_TABLE_BODY,Vu(ue,ge)}function Bd(ue,ge){ue.openElements.hasInTableScope(_e.TABLE)&&(ue.openElements.popUntilTagNamePopped(_e.TABLE),ue._resetInsertionMode(),ue._processStartTag(ge))}function sd(ue,ge){Ka(ge)?ue._appendElement(ge,zt.HTML):Rs(ue,ge),ge.ackSelfClosing=!0}function Zl(ue,ge){!ue.formElement&&ue.openElements.tmplCount===0&&(ue._insertElement(ge,zt.HTML),ue.formElement=ue.openElements.current,ue.openElements.pop())}function Rl(ue,ge){switch(ge.tagID){case _e.TD:case _e.TH:case _e.TR:{Au(ue,ge);break}case _e.STYLE:case _e.SCRIPT:case _e.TEMPLATE:{oa(ue,ge);break}case _e.COL:{ph(ue,ge);break}case _e.FORM:{Zl(ue,ge);break}case _e.TABLE:{Bd(ue,ge);break}case _e.TBODY:case _e.TFOOT:case _e.THEAD:{Tc(ue,ge);break}case _e.INPUT:{sd(ue,ge);break}case _e.CAPTION:{gh(ue,ge);break}case _e.COLGROUP:{Co(ue,ge);break}default:Rs(ue,ge)}}function To(ue,ge){switch(ge.tagID){case _e.TABLE:{ue.openElements.hasInTableScope(_e.TABLE)&&(ue.openElements.popUntilTagNamePopped(_e.TABLE),ue._resetInsertionMode());break}case _e.TEMPLATE:{Zo(ue,ge);break}case _e.BODY:case _e.CAPTION:case _e.COL:case _e.COLGROUP:case _e.HTML:case _e.TBODY:case _e.TD:case _e.TFOOT:case _e.TH:case _e.THEAD:case _e.TR:break;default:Rs(ue,ge)}}function Rs(ue,ge){const Ye=ue.fosterParentingEnabled;ue.fosterParentingEnabled=!0,Ts(ue,ge),ue.fosterParentingEnabled=Ye}function Ac(ue,ge){ue.pendingCharacterTokens.push(ge)}function cu(ue,ge){ue.pendingCharacterTokens.push(ge),ue.hasNonWhitespacePendingCharacterToken=!0}function Cu(ue,ge){let Ye=0;if(ue.hasNonWhitespacePendingCharacterToken)for(;Ye<ue.pendingCharacterTokens.length;Ye++)Rs(ue,ue.pendingCharacterTokens[Ye]);else for(;Ye<ue.pendingCharacterTokens.length;Ye++)ue._insertCharacters(ue.pendingCharacterTokens[Ye]);ue.insertionMode=ue.originalInsertionMode,ue._processToken(ge)}const Kl=new Set([_e.CAPTION,_e.COL,_e.COLGROUP,_e.TBODY,_e.TD,_e.TFOOT,_e.TH,_e.THEAD,_e.TR]);function El(ue,ge){const Ye=ge.tagID;Kl.has(Ye)?ue.openElements.hasInTableScope(_e.CAPTION)&&(ue.openElements.generateImpliedEndTags(),ue.openElements.popUntilTagNamePopped(_e.CAPTION),ue.activeFormattingElements.clearToLastMarker(),ue.insertionMode=An.IN_TABLE,Rl(ue,ge)):ko(ue,ge)}function Yu(ue,ge){const Ye=ge.tagID;switch(Ye){case _e.CAPTION:case _e.TABLE:{ue.openElements.hasInTableScope(_e.CAPTION)&&(ue.openElements.generateImpliedEndTags(),ue.openElements.popUntilTagNamePopped(_e.CAPTION),ue.activeFormattingElements.clearToLastMarker(),ue.insertionMode=An.IN_TABLE,Ye===_e.TABLE&&To(ue,ge));break}case _e.BODY:case _e.COL:case _e.COLGROUP:case _e.HTML:case _e.TBODY:case _e.TD:case _e.TFOOT:case _e.TH:case _e.THEAD:case _e.TR:break;default:$o(ue,ge)}}function xl(ue,ge){switch(ge.tagID){case _e.HTML:{ko(ue,ge);break}case _e.COL:{ue._appendElement(ge,zt.HTML),ge.ackSelfClosing=!0;break}case _e.TEMPLATE:{oa(ue,ge);break}default:uc(ue,ge)}}function du(ue,ge){switch(ge.tagID){case _e.COLGROUP:{ue.openElements.currentTagId===_e.COLGROUP&&(ue.openElements.pop(),ue.insertionMode=An.IN_TABLE);break}case _e.TEMPLATE:{Zo(ue,ge);break}case _e.COL:break;default:uc(ue,ge)}}function uc(ue,ge){ue.openElements.currentTagId===_e.COLGROUP&&(ue.openElements.pop(),ue.insertionMode=An.IN_TABLE,ue._processToken(ge))}function Vu(ue,ge){switch(ge.tagID){case _e.TR:{ue.openElements.clearBackToTableBodyContext(),ue._insertElement(ge,zt.HTML),ue.insertionMode=An.IN_ROW;break}case _e.TH:case _e.TD:{ue.openElements.clearBackToTableBodyContext(),ue._insertFakeElement(nn.TR,_e.TR),ue.insertionMode=An.IN_ROW,dc(ue,ge);break}case _e.CAPTION:case _e.COL:case _e.COLGROUP:case _e.TBODY:case _e.TFOOT:case _e.THEAD:{ue.openElements.hasTableBodyContextInTableScope()&&(ue.openElements.clearBackToTableBodyContext(),ue.openElements.pop(),ue.insertionMode=An.IN_TABLE,Rl(ue,ge));break}default:Rl(ue,ge)}}function cc(ue,ge){const Ye=ge.tagID;switch(ge.tagID){case _e.TBODY:case _e.TFOOT:case _e.THEAD:{ue.openElements.hasInTableScope(Ye)&&(ue.openElements.clearBackToTableBodyContext(),ue.openElements.pop(),ue.insertionMode=An.IN_TABLE);break}case _e.TABLE:{ue.openElements.hasTableBodyContextInTableScope()&&(ue.openElements.clearBackToTableBodyContext(),ue.openElements.pop(),ue.insertionMode=An.IN_TABLE,To(ue,ge));break}case _e.BODY:case _e.CAPTION:case _e.COL:case _e.COLGROUP:case _e.HTML:case _e.TD:case _e.TH:case _e.TR:break;default:To(ue,ge)}}function dc(ue,ge){switch(ge.tagID){case _e.TH:case _e.TD:{ue.openElements.clearBackToTableRowContext(),ue._insertElement(ge,zt.HTML),ue.insertionMode=An.IN_CELL,ue.activeFormattingElements.insertMarker();break}case _e.CAPTION:case _e.COL:case _e.COLGROUP:case _e.TBODY:case _e.TFOOT:case _e.THEAD:case _e.TR:{ue.openElements.hasInTableScope(_e.TR)&&(ue.openElements.clearBackToTableRowContext(),ue.openElements.pop(),ue.insertionMode=An.IN_TABLE_BODY,Vu(ue,ge));break}default:Rl(ue,ge)}}function hu(ue,ge){switch(ge.tagID){case _e.TR:{ue.openElements.hasInTableScope(_e.TR)&&(ue.openElements.clearBackToTableRowContext(),ue.openElements.pop(),ue.insertionMode=An.IN_TABLE_BODY);break}case _e.TABLE:{ue.openElements.hasInTableScope(_e.TR)&&(ue.openElements.clearBackToTableRowContext(),ue.openElements.pop(),ue.insertionMode=An.IN_TABLE_BODY,cc(ue,ge));break}case _e.TBODY:case _e.TFOOT:case _e.THEAD:{(ue.openElements.hasInTableScope(ge.tagID)||ue.openElements.hasInTableScope(_e.TR))&&(ue.openElements.clearBackToTableRowContext(),ue.openElements.pop(),ue.insertionMode=An.IN_TABLE_BODY,cc(ue,ge));break}case _e.BODY:case _e.CAPTION:case _e.COL:case _e.COLGROUP:case _e.HTML:case _e.TD:case _e.TH:break;default:To(ue,ge)}}function Nu(ue,ge){const Ye=ge.tagID;Kl.has(Ye)?(ue.openElements.hasInTableScope(_e.TD)||ue.openElements.hasInTableScope(_e.TH))&&(ue._closeTableCell(),dc(ue,ge)):ko(ue,ge)}function ld(ue,ge){const Ye=ge.tagID;switch(Ye){case _e.TD:case _e.TH:{ue.openElements.hasInTableScope(Ye)&&(ue.openElements.generateImpliedEndTags(),ue.openElements.popUntilTagNamePopped(Ye),ue.activeFormattingElements.clearToLastMarker(),ue.insertionMode=An.IN_ROW);break}case _e.TABLE:case _e.TBODY:case _e.TFOOT:case _e.THEAD:case _e.TR:{ue.openElements.hasInTableScope(Ye)&&(ue._closeTableCell(),hu(ue,ge));break}case _e.BODY:case _e.CAPTION:case _e.COL:case _e.COLGROUP:case _e.HTML:break;default:$o(ue,ge)}}function mh(ue,ge){switch(ge.tagID){case _e.HTML:{ko(ue,ge);break}case _e.OPTION:{ue.openElements.currentTagId===_e.OPTION&&ue.openElements.pop(),ue._insertElement(ge,zt.HTML);break}case _e.OPTGROUP:{ue.openElements.currentTagId===_e.OPTION&&ue.openElements.pop(),ue.openElements.currentTagId===_e.OPTGROUP&&ue.openElements.pop(),ue._insertElement(ge,zt.HTML);break}case _e.HR:{ue.openElements.currentTagId===_e.OPTION&&ue.openElements.pop(),ue.openElements.currentTagId===_e.OPTGROUP&&ue.openElements.pop(),ue._appendElement(ge,zt.HTML),ge.ackSelfClosing=!0;break}case _e.INPUT:case _e.KEYGEN:case _e.TEXTAREA:case _e.SELECT:{ue.openElements.hasInSelectScope(_e.SELECT)&&(ue.openElements.popUntilTagNamePopped(_e.SELECT),ue._resetInsertionMode(),ge.tagID!==_e.SELECT&&ue._processStartTag(ge));break}case _e.SCRIPT:case _e.TEMPLATE:{oa(ue,ge);break}default:}}function vh(ue,ge){switch(ge.tagID){case _e.OPTGROUP:{ue.openElements.stackTop>0&&ue.openElements.currentTagId===_e.OPTION&&ue.openElements.tagIDs[ue.openElements.stackTop-1]===_e.OPTGROUP&&ue.openElements.pop(),ue.openElements.currentTagId===_e.OPTGROUP&&ue.openElements.pop();break}case _e.OPTION:{ue.openElements.currentTagId===_e.OPTION&&ue.openElements.pop();break}case _e.SELECT:{ue.openElements.hasInSelectScope(_e.SELECT)&&(ue.openElements.popUntilTagNamePopped(_e.SELECT),ue._resetInsertionMode());break}case _e.TEMPLATE:{Zo(ue,ge);break}default:}}function yh(ue,ge){const Ye=ge.tagID;Ye===_e.CAPTION||Ye===_e.TABLE||Ye===_e.TBODY||Ye===_e.TFOOT||Ye===_e.THEAD||Ye===_e.TR||Ye===_e.TD||Ye===_e.TH?(ue.openElements.popUntilTagNamePopped(_e.SELECT),ue._resetInsertionMode(),ue._processStartTag(ge)):mh(ue,ge)}function Ia(ue,ge){const Ye=ge.tagID;Ye===_e.CAPTION||Ye===_e.TABLE||Ye===_e.TBODY||Ye===_e.TFOOT||Ye===_e.THEAD||Ye===_e.TR||Ye===_e.TD||Ye===_e.TH?ue.openElements.hasInTableScope(Ye)&&(ue.openElements.popUntilTagNamePopped(_e.SELECT),ue._resetInsertionMode(),ue.onEndTag(ge)):vh(ue,ge)}function Mu(ue,ge){switch(ge.tagID){case _e.BASE:case _e.BASEFONT:case _e.BGSOUND:case _e.LINK:case _e.META:case _e.NOFRAMES:case _e.SCRIPT:case _e.STYLE:case _e.TEMPLATE:case _e.TITLE:{oa(ue,ge);break}case _e.CAPTION:case _e.COLGROUP:case _e.TBODY:case _e.TFOOT:case _e.THEAD:{ue.tmplInsertionModeStack[0]=An.IN_TABLE,ue.insertionMode=An.IN_TABLE,Rl(ue,ge);break}case _e.COL:{ue.tmplInsertionModeStack[0]=An.IN_COLUMN_GROUP,ue.insertionMode=An.IN_COLUMN_GROUP,xl(ue,ge);break}case _e.TR:{ue.tmplInsertionModeStack[0]=An.IN_TABLE_BODY,ue.insertionMode=An.IN_TABLE_BODY,Vu(ue,ge);break}case _e.TD:case _e.TH:{ue.tmplInsertionModeStack[0]=An.IN_ROW,ue.insertionMode=An.IN_ROW,dc(ue,ge);break}default:ue.tmplInsertionModeStack[0]=An.IN_BODY,ue.insertionMode=An.IN_BODY,ko(ue,ge)}}function Ko(ue,ge){ge.tagID===_e.TEMPLATE&&Zo(ue,ge)}function Xa(ue,ge){ue.openElements.tmplCount>0?(ue.openElements.popUntilTagNamePopped(_e.TEMPLATE),ue.activeFormattingElements.clearToLastMarker(),ue.tmplInsertionModeStack.shift(),ue._resetInsertionMode(),ue.onEof(ge)):Ki(ue,ge)}function as(ue,ge){ge.tagID===_e.HTML?ko(ue,ge):Wu(ue,ge)}function ts(ue,ge){var Ye;if(ge.tagID===_e.HTML){if(ue.fragmentContext||(ue.insertionMode=An.AFTER_AFTER_BODY),ue.options.sourceCodeLocationInfo&&ue.openElements.tagIDs[0]===_e.HTML){ue._setEndLocation(ue.openElements.items[0],ge);const Ot=ue.openElements.items[1];Ot&&!(!((Ye=ue.treeAdapter.getNodeSourceCodeLocation(Ot))===null||Ye===void 0)&&Ye.endTag)&&ue._setEndLocation(Ot,ge)}}else Wu(ue,ge)}function Wu(ue,ge){ue.insertionMode=An.IN_BODY,Ts(ue,ge)}function fs(ue,ge){switch(ge.tagID){case _e.HTML:{ko(ue,ge);break}case _e.FRAMESET:{ue._insertElement(ge,zt.HTML);break}case _e.FRAME:{ue._appendElement(ge,zt.HTML),ge.ackSelfClosing=!0;break}case _e.NOFRAMES:{oa(ue,ge);break}default:}}function Pu(ue,ge){ge.tagID===_e.FRAMESET&&!ue.openElements.isRootHtmlElementCurrent()&&(ue.openElements.pop(),!ue.fragmentContext&&ue.openElements.currentTagId!==_e.FRAMESET&&(ue.insertionMode=An.AFTER_FRAMESET))}function ud(ue,ge){switch(ge.tagID){case _e.HTML:{ko(ue,ge);break}case _e.NOFRAMES:{oa(ue,ge);break}default:}}function cd(ue,ge){ge.tagID===_e.HTML&&(ue.insertionMode=An.AFTER_AFTER_FRAMESET)}function Fs(ue,ge){ge.tagID===_e.HTML?ko(ue,ge):xe(ue,ge)}function xe(ue,ge){ue.insertionMode=An.IN_BODY,Ts(ue,ge)}function je(ue,ge){switch(ge.tagID){case _e.HTML:{ko(ue,ge);break}case _e.NOFRAMES:{oa(ue,ge);break}default:}}function We(ue,ge){ge.chars=Gn,ue._insertCharacters(ge)}function et(ue,ge){ue._insertCharacters(ge),ue.framesetOk=!1}function St(ue){for(;ue.treeAdapter.getNamespaceURI(ue.openElements.current)!==zt.HTML&&!ue._isIntegrationPoint(ue.openElements.currentTagId,ue.openElements.current);)ue.openElements.pop()}function Et(ue,ge){if(Po(ge))St(ue),ue._startTagOutsideForeignContent(ge);else{const Ye=ue._getAdjustedCurrentElement(),Ot=ue.treeAdapter.getNamespaceURI(Ye);Ot===zt.MATHML?Sa(ge):Ot===zt.SVG&&(hn(ge),aa(ge)),es(ge),ge.selfClosing?ue._appendElement(ge,Ot):ue._insertElement(ge,Ot),ge.ackSelfClosing=!0}}function Rt(ue,ge){if(ge.tagID===_e.P||ge.tagID===_e.BR){St(ue),ue._endTagOutsideForeignContent(ge);return}for(let Ye=ue.openElements.stackTop;Ye>0;Ye--){const Ot=ue.openElements.items[Ye];if(ue.treeAdapter.getNamespaceURI(Ot)===zt.HTML){ue._endTagOutsideForeignContent(ge);break}const zn=ue.treeAdapter.getTagName(Ot);if(zn.toLowerCase()===ge.tagName){ge.tagName=zn,ue.openElements.shortenToLength(Ye);break}}}const Wt=/["&'<>$\x80-\uFFFF]/g,_n=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]),Un=String.prototype.codePointAt!=null?(ue,ge)=>ue.codePointAt(ge):(ue,ge)=>(ue.charCodeAt(ge)&64512)===55296?(ue.charCodeAt(ge)-55296)*1024+ue.charCodeAt(ge+1)-56320+65536:ue.charCodeAt(ge);function Sn(ue){let ge="",Ye=0,Ot;for(;(Ot=Wt.exec(ue))!==null;){const zn=Ot.index,bi=ue.charCodeAt(zn),Vi=_n.get(bi);Vi!==void 0?(ge+=ue.substring(Ye,zn)+Vi,Ye=zn+1):(ge+=`${ue.substring(Ye,zn)}&#x${Un(ue,zn).toString(16)};`,Ye=Wt.lastIndex+=+((bi&64512)===55296))}return ge+ue.substr(Ye)}const ai=null;function ei(ue,ge){return function(Ot){let zn,bi=0,Vi="";for(;zn=ue.exec(Ot);)bi!==zn.index&&(Vi+=Ot.substring(bi,zn.index)),Vi+=ge.get(zn[0].charCodeAt(0)),bi=zn.index+1;return Vi+Ot.substring(bi)}}const Ln=ei(/[&<>'"]/g,_n),Rr=ei(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),Jr=ei(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]])),uo=new Set([nn.AREA,nn.BASE,nn.BASEFONT,nn.BGSOUND,nn.BR,nn.COL,nn.EMBED,nn.FRAME,nn.HR,nn.IMG,nn.INPUT,nn.KEYGEN,nn.LINK,nn.META,nn.PARAM,nn.SOURCE,nn.TRACK,nn.WBR]);function vr(ue,ge){return ge.treeAdapter.isElementNode(ue)&&ge.treeAdapter.getNamespaceURI(ue)===NS.HTML&&uo.has(ge.treeAdapter.getTagName(ue))}const _r={treeAdapter:Lr,scriptingEnabled:!0};function Hr(ue,ge){const Ye=Mo(Mo({},_r),ge);return vr(ue,Ye)?"":la(ue,Ye)}function sa(ue,ge){const Ye=Mo(Mo({},_r),ge);return tr(ue,Ye)}function la(ue,ge){let Ye="";const Ot=ge.treeAdapter.isElementNode(ue)&&ge.treeAdapter.getTagName(ue)===$.TEMPLATE&&ge.treeAdapter.getNamespaceURI(ue)===NS.HTML?ge.treeAdapter.getTemplateContent(ue):ue,zn=ge.treeAdapter.getChildNodes(Ot);if(zn)for(const bi of zn)Ye+=tr(bi,ge);return Ye}function tr(ue,ge){return ge.treeAdapter.isElementNode(ue)?da(ue,ge):ge.treeAdapter.isTextNode(ue)?na(ue,ge):ge.treeAdapter.isCommentNode(ue)?Or(ue,ge):ge.treeAdapter.isDocumentTypeNode(ue)?Bs(ue,ge):""}function da(ue,ge){const Ye=ge.treeAdapter.getTagName(ue);return`<${Ye}${Oa(ue,ge)}>${vr(ue,ge)?"":`${la(ue,ge)}</${Ye}>`}`}function Oa(ue,{treeAdapter:ge}){let Ye="";for(const Ot of ge.getAttrList(ue)){if(Ye+=" ",Ot.namespace)switch(Ot.namespace){case NS.XML:{Ye+=`xml:${Ot.name}`;break}case NS.XMLNS:{Ot.name!=="xmlns"&&(Ye+="xmlns:"),Ye+=Ot.name;break}case NS.XLINK:{Ye+=`xlink:${Ot.name}`;break}default:Ye+=`${Ot.prefix}:${Ot.name}`}else Ye+=Ot.name;Ye+=`="${escapeAttribute(Ot.value)}"`}return Ye}function na(ue,ge){const{treeAdapter:Ye}=ge,Ot=Ye.getTextNodeContent(ue),zn=Ye.getParentNode(ue),bi=zn&&Ye.isElementNode(zn)&&Ye.getTagName(zn);return bi&&Ye.getNamespaceURI(zn)===NS.HTML&&hasUnescapedText(bi,ge.scriptingEnabled)?Ot:escapeText(Ot)}function Or(ue,{treeAdapter:ge}){return`<!--${ge.getCommentNodeContent(ue)}-->`}function Bs(ue,{treeAdapter:ge}){return`<!DOCTYPE ${ge.getDocumentTypeNodeName(ue)}>`}function Ea(ue,ge){return Parser.parse(ue,ge)}function lo(ue,ge,Ye){typeof ue=="string"&&(Ye=ge,ge=ue,ue=null);const Ot=Parser.getFragmentParser(ue,Ye);return Ot.tokenizer.write(ge,!0),Ot.getFragment()}var io=de(17970),Bo=de(10528);const ka=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,gs=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Cs={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function dl(ue,ge){const Ye=dd(ue),Ot=At("type",{handlers:{root:_s,element:bl,text:Jn,comment:Ql,doctype:Ns,raw:ss},unknown:Da}),zn={parser:Ye?new Ga(Cs):Ga.getFragmentParser(void 0,Cs),handle(jr){Ot(jr,zn)},stitches:!1,options:ge||{}};Ot(ue,zn),wl(zn,(0,io.Pk)());const bi=Ye?zn.parser.document:zn.parser.getFragment(),Vi=st(bi,{file:zn.options.file});return zn.stitches&&(0,Bo.Vn)(Vi,"comment",function(jr,ro,Si){const fr=jr;if(fr.value.stitch&&Si&&ro!==void 0){const co=Si.children;return co[ro]=fr.value.stitch,ro}}),Vi.type==="root"&&Vi.children.length===1&&Vi.children[0].type===ue.type?Vi.children[0]:Vi}function Zn(ue,ge){let Ye=-1;if(ue)for(;++Ye<ue.length;)ge.handle(ue[Ye])}function _s(ue,ge){Zn(ue.children,ge)}function bl(ue,ge){fu(ue,ge),Zn(ue.children,ge),Lu(ue,ge)}function Jn(ue,ge){ge.parser.tokenizer.state>4&&(ge.parser.tokenizer.state=0);const Ye={type:fi.CHARACTER,chars:ue.value,location:Bl(ue)};wl(ge,(0,io.Pk)(ue)),ge.parser.currentToken=Ye,ge.parser._processToken(ge.parser.currentToken)}function Ns(ue,ge){const Ye={type:fi.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Bl(ue)};wl(ge,(0,io.Pk)(ue)),ge.parser.currentToken=Ye,ge.parser._processToken(ge.parser.currentToken)}function Fl(ue,ge){ge.stitches=!0;const Ye=Zu(ue);if("children"in ue&&"children"in Ye){const Ot=dl({type:"root",children:ue.children},ge.options);Ye.children=Ot.children}Ql({type:"comment",value:{stitch:Ye}},ge)}function Ql(ue,ge){const Ye=ue.value,Ot={type:fi.COMMENT,data:Ye,location:Bl(ue)};wl(ge,(0,io.Pk)(ue)),ge.parser.currentToken=Ot,ge.parser._processToken(ge.parser.currentToken)}function ss(ue,ge){if(ge.parser.tokenizer.preprocessor.html="",ge.parser.tokenizer.preprocessor.pos=-1,ge.parser.tokenizer.preprocessor.lastGapPos=-2,ge.parser.tokenizer.preprocessor.gapStack=[],ge.parser.tokenizer.preprocessor.skipNextNewLine=!1,ge.parser.tokenizer.preprocessor.lastChunkWritten=!1,ge.parser.tokenizer.preprocessor.endOfChunkHit=!1,ge.parser.tokenizer.preprocessor.isEol=!1,Ss(ge,(0,io.Pk)(ue)),ge.parser.tokenizer.write(ge.options.tagfilter?ue.value.replace(ka,"&lt;$1$2"):ue.value,!1),ge.parser.tokenizer._runParsingLoop(),ge.parser.tokenizer.state===72||ge.parser.tokenizer.state===78){ge.parser.tokenizer.preprocessor.lastChunkWritten=!0;const Ye=ge.parser.tokenizer._consume();ge.parser.tokenizer._callState(Ye)}}function Da(ue,ge){const Ye=ue;if(ge.options.passThrough&&ge.options.passThrough.includes(Ye.type))Fl(Ye,ge);else{let Ot="";throw gs.has(Ye.type)&&(Ot=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+Ye.type+"` node"+Ot)}}function wl(ue,ge){Ss(ue,ge);const Ye=ue.parser.tokenizer.currentCharacterToken;Ye&&Ye.location&&(Ye.location.endLine=ue.parser.tokenizer.preprocessor.line,Ye.location.endCol=ue.parser.tokenizer.preprocessor.col+1,Ye.location.endOffset=ue.parser.tokenizer.preprocessor.offset+1,ue.parser.currentToken=Ye,ue.parser._processToken(ue.parser.currentToken)),ue.parser.tokenizer.paused=!1,ue.parser.tokenizer.inLoop=!1,ue.parser.tokenizer.active=!1,ue.parser.tokenizer.returnState=$i.DATA,ue.parser.tokenizer.charRefCode=-1,ue.parser.tokenizer.consumedAfterSnapshot=-1,ue.parser.tokenizer.currentLocation=null,ue.parser.tokenizer.currentCharacterToken=null,ue.parser.tokenizer.currentToken=null,ue.parser.tokenizer.currentAttr={name:"",value:""}}function Ss(ue,ge){if(ge&&ge.offset!==void 0){const Ye={startLine:ge.line,startCol:ge.column,startOffset:ge.offset,endLine:-1,endCol:-1,endOffset:-1};ue.parser.tokenizer.preprocessor.lineStartPos=-ge.column+1,ue.parser.tokenizer.preprocessor.droppedBufferSize=ge.offset,ue.parser.tokenizer.preprocessor.line=ge.line,ue.parser.tokenizer.currentLocation=Ye}}function fu(ue,ge){const Ye=ue.tagName.toLowerCase();if(ge.parser.tokenizer.state===$i.PLAINTEXT)return;wl(ge,(0,io.Pk)(ue));const Ot=ge.parser.openElements.current;let zn="namespaceURI"in Ot?Ot.namespaceURI:Je.t.html;zn===Je.t.html&&Ye==="svg"&&(zn=Je.t.svg);const bi=Ht(Nf(Mo({},ue),{children:[]}),{space:zn===Je.t.svg?"svg":"html"}),Vi={type:fi.START_TAG,tagName:Ye,tagID:hi(Ye),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in bi?bi.attrs:[],location:Bl(ue)};ge.parser.currentToken=Vi,ge.parser._processToken(ge.parser.currentToken),ge.parser.tokenizer.lastStartTagName=Ye}function Lu(ue,ge){const Ye=ue.tagName.toLowerCase();if(!ge.parser.tokenizer.inForeignNode&&Jt.includes(Ye)||ge.parser.tokenizer.state===$i.PLAINTEXT)return;wl(ge,(0,io.rb)(ue));const Ot={type:fi.END_TAG,tagName:Ye,tagID:hi(Ye),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Bl(ue)};ge.parser.currentToken=Ot,ge.parser._processToken(ge.parser.currentToken),Ye===ge.parser.tokenizer.lastStartTagName&&(ge.parser.tokenizer.state===$i.RCDATA||ge.parser.tokenizer.state===$i.RAWTEXT||ge.parser.tokenizer.state===$i.SCRIPT_DATA)&&(ge.parser.tokenizer.state=$i.DATA)}function dd(ue){const ge=ue.type==="root"?ue.children[0]:ue;return!!(ge&&(ge.type==="doctype"||ge.type==="element"&&ge.tagName.toLowerCase()==="html"))}function Bl(ue){const ge=(0,io.Pk)(ue)||{line:void 0,column:void 0,offset:void 0},Ye=(0,io.rb)(ue)||{line:void 0,column:void 0,offset:void 0};return{startLine:ge.line,startCol:ge.column,startOffset:ge.offset,endLine:Ye.line,endCol:Ye.column,endOffset:Ye.offset}}function Zu(ue){return"children"in ue?(0,Me.ZP)(Nf(Mo({},ue),{children:[]})):(0,Me.ZP)(ue)}function _d(ue){return function(ge,Ye){return dl(ge,Nf(Mo({},ue),{file:Ye}))}}},10787:function(ze,be,de){"use strict";de.d(be,{Z:function(){return Xe}});function le(vt){if(typeof vt!="string")throw new TypeError("Expected a string");return vt.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Me=de(2348),Ie=de(10502);function Pe(vt,st,_t){const Ue=_t||{},te=(0,Ie.O)(Ue.ignore||[]),ne=Ge(st);let fe=-1;for(;++fe<ne.length;)(0,Me.S4)(vt,"text",se);function se(Se,we){let De=-1,Re;for(;++De<we.length;){const Ze=we[De],nt=Re?Re.children:void 0;if(te(Ze,nt?nt.indexOf(Ze):void 0,Re))return;Re=Ze}if(Re)return pe(Se,we)}function pe(Se,we){const De=we[we.length-1],Re=ne[fe][0],Ze=ne[fe][1];let nt=0;const ft=De.children.indexOf(Se);let xt=!1,at=[];Re.lastIndex=0;let wt=Re.exec(Se.value);for(;wt;){const Mt=wt.index,Xt={index:wt.index,input:wt.input,stack:[...we,Se]};let bn=Ze(...wt,Xt);if(typeof bn=="string"&&(bn=bn.length>0?{type:"text",value:bn}:void 0),bn===!1?Re.lastIndex=Mt+1:(nt!==Mt&&at.push({type:"text",value:Se.value.slice(nt,Mt)}),Array.isArray(bn)?at.push(...bn):bn&&at.push(bn),nt=Mt+wt[0].length,xt=!0),!Re.global)break;wt=Re.exec(Se.value)}return xt?(nt<Se.value.length&&at.push({type:"text",value:Se.value.slice(nt)}),De.children.splice(ft,1,...at)):at=[Se],ft+at.length}}function Ge(vt){const st=[];if(!Array.isArray(vt))throw new TypeError("Expected find and replace tuple or list of tuples");const _t=!vt[0]||Array.isArray(vt[0])?vt:[vt];let Ue=-1;for(;++Ue<_t.length;){const te=_t[Ue];st.push([Oe(te[0]),Ve(te[1])])}return st}function Oe(vt){return typeof vt=="string"?new RegExp(le(vt),"g"):vt}function Ve(vt){return typeof vt=="function"?vt:function(){return vt}}function ot(vt){Pe(vt,[/\r?\n|\r/g,Je])}function Je(){return{type:"break"}}function Xe(){return function(vt){ot(vt)}}},30084:function(ze,be,de){"use strict";de.d(be,{Z:function(){return ne}});var le=de(87342);function Me(fe,se){const pe=String(fe);let Se=pe.indexOf(se),we=Se,De=0,Re=0;if(typeof se!="string")throw new TypeError("Expected substring");for(;Se!==-1;)Se===we?++De>Re&&(Re=De):De=1,we=Se+se.length,Se=pe.indexOf(se,we);return Re}function Ie(){return{enter:{mathFlow:fe,mathFlowFenceMeta:se,mathText:De},exit:{mathFlow:we,mathFlowFence:Se,mathFlowFenceMeta:pe,mathFlowValue:Ze,mathText:Re,mathTextData:Ze}};function fe(nt){const rt={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[rt]}},nt)}function se(){this.buffer()}function pe(){const nt=this.resume(),rt=this.stack[this.stack.length-1];(0,le.ok)(rt.type==="math"),rt.meta=nt}function Se(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function we(nt){const rt=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),ft=this.stack[this.stack.length-1];(0,le.ok)(ft.type==="math"),this.exit(nt),ft.value=rt;const xt=ft.data.hChildren[0];(0,le.ok)(xt.type==="element"),(0,le.ok)(xt.tagName==="code"),xt.children.push({type:"text",value:rt}),this.data.mathFlowInside=void 0}function De(nt){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},nt),this.buffer()}function Re(nt){const rt=this.resume(),ft=this.stack[this.stack.length-1];(0,le.ok)(ft.type==="inlineMath"),this.exit(nt),ft.value=rt,ft.data.hChildren.push({type:"text",value:rt})}function Ze(nt){this.config.enter.data.call(this,nt),this.config.exit.data.call(this,nt)}}function Pe(fe){let se=(fe||{}).singleDollarTextMath;return se==null&&(se=!0),Se.peek=we,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
`,inConstruct:"mathFlowMeta"},{character:"$",after:se?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:pe,inlineMath:Se}};function pe(De,Re,Ze,nt){const rt=De.value||"",ft=Ze.createTracker(nt),xt="$".repeat(Math.max(Me(rt,"$")+1,2)),at=Ze.enter("mathFlow");let wt=ft.move(xt);if(De.meta){const Mt=Ze.enter("mathFlowMeta");wt+=ft.move(Ze.safe(De.meta,Mo({after:`
`,before:wt,encode:["$"]},ft.current()))),Mt()}return wt+=ft.move(`
`),rt&&(wt+=ft.move(rt+`
`)),wt+=ft.move(xt),at(),wt}function Se(De,Re,Ze){let nt=De.value||"",rt=1;for(se||rt++;new RegExp("(^|[^$])"+"\\$".repeat(rt)+"([^$]|$)").test(nt);)rt++;const ft="$".repeat(rt);/[^ \r\n]/.test(nt)&&(/^[ \r\n]/.test(nt)&&/[ \r\n]$/.test(nt)||/^\$|\$$/.test(nt))&&(nt=" "+nt+" ");let xt=-1;for(;++xt<Ze.unsafe.length;){const at=Ze.unsafe[xt];if(!at.atBreak)continue;const wt=Ze.compilePattern(at);let Mt;for(;Mt=wt.exec(nt);){let Xt=Mt.index;nt.codePointAt(Xt)===10&&nt.codePointAt(Xt-1)===13&&Xt--,nt=nt.slice(0,Xt)+" "+nt.slice(Mt.index+1)}}return ft+nt+ft}function we(){return"$"}}var Ge=de(26735),Oe=de(80722);const Ve={tokenize:Je,concrete:!0,name:"mathFlow"},ot={tokenize:Xe,partial:!0};function Je(fe,se,pe){const Se=this,we=Se.events[Se.events.length-1],De=we&&we[1].type==="linePrefix"?we[2].sliceSerialize(we[1],!0).length:0;let Re=0;return Ze;function Ze(fn){return fe.enter("mathFlow"),fe.enter("mathFlowFence"),fe.enter("mathFlowFenceSequence"),nt(fn)}function nt(fn){return fn===36?(fe.consume(fn),Re++,nt):Re<2?pe(fn):(fe.exit("mathFlowFenceSequence"),(0,Ge.f)(fe,rt,"whitespace")(fn))}function rt(fn){return fn===null||(0,Oe.Ch)(fn)?xt(fn):(fe.enter("mathFlowFenceMeta"),fe.enter("chunkString",{contentType:"string"}),ft(fn))}function ft(fn){return fn===null||(0,Oe.Ch)(fn)?(fe.exit("chunkString"),fe.exit("mathFlowFenceMeta"),xt(fn)):fn===36?pe(fn):(fe.consume(fn),ft)}function xt(fn){return fe.exit("mathFlowFence"),Se.interrupt?se(fn):fe.attempt(ot,at,bn)(fn)}function at(fn){return fe.attempt({tokenize:pn,partial:!0},bn,wt)(fn)}function wt(fn){return(De?(0,Ge.f)(fe,Mt,"linePrefix",De+1):Mt)(fn)}function Mt(fn){return fn===null?bn(fn):(0,Oe.Ch)(fn)?fe.attempt(ot,at,bn)(fn):(fe.enter("mathFlowValue"),Xt(fn))}function Xt(fn){return fn===null||(0,Oe.Ch)(fn)?(fe.exit("mathFlowValue"),Mt(fn)):(fe.consume(fn),Xt)}function bn(fn){return fe.exit("mathFlow"),se(fn)}function pn(fn,gn,Nt){let ut=0;return(0,Ge.f)(fn,it,"linePrefix",Se.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function it(Ct){return fn.enter("mathFlowFence"),fn.enter("mathFlowFenceSequence"),an(Ct)}function an(Ct){return Ct===36?(ut++,fn.consume(Ct),an):ut<Re?Nt(Ct):(fn.exit("mathFlowFenceSequence"),(0,Ge.f)(fn,mn,"whitespace")(Ct))}function mn(Ct){return Ct===null||(0,Oe.Ch)(Ct)?(fn.exit("mathFlowFence"),gn(Ct)):Nt(Ct)}}}function Xe(fe,se,pe){const Se=this;return we;function we(Re){return Re===null?se(Re):(fe.enter("lineEnding"),fe.consume(Re),fe.exit("lineEnding"),De)}function De(Re){return Se.parser.lazy[Se.now().line]?pe(Re):se(Re)}}function vt(fe){let pe=(fe||{}).singleDollarTextMath;return pe==null&&(pe=!0),{tokenize:Se,resolve:st,previous:_t,name:"mathText"};function Se(we,De,Re){const Ze=this;let nt=0,rt,ft;return xt;function xt(bn){return we.enter("mathText"),we.enter("mathTextSequence"),at(bn)}function at(bn){return bn===36?(we.consume(bn),nt++,at):nt<2&&!pe?Re(bn):(we.exit("mathTextSequence"),wt(bn))}function wt(bn){return bn===null?Re(bn):bn===36?(ft=we.enter("mathTextSequence"),rt=0,Xt(bn)):bn===32?(we.enter("space"),we.consume(bn),we.exit("space"),wt):(0,Oe.Ch)(bn)?(we.enter("lineEnding"),we.consume(bn),we.exit("lineEnding"),wt):(we.enter("mathTextData"),Mt(bn))}function Mt(bn){return bn===null||bn===32||bn===36||(0,Oe.Ch)(bn)?(we.exit("mathTextData"),wt(bn)):(we.consume(bn),Mt)}function Xt(bn){return bn===36?(we.consume(bn),rt++,Xt):rt===nt?(we.exit("mathTextSequence"),we.exit("mathText"),De(bn)):(ft.type="mathTextData",Mt(bn))}}}function st(fe){let se=fe.length-4,pe=3,Se,we;if((fe[pe][1].type==="lineEnding"||fe[pe][1].type==="space")&&(fe[se][1].type==="lineEnding"||fe[se][1].type==="space")){for(Se=pe;++Se<se;)if(fe[Se][1].type==="mathTextData"){fe[se][1].type="mathTextPadding",fe[pe][1].type="mathTextPadding",pe+=2,se-=2;break}}for(Se=pe-1,se++;++Se<=se;)we===void 0?Se!==se&&fe[Se][1].type!=="lineEnding"&&(we=Se):(Se===se||fe[Se][1].type==="lineEnding")&&(fe[we][1].type="mathTextData",Se!==we+2&&(fe[we][1].end=fe[Se-1][1].end,fe.splice(we+2,Se-we-2),se-=Se-we-2,Se=we+2),we=void 0);return fe}function _t(fe){return fe!==36||this.events[this.events.length-1][1].type==="characterEscape"}function Ue(fe){return{flow:{36:Ve},text:{36:vt(fe)}}}const te={};function ne(fe){const se=this,pe=fe||te,Se=se.data(),we=Se.micromarkExtensions||(Se.micromarkExtensions=[]),De=Se.fromMarkdownExtensions||(Se.fromMarkdownExtensions=[]),Re=Se.toMarkdownExtensions||(Se.toMarkdownExtensions=[]);we.push(Ue(pe)),De.push(Ie()),Re.push(Pe(pe))}},16722:function(ze,be,de){"use strict";de.d(be,{Z:function(){return ot}});const le=Je=>typeof Je=="object"&&Je!=null&&Je.nodeType===1,Me=(Je,Xe)=>(!Xe||Je!=="hidden")&&Je!=="visible"&&Je!=="clip",Ie=(Je,Xe)=>{if(Je.clientHeight<Je.scrollHeight||Je.clientWidth<Je.scrollWidth){const vt=getComputedStyle(Je,null);return Me(vt.overflowY,Xe)||Me(vt.overflowX,Xe)||(st=>{const _t=(Ue=>{if(!Ue.ownerDocument||!Ue.ownerDocument.defaultView)return null;try{return Ue.ownerDocument.defaultView.frameElement}catch(te){return null}})(st);return!!_t&&(_t.clientHeight<st.scrollHeight||_t.clientWidth<st.scrollWidth)})(Je)}return!1},Pe=(Je,Xe,vt,st,_t,Ue,te,ne)=>Ue<Je&&te>Xe||Ue>Je&&te<Xe?0:Ue<=Je&&ne<=vt||te>=Xe&&ne>=vt?Ue-Je-st:te>Xe&&ne<vt||Ue<Je&&ne>vt?te-Xe+_t:0,Ge=Je=>{const Xe=Je.parentElement;return Xe==null?Je.getRootNode().host||null:Xe},Oe=(Je,Xe)=>{var vt,st,_t,Ue;if(typeof document=="undefined")return[];const{scrollMode:te,block:ne,inline:fe,boundary:se,skipOverflowHiddenElements:pe}=Xe,Se=typeof se=="function"?se:mn=>mn!==se;if(!le(Je))throw new TypeError("Invalid target");const we=document.scrollingElement||document.documentElement,De=[];let Re=Je;for(;le(Re)&&Se(Re);){if(Re=Ge(Re),Re===we){De.push(Re);break}Re!=null&&Re===document.body&&Ie(Re)&&!Ie(document.documentElement)||Re!=null&&Ie(Re,pe)&&De.push(Re)}const Ze=(st=(vt=window.visualViewport)==null?void 0:vt.width)!=null?st:innerWidth,nt=(Ue=(_t=window.visualViewport)==null?void 0:_t.height)!=null?Ue:innerHeight,{scrollX:rt,scrollY:ft}=window,{height:xt,width:at,top:wt,right:Mt,bottom:Xt,left:bn}=Je.getBoundingClientRect(),{top:pn,right:fn,bottom:gn,left:Nt}=(mn=>{const Ct=window.getComputedStyle(mn);return{top:parseFloat(Ct.scrollMarginTop)||0,right:parseFloat(Ct.scrollMarginRight)||0,bottom:parseFloat(Ct.scrollMarginBottom)||0,left:parseFloat(Ct.scrollMarginLeft)||0}})(Je);let ut=ne==="start"||ne==="nearest"?wt-pn:ne==="end"?Xt+gn:wt+xt/2-pn+gn,it=fe==="center"?bn+at/2-Nt+fn:fe==="end"?Mt+fn:bn-Nt;const an=[];for(let mn=0;mn<De.length;mn++){const Ct=De[mn],{height:un,width:on,top:Bn,right:Nn,bottom:si,left:Pt}=Ct.getBoundingClientRect();if(te==="if-needed"&&wt>=0&&bn>=0&&Xt<=nt&&Mt<=Ze&&(Ct===we&&!Ie(Ct)||wt>=Bn&&Xt<=si&&bn>=Pt&&Mt<=Nn))return an;const qn=getComputedStyle(Ct),Ei=parseInt(qn.borderLeftWidth,10),$e=parseInt(qn.borderTopWidth,10),Fe=parseInt(qn.borderRightWidth,10),Ne=parseInt(qn.borderBottomWidth,10);let Qe=0,Ke=0;const Le="offsetWidth"in Ct?Ct.offsetWidth-Ct.clientWidth-Ei-Fe:0,At="offsetHeight"in Ct?Ct.offsetHeight-Ct.clientHeight-$e-Ne:0,Lt="offsetWidth"in Ct?Ct.offsetWidth===0?0:on/Ct.offsetWidth:0,tn="offsetHeight"in Ct?Ct.offsetHeight===0?0:un/Ct.offsetHeight:0;if(we===Ct)Qe=ne==="start"?ut:ne==="end"?ut-nt:ne==="nearest"?Pe(ft,ft+nt,nt,$e,Ne,ft+ut,ft+ut+xt,xt):ut-nt/2,Ke=fe==="start"?it:fe==="center"?it-Ze/2:fe==="end"?it-Ze:Pe(rt,rt+Ze,Ze,Ei,Fe,rt+it,rt+it+at,at),Qe=Math.max(0,Qe+ft),Ke=Math.max(0,Ke+rt);else{Qe=ne==="start"?ut-Bn-$e:ne==="end"?ut-si+Ne+At:ne==="nearest"?Pe(Bn,si,un,$e,Ne+At,ut,ut+xt,xt):ut-(Bn+un/2)+At/2,Ke=fe==="start"?it-Pt-Ei:fe==="center"?it-(Pt+on/2)+Le/2:fe==="end"?it-Nn+Fe+Le:Pe(Pt,Nn,on,Ei,Fe+Le,it,it+at,at);const{scrollLeft:$t,scrollTop:Ht}=Ct;Qe=tn===0?0:Math.max(0,Math.min(Ht+Qe/tn,Ct.scrollHeight-un/tn+At)),Ke=Lt===0?0:Math.max(0,Math.min($t+Ke/Lt,Ct.scrollWidth-on/Lt+Le)),ut+=Ht-Qe,it+=$t-Ke}an.push({el:Ct,top:Qe,left:Ke})}return an},Ve=Je=>Je===!1?{block:"end",inline:"nearest"}:(Xe=>Xe===Object(Xe)&&Object.keys(Xe).length!==0)(Je)?Je:{block:"start",inline:"nearest"};function ot(Je,Xe){if(!Je.isConnected||!(_t=>{let Ue=_t;for(;Ue&&Ue.parentNode;){if(Ue.parentNode===document)return!0;Ue=Ue.parentNode instanceof ShadowRoot?Ue.parentNode.host:Ue.parentNode}return!1})(Je))return;const vt=(_t=>{const Ue=window.getComputedStyle(_t);return{top:parseFloat(Ue.scrollMarginTop)||0,right:parseFloat(Ue.scrollMarginRight)||0,bottom:parseFloat(Ue.scrollMarginBottom)||0,left:parseFloat(Ue.scrollMarginLeft)||0}})(Je);if((_t=>typeof _t=="object"&&typeof _t.behavior=="function")(Xe))return Xe.behavior(Oe(Je,Xe));const st=typeof Xe=="boolean"||Xe==null?void 0:Xe.behavior;for(const{el:_t,top:Ue,left:te}of Oe(Je,Ve(Xe))){const ne=Ue-vt.top+vt.bottom,fe=te-vt.left+vt.right;_t.scroll({top:ne,left:fe,behavior:st})}}},71523:function(ze,be,de){"use strict";de.d(be,{P:function(){return Me},Q:function(){return le}});function le(Ie){const Pe=String(Ie||"").trim();return Pe?Pe.split(/[ \t\n\r\f]+/g):[]}function Me(Ie){return Ie.join(" ").trim()}},10502:function(ze,be,de){"use strict";de.d(be,{O:function(){return Me}});const le=function(Je,Xe,vt,st,_t){const Ue=Me(Xe);if(vt!=null&&(typeof vt!="number"||vt<0||vt===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite index");if(st!=null&&(!le(st)||!st.children))throw new Error("Expected parent node");if(st==null!=(vt==null))throw new Error("Expected both parent and index");return ot(Je)?Ue.call(_t,Je,vt,st):!1},Me=function(Je){if(Je==null)return Ve;if(typeof Je=="function")return Oe(Je);if(typeof Je=="object")return Array.isArray(Je)?Ie(Je):Pe(Je);if(typeof Je=="string")return Ge(Je);throw new Error("Expected function, string, or object as test")};function Ie(Je){const Xe=[];let vt=-1;for(;++vt<Je.length;)Xe[vt]=Me(Je[vt]);return Oe(st);function st(..._t){let Ue=-1;for(;++Ue<Xe.length;)if(Xe[Ue].apply(this,_t))return!0;return!1}}function Pe(Je){const Xe=Je;return Oe(vt);function vt(st){const _t=st;let Ue;for(Ue in Je)if(_t[Ue]!==Xe[Ue])return!1;return!0}}function Ge(Je){return Oe(Xe);function Xe(vt){return vt&&vt.type===Je}}function Oe(Je){return Xe;function Xe(vt,st,_t){return!!(ot(vt)&&Je.call(this,vt,typeof st=="number"?st:void 0,_t||void 0))}}function Ve(){return!0}function ot(Je){return Je!==null&&typeof Je=="object"&&"type"in Je}},17970:function(ze,be,de){"use strict";de.d(be,{FK:function(){return Pe},Pk:function(){return Me},rb:function(){return le}});const le=Ie("end"),Me=Ie("start");function Ie(Ge){return Oe;function Oe(Ve){const ot=Ve&&Ve.position&&Ve.position[Ge]||{};if(typeof ot.line=="number"&&ot.line>0&&typeof ot.column=="number"&&ot.column>0)return{line:ot.line,column:ot.column,offset:typeof ot.offset=="number"&&ot.offset>-1?ot.offset:void 0}}}function Pe(Ge){const Oe=Me(Ge),Ve=le(Ge);if(Oe&&Ve)return{start:Oe,end:Ve}}},2348:function(ze,be,de){"use strict";de.d(be,{AM:function(){return Oe},S4:function(){return Ve}});var le=de(10502);function Me(Je){return Je}const Ie=[],Pe=!0,Ge=!1,Oe="skip";function Ve(Je,Xe,vt,st){let _t;typeof Xe=="function"&&typeof vt!="function"?(st=vt,vt=Xe):_t=Xe;const Ue=(0,le.O)(_t),te=st?-1:1;ne(Je,void 0,[])();function ne(fe,se,pe){const Se=fe&&typeof fe=="object"?fe:{};if(typeof Se.type=="string"){const De=typeof Se.tagName=="string"?Se.tagName:typeof Se.name=="string"?Se.name:void 0;Object.defineProperty(we,"name",{value:"node ("+(fe.type+(De?"<"+De+">":""))+")"})}return we;function we(){let De=Ie,Re,Ze,nt;if((!Xe||Ue(fe,se,pe[pe.length-1]||void 0))&&(De=ot(vt(fe,pe)),De[0]===Ge))return De;if("children"in fe&&fe.children){const rt=fe;if(rt.children&&De[0]!==Oe)for(Ze=(st?rt.children.length:-1)+te,nt=pe.concat(rt);Ze>-1&&Ze<rt.children.length;){const ft=rt.children[Ze];if(Re=ne(ft,Ze,nt)(),Re[0]===Ge)return Re;Ze=typeof Re[1]=="number"?Re[1]:Ze+te}}return De}}}function ot(Je){return Array.isArray(Je)?Je:typeof Je=="number"?[Pe,Je]:Je==null?Ie:[Je]}},10528:function(ze,be,de){"use strict";de.d(be,{Vn:function(){return Me}});var le=de(2348);function Me(Ie,Pe,Ge,Oe){let Ve,ot,Je;typeof Pe=="function"&&typeof Ge!="function"?(ot=void 0,Je=Pe,Ve=Ge):(ot=Pe,Je=Ge,Ve=Oe),(0,le.S4)(Ie,ot,Xe,Ve);function Xe(vt,st){const _t=st[st.length-1],Ue=_t?_t.children.indexOf(vt):void 0;return Je(vt,Ue,_t)}}},43309:function(ze,be,de){"use strict";de.d(be,{t:function(){return le}});const le={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},47854:function(ze){"use strict";ze.exports=JSON.parse('{"AElig":"\xC6","AMP":"&","Aacute":"\xC1","Acirc":"\xC2","Agrave":"\xC0","Aring":"\xC5","Atilde":"\xC3","Auml":"\xC4","COPY":"\xA9","Ccedil":"\xC7","ETH":"\xD0","Eacute":"\xC9","Ecirc":"\xCA","Egrave":"\xC8","Euml":"\xCB","GT":">","Iacute":"\xCD","Icirc":"\xCE","Igrave":"\xCC","Iuml":"\xCF","LT":"<","Ntilde":"\xD1","Oacute":"\xD3","Ocirc":"\xD4","Ograve":"\xD2","Oslash":"\xD8","Otilde":"\xD5","Ouml":"\xD6","QUOT":"\\"","REG":"\xAE","THORN":"\xDE","Uacute":"\xDA","Ucirc":"\xDB","Ugrave":"\xD9","Uuml":"\xDC","Yacute":"\xDD","aacute":"\xE1","acirc":"\xE2","acute":"\xB4","aelig":"\xE6","agrave":"\xE0","amp":"&","aring":"\xE5","atilde":"\xE3","auml":"\xE4","brvbar":"\xA6","ccedil":"\xE7","cedil":"\xB8","cent":"\xA2","copy":"\xA9","curren":"\xA4","deg":"\xB0","divide":"\xF7","eacute":"\xE9","ecirc":"\xEA","egrave":"\xE8","eth":"\xF0","euml":"\xEB","frac12":"\xBD","frac14":"\xBC","frac34":"\xBE","gt":">","iacute":"\xED","icirc":"\xEE","iexcl":"\xA1","igrave":"\xEC","iquest":"\xBF","iuml":"\xEF","laquo":"\xAB","lt":"<","macr":"\xAF","micro":"\xB5","middot":"\xB7","nbsp":"\xA0","not":"\xAC","ntilde":"\xF1","oacute":"\xF3","ocirc":"\xF4","ograve":"\xF2","ordf":"\xAA","ordm":"\xBA","oslash":"\xF8","otilde":"\xF5","ouml":"\xF6","para":"\xB6","plusmn":"\xB1","pound":"\xA3","quot":"\\"","raquo":"\xBB","reg":"\xAE","sect":"\xA7","shy":"\xAD","sup1":"\xB9","sup2":"\xB2","sup3":"\xB3","szlig":"\xDF","thorn":"\xFE","times":"\xD7","uacute":"\xFA","ucirc":"\xFB","ugrave":"\xF9","uml":"\xA8","uuml":"\xFC","yacute":"\xFD","yen":"\xA5","yuml":"\xFF"}')},80501:function(ze){"use strict";ze.exports=JSON.parse('{"0":"\uFFFD","128":"\u20AC","130":"\u201A","131":"\u0192","132":"\u201E","133":"\u2026","134":"\u2020","135":"\u2021","136":"\u02C6","137":"\u2030","138":"\u0160","139":"\u2039","140":"\u0152","142":"\u017D","145":"\u2018","146":"\u2019","147":"\u201C","148":"\u201D","149":"\u2022","150":"\u2013","151":"\u2014","152":"\u02DC","153":"\u2122","154":"\u0161","155":"\u203A","156":"\u0153","158":"\u017E","159":"\u0178"}')}}]);
}());